/* ============================================================
   SACCN Website — Main Stylesheet
   Southern Africa Climate Change Network
   Powered with ❤️ by Blaxium (blaxium.com)
   ============================================================ */

/* === 1. CSS VARIABLES (LIGHT MODE DEFAULT) === */
:root {
  --green-dark:    #1A6B2F;
  --green-light:   #8DC63F;
  --green-mid:     #4CAF50;
  --orange:        #F47920;
  --orange-hover:  #d96515;
  --off-white:     #F9F9F6;
  --charcoal:      #1C1C1C;

  --bg-primary:    #F9F9F6;
  --bg-secondary:  #ffffff;
  --bg-accent:     #edf7ee;
  --text-primary:  #1C1C1C;
  --text-secondary:#475040;
  --text-muted:    #7a8a7d;
  --border-color:  rgba(26,107,47,0.12);

  --glass-bg:      rgba(255,255,255,0.72);
  --glass-border:  rgba(255,255,255,0.5);
  --glass-shadow:  0 8px 40px rgba(26,107,47,0.10);

  --nav-bg:        rgba(249,249,246,0.88);
  --footer-bg:     #0a1a0d;
  --footer-text:   #c8e6c9;

  --gradient-hero: linear-gradient(140deg,#0d3d18 0%,#1A6B2F 40%,#3a8f3e 70%,#8DC63F 100%);
  --gradient-cta:  linear-gradient(90deg,#1A6B2F 0%,#8DC63F 100%);
  --gradient-orange:linear-gradient(90deg,#F47920 0%,#f5ab69 100%);

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(26,107,47,0.12);
  --shadow-lg:    0 12px 48px rgba(26,107,47,0.18);
  --shadow-hover: 0 16px 48px rgba(26,107,47,0.22);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Source Serif 4', serif;

  --radius:       1rem;
  --radius-sm:    0.5rem;
  --radius-xl:    2rem;

  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:all 0.6s cubic-bezier(0.4,0,0.2,1);

  --section-pad:    5rem 0;
}

/* === 2. 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);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
  cursor: none;
}

body.reduce-motion * {
  animation: none !important;
  transition: none !important;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p { margin-bottom: 1rem; color: var(--text-secondary); }

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--orange); }

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

/* === 3. SCROLL PROGRESS BAR === */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-cta);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(141,198,63,0.6);
}

/* === 4. PAGE LOADER === */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--footer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader-leaf {
  width: 72px;
  height: 72px;
  animation: leafSpin 1.4s ease-in-out infinite;
}

.loader-leaf path:first-child { fill: var(--green-dark); }
.loader-leaf path:nth-child(2) { fill: var(--green-light); }
.loader-leaf path:nth-child(3) { fill: var(--orange); }

@keyframes leafSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.loader-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: #fff;
}

.loader-brand span { color: var(--green-light); }

.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0;
  background: var(--gradient-cta);
  border-radius: 2px;
  animation: loadProgress 1.8s ease forwards;
}

@keyframes loadProgress {
  0%  { width: 0; }
  80% { width: 90%; }
  100%{ width: 100%; }
}

/* === 5. CUSTOM CURSOR === */
#cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--green-dark);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, background 0.2s;
  will-change: transform;
}

#cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--green-light);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%,-50%);
  transition: transform 0.12s cubic-bezier(0.18,0.89,0.32,1.28), width 0.3s, height 0.3s, border-color 0.3s;
  will-change: transform;
}

body:has(a:hover) #cursor-dot { background: var(--orange); transform: translate(-50%,-50%) scale(1.5); }
body:has(a:hover) #cursor-ring { width: 56px; height: 56px; border-color: var(--orange); }
body:has(.btn:hover) #cursor-dot { background: var(--orange); }

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

/* === 6. NAVBAR === */
#main-nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  background: transparent;
}

#main-nav.nav-scrolled {
  top: 3px;
  padding: 0.55rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

#main-nav.nav-scrolled .navbar-brand img { height: 44px; }

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--text-primary) !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: var(--radius-sm);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transition: left 0.3s, right 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after { left: 0.8rem; right: 0.8rem; }
.nav-link.active { color: var(--green-dark) !important; font-weight: 600; }
.nav-link:hover { color: var(--green-dark) !important; }

/* Dark overlay nav (hero pages) */
#main-nav.nav-hero .nav-link { color: #fff !important; }
#main-nav.nav-hero .nav-link:hover { color: var(--green-light) !important; }
#main-nav.nav-hero.nav-scrolled .nav-link { color: var(--text-primary) !important; }
#main-nav.nav-hero.nav-scrolled .nav-link:hover { color: var(--green-dark) !important; }

/* ── MOBILE MENU FIX: solid background regardless of scroll position ── */
@media (max-width: 991.98px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: rgba(10, 26, 13, 0.97) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 1rem 0.75rem 1.5rem;
    margin-top: 0.4rem;
    border: 1px solid rgba(141, 198, 63, 0.18);
    border-top: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
  /* Ensure nav links are white and readable in mobile dropdown */
  .navbar-collapse.show .nav-link,
  .navbar-collapse.collapsing .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.65rem 1rem !important;
    border-radius: var(--radius-sm);
  }
  .navbar-collapse.show .nav-link:hover,
  .navbar-collapse.collapsing .nav-link:hover {
    color: var(--green-light) !important;
    background: rgba(141, 198, 63, 0.1);
  }
  .navbar-collapse.show .nav-link.active,
  .navbar-collapse.collapsing .nav-link.active {
    color: var(--green-light) !important;
    background: rgba(141, 198, 63, 0.12);
  }
  /* Nav controls in mobile */
  .navbar-collapse.show .nav-controls,
  .navbar-collapse.collapsing .nav-controls {
    padding: 0.75rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .navbar-collapse.show .btn-icon,
  .navbar-collapse.collapsing .btn-icon {
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.08) !important;
  }
  .navbar-collapse.show .nav-cta,
  .navbar-collapse.collapsing .nav-cta {
    color: #fff !important;
    margin-top: 0.25rem;
  }
}

.navbar-toggler {
  border: none;
  padding: 0.4rem;
  color: var(--text-primary);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231A6B2F' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Nav controls (theme toggle + reduce motion) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--glass-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-icon:hover {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  transform: scale(1.08);
}

#main-nav.nav-hero .btn-icon { border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.1); }
#main-nav.nav-hero.nav-scrolled .btn-icon { border-color: var(--border-color); color: var(--text-primary); background: var(--glass-bg); }

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  background: var(--gradient-cta);
  color: #fff !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 2rem;
  border: none;
  white-space: nowrap;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); opacity: 0.9; }

/* === 7. HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,26,13,0.55) 0%, rgba(10,26,13,0.2) 60%, rgba(10,26,13,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 7rem 0 5rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--green-light);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-title .accent-orange { color: var(--orange); }
.hero-title .accent-green  { color: var(--green-light); }

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-motto {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* === 8. PAGE HERO (inner pages) === */
.page-hero {
  position: relative;
  padding: 9rem 0 5rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,26,13,0.45);
}

.page-hero-content { position: relative; z-index: 1; color: #fff; }

.page-hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-hero-eyebrow::before { content:''; display:inline-block; width:24px; height:2px; background:var(--green-light); }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-bottom: 0;
}

.page-hero-leaf {
  position: absolute;
  right: 5%;
  bottom: -20%;
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.55rem 0;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
}
.breadcrumb-item a { color: var(--green-light); }
.breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* Wave divider */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.wave-divider svg { display: block; width: 100%; }

/* === 9. SECTION BASE === */
.section { padding: var(--section-pad); }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before { content:''; display:inline-block; width:20px; height:2px; background:var(--orange); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-title .text-green { color: var(--green-dark); }
.section-title .text-orange { color: var(--orange); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.75;
}

.section-accent {
  background: var(--bg-accent);
}

.section-dark {
  background: var(--footer-bg);
  color: var(--footer-text);
}
.section-dark .section-title,
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark .section-lead,
.section-dark p   { color: rgba(255,255,255,0.75); }

/* === 10. GLASS CARDS === */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: var(--transition-slow);
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.glass-card-sm {
  padding: 1.25rem 1.5rem;
}

.glass-card-dark {
  background: rgba(20,50,25,0.45);
  border: 1px solid rgba(141,198,63,0.15);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.icon-box-sm { width: 44px; height: 44px; font-size: 1.2rem; }
.icon-box-orange { background: var(--gradient-orange); }

/* === 11. BUTTONS === */
.btn-primary-saccn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn-primary-saccn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: var(--transition);
}

.btn-primary-saccn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-primary-saccn:hover::before { background: rgba(0,0,0,0.08); }

.btn-outline-saccn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 0.82rem 2.1rem;
  border-radius: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  will-change: transform;
}

.btn-outline-saccn:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-green {
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline-green:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-orange {
  background: var(--gradient-orange);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.2rem;
  border-radius: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-orange:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244,121,32,0.35); }

.btn-link-green {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-link-green:hover { color: var(--orange); gap: 0.7rem; }

/* === 12. MISSION SECTION === */
.mission-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 3rem 4rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.mission-glass::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(141,198,63,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.mission-quote {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.mission-quote::before { content: '\201C'; }
.mission-quote::after  { content: '\201D'; }

/* === 13. STATS COUNTER === */
.stats-section {
  background: var(--gradient-hero);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 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='%238DC63F' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.counter-block {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.counter-block::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}
.counter-block:last-child::after { display: none; }

.counter-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--green-light);
  line-height: 1;
  display: block;
}

.counter-suffix {
  font-size: 0.65em;
  vertical-align: super;
  color: var(--orange);
}

.counter-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.4rem;
}

/* === 14. PILLAR CARDS === */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

.pillar-card {
  height: 280px;
  perspective: 1000px;
  cursor: pointer;
}

.pillar-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.pillar-card:hover .pillar-card-inner,
.pillar-card.flipped .pillar-card-inner {
  transform: rotateY(180deg);
}

.pillar-front, .pillar-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pillar-front {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  justify-content: flex-end;
}

.pillar-back {
  background: var(--gradient-cta);
  transform: rotateY(180deg);
  color: #fff;
  align-items: flex-start;
  justify-content: center;
}

.pillar-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(26,107,47,0.1);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.5rem;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg,var(--green-dark),var(--green-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0;
}

.pillar-back .pillar-title { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.pillar-back p { font-size: 0.88rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin: 0; }

/* === 15. NEWS / ARTICLE CARDS === */
.news-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition-slow);
  will-change: transform;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  height: 200px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.06); }

.news-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-light);
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  position: absolute;
  top: 1rem; left: 1rem;
}

.news-tag-orange { background: var(--orange); }
.news-tag-dark   { background: var(--green-dark); }

.news-card-body { padding: 1.5rem; }

.news-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-meta-author { font-weight: 600; color: var(--green-dark); }

/* === 16. PARTNERS MARQUEE === */
.partners-section {
  padding: 3rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.partners-marquee {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
  align-items: center;
}

.partners-marquee:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  transition: var(--transition);
}

.partner-item:hover { border-color: var(--green-dark); color: var(--green-dark); }

/* === 17. TIMELINE === */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green-dark), var(--green-light));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row-reverse; }

.timeline-content {
  width: calc(50% - 2.5rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cta);
  border: 3px solid var(--bg-primary);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--green-light);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-text { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* === 18. ACCORDION === */
.saccn-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-secondary);
}

.saccn-accordion .accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 1.2rem 1.5rem;
  box-shadow: none;
}

.saccn-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231A6B2F' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

.saccn-accordion .accordion-button:not(.collapsed) {
  background: var(--bg-accent);
  color: var(--green-dark);
}

.saccn-accordion .accordion-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* === 19. RESOURCE CARDS === */
.resource-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
  align-items: flex-start;
}

.resource-card:hover {
  border-color: var(--green-dark);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--green-dark);
  flex-shrink: 0;
}

.resource-type {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.resource-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.resource-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tab {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 2rem;
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* Search bar */
.search-bar {
  position: relative;
  max-width: 400px;
  margin-bottom: 2rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 1.5px solid var(--border-color);
  border-radius: 2rem;
  background: var(--bg-secondary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(26,107,47,0.08); }
.search-bar .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* === 20. FORMS === */
.saccn-form .form-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.saccn-form .form-control,
.saccn-form .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.saccn-form .form-control:focus,
.saccn-form .form-select:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(26,107,47,0.08);
  outline: none;
}

.saccn-form textarea.form-control { min-height: 140px; resize: vertical; }

/* Honeypot — off-screen, not display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  margin-top: 1rem;
}

.form-status.success {
  background: #e8f5e9;
  color: var(--green-dark);
  border-left: 3px solid var(--green-dark);
  display: block;
}

.form-status.error {
  background: #fce4ec;
  color: #c62828;
  border-left: 3px solid #c62828;
  display: block;
}

/* === 21. MEMBERSHIP TIERS === */
.tier-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-slow);
  position: relative;
  will-change: transform;
  height: 100%;
}

.tier-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.tier-card.featured {
  border-color: var(--green-dark);
  background: linear-gradient(180deg, #f0faf2 0%, var(--bg-secondary) 100%);
}

.tier-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-cta);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1.2rem;
  border-radius: 0 0 1rem 1rem;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tier-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
}

.tier-features li:last-child { border-bottom: none; }
.tier-features li::before { content: ''; display: inline-block; width:18px; height:18px; background:var(--green-light); border-radius:50%; flex-shrink:0; margin-top:1px; }

/* === 22. FOOTER === */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-cta);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 52px; margin-bottom: 1.25rem; filter: brightness(1.1); }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-motto {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--green-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h6 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.footer-col ul li a:hover { color: var(--green-light); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--green-light);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer-credit {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.footer-credit a { color: var(--green-light); font-weight: 600; }
.footer-credit a:hover { color: var(--orange); }

/* === 23. FLOATING BUTTONS === */
#btn-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 500;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  will-change: transform;
}

#btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#btn-scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

#btn-whatsapp {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  will-change: transform;
  text-decoration: none;
}

#btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.08);
  color: #fff;
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

#btn-whatsapp::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2s ease-in-out infinite;
}

@keyframes waPulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.2); opacity: 0; }
}

/* === 24. UBUNTU CALLOUT === */
.ubuntu-callout {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 3rem 4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ubuntu-callout::before {
  content: '\201C';
  position: absolute;
  top: -1.5rem; left: 2rem;
  font-size: 14rem;
  font-family: var(--font-body);
  color: rgba(255,255,255,0.05);
  line-height: 1;
}

.ubuntu-quote {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.ubuntu-attribution {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
}

/* === 25. PROGRAMMES === */
.programme-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-slow);
  will-change: transform;
  height: 100%;
}

.programme-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.programme-card-header {
  height: 180px;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.programme-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,26,13,0.75), transparent);
}

.programme-card-header h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  margin: 0;
}

.programme-card-body { padding: 1.5rem; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
}

.status-active   { background: #e8f5e9; color: var(--green-dark); }
.status-planned  { background: #fff3e0; color: #e65100; }
.status-complete { background: #e3f2fd; color: #1565c0; }

/* === 26. IMPACT COUNTER STRIP === */
.impact-strip {
  background: linear-gradient(90deg, var(--green-dark), #1e7b36, var(--green-mid), var(--green-dark));
  background-size: 300% 100%;
  animation: gradientShift 8s ease infinite;
  padding: 3rem 0;
  color: #fff;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === 27. CTA SECTION === */
.cta-section {
  background: linear-gradient(140deg, #1A6B2F 0%, #2d7d36 50%, #3a8f3e 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(141,198,63,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(244,121,32,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2, .cta-section p { color: #fff; position: relative; z-index: 1; }

/* === 28. GOVERNANCE STRUCTURE === */
.governance-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.gov-block {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 2.5rem;
  text-align: center;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gov-block:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--green-dark), var(--green-light));
}

.gov-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.gov-block p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.gov-connector { width: 2rem; }

/* === 29. NEWSLETTER === */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 3rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.15); }

/* === 30. 404 PAGE === */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  text-align: center;
  color: #fff;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--green-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === 31. MAP EMBED === */
.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* === 32. EVENTS CALENDAR === */
.event-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  align-items: flex-start;
}

.event-item:hover { border-color: var(--green-dark); box-shadow: var(--shadow-sm); }

.event-date-box {
  width: 56px;
  height: 56px;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.event-day {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.event-mon {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.event-loc { font-size: 0.82rem; color: var(--text-muted); }

/* === 33. RESPONSIVE === */
@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 991px) {
  :root { --section-pad: 4rem 0; }
  
  .timeline::before { left: 2rem; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: column; padding-left: 5rem; }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content { width: 100%; margin-left: 0; }
  .timeline-dot { left: 2rem; }

  .mission-glass { padding: 2rem; }
  .ubuntu-callout { padding: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .newsletter-form { flex-direction: column; }
}

@media (max-width: 767px) {
  :root { --section-pad: 3rem 0; }
  
  .hero-stats { gap: 1.5rem; }
  .counter-block::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .mission-glass { padding: 1.5rem; }
  #btn-scroll-top { bottom: 1.25rem; right: 1.25rem; }
  #btn-whatsapp   { bottom: 1.25rem; left: 1.25rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .gov-block { padding: 1.25rem 1.5rem; }
}

@media (max-width: 575px) {
  .hero-actions { flex-direction: column; }
  .hero-actions a, .hero-actions button { width: 100%; justify-content: center; }
  .page-hero { padding: 7rem 0 3.5rem; }
  .pillar-card { height: 240px; }
  .tier-card { padding: 2rem 1.25rem; }
}
