/*
 * Climate Watch - Custom Theme Stylesheet
 * Contains all layouts, styling tokens, variables, typography, and responsive designs.
 */

:root {
	/* Colors */
	--bg-primary: #050d08;
	--bg-secondary: #0a180f;
	--bg-card: rgba(10, 24, 15, 0.6);
	--bg-card-hover: rgba(16, 40, 25, 0.8);
	--accent: #10b981;
	--accent-hover: #34d399;
	--accent-rgb: 16, 185, 129;
	
	/* Borders and Shadows */
	--border-color: rgba(255, 255, 255, 0.08);
	--border-color-hover: rgba(16, 185, 129, 0.3);
	--shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
	--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
	
	/* Typography */
	--text-primary: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.7);
	--text-muted: rgba(255, 255, 255, 0.45);
	--font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	
	/* Layout */
	--max-width: 1200px;
	--header-height: 80px;
}

/* Global Reset & Base */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-headings);
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-primary);
}

/* Button & UI Components */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	font-family: var(--font-headings);
	font-weight: 600;
	border-radius: 30px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	text-align: center;
}

.btn-primary {
	background-color: rgba(16, 185, 129, 0.12);
	color: #ffffff;
	border: 1.5px solid var(--accent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.btn-primary:hover, .btn-primary:focus {
	background-color: var(--accent);
	color: #030805;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-lg {
	padding: 12px 32px;
	font-size: 1.1rem;
}

/* Glassmorphism Cards */
.glass-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	padding: 30px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: var(--shadow-md);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Scroll Reveal Animations */
.reveal-element {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-element.reveal-active {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered card reveals */
.vision-card.reveal-element {
	transition-delay: 0.1s;
}

.mission-card.reveal-element {
	transition-delay: 0.25s;
}

.glass-card:hover {
	background: var(--bg-card-hover);
	border-color: var(--border-color-hover);
	box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.05);
}

/* Section Common Styles */
.section-container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 80px 24px;
}

.section-title {
	font-size: 2.25rem;
	margin-bottom: 24px;
	position: relative;
	display: inline-block;
}

.section-title-center {
	text-align: center;
	display: block;
	margin-bottom: 48px;
}

.section-lead-text {
	font-size: 1.15rem;
	color: var(--text-secondary);
	max-width: 800px;
	margin-bottom: 48px;
}

/* Site Header */
.site-header {
	height: var(--header-height);
	position: absolute;
	top: 24px; /* Floating down from top */
	left: 0;
	width: 100%;
	z-index: 1000;
	display: flex;
	align-items: center;
	transition: background-color 0.3s ease;
}

.header-container {
	max-width: var(--max-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-branding .logo-link {
	display: block;
}

.site-logo-img {
	height: 60px; /* Even larger logo */
	width: auto;
	display: block;
	transition: opacity 0.3s ease;
}

.site-logo-img:hover {
	opacity: 0.9;
}

/* Capsule Navigation styling */
.nav-capsule {
	background: rgba(10, 24, 15, 0.55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border-color);
	border-radius: 50px;
	padding: 8px 16px; /* Slightly larger padding */
	box-shadow: var(--shadow-sm);
}

.nav-menu-list {
	display: flex;
	list-style: none;
	gap: 8px;
}

.nav-menu-list li a {
	display: block;
	padding: 10px 24px;
	font-family: var(--font-headings);
	font-size: 0.95rem; /* Larger font size */
	font-weight: 600;
	letter-spacing: 0.5px;
	border-radius: 30px;
	color: var(--text-secondary);
}

.nav-menu-list li a:hover,
.nav-menu-list li.current-menu-item a,
.nav-menu-list li.active a {
	color: var(--text-primary);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 26px;
	height: 18px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1001;
}

.menu-toggle .hamburger-bar {
	width: 100%;
	height: 2px;
	background-color: var(--text-primary);
	border-radius: 2px;
	transition: all 0.3s ease;
}

/* Screen reader text helper */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* Hero Section Styles */
.hero-section {
	min-height: 85vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding-top: var(--header-height);
	position: relative;
}

.hero-container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 60px 24px;
	width: 100%;
}

.hero-title {
	font-family: 'Lilita One', var(--font-headings);
	font-size: 5.2rem; /* Larger text size to fill section */
	font-weight: 400;
	max-width: 950px; /* Expand width limit */
	margin-bottom: 24px;
	letter-spacing: -0.5px;
	line-height: 1.15;
}

.hero-subtitle {
	font-size: 1.35rem; /* Slightly larger font size */
	color: var(--text-secondary);
	max-width: 780px; /* Expand width limit */
	margin-bottom: 40px;
	font-weight: 400;
}

.hero-actions {
	display: block;
}

/* Page Load Animation Keyframes */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.site-header {
		animation: fadeInDown 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
		opacity: 0;
	}
	.hero-title {
		animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
		opacity: 0;
	}
	.hero-subtitle {
		animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.35s forwards;
		opacity: 0;
	}
	.hero-actions {
		animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
		opacity: 0;
	}
}

/* What We Do Grid */
.vision-mission-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.vision-mission-grid .card-title {
	font-size: 1.75rem;
	margin-bottom: 16px;
	color: var(--text-primary);
	font-weight: 600;
}

.vision-mission-grid .card-text {
	color: var(--text-secondary);
}

/* Voices from the Ground Split */
.voices-split-container {
	display: grid;
	grid-template-columns: 0.35fr 0.65fr;
	gap: 40px;
	align-items: center;
}

.voices-title {
	font-size: 2.5rem;
	line-height: 1.2;
}

/* Carousel General Styles */
.carousel-wrapper {
	position: relative;
	width: 100%;
}

.carousel-scroller {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none;  /* IE/Edge */
	gap: 20px;
	padding: 10px 0;
}

.carousel-scroller::-webkit-scrollbar {
	display: none; /* Safari & Chrome */
}

.carousel-item {
	flex: 0 0 100%;
	scroll-snap-align: center;
	transition: transform 0.4s ease;
}

/* Snap State Queries (Container Queries) */
.voices-carousel-col {
	height: 380px; /* Fixed height container */
	overflow: hidden;
}

.voices-scroller {
	display: flex;
	flex-direction: column; /* Vertical stacking */
	height: 380px;
	overflow-y: auto; /* Vertical scroll */
	overflow-x: hidden;
	scroll-snap-type: y mandatory; /* Y-axis snapping */
	gap: 16px;
	flex: 1;
}

.voices-item {
	flex: 0 0 100%;
	height: 100%;
	scroll-snap-align: center;
	container-type: scroll-state;
}

.video-placeholder-card {
	height: 100%;
	background: rgba(255, 255, 255, 0.05); /* Soft white-grey translucent layout */
	border: 1.5px solid var(--border-color);
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	cursor: pointer;
}

.video-placeholder-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--accent);
}

.play-button-icon {
	color: var(--accent);
	background: rgba(255, 255, 255, 0.08);
	border: 1.5px solid var(--accent);
	border-radius: 50%;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-placeholder-card:hover .play-button-icon {
	transform: scale(1.1);
	background: var(--accent);
	color: #030805;
	box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.video-placeholder-meta {
	position: absolute;
	bottom: 24px;
	left: 24px;
	text-align: left;
}

.video-placeholder-meta .video-title {
	font-family: var(--font-headings);
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 2px;
	color: var(--text-primary);
}

.video-placeholder-meta .video-duration {
	font-size: 0.85rem;
	color: var(--accent);
	font-weight: 500;
}

/* Snap highlights fallback (Firefox/Safari) */
.carousel-item.is-snapped .video-placeholder-card {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.12);
}

/* Snap highlights native (Chrome) */
@supports (container-type: scroll-state) {
	@media (prefers-reduced-motion: no-preference) {
		@container scroll-state(snapped: y) {
			.video-placeholder-card {
				border-color: var(--accent);
				background: rgba(255, 255, 255, 0.1);
				box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.12);
			}
		}
	}
}

/* Indicator dots styling */
.carousel-indicators {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 30px;
}

.indicator-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--text-muted);
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.indicator-dot.active {
	background-color: var(--accent);
	width: 24px;
	border-radius: 4px;
}

/* Vertical Carousel Indicator overrides */
.vertical-carousel-wrapper {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 100%;
}

.vertical-indicators {
	flex-direction: column;
	justify-content: center;
	margin-top: 0;
	gap: 12px;
}

.vertical-indicators .indicator-dot.active {
	width: 8px;
	height: 24px;
	border-radius: 4px;
}

/* Climate Insights Section Split */
.insights-split-grid {
	display: grid;
	grid-template-columns: 0.55fr 0.45fr;
	gap: 50px;
	align-items: center;
}

.insights-text-item {
	container-type: scroll-state;
}

.insights-content-block .insight-item-title {
	font-size: 1.85rem;
	margin-bottom: 20px;
	font-weight: 600;
	position: relative;
}

.insights-content-block .insight-item-text {
	color: var(--text-secondary);
	font-size: 1.05rem;
	line-height: 1.7;
}

.insights-image-wrapper {
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
	position: relative;
}

.insights-image-wrapper::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

.insights-featured-img {
	width: 100%;
	object-fit: cover;
	aspect-ratio: 1 / 1;
	transition: transform 0.6s ease, opacity 0.3s ease;
}

.insights-image-wrapper:hover .insights-featured-img {
	transform: scale(1.05);
}

/* Climate Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.gallery-item-wrapper {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--border-color);
}

.gallery-item-card {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	cursor: pointer;
}

.gallery-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-hover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(5, 13, 8, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-zoom-icon {
	color: var(--accent);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	padding: 12px;
	backdrop-filter: blur(4px);
	transform: scale(0.8);
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item-card:hover .gallery-image {
	transform: scale(1.08);
}

.gallery-item-card:hover .gallery-hover-overlay {
	opacity: 1;
}

.gallery-item-card:hover .gallery-zoom-icon {
	transform: scale(1);
}

.gallery-indicators {
	display: none; /* Hidden on desktop grid, shown on mobile carousel */
}

/* Site Footer styling */
.site-footer {
	background-color: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	padding: 80px 0 40px;
}

.footer-container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 0.6fr 0.4fr;
	gap: 60px;
}

.footer-brand-column {
	display: flex;
	flex-direction: column;
}

.footer-branding {
	margin-bottom: 20px;
}

.footer-description {
	color: var(--text-secondary);
	font-size: 0.95rem;
	max-width: 480px;
	margin-bottom: 40px;
	line-height: 1.7;
}

.footer-copyright-social {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.copyright-text {
	font-size: 0.8rem;
	color: var(--text-muted);
	text-transform: capitalize;
}

.social-links {
	display: flex;
	gap: 16px;
}

.social-icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

.social-icon-link:hover {
	color: var(--accent);
	transform: translateY(-2px);
}

.footer-links-column .footer-column-title {
	font-size: 1.15rem;
	margin-bottom: 24px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.footer-menu-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-menu-list li a {
	color: var(--text-secondary);
	font-size: 0.95rem;
	display: inline-block;
}

.footer-menu-list li a:hover {
	color: var(--accent);
	transform: translateX(4px);
}

/* -----------------------------------
 * VIDEO STORY PAGE STYLES
 * ----------------------------------- */

.video-hero {
	min-height: 50vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height);
	background-size: cover;
	background-position: center;
	position: relative;
}

.video-hero-content {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 60px 24px;
	width: 100%;
}

.video-hero-title {
	font-family: 'Lilita One', var(--font-headings);
	font-size: 4.5rem;
	margin-bottom: 20px;
	line-height: 1.1;
}

/* Main Video Player Section */
.main-video-section {
	padding: 60px 24px;
	background-color: var(--bg-primary);
}

.main-video-container {
	max-width: 1000px;
	margin: 0 auto;
}

.video-player-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	overflow: hidden;
	border-radius: 16px;
	background: #000;
	margin-bottom: 24px;
	box-shadow: var(--shadow-lg);
}

.video-player-wrapper iframe,
.video-player-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-details-header {
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 20px;
}

.video-main-title {
	font-size: 1.8rem;
	margin-bottom: 12px;
}

.video-meta-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--text-secondary);
	font-size: 0.95rem;
	flex-wrap: wrap;
	gap: 16px;
}

.video-actions {
	display: flex;
	gap: 20px;
}

.video-action-btn {
	background: none;
	border: none;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-family: var(--font-primary);
	font-size: 0.9rem;
	transition: color 0.3s ease, transform 0.2s ease;
}

.video-action-btn:hover {
	color: var(--accent);
}

.video-action-btn.active {
	color: var(--accent);
}

.video-action-btn.active svg {
	fill: var(--accent);
}

.video-description {
	color: var(--text-secondary);
	line-height: 1.8;
	font-size: 1rem;
	margin-bottom: 40px;
}

/* All Video Story Grid */
.all-videos-section {
	padding: 40px 24px 80px;
	background-color: var(--bg-secondary);
	border-radius: 40px 40px 0 0;
}

.all-videos-container {
	max-width: var(--max-width);
	margin: 0 auto;
}

.section-title-underline {
	font-size: 2.2rem;
	margin: 0 auto 48px;
	position: relative;
	width: max-content;
	display: block;
}

.section-title-underline::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--text-primary);
}

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

.video-card {
	display: flex;
	gap: 16px;
	background: transparent;
	transition: transform 0.3s ease;
	cursor: pointer;
}

.video-card:hover {
	transform: translateY(-4px);
}

.video-card-thumb {
	position: relative;
	width: 200px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.video-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-duration-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 0.75rem;
	padding: 2px 6px;
	border-radius: 4px;
	font-weight: 600;
}

.video-card-info {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.video-card-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.video-card-channel {
	font-size: 0.9rem;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.video-card-meta {
	font-size: 0.85rem;
	color: var(--text-muted);
}

@media (max-width: 768px) {
	.video-grid {
		grid-template-columns: 1fr;
	}
	.video-card {
		flex-direction: column;
	}
	.video-card-thumb {
		width: 100%;
	}
}

/* -----------------------------------
 * CLIMATE INSIGHTS PAGE STYLES
 * ----------------------------------- */

.insights-split-container {
	display: grid;
	grid-template-columns: 0.65fr 0.35fr; /* 65% text, 35% image */
	gap: 50px;
	align-items: center;
	margin-bottom: 60px;
}

.full-article-content {
	color: var(--text-secondary);
	font-size: 1.05rem;
	line-height: 1.8;
	margin-top: 40px;
}

.full-article-content p {
	margin-bottom: 24px;
}

/* Popular Articles Section */
.popular-articles-section {
	padding: 60px 24px;
	max-width: 1000px;
	margin: 0 auto;
}

.popular-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
}

.popular-title {
	font-size: 2.5rem;
	font-family: var(--font-headings);
	font-weight: 500;
}

.popular-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.popular-card {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: var(--text-primary);
	transition: transform 0.3s ease;
}

.popular-card:hover {
	transform: translateX(10px);
}

.popular-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent);
}

.popular-info h4 {
	font-size: 1.2rem;
	margin-bottom: 4px;
}

.popular-info p {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.4;
}

.popular-divider {
	height: 2px;
	background: rgba(255, 255, 255, 0.1);
	width: 100%;
	position: relative;
}

.popular-divider::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 30%;
	background: var(--text-muted);
}

/* -----------------------------------
 * CLIMATE GALLERY PAGE STYLES
 * ----------------------------------- */

.all-photos-section {
	padding: 40px 24px 80px;
}

.photos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
}

.photo-item {
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 12px;
	overflow: hidden;
	background-color: #f0f0f0;
}

.photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.photo-item:hover img {
	transform: scale(1.05);
}

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

@media (max-width: 576px) {
	.photos-grid {
		grid-template-columns: 1fr;
	}
}

/* -----------------------------------
 * GALLERY LIGHTBOX MODAL
 * ----------------------------------- */

.gallery-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.open {
	opacity: 1;
	visibility: visible;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(5, 13, 8, 0.9);
	cursor: pointer;
}

.modal-content {
	position: relative;
	z-index: 10000;
	max-width: 90%;
	max-height: 90vh;
	background: var(--bg-primary);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.gallery-modal.open .modal-content {
	transform: translateY(0);
}

.modal-image-container {
	width: 100%;
	max-height: 70vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #000;
}

.modal-image-container img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
}

.modal-info {
	padding: 24px;
	text-align: left;
}

.modal-info h3 {
	margin: 0 0 8px 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.modal-info p {
	margin: 0;
	color: var(--text-secondary);
	font-size: 1rem;
	line-height: 1.5;
}

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease;
	z-index: 10;
}

.modal-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 992px) {
	.insights-split-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

.articles-section {
	padding: 40px 24px 80px;
	background-color: var(--bg-secondary);
	border-radius: 40px 40px 0 0;
}

.articles-container {
	max-width: 1000px;
	margin: 0 auto;
}

.article-row {
	display: flex;
	gap: 40px;
	margin-bottom: 60px;
	align-items: center;
}

.article-row.reverse {
	flex-direction: row-reverse;
}

.article-image {
	flex: 1;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.article-row:hover .article-image img {
	transform: scale(1.05);
}

.article-content {
	flex: 1;
}

.article-category {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
	margin-bottom: 8px;
	display: block;
}

.article-title {
	font-size: 2rem;
	font-family: var(--font-headings);
	margin-bottom: 16px;
	line-height: 1.2;
}

.article-excerpt {
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 0;
}


@media (max-width: 768px) {
	.article-row,
	.article-row.reverse {
		flex-direction: column;
		gap: 20px;
		margin-bottom: 40px;
	}
	.article-image {
		width: 100%;
	}

}

/* @media query enhancements for Container queries & snapping highlights */
@supports (container-type: scroll-state) {
	@media (prefers-reduced-motion: no-preference) {
		@container scroll-state(snapped: x) {
			.voice-card {
				border-color: var(--accent);
				box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.15);
				background: var(--bg-card-hover);
			}
			.insights-content-block {
				transform: translateY(0);
				opacity: 1;
			}
		}
	}
}

/* Active slide fallback styles for JS active class */
.carousel-item.is-snapped .voice-card {
	border-color: var(--accent);
	box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.15);
	background: var(--bg-card-hover);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
	.hero-title {
		font-size: 3.8rem;
	}
	
	.vision-mission-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.voices-split-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.insights-split-grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.insights-img-col {
		order: -1;
		max-width: 500px;
		margin: 0 auto;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.footer-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 767px) {
	:root {
		--header-height: 70px;
	}
	
	.section-container {
		padding: 60px 20px;
	}

	.site-header {
		top: 0; /* Reset top offset on mobile */
	}

	.hero-title {
		font-size: 3.0rem;
	}
	
	.hero-subtitle {
		font-size: 1.1rem;
	}
	
	/* Mobile Hamburger Menu */
	.menu-toggle {
		display: flex;
	}
	
	.main-navigation {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: 0;
		overflow: hidden;
		background: rgba(5, 13, 8, 0.95);
		backdrop-filter: blur(15px);
		-webkit-backdrop-filter: blur(15px);
		border-bottom: 0 solid var(--border-color);
		transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
		z-index: 999;
	}
	
	.main-navigation.is-open {
		height: calc(100vh - var(--header-height));
		border-bottom-width: 1px;
	}
	
	.nav-capsule {
		background: transparent;
		border: none;
		box-shadow: none;
		border-radius: 0;
		padding: 40px 20px;
	}
	
	.nav-menu-list {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}
	
	.nav-menu-list li a {
		font-size: 1.25rem;
		padding: 10px 30px;
	}
	
	/* Active Hamburger Icon state */
	.menu-toggle.is-active .hamburger-bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	
	.menu-toggle.is-active .hamburger-bar:nth-child(2) {
		opacity: 0;
	}
	
	.menu-toggle.is-active .hamburger-bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}
	
	/* Mobile Carousel for Gallery */
	.gallery-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		gap: 16px;
		padding: 10px 0;
	}
	
	.gallery-grid::-webkit-scrollbar {
		display: none;
	}
	
	.gallery-item-wrapper {
		flex: 0 0 85%;
		scroll-snap-align: center;
	}
	
	.gallery-indicators {
		display: flex;
	}
}

@media (max-width: 480px) {
	.hero-title {
		font-size: 2.2rem;
	}
	
	.btn-lg {
		padding: 10px 24px;
		font-size: 1rem;
	}
	
	.voice-quote {
		font-size: 1rem;
	}
}

/* -----------------------------------
 * ABOUT US PAGE STYLES
 * ----------------------------------- */

@media (max-width: 768px) {
	.about-hero-title {
		font-size: 2.5rem !important;
	}
	.what-we-do-grid {
		grid-template-columns: 1fr !important;
		gap: 30px !important;
	}
	.what-we-do-block {
		padding: 30px !important;
	}
	.connect-card {
		padding: 40px 24px !important;
	}
	.connect-card h3 {
		font-size: 2rem !important;
	}
}
/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.pagination .page-numbers.next,
.pagination .page-numbers.prev {
	width: auto;
	padding: 0 20px;
	border-radius: 20px;
}
