/* =============================================
   GreenHarvest Africa — Main Stylesheet
   ============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --blue:       #03738C;
  --blue-dark:  #025f75;
  --blue-light: #e0f4f8;
  --green:      #2E5922;
  --green-mid:  #3d7a2e;
  --green-light:#e8f5e3;
  --brown:      #734924;
  --brown-light:#f5ede5;
  --yellow:     #fdc21e;
  --yellow-light:#ebca38;
  --white:      #ffffff;
  --off-white:  #f8faf7;
  --gray-light: #f0f2f0;
  --gray:       #9aab97;
  --text-dark:  #1a2e18;
  --text-mid:   #3d5239;
  --text-light: #6b8065;
  --shadow-sm:  0 2px 12px rgba(46,89,34,0.08);
  --shadow-md:  0 8px 32px rgba(46,89,34,0.13);
  --shadow-lg:  0 20px 60px rgba(46,89,34,0.18);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  48px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', sans-serif;
  --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* Dark Mode Variables */
body.dark-mode {
  --white:      #111e10;
  --off-white:  #162014;
  --gray-light: #1e2c1c;
  --text-dark:  #e8f5e3;
  --text-mid:   #b8d4b2;
  --text-light: #89aa82;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* --- Loading Screen --- */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.loader-logo span { color: var(--yellow); }
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0;
  background: var(--yellow);
  border-radius: 10px;
  animation: loaderFill 1.5s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* --- Navbar --- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
body.dark-mode #navbar.scrolled {
  background: rgba(17,30,16,0.97);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
#navbar.scrolled .nav-logo { color: var(--green); }
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.nav-logo span { color: var(--white); }
#navbar.scrolled .nav-logo span { color: var(--off-white); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-weight: 600; font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  position: relative; padding: 4px 0;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
#navbar.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active {
  color: var(--yellow) !important;
}
#navbar.scrolled .nav-links a.active { color: var(--green) !important; }
#navbar.scrolled .nav-links a.active::after { background: var(--green); }

.nav-actions {
  display: flex; align-items: center; gap: 14px;
}
.btn-nav {
  padding: 9px 22px;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 700; font-size: 0.88rem;
  border: none; border-radius: var(--radius-xl);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-nav:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(46,89,34,0.3);
}
.dark-toggle {
  width: 40px; height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
#navbar.scrolled .dark-toggle { border-color: var(--gray); color: var(--text-mid); }
.dark-toggle:hover { background: var(--yellow); border-color: var(--yellow); color: var(--text-dark); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 6px; cursor: pointer;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: white; border-radius: 2px;
  transition: var(--transition);
}
#navbar.scrolled .hamburger span { background: var(--text-dark); }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Menu */
#mobile-menu {
  position: fixed; top: 0; right: -100%; bottom: 0;
  width: min(320px, 100%);
  background: var(--white);
  z-index: 999;
  padding: 90px 36px 40px;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; gap: 8px;
}
#mobile-menu.open { right: 0; }
.mobile-link {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
}
.mobile-link:hover { color: var(--green); padding-left: 8px; }
.mobile-link .icon { font-size: 1.2rem; }
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-overlay.show { opacity: 1; pointer-events: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--text-dark);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,89,34,0.35);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: white;
  color: var(--green);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-green {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,89,34,0.35);
}
.btn-sm { padding: 10px 22px; font-size: 0.875rem; }

/* --- Section Base --- */
section { position: relative; overflow: hidden; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 16px; border-radius: var(--radius-xl);
  margin-bottom: 16px;
}
.section-label .dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--green); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Hero Section --- */
#hero {
  height: 100vh; min-height: 680px;
  position: relative;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?w=1600&q=80');
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,50,15,0.82) 0%, rgba(3,115,140,0.55) 60%, rgba(17,50,15,0.4) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 5%;
  padding-top: 72px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,168,29,0.2);
  border: 1px solid rgba(242,168,29,0.5);
  color: var(--yellow);
  padding: 6px 18px; border-radius: var(--radius-xl);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-title .highlight {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 16px;
  animation: fadeInUp 0.8s 0.6s ease both;
}
.hero-stats {
  position: absolute; bottom: 48px; left: 5%; right: 5%;
  display: flex; gap: 32px; flex-wrap: wrap;
  z-index: 2;
  animation: fadeInUp 0.8s 0.8s ease both;
}
.hero-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--yellow); line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem; color: rgba(255,255,255,0.8);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 4px;
}

/* Wave Divider */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* --- Features Section --- */
#features {
  padding: 100px 5%;
  background: var(--off-white);
}
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-sub { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 1200px; margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 64px; height: 64px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--green);
  transform: scale(1.1);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.95rem; color: var(--text-light);
  line-height: 1.7;
}

/* --- Split Sections --- */
.split-section {
  padding: 100px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.split-image:hover img { transform: scale(1.05); }
.split-image-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.badge-icon { font-size: 1.5rem; }
.badge-text strong {
  display: block; font-size: 1.1rem; font-weight: 800;
  color: var(--text-dark);
}
.badge-text span { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }

.split-text .section-label { display: inline-flex; }
.split-text .section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.split-text ul {
  margin: 24px 0; display: flex; flex-direction: column; gap: 12px;
}
.split-text ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.6;
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 0.7rem;
  flex-shrink: 0; margin-top: 2px;
}

/* --- Stats Section --- */
#stats {
  padding: 100px 5%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  position: relative;
}
#stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.stats-header { text-align: center; margin-bottom: 64px; }
.stats-header .section-label { background: rgba(255,255,255,0.15); color: var(--yellow); }
.stats-header .section-label .dot { background: var(--yellow); }
.stats-header .section-title { color: white; }
.stats-header .section-sub { color: rgba(255,255,255,0.75); margin: 0 auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.stat-card {
  text-align: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-6px);
}
.stat-icon { font-size: 2.5rem; margin-bottom: 16px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 800;
  color: var(--yellow); line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 1px;
}

/* --- Testimonials --- */
#testimonials {
  padding: 100px 5%;
  background: var(--off-white);
}
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-header .section-sub { margin: 0 auto; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1200px; margin: 0 auto;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote-icon {
  font-size: 3.5rem;
  color: var(--green-light);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-text {
  font-size: 1rem; color: var(--text-mid);
  line-height: 1.75; font-style: italic;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
}
.author-info strong {
  display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-dark);
}
.author-info span { font-size: 0.82rem; color: var(--text-light); }
.stars { color: var(--yellow); font-size: 0.85rem; margin-top: 2px; }

/* --- CTA Banner --- */
#cta-banner {
  padding: 80px 5%;
  background: var(--green);
  text-align: center;
  position: relative; overflow: hidden;
}
#cta-banner::before {
  content: '🌿';
  position: absolute; font-size: 200px;
  opacity: 0.06; top: -30px; right: -20px;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(242,168,29,0.2); color: var(--yellow);
  padding: 6px 16px; border-radius: var(--radius-xl);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: white;
  margin-bottom: 16px; line-height: 1.2;
}
.cta-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}
.cta-btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.page-hero {
  height: 480px;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,50,15,0.85) 0%, rgba(3,115,140,0.6) 100%);
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 72px 5% 0;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--yellow); font-weight: 600; }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800; color: white;
  line-height: 1.15;
}
.page-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.8);
  margin-top: 16px; max-width: 580px; line-height: 1.7;
}

/* Mission/Vision/Values */
#mvv {
  padding: 100px 5%;
  background: var(--white);
}
.mvv-inner {
  max-width: 1200px; margin: 0 auto;
}
.mvv-header { text-align: center; margin-bottom: 64px; }
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.mvv-card {
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.mvv-card.mission { background: var(--green-light); }
.mvv-card.vision  { background: var(--blue-light); }
.mvv-card.values  { background: var(--yellow-light); }
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mvv-icon { font-size: 2.5rem; margin-bottom: 20px; }
.mvv-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 14px;
}
.mvv-card p {
  font-size: 0.95rem; color: var(--text-mid); line-height: 1.75;
}

/* Timeline */
#timeline {
  padding: 100px 5%;
  background: var(--off-white);
}
.timeline-inner { max-width: 800px; margin: 0 auto; }
.timeline-header { text-align: center; margin-bottom: 64px; }
.timeline-list { position: relative; }
.timeline-list::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--green-light);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex; gap: 40px;
  margin-bottom: 56px;
  position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--green-light);
  z-index: 1; top: 8px;
}
.timeline-content {
  width: calc(50% - 36px);
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.timeline-year {
  font-size: 0.8rem; font-weight: 800;
  color: var(--green); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 8px;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px;
}
.timeline-content p {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.65;
}

/* Team */
#team {
  padding: 100px 5%;
  background: var(--white);
}
.team-inner { max-width: 1200px; margin: 0 auto; }
.team-header { text-align: center; margin-bottom: 64px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo {
  aspect-ratio: 1;
  overflow: hidden; position: relative;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.team-card:hover .team-photo img { transform: scale(1.08); }
.team-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,50,15,0.8) 0%, transparent 50%);
  opacity: 0; transition: var(--transition);
}
.team-card:hover .team-photo-overlay { opacity: 1; }
.team-socials {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
  transform: translateY(20px); opacity: 0;
  transition: var(--transition);
}
.team-card:hover .team-socials { transform: translateY(0); opacity: 1; }
.team-social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--green);
  transition: var(--transition); border: none;
}
.team-social-btn:hover { background: var(--yellow); }
.team-info { padding: 24px; }
.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 4px;
}
.team-info span { font-size: 0.85rem; color: var(--green); font-weight: 600; }

/* Achievements */
#achievements {
  padding: 100px 5%;
  background: var(--off-white);
}
.achievements-inner { max-width: 1200px; margin: 0 auto; }
.achievements-header { text-align: center; margin-bottom: 64px; }
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.achievement-item { padding: 8px 0 24px; }
.achievement-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 10px;
}
.achievement-header span:first-child {
  font-weight: 700; color: var(--text-dark); font-size: 0.95rem;
}
.achievement-pct {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800; color: var(--green);
}
.progress-bar {
  height: 10px; background: var(--green-light);
  border-radius: 10px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow));
  border-radius: 10px; width: 0;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   PROGRAMS PAGE
   ============================================= */
#programs-grid {
  padding: 100px 5%;
  background: var(--white);
}
.programs-inner { max-width: 1200px; margin: 0 auto; }
.programs-header { text-align: center; margin-bottom: 64px; }
.program-filters {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px;
  border: 2px solid var(--gray-light);
  background: var(--white);
  border-radius: var(--radius-xl);
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-light);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.programs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.program-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: var(--white);
}
.program-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.program-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}
.program-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.program-card:hover .program-img img { transform: scale(1.08); }
.program-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--yellow);
  color: var(--text-dark);
  padding: 4px 14px; border-radius: var(--radius-xl);
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.program-body { padding: 28px; }
.program-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 12px;
}
.program-body p {
  font-size: 0.93rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 24px;
}
.program-meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
  font-size: 0.83rem; color: var(--text-light);
}
.program-meta span { display: flex; align-items: center; gap: 5px; }

/* Featured Projects */
#featured-projects {
  padding: 100px 5%;
  background: var(--off-white);
}
.projects-inner { max-width: 1200px; margin: 0 auto; }
.projects-header { text-align: center; margin-bottom: 64px; }
.projects-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}
.project-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.project-item.featured { grid-row: span 2; }
.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-item { overflow: hidden; }
.project-item:hover .project-img { transform: scale(1.06); }
.project-item:not(.featured) { aspect-ratio: 4/3; }
.project-item.featured { min-height: 420px; }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,50,15,0.85) 0%, transparent 50%);
  display: flex; align-items: flex-end;
  padding: 28px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: white; margin-bottom: 6px;
}
.project-info span { font-size: 0.83rem; color: var(--yellow); font-weight: 600; }

/* =============================================
   CONTACT PAGE
   ============================================= */
#contact-section {
  padding: 100px 5%;
  background: var(--white);
}
.contact-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 16px;
}
.contact-info p {
  font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 40px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail {
  display: flex; gap: 16px; align-items: flex-start;
}
.detail-icon {
  width: 48px; height: 48px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.detail-text strong {
  display: block; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-light); margin-bottom: 4px;
}
.detail-text span {
  font-size: 0.95rem; color: var(--text-dark); font-weight: 500;
}
.social-links {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px;
}
.social-link {
  width: 44px; height: 44px;
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-mid);
  transition: var(--transition);
  border: none;
}
.social-link:hover { background: var(--green); color: white; transform: translateY(-3px); }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--text-mid); margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46,89,34,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group.error input,
.form-group.error textarea { border-color: #e53e3e; }
.form-error {
  font-size: 0.8rem; color: #e53e3e; margin-top: 5px;
  display: none;
}
.form-group.error .form-error { display: block; }
.form-success {
  display: none;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--green-light); color: var(--green);
  font-weight: 600; text-align: center;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* Map */
#map-section { height: 450px; position: relative; overflow: hidden; }
#map-section iframe { width: 100%; height: 100%; border: none; display: block; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--text-dark);
  padding: 80px 5% 0;
  color: rgba(255,255,255,0.75);
}
body.dark-mode footer { background: #0a130a; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
}
.footer-brand .nav-logo { color: white; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.9rem; line-height: 1.7;
  color: rgba(255,255,255,0.6); margin-bottom: 24px;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: rgba(255,255,255,0.7);
  transition: var(--transition); border: none;
}
.footer-social-btn:hover { background: var(--green); color: white; transform: translateY(-2px); }

.footer-col h4 {
  font-size: 0.85rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: white; margin-bottom: 20px;
}
.footer-links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before {
  content: '→'; color: var(--green);
  font-size: 0.8rem; opacity: 0;
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-links a:hover::before { opacity: 1; }

.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
}
.footer-contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: var(--yellow); }

/* Back to top */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 50px; height: 50px;
  background: var(--green);
  color: white; border: none;
  border-radius: 14px;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 990;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
#back-to-top.show { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--blue); transform: translateY(-3px); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.15s; }
.stagger > *:nth-child(3) { transition-delay: 0.25s; }
.stagger > *:nth-child(4) { transition-delay: 0.35s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .split-section { grid-template-columns: 1fr; gap: 48px; }
  .split-section.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-item.featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-nav { display: none; }
  .hamburger { display: flex; }

  #hero { height: auto; min-height: 100svh; }
  .hero-stats { position: static; margin-top: 48px; gap: 16px; }
  .hero-stat { flex: 1 1 120px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 32px 24px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .timeline-list::before { left: 16px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; gap: 0; padding-left: 44px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 16px; transform: translateX(-50%); }

  .projects-grid { grid-template-columns: 1fr; }
  .project-item.featured { grid-column: span 1; }

  .mvv-grid { grid-template-columns: 1fr; }

  .page-hero { height: 360px; }
}

@media (max-width: 480px) {
  .split-section { padding: 60px 5%; }
  #features { padding: 60px 5%; }
  #stats { padding: 60px 5%; }
  #testimonials { padding: 60px 5%; }
  #cta-banner { padding: 60px 5%; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
  .hero-badge { font-size: 0.7rem; }
}

/* =============================================
   HERO CAROUSEL
   ============================================= */

#hero {
  position: relative;
  overflow: hidden;
}

/* Slide track fills the hero */
.carousel-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Each slide */
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.carousel-slide.active {
  transform: translateX(0%);
}
.carousel-slide.exiting {
  transform: translateX(-100%);
}

/* Dark gradient overlay on each slide */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,50,15,0.82) 0%,
    rgba(3,115,140,0.55) 60%,
    rgba(17,50,15,0.4) 100%
  );
}

/* Hero content sits above carousel */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Dot indicators */
.carousel-dots {
  position: absolute;
  bottom: 100px;
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--yellow);
  border-color: var(--yellow);
  transform: scale(1.25);
}
.carousel-dot:hover {
  background: rgba(255,255,255,0.7);
}

/* Prev / Next arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}
#hero:hover .carousel-arrow { opacity: 1; }
.carousel-arrow:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--text-dark);
  transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

/* Progress bar at very bottom of hero */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 3;
}
.carousel-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow);
  transition: width 0.1s linear;
}

@media (max-width: 768px) {
  .carousel-dots {
    flex-direction: row;
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
  }
  .carousel-arrow { display: none; }
}


/* =============================================
   LEADERSHIP & PARTNERS MARQUEE
   ============================================= */

#marquee-section {
  padding: 80px 0 100px;
  background: var(--off-white);
  overflow: hidden;
}

.marquee-header {
  text-align: center;
  padding: 0 5%;
  margin-bottom: 52px;
}
.marquee-header .section-sub { margin: 0 auto; }

.marquee-group { position: relative; }

.marquee-group-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Fade-edge masks on left and right */
.marquee-wrapper {
  position: relative;
  overflow: hidden;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}

/* The scrolling track */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  padding: 12px 0;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-reverse {
  animation-name: marqueeScrollReverse;
  animation-duration: 32s;
}

/* --- Leadership: stop scrolling, center the cards --- */
#leadershipTrack {
  animation: none;          /* removes the scroll */
  width: 100%;              /* fills the wrapper instead of being max-content */
  justify-content: center;  /* centers cards horizontally */
  flex-wrap: wrap;          /* wraps to next line on smaller screens */
  gap: 28px;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeScrollReverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ---- Leadership cards ---- */
.marquee-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.marquee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.marquee-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid var(--green-light);
  box-shadow: 0 0 0 4px rgba(46,89,34,0.1);
  transition: border-color 0.3s ease;
}
.marquee-card:hover .marquee-avatar-wrap {
  border-color: var(--yellow);
}
.marquee-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marquee-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--green);
}

.marquee-card-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 5px;
}
.marquee-card-role {
  font-size: 0.76rem;
  color: var(--green);
  font-weight: 600;
}

/* ---- Partner cards ---- */
.marquee-partner-card {
  flex-shrink: 0;
  width: 180px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.marquee-partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo-wrap {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%);
  transition: filter 0.3s ease;
}
.marquee-partner-card:hover .partner-logo-img {
  filter: grayscale(0%);
}
.partner-logo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.partner-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
}

/* Dark mode tweaks */
body.dark-mode .marquee-wrapper::before {
  background: linear-gradient(to right, var(--off-white), transparent);
}
body.dark-mode .marquee-wrapper::after {
  background: linear-gradient(to left, var(--off-white), transparent);
}

@media (max-width: 768px) {
  .marquee-track { animation-duration: 20s; }
  .marquee-reverse { animation-duration: 24s; }
}
/* =============================================
   BLOG PAGE — paste at bottom of style.css
   ============================================= */

/* --- Tab Navigation --- */
#blog-tabs-section {
  background: var(--white);
  border-bottom: 2px solid var(--gray-light);
  position: sticky;
  top: 72px;
  z-index: 90;
}
.blog-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.blog-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-tabs::-webkit-scrollbar { display: none; }

.blog-tab {
  flex-shrink: 0;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
  white-space: nowrap;
}
.blog-tab::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.blog-tab:hover { color: var(--green); }
.blog-tab.active { color: var(--green); }
.blog-tab.active::after { transform: scaleX(1); }

/* --- Tab Panels --- */
.blog-tab-panel {
  display: none;
  padding: 72px 5% 100px;
  background: var(--off-white);
}
.blog-tab-panel.active { display: block; }

.blog-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Featured Article --- */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}
.featured-article-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.featured-article-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-article:hover .featured-article-img img { transform: scale(1.04); }

.featured-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--yellow);
  color: var(--text-dark);
}
.featured-article-body {
  padding: 40px 40px 40px 8px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  align-items: center;
}
.article-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 20px;
}
.article-date, .article-read {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}
.featured-article-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}
.featured-article-excerpt {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}
.article-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.article-author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green-light);
}
.article-author-row strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.article-author-row span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* --- Article Filter Row --- */
.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.article-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.article-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.06); }

.article-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}
.article-card-body { padding: 24px; }
.article-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin: 10px 0 10px;
}
.article-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}
.article-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  transition: gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-link:hover { gap: 10px; color: var(--blue); }

/* --- Events Banner --- */
.events-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  box-shadow: var(--shadow-md);
}
.events-banner-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
  margin-bottom: 10px;
}
.events-banner-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
  max-width: 520px;
}
.events-banner-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
}
.events-banner-date { text-align: center; flex-shrink: 0; }

/* Countdown */
.event-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}
.countdown-unit {
  text-align: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 60px;
}
.countdown-unit span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}
.countdown-unit small {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.countdown-sep {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

/* --- Events Grid --- */
.events-grid { display: flex; flex-direction: column; gap: 24px; }

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 90px 1fr 180px;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 5px solid var(--green);
}
.event-card.past { border-left-color: var(--gray); }
.event-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }

.event-date-block {
  background: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  text-align: center;
  color: white;
  flex-shrink: 0;
}
.past-block { background: var(--gray); }
.event-day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--yellow);
}
.past-block .event-day { color: white; }
.event-month {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-year { font-size: 0.72rem; opacity: 0.7; }

.event-body { padding: 24px 28px; }
.event-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.upcoming-badge { background: var(--green-light); color: var(--green); }
.past-badge { background: var(--gray-light); color: var(--gray); }

.event-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.event-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}
.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.event-details span {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}
.event-img {
  overflow: hidden;
  flex-shrink: 0;
}
.event-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card:hover .event-img img { transform: scale(1.06); }

/* --- Gallery Grid --- */
.gallery-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery-item.large { grid-column: span 2; }
.gallery-item.tall  { grid-row: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,50,15,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  margin-bottom: 6px;
}
.gallery-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin-bottom: 10px;
}
.gallery-zoom {
  align-self: flex-start;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-zoom:hover { background: var(--yellow); color: var(--text-dark); }

/* --- Lightbox --- */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#lightbox.open { display: flex; }
#lightbox-img-wrap { text-align: center; max-width: 1000px; width: 100%; }
#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  object-fit: contain;
}
#lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-top: 14px;
}
#lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 1.6rem;
  cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }
#lightbox-prev, #lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: white; font-size: 2.5rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#lightbox-prev:hover, #lightbox-next:hover { background: var(--green); }
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

/* --- Video Cards --- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.video-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.5s;
}
.video-card:hover .video-thumb img { opacity: 0.65; transform: scale(1.05); }

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  color: var(--green);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding-left: 4px;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 6px 28px rgba(0,0,0,0.4); }

.video-duration {
  position: absolute;
  bottom: 10px; right: 12px;
  background: rgba(0,0,0,0.75);
  color: white; font-size: 0.75rem;
  font-weight: 700; padding: 2px 8px;
  border-radius: 4px;
}
.video-info { padding: 22px; }
.video-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.video-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
}
.video-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 10px;
}
.video-date { font-size: 0.78rem; color: var(--text-light); }

/* --- Video Modal --- */
#video-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#video-modal.open { display: flex; }
#video-modal-inner {
  width: 100%;
  max-width: 900px;
}
#video-modal-title {
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 700;
}
#video-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
#video-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
#video-modal-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 1.6rem;
  cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
#video-modal-close:hover { opacity: 1; }

/* --- Newsletter Form in CTA --- */
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form input:focus { border-color: var(--yellow); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-article { grid-template-columns: 1fr; }
  .featured-article-body { padding: 32px; }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item.large { grid-column: span 2; }
  .event-card { grid-template-columns: 70px 1fr; }
  .event-img { display: none; }
  .events-banner { flex-direction: column; text-align: center; }
  .event-countdown { justify-content: center; }
  .blog-tab-panel { padding: 48px 5% 72px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-item.large { grid-column: span 2; }
  .gallery-item.tall  { grid-row: span 1; }
  #lightbox-prev, #lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
}
