/* ============================================================
   CDROME Education Society — Brand Stylesheet
   Brand palette (from logo — circle-of-people mark):
     Orange/Saffron  #F07322   Blue   #1A54A8
     Teal            #009E9E   Pink   #D6366E
   ============================================================ */

/* ── Brand tokens ──────────────────────────────────────────── */
:root {
  /* Core brand colours — DO NOT change these */
  --orange:       #F07322;
  --orange-dark:  #C4570A;
  --orange-tint:  #FFF3EB;
  --teal:         #009E9E;
  --teal-dark:    #007878;
  --teal-tint:    #E6F7F7;
  --blue:         #1A54A8;
  --blue-dark:    #0B1E40;
  --blue-tint:    #EBF1FA;
  --pink:         #D6366E;
  --pink-tint:    #FDEEF4;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F8FBFF;
  --warm-grey:    #EEF3FA;
  --border:       #D5E5F5;
  --text-heading: #0B1E40;
  --text-body:    #354060;
  --text-muted:   #6E7A96;

  /* Gradients */
  --grad-orange: linear-gradient(135deg, #0B1E40 0%, #1A54A8 55%, #009E9E 100%);
  --grad-teal:   linear-gradient(135deg, #009E9E 0%, #00CCCC 100%);
  --grad-blue:   linear-gradient(135deg, #1A54A8 0%, #2E7FE8 100%);
  --grad-dark:   linear-gradient(160deg, #0B1E40 0%, #0F2D60 100%);
  --grad-hero-overlay: linear-gradient(to bottom, rgba(11,30,64,0.15) 0%, transparent 40%);

  /* Shadows */
  --shadow-sm:  0 2px 8px  rgba(11,30,64,0.07);
  --shadow-md:  0 4px 20px rgba(11,30,64,0.10);
  --shadow-lg:  0 8px 40px rgba(11,30,64,0.14);
  --shadow-xl:  0 16px 60px rgba(11,30,64,0.18);

  /* Layout */
  --banner-h: 36px;
  --navbar-h: 68px;
  --header-h: calc(var(--banner-h) + var(--navbar-h));
  --radius:   10px;
  --radius-lg:18px;
  --max-w:    1240px;

  /* Animation */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address{ font-style: normal; }
button { font-family: inherit; }

/* ── Type ──────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 700;
}
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Shared button styles ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,84,168,0.35);
}
.btn-orange:hover { box-shadow: 0 6px 28px rgba(0,158,158,0.5); }
.btn-teal {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,158,158,0.3);
}


/* ═══════════════════════════════════════════════════════════
   LOADER
═══════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  text-align: center;
  width: 320px;
  max-width: 90vw;
}
.loader-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}
.loader-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2.5rem;
}
.loader-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.loader-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad-orange);
  transition: width 0.12s linear;
}
.loader-pct {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.loader-caption {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}


/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--banner-h);
  left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
/* Scrolled state — solid white */
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}
/* Over hero — transparent */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.92); }
.navbar:not(.scrolled) .brand-name  { color: #fff; }
.navbar:not(.scrolled) .brand-sub   { color: rgba(255,255,255,0.55); }
.navbar:not(.scrolled) .hamburger span { background: #fff; }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  transition: color 0.3s;
}
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--text-body);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--orange);
  background: var(--orange-tint);
}

/* Donate pill */
.nav-donate-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.35rem;
  background: var(--grad-orange);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: 2rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(0,158,158,0.35);
}
.nav-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,158,158,0.5);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-heading);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.mobile-panel {
  display: none;
  position: absolute;
  top: var(--navbar-h);
  right: 0;
  width: min(320px, 100vw);
  background: var(--white);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease-out);
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 0 var(--radius);
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel ul   { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.25rem; }
.mobile-panel a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.mobile-panel a:hover { background: var(--orange-tint); color: var(--orange); }
.mobile-panel .nav-donate-btn { width: 100%; justify-content: center; }


/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   hero-track  : tall container that creates scroll distance
                 (height set by JS: SCROLL_MULTIPLIER × 100vh)
   hero-sticky : stays fixed at top while track scrolls through
═══════════════════════════════════════════════════════════ */
.hero-track {
  position: relative;
  /* height injected by JS */
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--blue-dark);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Best browser upscale filter for photo content */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

/* Scroll mouse hint */
.scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.4s ease;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint-text {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-hint-icon { width: 22px; height: 34px; }
.scroll-dot { animation: scroll-dot 1.9s ease-in-out infinite; }
@keyframes scroll-dot {
  0%  { opacity: 1; transform: translateY(0); }
  65% { opacity: 0; transform: translateY(13px); }
  100%{ opacity: 0; transform: translateY(13px); }
}


/* ═══════════════════════════════════════════════════════════
   PETALS OVERLAY
═══════════════════════════════════════════════════════════ */
.petals-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

/* Dim other petals when one is hovered */
.petals-overlay:hover .petal {
  opacity: 0.25;
  filter: saturate(0.2);
}
.petals-overlay:hover .petal:hover {
  opacity: 1;
  filter: none;
}

.petal {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s var(--ease-out);
  background: none;
  border: none;
  outline: none;
}
.petal:hover        { transform: translate(-50%, -50%) scale(1.35); }
.petal:focus-visible{ outline: 3px solid #fff; outline-offset: 5px; }

/* The glowing dot in the centre — colour set per-petal by JS */
.petal-dot {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--petal-color, var(--orange));
  box-shadow:
    0 0 0  5px color-mix(in srgb, var(--petal-color, var(--orange)) 25%, transparent),
    0 0 18px 4px color-mix(in srgb, var(--petal-color, var(--orange)) 50%, transparent),
    0 0 36px 8px color-mix(in srgb, var(--petal-color, var(--orange)) 25%, transparent);
  transition: box-shadow 0.3s ease;
}
.petal:hover .petal-dot {
  box-shadow:
    0 0 0  6px color-mix(in srgb, var(--petal-color, var(--orange)) 45%, transparent),
    0 0 28px 8px color-mix(in srgb, var(--petal-color, var(--orange)) 65%, transparent),
    0 0 56px 12px color-mix(in srgb, var(--petal-color, var(--orange)) 35%, transparent);
}

/* Pulsing outer ring */
.petal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--petal-color, var(--orange));
  animation: petal-pulse 2.5s ease-out infinite;
  opacity: 0.6;
}
@keyframes petal-pulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0;   }
}

/* Label tooltip */
.petal-label {
  position: absolute;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11,30,64,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb, var(--petal-color, var(--orange)) 40%, transparent);
  padding: 0.35em 0.85em;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 2;
}
.petal:hover .petal-label  { opacity: 1; }
.label-top    { bottom: calc(100% + 10px); left: 50%;  transform: translateX(-50%); }
.label-right  { left:  calc(100% + 10px); top:  50%;  transform: translateY(-50%); }
.label-bottom { top:   calc(100% + 10px); left: 50%;  transform: translateX(-50%); }
.label-left   { right: calc(100% + 10px); top:  50%;  transform: translateY(-50%); }


/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════ */
.about-section {
  background: var(--white);
  padding: 7rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Decorative coloured blobs */
.about-section::before,
.about-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.12;
}
.about-section::before {
  width: 500px; height: 500px;
  background: var(--orange);
  top: -120px; left: -120px;
}
.about-section::after {
  width: 400px; height: 400px;
  background: var(--teal);
  bottom: -80px; right: -80px;
}
.about-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.about-inner h2 {
  margin-bottom: 1.25rem;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 3.5rem;
}
.about-stats {
  display: flex;
  justify-content: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.astat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
/* Each stat in a different brand colour */
.astat:nth-child(1) span { color: var(--orange); }
.astat:nth-child(2) span { color: var(--teal); }
.astat:nth-child(3) span { color: var(--blue); }
.astat:nth-child(4) span { color: var(--pink); }
.astat span {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.astat small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════
   COURSE SECTIONS — generated by JS
   Each section has a CSS var --accent injected by JS
═══════════════════════════════════════════════════════════ */
.course-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-margin-top: var(--navbar-h);
}
/* Alternating backgrounds */
.cs-light { background: var(--off-white); }
.cs-dark  { background: var(--blue-dark); }

/* Large ghost number behind content */
.cs-bg-number {
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(10rem, 22vw, 24rem);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cs-light .cs-bg-number { color: rgba(11,30,64,0.04); }
.cs-dark  .cs-bg-number { color: rgba(255,255,255,0.03); }

/* Coloured top stripe using the sector's accent */
.cs-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent, var(--orange));
}

.cs-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Left column ── */
.cs-left {
  position: sticky;
  top: calc(var(--navbar-h) + 2rem);
}
.cs-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent, var(--orange)) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent, var(--orange)) 25%, transparent);
}
.cs-sector-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--orange));
  margin-bottom: 0.5rem;
}
.cs-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent, var(--orange)) 30%, transparent);
  position: relative;
}
.cs-dark  .cs-title { color: var(--white); }
.cs-light .cs-title { color: var(--text-heading); }

.cs-description {
  font-size: 0.95rem;
  line-height: 1.85;
}
.cs-dark  .cs-description { color: rgba(255,255,255,0.65); }
.cs-light .cs-description { color: var(--text-body); }

/* ── Right column: course cards ── */
.cs-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
}

.course-card {
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  position: relative;
  cursor: default;
  overflow: hidden;
}
/* Left accent bar */
.course-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent, var(--orange));
  border-radius: 2px 0 0 2px;
}
.course-card:hover { transform: translateY(-4px); }

/* Light section cards */
.cs-light .course-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cs-light .course-card:hover { box-shadow: var(--shadow-lg); }

/* Dark section cards */
.cs-dark .course-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.cs-dark .course-card:hover {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.course-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.cs-light .course-card-name { color: var(--text-heading); }
.cs-dark  .course-card-name { color: rgba(255,255,255,0.9); }

.course-card-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent, var(--orange)) 12%, transparent);
  color: var(--accent, var(--orange));
  border: 1px solid color-mix(in srgb, var(--accent, var(--orange)) 25%, transparent);
}


/* ═══════════════════════════════════════════════════════════
   ACHIEVEMENTS / PARTNERS
═══════════════════════════════════════════════════════════ */
.achievements-section {
  background: var(--grad-blue);
  padding: 7rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.achievements-section::before {
  content: '';
  position: absolute;
  inset: 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='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ach-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.achievements-section .eyebrow { color: rgba(255,255,255,0.6); }
.achievements-section h2 { color: #fff; margin-bottom: 2.5rem; }
.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.partner-chips span {
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.partner-chips span:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: #07131F;
  color: rgba(255,255,255,0.65);
  padding-top: 5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.5fr 1.2fr;
  gap: 3rem;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-col address {
  font-size: 0.87rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.footer-brand-col .footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.footer-brand-col strong {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}
.footer-brand-col p { font-size: 0.84rem; }
.footer-donate-col p { font-size: 0.86rem; margin-bottom: 1.25rem; }
.footer-donate-btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  background: var(--grad-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,158,158,0.3);
}
.footer-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,158,158,0.5);
}
.trust-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4caf50;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  padding: 0.3em 0.75em;
  border-radius: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .cs-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cs-left { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

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

@media (max-width: 600px) {
  :root { --banner-h: 52px; }
  .mission-banner {
    height: auto;
    min-height: var(--banner-h);
    padding: 0.4rem 1rem;
  }
  .mission-banner p {
    white-space: normal;
    font-size: 0.7rem;
    line-height: 1.4;
    overflow: visible;
    text-overflow: unset;
  }
  .about-stats { gap: 1.75rem; }
  .astat span  { font-size: 2rem; }
  .footer-inner{ grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-courses  { grid-template-columns: 1fr; }
  .hero-sticky { height: 100svh; }
  .petal       { width: 42px; height: 42px; }
  .petal-dot   { inset: 11px; }
}


/* ═══════════════════════════════════════════════════════════
   PETALS — ALL-LABELS REVEAL at last scroll frame
═══════════════════════════════════════════════════════════ */
.petals-overlay.petals-revealed .petal-label {
  opacity: 1;
  background: var(--petal-color, var(--orange));
  color: #fff;
  border-color: var(--petal-color, var(--orange));
  box-shadow: 0 3px 16px color-mix(in srgb, var(--petal-color, var(--orange)) 55%, transparent);
  transition: opacity 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}
.petals-overlay.petals-revealed .petal-dot {
  box-shadow:
    0 0 0 6px  color-mix(in srgb, var(--petal-color, var(--orange)) 30%, transparent),
    0 0 24px 6px color-mix(in srgb, var(--petal-color, var(--orange)) 60%, transparent),
    0 0 48px 12px color-mix(in srgb, var(--petal-color, var(--orange)) 30%, transparent);
}


/* ═══════════════════════════════════════════════════════════
   INNER PAGES — shared page hero banner
═══════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--blue-dark);
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 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'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.page-hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--orange);
  opacity: 0.12;
  top: -160px; right: -80px;
}
.page-hero-blob-2 {
  width: 380px; height: 380px;
  background: var(--teal);
  opacity: 0.09;
  bottom: -100px; left: -60px;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.page-hero-inner .eyebrow { color: var(--orange); margin-bottom: 0.6rem; }
.page-hero-inner h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #fff;
  font-family: 'Playfair Display', serif;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}
.page-hero-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.75;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.page-breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.page-breadcrumb a:hover { color: var(--orange); }
.page-breadcrumb span { color: rgba(255,255,255,0.25); }


/* ═══════════════════════════════════════════════════════════
   COURSES PAGE — sector card grid
═══════════════════════════════════════════════════════════ */
.sector-grid-section {
  background: var(--off-white);
  padding: 5rem 1.5rem;
}
.sector-grid-section > .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sector-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease;
  position: relative;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.sector-card-stripe { display: none; }

/* ── Sector card photo block ── */
.sector-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-accent, var(--blue));
}
.sector-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
  transition: transform 0.5s var(--ease-out), filter 0.4s ease;
}
.sector-card:hover .sector-card-img img {
  transform: scale(1.06);
  filter: brightness(0.92);
}
.sector-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,30,64,0.75) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.sector-card-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--orange));
  z-index: 2;
}
.sc-img-tag {
  position: absolute;
  bottom: 0.9rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 0.25em 0.65em;
  border-radius: 3px;
  background: rgba(0,0,0,0.3);
  border-left: 2px solid var(--card-accent, var(--orange));
}
.sc-img-free-flag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: var(--teal);
  padding: 0.25em 0.6em;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.sector-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sector-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-accent, var(--orange)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--orange)) 22%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.sector-card-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--card-accent, var(--orange));
  margin-bottom: 0.3rem;
}
.sector-card h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 0.7rem;
  line-height: 1.25;
}
.sector-card-desc {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}
.sector-card-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}
.sc-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.28em 0.75em;
  border-radius: 2rem;
  background: color-mix(in srgb, var(--card-accent, var(--orange)) 10%, transparent);
  color: var(--text-heading);
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--orange)) 20%, transparent);
}
.sector-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--card-accent, var(--orange));
  transition: gap 0.2s ease;
  text-decoration: none;
}
.sector-card-link:hover { gap: 0.7rem; }
.sector-card-link svg { width: 14px; height: 14px; }

/* CTA band */
.courses-cta {
  background: var(--grad-dark);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.courses-cta h2 { color: #fff; margin-bottom: 1rem; }
.courses-cta p  { color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 2rem; font-size: 1rem; }

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


/* ═══════════════════════════════════════════════════════════
   ACHIEVEMENTS PAGE
═══════════════════════════════════════════════════════════ */
.impact-stats {
  background: var(--white);
  padding: 5.5rem 1.5rem;
}
.impact-stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.impact-block {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.impact-block::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  border-radius: inherit;
}
.impact-block.ib-orange { background: var(--orange-tint); }
.impact-block.ib-teal   { background: var(--teal-tint); }
.impact-block.ib-blue   { background: var(--blue-tint); }
.impact-block.ib-pink   { background: var(--pink-tint); }
.impact-block-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.ib-orange .impact-block-num { color: var(--orange); }
.ib-teal   .impact-block-num { color: var(--teal); }
.ib-blue   .impact-block-num { color: var(--blue); }
.ib-pink   .impact-block-num { color: var(--pink); }
.impact-block-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.impact-block-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Timeline */
.timeline-section {
  background: var(--warm-grey);
  padding: 5.5rem 1.5rem;
}
.timeline-section > .section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--teal), var(--blue), var(--pink));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--dot-color, var(--orange));
  background: var(--dot-color, var(--orange));
  transform: translateX(-6px);
}
.timeline-year {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dot-color, var(--orange));
  margin-bottom: 0.3rem;
}
.timeline-item h3 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.timeline-item p  {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Partners */
.partners-section {
  background: var(--white);
  padding: 5.5rem 1.5rem;
}
.partners-section > .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.partner-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  background: var(--off-white);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease-out);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); background: var(--white); }
.partner-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
}
.partner-card h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 0.3rem;
}
.partner-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 1.75rem; }
}


/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--white);
  padding: 5.5rem 1.5rem;
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}
.contact-form-wrap { }
.contact-form-wrap h2 { margin-bottom: 0.6rem; }
.contact-form-wrap > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}
.form-group label span { color: var(--orange); }
.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-body);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(240,115,34,0.12);
}
textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-submit {
  margin-top: 0.5rem;
}
.form-submit .btn { padding: 0.85rem 2.25rem; font-size: 0.9rem; }
.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.87rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  color: #2e7d32;
}
.form-message.error {
  display: block;
  background: rgba(211,47,47,0.08);
  border: 1px solid rgba(211,47,47,0.25);
  color: #c62828;
}

/* Contact info sidebar */
.contact-info-wrap {
  background: var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: rgba(255,255,255,0.75);
  position: sticky;
  top: calc(var(--navbar-h) + 1.5rem);
}
.contact-info-wrap h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(240,115,34,0.15);
  border: 1px solid rgba(240,115,34,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ci-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.ci-text span, .ci-text a {
  display: block;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}
.ci-text a:hover { color: var(--orange); }
.contact-map {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: none;
  filter: grayscale(0.3);
}

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info-wrap { position: static; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   NGO / CHARITY COMPONENTS
═══════════════════════════════════════════════════════════ */

/* ── Free-training badge ── */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.85em;
  border-radius: 3px;
  background: rgba(0,158,158,0.12);
  color: var(--teal-dark);
  border: 1px solid rgba(0,158,158,0.3);
}
.free-badge::before { content: '✓ '; }
.cs-dark .free-badge {
  background: rgba(0,200,200,0.12);
  color: #4dd9d9;
  border-color: rgba(0,200,200,0.25);
}

/* ── Mission banner (slim fixed top strip) ── */
.mission-banner {
  background: var(--grad-orange);
  padding: 0 1.5rem;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
.mission-banner p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mission-banner strong { font-weight: 900; }

/* ── Mission statement section (homepage) ── */
.mission-section {
  background: var(--white);
  padding: 7rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.mission-section::before,
.mission-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.mission-section::before {
  width: 500px; height: 500px;
  background: var(--teal);
  opacity: 0.05;
  top: -150px; left: -100px;
}
.mission-section::after {
  width: 380px; height: 380px;
  background: var(--blue);
  opacity: 0.05;
  bottom: -80px; right: -60px;
}
.mission-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4rem;
  align-items: center;
}
.lifecycle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
#lifecycle-canvas {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,158,158,0.18);
}
.lifecycle-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  max-width: 300px;
}
@media (max-width: 920px) {
  .mission-inner { grid-template-columns: 1fr; }
  .lifecycle-wrap { order: -1; max-width: 300px; margin: 0 auto; }
  #lifecycle-canvas { max-width: 300px; }
}
.mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.mission-quote em {
  font-style: normal;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mission-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 700px;
}
.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}
.mission-tag {
  padding: 0.45em 1em;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid;
}
.mt-orange { color: var(--orange); border-color: rgba(240,115,34,0.35); background: var(--orange-tint); }
.mt-teal   { color: var(--teal-dark); border-color: rgba(0,158,158,0.3); background: var(--teal-tint); }
.mt-blue   { color: var(--blue); border-color: rgba(26,84,168,0.25); background: var(--blue-tint); }
.mt-pink   { color: var(--pink); border-color: rgba(214,54,110,0.25); background: var(--pink-tint); }

/* ── Stats row (about section) ── */
.about-stats { margin-top: 3.5rem; }

/* ── How It Works ── */
.how-it-works {
  background: var(--blue-dark);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,158,158,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.how-inner .section-header h2 { color: #fff; }
.how-inner .section-header p  { color: rgba(255,255,255,0.52); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--pink));
  opacity: 0.3;
  z-index: 0;
}
.how-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.how-step:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}
.how-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  border: 2px solid;
}
.how-step:nth-child(1) .how-step-badge { background: rgba(0,158,158,0.15); border-color: var(--teal); color: var(--teal); }
.how-step:nth-child(2) .how-step-badge { background: rgba(107,168,255,0.15); border-color: #6BA8FF; color: #6BA8FF; }
.how-step:nth-child(3) .how-step-badge { background: rgba(214,54,110,0.15); border-color: var(--pink); color: var(--pink); }
.how-step-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}
.how-step h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.how-step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.75;
}
.how-step-accent {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
}
.how-step:nth-child(1) .how-step-accent { color: var(--teal); background: rgba(0,158,158,0.1); }
.how-step:nth-child(2) .how-step-accent { color: #6BA8FF; background: rgba(107,168,255,0.12); }
.how-step:nth-child(3) .how-step-accent { color: var(--pink); background: rgba(214,54,110,0.1); }

@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .how-steps::before { display: none; }
}

/* ── Founder strip ── */
.founder-strip {
  background: var(--warm-grey);
  padding: 5.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.founder-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.founder-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-tint);
  border: 1px solid rgba(240,115,34,0.28);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.founder-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--text-heading);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--orange);
}
.founder-text blockquote::before { content: '\201C'; color: var(--orange); }
.founder-text blockquote::after  { content: '\201D'; color: var(--orange); }
.founder-credit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.founder-credit span {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.4rem;
}
.founder-since {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
/* ── Founder slideshow ── */
.founder-slideshow {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-xl);
  background: var(--blue-dark);
}
.fs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.fs-slide.active { opacity: 1; }
.fs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fs-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,30,64,0.72) 0%, transparent 55%);
  pointer-events: none;
}
.fs-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.75rem;
  font-style: italic;
  z-index: 2;
  line-height: 1.4;
}
.fs-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.85rem;
  display: flex;
  gap: 0.4rem;
  z-index: 3;
}
.fs-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.fs-dot.active { background: var(--orange); transform: scale(1.25); }
@media (max-width: 800px) {
  .founder-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder-slideshow { aspect-ratio: 16/9; }
}

/* ── NGO CTA band ── */
.ngo-cta {
  background: var(--grad-orange);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ngo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.06'%3E%3Cpath d='M20 20h20v20H20zm-20 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.ngo-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.ngo-cta h2 { color: #fff; margin-bottom: 0.75rem; }
.ngo-cta p  { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }
.btn-white {
  background: #fff;
  color: var(--orange);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  font-weight: 700;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.ngo-cta .btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Government funding notice ── */
.funding-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4em 0.9em;
  background: var(--warm-grey);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.funding-notice strong { color: var(--blue); }

/* ── Sector card NGO override (remove commercial feel) ── */
.sc-pill { cursor: default; }
.sector-card-link { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════
   PHOTO CAROUSEL — cinematic auto-play (index.html)
═══════════════════════════════════════════════════════════ */
.photo-carousel-section {
  position: relative;
  background: var(--blue-dark);
  overflow: hidden;
  user-select: none;
}
.carousel-inner {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.carousel-slide.is-active img { transform: scale(1.06); }
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,30,64,0.88) 0%, rgba(11,30,64,0.25) 45%, rgba(11,30,64,0.05) 100%);
  pointer-events: none;
}
.carousel-caption {
  position: absolute;
  bottom: 3.5rem;
  left: 4rem;
  right: 4rem;
  z-index: 2;
}
.carousel-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.carousel-caption h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 3vw, 2rem);
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  text-wrap: balance;
  max-width: 640px;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.car-btn:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) scale(1.06); }
.car-prev { left: 1.5rem; }
.car-next { right: 1.5rem; }
.car-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 3;
}
.car-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  border: none;
  padding: 0;
}
.car-dot.active { background: var(--orange); transform: scale(1.3); }
@media (max-width: 680px) {
  .carousel-inner { height: 360px; }
  .carousel-caption { bottom: 2rem; left: 1.5rem; right: 1.5rem; }
  .car-btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .car-prev { left: 0.75rem; }
  .car-next { right: 0.75rem; }
}

/* ═══════════════════════════════════════════════════════════
   TRAINING AREAS — 8-sector photo grid (index.html)
═══════════════════════════════════════════════════════════ */
.training-areas {
  background: var(--blue-dark);
  padding: 5rem 1.5rem;
}
.training-areas-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.training-areas-inner .section-header h2 { color: #fff; }
.training-areas-inner .section-header p  { color: rgba(255,255,255,0.55); }
.ta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.ta-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  background: var(--ta-color, var(--blue));
  text-decoration: none;
}
.ta-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: filter 0.4s ease, transform 0.5s var(--ease-out);
}
.ta-card:hover img {
  filter: brightness(0.72);
  transform: scale(1.06);
}
.ta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,30,64,0.9) 0%, rgba(11,30,64,0.1) 60%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.1rem;
  border-bottom: 3px solid var(--ta-color, var(--orange));
}
.ta-icon { font-size: 1.4rem; margin-bottom: 0.35rem; line-height: 1; }
.ta-overlay strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.ta-free {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  background: var(--teal);
  padding: 0.18em 0.55em;
  border-radius: 3px;
  letter-spacing: 0.1em;
  margin-top: 0.45rem;
}
.ta-cta {
  text-align: center;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .ta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ta-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* ═══════════════════════════════════════════════════════════
   DONATE IMPACT — emotional split section (index.html)
═══════════════════════════════════════════════════════════ */
.donate-impact {
  background: var(--white);
  padding: 5rem 1.5rem;
  overflow: hidden;
}
.donate-impact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.di-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.di-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.di-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,30,64,0.35) 0%, transparent 50%);
}
.di-quote-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  background: rgba(11,30,64,0.85);
  backdrop-filter: blur(6px);
  border-left: 3px solid var(--orange);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  line-height: 1.6;
  font-style: italic;
}
.di-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-heading);
}
.di-text > p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.di-amounts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.di-amount {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
}
.di-amount:nth-child(2) { background: var(--teal-tint); border-color: var(--teal); }
.di-amount:nth-child(3) { background: var(--orange-tint); border-color: var(--orange); }
.di-amount strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  min-width: 5rem;
  flex-shrink: 0;
}
.di-amount span {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.4;
}
@media (max-width: 860px) {
  .donate-impact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .di-photo img { height: 300px; }
}

/* ── page-hero with a real photo overlay ── */
.page-hero-photo {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
.page-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,30,64,0.55) 0%,
    rgba(11,30,64,0.70) 100%
  );
}
.page-hero-photo .page-hero-blob,
.page-hero-photo .page-hero-inner {
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   TRAINING GALLERY — courses / achievements pages
═══════════════════════════════════════════════════════════ */
.training-gallery {
  background: var(--white);
  padding: 5rem 1.5rem;
}
.training-gallery-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.training-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.tg-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--blue-dark);
}
.tg-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.tg-card:hover img { transform: scale(1.04); }
.tg-label {
  padding: 1rem 1.1rem 0.9rem;
  background: var(--white);
  border-top: 3px solid var(--orange);
}
.tg-label strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.2rem;
}
.tg-label span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
@media (max-width: 800px) {
  .training-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .training-gallery-grid { grid-template-columns: 1fr; }
}

/* ── Eligibility box ── */
.eligibility-box {
  background: var(--blue-tint);
  border: 1.5px solid rgba(26,84,168,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}
.eligibility-box h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eligibility-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.eligibility-list li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.eligibility-list li::before {
  content: '✓';
  color: var(--teal-dark);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.05em;
}
