.page-template-stories-main-page .video-container {
	width: 100%;
	max-width: 1600px;
	margin: 40px auto 0;
}

.page-template-stories-main-page .video-container {
	aspect-ratio: 16 / 9;
}

.page-template-stories-main-page .video-container iframe {
	width: 100%;
	height: 100%;
	display: block;
}

/* ================= HERO - FULL WIDTH BANNER ================= */

.hero--stories-page {
	position: relative;
	padding: 140px 20px 100px;
	min-height: 920px;
	display: flex;
	flex-direction: column;
	/* 👈 IMPORTANT */
	align-items: center;
	justify-content: center;
	/* 👈 CENTER EVERYTHING */
	text-align: center;
	overflow: hidden;
	background: #0f2c1f;
}

/* Background Image */

.hero__background {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hero__background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.78);
}

section.story-cards h2 {
	margin-bottom: 100px !important;
}

/* Content Wrapper - This fixes the overlapping */

.hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 1350px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Title - Above the video with proper space */

.hero__title {
	color: #ffffff;
	font-size: 52px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 30px;
	/* Good space between title and video */
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	z-index: 4;
	width: 100%;
	top: 8%;
	padding-top: 0;
}

/* Video Container */

.video-container {
	position: relative;
	width: 100%;
	max-width: 1280px;
	/* Wider video */
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	/* background: #000;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4); */
	z-index: 3;
}

.video-container iframe,
.video-container video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: none;
}

/* ====================== MOBILE ====================== */

@media (max-width: 1024px) {
	.hero--stories-page {
		padding: 100px 20px 70px;
		min-height: 700px;
	}
	.hero__title {
		font-size: 42px;
		margin-bottom: 25px;
	}
	.video-container {
		max-width: 1000px;
	}
}

@media (max-width: 768px) {
	.hero--stories-page {
		padding: 80px 15px 50px;
		min-height: 580px;
	}
	.hero__title {
		font-size: 32px;
		margin-bottom: 25px;
		/* Slightly more space on mobile */
	}
	.video-container {
		max-width: 100%;
		border-radius: 12px;
	}
}

/* Extra small screens - Force perfect centering */

@media (max-width: 480px) {
	.hero__title {
		font-size: 28px;
		margin-bottom: 20px;
	}
}

/* CARD CONTAINER */

section.story-cards {
	padding: 100px;
}

section.story-cards h2 {
	color: var(--medium-green);
	font-family: Montserrat EB;
	font-size: 50px;
	font-style: normal;
	font-weight: 800;
	line-height: normal;
	text-transform: uppercase;
	width: 100%;
	text-align: center;
}

/* Card Styles */

.story-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fefbe9;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.4s ease;
	border: 1px solid #a1a1a1;
}

.story-card:hover {
	transform: none !important;
	box-shadow: 0 20px 40px rgba(16, 94, 49, 0.15);
	border-color: #105e31;
	/* Green border on hover */
}

.story-card,
.story-card * {
	text-decoration: none !important;
}

/* IMAGE */

.story-card__image img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

/* CONTENT */

.story-card__content {
	padding: 30px;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* DATE */

.story-card__date {
	font-family: "Montserrat";
	font-size: 18px;
	color: #1a1a1a;
	display: block;
	margin-bottom: 20px;
	font-weight: 400;
}

/* TITLE */

.story-card__title {
	font-family: "Montserrat";
	font-size: 22px;
	font-weight: 500;
	color: #105e31;
	margin-bottom: 20px;
	line-height: 1.3;
}

/* EXCERPT */

.story-card__excerpt {
	font-size: 18px;
	color: #1a1a1a;
	line-height: 1.6;
	margin-bottom: 20px;
}

/* READ MORE */

.story-card__readmore {
	font-family: "Montserrat";
	font-weight: 600;
	color: #105e31;
	font-size: 18px;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: gap 0.35s ease;
}

.story-card__readmore::after {
	content: "→";
	font-size: 22px;
	line-height: 1;
	transition: all 0.35s ease;
}

.story-card:hover .story-card__readmore {
	gap: 16px;
}

/* GRID */

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.comments-pagination,
.pagination {
	display: none;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
	section.story-cards {
		padding: 70px 30px;
	}
	.cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.story-card__image img {
		height: 200px;
	}
	.hero--stories-page {
		min-height: auto;
		/* 👈 removes extra space */
		padding: 60px 15px;
	}
	.hero__title {
		position: static;
		/* 👈 ensures no absolute behavior */
		transform: none;
		margin-bottom: 20px;
	}
	section.story-cards h2 {
		margin-bottom: 50px !important;
	}
}

@media (max-width: 1024px) {
	.cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.cards-grid {
		grid-template-columns: 1fr;
	}
	.story-card__image img {
		height: 200px;
	}
	.hero--stories-page {
		min-height: auto;
		/* 👈 removes extra space */
		padding: 60px 15px;
	}
	.hero__title {
		position: static;
		/* 👈 ensures no absolute behavior */
		transform: none;
		margin-bottom: 20px;
	}
	section.story-cards h2 {
		margin-bottom: 50px !important;
	}
}

@media (max-width: 767px) {
	section.story-cards {
		padding: 50px 20px;
	}
	section.story-cards h2 {
		margin-bottom: 50px !important;
	}
}
