/* ============================================
   Story List: Masonry Grid
   ============================================ */

.ws-story-list-total {
	margin-bottom: 24px;
	font-size: 0.93rem;
	color: #555;
	font-family:Montserrat, Arial, sans-serif;
}

.ws-story-list {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	grid-auto-rows: 1px;
	column-gap: 40px;
	row-gap: 30px;
}

@media ( max-width: 900px ) {
	.ws-story-list {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 560px ) {
	.ws-story-list {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Story Card
   ============================================ */

.ws-story-card {
	background: rgba( 255, 255, 255, 0.8 );
	border-radius: 8px;
	box-shadow: 0px 0px 8px rgba( 0, 0, 0, 0.1 );
	overflow: hidden;
	align-self: start;
}

.ws-story-card:hover {
	box-shadow: 0px 0px 8px rgba(173, 209, 183, 1 );
	background: linear-gradient(125deg,rgba(243, 197, 144, 1) 0%, rgba(231, 215, 160, 1) 68%, rgba(173, 209, 183, 1) 100%);	
}

.ws-story-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ws-story-card-link:hover {
	box-shadow: inset 0px 0px 6px rgba( 255, 255, 255, 0.2 );
}

.ws-story-card-link:hover .ws-story-card-title {
	text-decoration: underline;
}

/* ============================================
   Card: Media (image + badge)
   ============================================ */

.ws-story-card-media {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: #e5e7eb;
}

.ws-story-card-img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.ws-story-card:hover .ws-story-card-img {
	transform: scale(1.2);
}

.ws-story-card-img-placeholder {
	width: 100%;
	padding-top: 66%;
	background: #d1d5db;
}

.ws-story-type-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.8);
	color: #111;
	font-size: 12px;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 400;
	letter-spacing: 0.05em;
	padding: 8px 14px;
	border-radius: 4px;
	line-height: 1em;
	box-shadow:0px 0px 1px rgba( 0, 0, 0, 0.8 );
	white-space: nowrap;
}

/* ============================================
   Card: Body (author, title, topics)
   ============================================ */

.ws-story-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ws-story-card-author {
	margin: 0px !important;
	font-size: 13px;
	font-weight: 400;
	font-family: Montserrat, Arial, sans-serif;
	letter-spacing: 0px;
	text-transform: uppercase;
	color: #666666;
}

.ws-story-card-author:before {
	content:"\f110";
	position:relative;
	top:2px;
	display:inline-block;
	padding-right: 4px;
	font-family:dashicons;
}

.ws-story-card:hover .ws-story-card-author {
	color:#111;
}

.ws-story-card-title {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	color: #111;
	letter-spacing: 0.015em;
	text-decoration: none !important;
}

.ws-story-card-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.ws-story-topic-tag {
	display: inline-block;
	font-size: 12px;
	font-family: Montserrat, Arial, sans-serif;
	font-weight: 700;
	line-height: 1;
	padding: 8px 8px;
	border-radius: 5px;
	border: 1px solid #b44c30;
	color: #b44c30;
}

/* ============================================
   Load More Button
   ============================================ */

.ws-story-pagination {
	margin-top: 32px;
	text-align: center;
}

.btn-infinite-scroll {
	display: inline-block;
	padding: 10px 28px;
	background: #c04732;
	color: #fff;
	font-size: 18px;
	font-weight: 400;
	font-family: Gloock, 'Times New Roman', serif;
	text-decoration: none;
	border-radius: 3px;
	cursor: pointer;
	box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2);
	transition: box-shadow 0.3s ease-out;
}

.btn-infinite-scroll:after {
	content:"\f347";
	display:inline-block;
	margin-left: 5px;
	font-family: dashicons;
	font-size: 18px;
	line-height:1em;
	position:relative;
	top:3px;
}

.btn-infinite-scroll:hover {
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.3);
	color:#fff;
}

.btn-infinite-scroll.loading {
	opacity: 0.6;
	pointer-events: none;
}

.btn-infinite-scroll.hide {
	display: none;
}

/* ============================================
   No Results
   ============================================ */

.ws-no-data {
	padding: 24px;
	text-align: center;
	color: #666;
}
