/* ============================================================
   Linda Abdulswamad — Award Winning Cinematic Layout
   Theme: Linda Abdulswamad Green, Forest Black & White
   Typography: Outfit (Uniform display & body)
   Layout: Vertical CSS Scroll Snapping with alternating split slides
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #00A859;
  --green-dark: #008A4A;
  --green-pale: #eaf3ed; /* Curated washed sage green */
  --green-glow: rgba(0, 168, 89, 0.12);
  --blue: #0a0f0b; /* Deep charcoal/forest black */
  --blue-mid: #232323;
  --blue-light: #333333;
  --blue-pale: #f0f7f3;
  
  --bg-dark: #0a0f0b;
  --bg-dark-gradient: linear-gradient(135deg, #0a0f0b 0%, #060806 60%, #121813 100%);
  --bg-washed: #eaf3ed;
  --bg-light: #ffffff;
  
  --text-dark: #0d1c12;
  --text-light: #ffffff;
  --text-muted-light: rgba(255, 255, 255, 0.7);
  --text-muted-dark: #4b584f;

  --white: #FFFFFF;
  --off: #FAFAF9;
  --g100: #F3F2F0;
  --g200: #E6E4E0;
  --g300: #C9C6C1;
  --g500: #8A8681;
  --g700: #4B4641;
  --g900: #0a0f0b;
  --text: #0d1c12;
  --text2: #4b584f;
  --text3: #8C8681;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --sh-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --sh-md: 0 12px 48px rgba(0, 0, 0, 0.08);
  --sh-lg: 0 24px 72px rgba(0, 0, 0, 0.12);
  --sh-o: 0 8px 32px rgba(0, 168, 89, 0.2);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Semantic Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 50;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 500;
  --z-toast: 1000;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
  touch-action: manipulation;
}

/* Site Preloader & Loading Scroll Lock */
body.loading-state {
  overflow: hidden !important;
  touch-action: none !important;
}

.preloader {
  position: fixed;
  inset: 0;
  background: #0a0f0b; /* forest black */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.preloader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  width: 80px;
  height: auto;
  animation: logo-pulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(0, 168, 89, 0.45));
}

.preloader-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  transition: width 0.3s ease;
}

.preloader-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  animation: text-pulse 2.2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 16px rgba(0, 168, 89, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 32px rgba(0, 168, 89, 0.75));
  }
}

@keyframes text-pulse {
  0%, 100% {
    color: rgba(255, 255, 255, 0.45);
  }
  50% {
    color: rgba(255, 255, 255, 0.85);
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  font-family: inherit;
  background: none;
  cursor: pointer;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--g100);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

/* ============================================================
   SCROLL SNAPPING (DESKTOP)
   ============================================================ */
/* ============================================================
   SCROLL SNAPPING (GLOBAL - DESKTOP & MOBILE TIKTOK STYLE)
   ============================================================ */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100svh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-section.snap-section {
  height: auto;
  min-height: 100svh;
  overflow: visible;
}

.footer.snap-section {
  height: auto;
  min-height: 45svh;
  scroll-snap-align: end;
}

@media (min-width: 768px) {
  /* desktop overrides if any */
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--green);
  z-index: var(--z-toast, 1000);
  transition: width 0.1s linear;
}

/* Custom cursor removed per anti-slop guidelines */
.cursor-dot,
.cursor-ring {
  display: none !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav, 100);
  background: rgba(10, 15, 11, 0.88);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(10, 15, 11, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s var(--ease);
}

.navbar.scrolled .nav-inner {
  padding: 14px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.youth-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover .youth-logo {
  transform: scale(1.1) rotate(15deg);
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

/* brand text stays light/green on scrolled navbar */

.brand-text strong {
  color: var(--green);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s, background-color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background: rgba(0, 168, 89, 0.16);
}

.navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--white) !important;
  background: rgba(0, 168, 89, 0.22);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* hamburger stays white on scrolled navbar */

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FIXED SIDEBAR JOURNEY MAP
   ============================================================ */
.journey-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 100;
}

.jn-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--g200);
  transform: translateX(-50%);
  z-index: -1;
}

.jn-line-fill {
  width: 100%;
  height: 0%;
  background: var(--green);
  transition: height 0.25s linear;
}

.jn-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--g300);
  transition: all 0.3s var(--ease);
}

.jn-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.3s;
}

.jn-dot.active {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-glow);
}

.jn-dot.active::after {
  background: var(--white);
}

.jn-num {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text3);
  transition: color 0.3s;
  pointer-events: none;
}

.jn-dot.active .jn-num {
  color: var(--green-dark);
}

.jn-tooltip {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--g900);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.jn-dot:hover .jn-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .journey-nav {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-dark-gradient);
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 89, 0.28) 0%, rgba(0, 168, 89, 0.05) 50%, transparent 75%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Youth Badge */
.hero-youth-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 18px 8px 8px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up-in 0.75s 0.2s var(--ease-spring) forwards;
  align-self: flex-start;
  /* Prevent stretching to full width */
}

.hero-youth-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.hero-youth-text {
  display: flex;
  flex-direction: column;
}

.hero-youth-text strong {
  font-size: 0.78rem;
  color: var(--white);
  font-weight: 700;
}

.hero-youth-text span {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Title */
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  line-height: 1.05;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  color: var(--white) !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9);
}

.word-reveal {
  display: block;
  overflow: hidden;
}

.word-reveal span {
  display: block;
  color: var(--white) !important;
  opacity: 0;
  transform: translateY(100%);
  animation: word-slide 0.8s var(--ease-spring) forwards;
  animation-delay: 0.25s;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.9);
}

.word-reveal.delay-1 span {
  animation-delay: 0.45s;
}

@keyframes word-slide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up-in 0.75s 0.7s var(--ease) forwards;
}

/* Chapters Row */
.hero-chapters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up-in 0.75s 0.85s var(--ease) forwards;
}

.hc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.hc-item:hover {
  background: rgba(0, 168, 89, 0.15);
  border-color: var(--green);
  color: var(--white);
}

.hc-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green);
}

/* Scroll Hint — Premium Tall Arrow spanning under both columns */
.hero-scroll-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 10;
  opacity: 0;
  animation: scroll-hint-in 0.75s 1.1s var(--ease) forwards;
}

@keyframes scroll-hint-in {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-hint-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Glowing Bouncing/Sweeping Downward Arrow */
.scroll-arrow-wrap {
  width: 28px;
  height: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Muted back skeleton arrow line & arrowhead */
.scroll-arrow-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}

.scroll-arrow-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

/* Glowing element sweeping down the line and lighting up at the arrowhead */
.scroll-arrow-line {
  position: absolute;
  top: 0;
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, transparent 0%, var(--green) 70%, #ffffff 100%);
  box-shadow: 0 0 12px var(--green);
  animation: arrow-sweep 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  border-radius: 1px;
}

@keyframes arrow-sweep {
  0% {
    top: -20px;
    opacity: 0;
    height: 12px;
  }
  15% {
    opacity: 1;
    height: 24px;
  }
  60% {
    top: 36px;
    opacity: 1;
    height: 16px;
  }
  75% {
    top: 48px;
    opacity: 1;
    height: 8px;
    transform: scaleX(1);
    box-shadow: 0 0 16px var(--green), 0 0 24px var(--green);
  }
  100% {
    top: 54px;
    opacity: 0;
    height: 2px;
    transform: scaleX(2.5);
    box-shadow: 0 0 24px var(--green), 0 0 32px var(--green);
  }
}

.scroll-hint-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.3s;
  white-space: nowrap;
}

.scroll-hint-link:hover .scroll-hint-text {
  color: var(--green);
}

.scroll-hint-link:hover .scroll-arrow-line {
  animation-duration: 0.9s;
}

@keyframes fade-up-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Portrait — fills space from badge to chapter pills */
.hero-portrait {
  justify-self: center;
  width: 100%;
  max-width: 480px;
  position: relative;
  opacity: 0;
  transform: translateX(36px) scale(0.97);
  animation: port-in 0.9s 0.4s var(--ease-spring) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  align-self: stretch;
  /* stretch to full hero-inner column height */
}

@keyframes port-in {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.portrait-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.portrait-backdrop {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 82%;
  background: linear-gradient(180deg, rgba(0, 168, 89, 0.18) 0%, rgba(10, 15, 11, 0.6) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 220px 220px 32px 32px;
  box-shadow: var(--sh-lg);
  z-index: 1;
  backdrop-filter: blur(10px);
}

.portrait-img {
  position: relative;
  z-index: 2;
  height: 100%;
  width: auto;
  object-fit: contain;
  transform-origin: bottom center;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

.portrait-wrap:hover .portrait-img {
  transform: scale(1.05) translateY(-6px);
}

.portrait-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 18, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  padding: 12px 28px;
  border-radius: 100px;
  white-space: nowrap;
  text-align: center;
  z-index: 3;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease);
}

.portrait-wrap:hover .portrait-label {
  transform: translateX(-50%) translateY(-3px);
}

.portrait-label strong {
  display: block;
  font-size: 0.94rem;
  color: var(--white);
  font-weight: 700;
}

.portrait-label span {
  font-size: 0.76rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 3px;
  display: block;
}

.portrait-ring-1,
.portrait-ring-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  border: 1.5px solid rgba(0, 168, 89, 0.22);
}

.portrait-ring-1 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-spin 26s linear infinite;
}

.portrait-ring-2 {
  width: 480px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  border-color: rgba(0, 168, 89, 0.1);
  animation: ring-spin 36s linear infinite reverse;
}

@keyframes ring-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Stats Row */
.hero-stats-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: rgba(8, 22, 58, 0.93);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up-in 0.75s 1.2s var(--ease) forwards;
  z-index: 10;
  /* sits in front of portrait to perfectly cover any cutoffs */
}

.hs-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px;
  text-align: center;
  max-width: 280px;
}

.hs-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  align-self: center;
}

.hsp-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
}

.hsp-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   CHAPTER SLIDE LAYOUTS (FULL-BLEED SPLIT COLUMNS)
   ============================================================ */
.chapter-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Alternate order */
.ch-left .cs-media {
  order: 1;
}

.ch-left .cs-content {
  order: 2;
}

.ch-right .cs-media {
  order: 2;
}

.ch-right .cs-content {
  order: 1;
}

/* 1. Media Half */
.cs-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--g100);
}

.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single image (no grid) fills the media column */
.cs-media > .cs-media-box {
  height: 100%;
  width: 100%;
  display: block;
}

.cs-media-grid {
  display: grid;
  grid-template-rows: 1.1fr 0.9fr;
  height: 100%;
  gap: 0px;
}

.cs-media-grid.single-media-grid {
  grid-template-rows: 1fr !important;
}

.cs-media-box {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cs-media-box img {
  transition: transform 0.8s var(--ease);
}

.cs-media-box:hover img {
  transform: scale(1.03);
}

.cs-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 32px 32px 20px;
  letter-spacing: 0.01em;
}

/* 2. Content Half */
.cs-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px 60px 100px;
  position: relative;
}

.ch-right .cs-content {
  padding: 60px 100px 60px 80px;
}

.cs-content-inner {
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Giant Watermark Backdrop removed */
.cs-watermark {
  display: none !important;
}

.cs-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: var(--green) !important;
}

.ch-right .cs-label {
  color: var(--green) !important;
}

.cs-icon {
  width: 14px;
  height: 14px;
}

.cs-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  color: var(--white) !important;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

/* Metric Display Card — sleek glassmorphic style */
.cs-metric-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 168, 89, 0.18);
  border-radius: var(--r-md);
  padding: 24px 30px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

/* Floating overlay style for metrics on desktop */
.cs-metric-card.floating-metric {
  position: absolute;
  z-index: 10;
  max-width: 280px;
  background: rgba(10, 15, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 0;
  animation: float-card 6s ease-in-out infinite alternate;
}

.cs-metric-card.floating-metric .cs-metric-desc {
  color: rgba(255, 255, 255, 0.75);
}

.cs-metric-card.floating-metric .cs-metric-num {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 4px;
}

.ch-left .cs-metric-card.floating-metric {
  top: 15%;
  left: 40px;
}

.ch-right .cs-metric-card.floating-metric {
  top: 15%;
  right: 40px;
}

@keyframes float-card {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.015); }
}

.cs-metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 89, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cs-metric-num {
  font-size: clamp(2.8rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.cs-metric-free {
  color: var(--green) !important;
}

.cs-metric-desc {
  font-size: 0.92rem;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 400;
}

/* Bullet Lists */
.cs-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
}

.cs-bullets li i {
  width: 16px;
  height: 16px;
  color: var(--green) !important;
  flex-shrink: 0;
}

.ch-right .cs-bullets li i {
  color: var(--green) !important;
}

/* Chapter 4 Infrastructure Grid — sleek glassmorphic cards */
.cs-infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cs-infra-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 20px;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.cs-infra-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 89, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cs-infra-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 168, 89, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 168, 89, 0.15);
}

.cs-infra-card i {
  width: 22px;
  height: 22px;
  color: var(--green);
  margin-bottom: 12px;
}

.cs-infra-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white) !important;
}

.cs-infra-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78) !important;
  line-height: 1.55;
}

/* Section Backgrounds Tints */
#education {
  background: var(--bg-light);
}

#healthcare {
  background: var(--bg-washed);
}

#talent {
  background: var(--bg-light);
}

#infrastructure {
  background: var(--bg-washed);
}

/* ============================================================
   CHAPTER TRANSITIONS / REVEALS IN SCROLL-SNAP
   ============================================================ */
.chapter-section .cs-media img {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s var(--ease);
}

.chapter-section .cs-content-inner {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: 0.15s;
}

.chapter-section.in-view .cs-media img {
  opacity: 1;
  transform: scale(1);
}

.chapter-section.in-view .cs-content-inner {
  opacity: 1;
  transform: translateY(0);
}

/* After preloader: skip fade-in delays — images are already cached */
body.images-ready .chapter-section .cs-media img {
  transition: none !important;
  transform: scale(1) !important;
}

body.images-ready .chapter-section .cs-content-inner {
  transition: none !important;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: 120px 0;
  background: var(--bg-light);
}

.gallery-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green) !important;
  background: rgba(0, 168, 89, 0.12) !important;
  border: 1px solid rgba(0, 168, 89, 0.32);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.label-icon {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  font-style: normal;
  color: var(--white) !important;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.section-desc {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.7;
  max-width: 520px;
}

.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gf-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s var(--ease);
  font-family: var(--font);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.gf-btn:hover {
  border-color: var(--green);
  color: var(--white);
  background: rgba(0, 168, 89, 0.15);
}

.gf-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(0, 168, 89, 0.35);
}

/* Masonry Grid */
.masonry-grid {
  columns: 4;
  column-gap: 14px;
}

.m-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: none;
  box-shadow: var(--sh-sm);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s;
}

.m-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.m-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.m-item:hover {
  box-shadow: var(--sh-md);
}

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

.m-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.m-item:hover .m-caption {
  opacity: 1;
}

.m-item.hidden {
  display: none;
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.lightbox.active {
  display: flex;
  animation: lb-fade 0.25s ease;
}

@keyframes lb-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 90vw;
  max-height: 90vh;
}

.lb-inner img {
  max-width: 88vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  transition: opacity 0.2s ease, transform 0.3s var(--ease-spring);
}

.lb-inner p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 500;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.25s, border-color 0.25s;
}

.lb-close {
  top: 24px;
  right: 24px;
}

.lb-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: var(--green);
  border-color: var(--green);
}

.lb-close i,
.lb-prev i,
.lb-next i {
  width: 18px;
  height: 18px;
}

/* Reveal Helpers - Subtle, non-jarring transitions */
[data-reveal] {
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

[data-reveal="fade-up"] {
  transform: translateY(14px);
}

[data-reveal="scale-in"] {
  transform: scale(0.98);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   QUOTE
   ============================================================ */
.quote-section {
  display: flex;
  align-items: center;
  background: var(--bg-dark-gradient);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.quote-section::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 168, 89, 0.24) 0%, rgba(0, 168, 89, 0.03) 55%, transparent 75%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.quote-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-youth {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.quote-youth-logo {
  height: 88px;
  width: 88px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 168, 89, 0.2));
}

.quote-icon {
  width: 36px;
  height: 36px;
  color: var(--green);
  opacity: 0.45;
  margin: 0 auto 20px;
}

.quote-wrap blockquote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quote-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.qa-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--green);
  box-shadow: var(--sh-o);
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 100%);
}

.qa-text strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--white);
}

.qa-text span {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue);
  padding: 80px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.footer .brand-text {
  color: var(--white);
}

.footer .youth-logo {
  filter: brightness(1.2);
}

.footer-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  text-align: center;
  padding: 24px;
}

.footer-bottom p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }

  .hero-portrait {
    max-width: 320px;
  }

  .portrait-img {
    height: 380px;
  }

  .cs-content {
    padding: 40px 60px;
  }

  .masonry-grid {
    columns: 3;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (Cinematic Card Style)
   ============================================================ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .navbar {
    background: rgba(10, 15, 11, 0.96) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px);
  }

  .brand-text {
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .brand .youth-logo {
    filter: none !important;
  }

  .hamburger {
    display: flex;
  }

  .hamburger span {
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .nav-inner {
    padding: 14px 20px !important;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 11, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(0, 168, 89, 0.2) !important;
    color: var(--white) !important;
  }

  /* ── Scroll hint hidden on mobile ── */
  .hero-scroll-hint {
    display: none !important;
  }

  /* ── Hero ── */
  .hero {
    height: 100svh !important;
    min-height: 100svh !important;
    padding-top: 62px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
    padding: 16px 20px 24px !important;
    text-align: center !important;
    gap: 16px !important;
    align-items: center !important;
    flex: 1 !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: calc(100% - 62px) !important;
    min-height: 0 !important;
  }

  .hero-text {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    /* push badge to top, buttons to bottom, title/desc in middle */
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem) !important;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 auto 24px;
    max-width: 340px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  }

  .hero-youth-badge {
    padding: 6px 12px 6px 6px !important;
    gap: 8px !important;
    margin-top: 12px !important;
    /* give it a small top margin near the header */
    margin-bottom: auto !important;
    /* pushes middle content down */
    align-self: center;
    /* Prevent full stretching on mobile flexbox */
  }

  .hero-youth-img {
    height: 20px !important;
    width: 20px !important;
  }

  .hero-youth-text strong {
    font-size: 0.68rem !important;
  }

  .hero-youth-text span {
    font-size: 0.6rem !important;
  }

  .hero-chapters {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    /* allow wrapping — 2+2 grid on very small phones */
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 4px 8px !important;
    gap: 6px !important;
    margin-top: auto !important;
    margin-bottom: 16px !important;
  }

  .hc-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 100px !important;
    padding: 7px 12px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: nowrap !important;
    flex: 1 1 auto !important;
    /* let each pill take equal natural space */
    max-width: calc(50% - 6px) !important;
    /* 2 per row on tight screens */
    justify-content: center !important;
  }

  .hc-item .hc-num {
    display: inline-block !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    color: var(--green) !important;
  }

  .hc-item::after {
    content: none !important;
  }

  /* Portrait card — cinematic blurred watermark touching the absolute bottom edge */
  .hero-portrait {
    position: absolute;
    bottom: -2px;
    /* lock tight to the absolute bottom of the container */
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.95);
    width: 100%;
    max-width: 440px;
    height: 56svh;
    /* Anchored nicely at the bottom 56% of screen height */
    align-self: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: port-in-mobile 1.2s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes port-in-mobile {
    to {
      opacity: 0.55;
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  .portrait-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
  }

  .portrait-backdrop {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 85%;
    background: linear-gradient(180deg, rgba(0, 168, 89, 0.2) 0%, rgba(10, 15, 11, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 200px 200px 0 0;
    /* completely flat bottom edge to touch screen edge perfectly */
    box-shadow: none;
    z-index: 1;
    backdrop-filter: blur(15px);
  }

  .portrait-img {
    position: relative;
    z-index: 2;
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: blur(6px) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
    -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  }

  .portrait-label {
    display: none;
  }

  .portrait-ring-1,
  .portrait-ring-2 {
    display: block;
    opacity: 0.08;
    top: 50%;
    left: 50%;
  }

  .portrait-ring-1 {
    width: 320px;
    height: 320px;
  }

  .portrait-ring-2 {
    width: 380px;
    height: 380px;
  }

  /* Stats row — 2-column pill grid */
  .hero-stats-row {
    position: static;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 -20px;
  }

  .hs-pill {
    flex: 1 1 50%;
    padding: 14px 12px;
  }

  .hs-divider {
    display: none;
  }

  .hsp-num {
    font-size: 1.3rem;
  }

  .hsp-label {
    font-size: 0.68rem;
  }

  /* ── Chapter Sections — CINEMATIC MOBILE CARDS ── */
  /* Each chapter becomes a full-bleed background-image card
     with a dark gradient overlay and white text at the bottom */
  .chapter-section {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* The media column becomes the full background */
  .cs-media {
    position: absolute !important;
    inset: 0;
    height: 100% !important;
    width: 100% !important;
    order: unset !important;
    z-index: 0;
  }

  .cs-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(10, 15, 40, 0.92) 0%,
        rgba(10, 15, 40, 0.55) 40%,
        rgba(10, 15, 40, 0.15) 75%,
        transparent 100%);
    z-index: 1;
  }

  .cs-media-grid {
    display: block;
    height: 100%;
  }

  .cs-media-box {
    height: 100%;
  }

  /* Only show first photo as the full bg on mobile */
  .cs-media-box.accent-box {
    display: none;
  }

  .cs-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .cs-caption {
    display: none;
  }

  /* Content sits at the bottom over the image */
  .cs-content {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    padding: 8px 16px 20px !important;
    background: none !important;
    z-index: 2;
    order: unset !important;
    text-align: left !important;
    display: block !important;
  }

  .ch-right .cs-content {
    padding: 8px 16px 20px !important;
  }

  .cs-content-inner {
    max-width: 100%;
  }

  /* Watermark visible on mobile as texture — smaller */
  .cs-watermark {
    display: block !important;
    position: absolute;
    left: auto;
    right: 16px;
    top: 20px;
    font-size: 7rem;
    opacity: 0.12;
    color: var(--white) !important;
    z-index: 3;
  }

  /* Label on dark bg */
  .cs-label {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 12px;
  }

  .cs-icon {
    color: var(--green);
  }

  /* Title on dark bg */
  .cs-title {
    font-size: 1.6rem !important;
    color: var(--white) !important;
    margin-bottom: 8px !important;
  }

  /* Metric card — glassmorphism on mobile */
  .cs-metric-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    margin-bottom: 8px !important;
    padding: 10px 14px !important;
  }

  .cs-metric-card.floating-metric {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 72px 16px 8px !important;
    max-width: calc(100% - 32px) !important;
    animation: none !important;
    box-shadow: none !important;
    background: rgba(10, 15, 11, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    z-index: 10 !important;
  }

  .cs-metric-num {
    color: var(--green) !important;
    font-size: 2.2rem !important;
    margin-bottom: 2px !important;
  }

  .cs-metric-free {
    color: var(--green) !important;
  }

  .cs-metric-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.74rem !important;
  }

  /* Bullets on dark bg */
  .cs-bullets {
    gap: 6px !important;
  }

  .cs-bullets li {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
  }

  .cs-bullets li i {
    color: var(--green) !important;
  }

  /* Infra cards on dark bg */
  .cs-infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cs-infra-card {
    background: rgba(10, 15, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
  }

  .cs-infra-card:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .cs-infra-card i,
  .cs-infra-card svg {
    color: var(--green) !important;
  }

  .cs-infra-card h4 {
    color: var(--white);
    font-size: 0.82rem;
  }

  .cs-infra-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
  }

  /* Chapter background tints removed — dark overlay does the work */
  #education,
  #healthcare,
  #talent,
  #infrastructure {
    background: none !important;
  }

  /* ── Gallery ── */
  .gallery-section {
    padding: 80px 0 60px;
  }

  .masonry-grid {
    columns: 2;
    column-gap: 10px;
  }

  .m-item {
    margin-bottom: 10px;
  }

  .container {
    padding: 0 18px;
  }

  /* Lightbox Mobile Overhaul */
  .lb-prev,
  .lb-next {
    display: none !important;
  }

  .lb-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 10000;
  }

  .lb-inner {
    max-width: 95vw;
    max-height: 85vh;
    gap: 12px;
  }

  .lb-inner img {
    max-width: 92vw;
    max-height: 70vh;
  }

  .lb-inner p {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  /* ── Quote ── */
  .quote-section {
    height: auto;
    padding: 72px 24px;
    display: block;
  }

  .quote-wrap blockquote {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--white);
  }

  .quote-youth-logo {
    height: 64px;
    width: 64px;
  }

  /* ── Footer ── */
  .footer {
    height: auto;
    padding-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ── Very small screens ── */
@media (max-width: 480px) {
  .masonry-grid {
    columns: 1;
  }

  .chapter-section {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .cs-title {
    font-size: 1.5rem !important;
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
  }

  .hero-inner {
    padding: 12px 12px 16px !important;
  }

  .cs-infra-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hs-pill {
    flex: 1 1 100%;
  }
}

/* ── Floating Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(8, 18, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-4px);
}

.btt-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.back-to-top:hover .btt-icon {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ── Collapsible Gallery Wrapper & Expand Button ── */
.gallery-grid-wrap {
  width: 100%;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid-wrap.collapsed {
  max-height: 720px;
  /* limits height to about 2-3 rows of images depending on grid column count */
  overflow: hidden;
  position: relative;
}

/* Faded mask overlay on collapse */
.gallery-grid-wrap.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-light) 100%);
  pointer-events: none;
  z-index: 10;
}

.gallery-expand-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  position: relative;
  z-index: 15;
}

.gallery-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--g200);
  color: var(--text2);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.gallery-toggle-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 89, 0.25);
}

.gallery-toggle-btn i {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  transition: transform 0.3s var(--ease);
}

/* ── Glowing Skeleton Loaders for Chapter Sections (Mobile & Desktop) ── */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Base style for shimmering blocks */
.chapter-section:not(.in-view) .cs-media {
  background: linear-gradient(90deg, var(--g100) 25%, var(--g200) 37%, var(--g100) 63%) !important;
  background-size: 200% 100% !important;
  animation: skeleton-shimmer 1.8s infinite linear !important;
  position: relative;
}

/* Overlaid soft colorful aura placeholder */
.chapter-section:not(.in-view) .cs-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 168, 89, 0.05) 0%, rgba(10, 15, 11, 0.08) 100%);
  z-index: 1;
}

/* Blur skeleton effect on text content when not yet intersected */
.chapter-section:not(.in-view) .cs-content-inner {
  opacity: 0.15;
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease);
}

/* Ensure the real contents show fully with zero blur once intersected */
.chapter-section.in-view .cs-content-inner {
  opacity: 1;
  filter: blur(0);
}

/* ============================================================
   PATRON & INITIATIVE SECTION
   ============================================================ */
.patron-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-washed);
  position: relative;
  overflow: hidden;
  min-height: 100svh;
}

.patron-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  align-items: center;
  z-index: 2;
}

.patron-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* label is now a sibling, not a child */
}

.patron-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.02);
}

.patron-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 168, 89, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.patron-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(10%) contrast(105%);
}

.patron-card:hover .patron-img {
  transform: scale(1.04);
}

.patron-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 168, 89, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.patron-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 35px 30px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  z-index: 2;
}

.patron-label strong {
  display: block;
  font-size: 1.55rem;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.patron-label span {
  display: block;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.desktop-only-label {
  display: block !important;
}

.mobile-only-label {
  display: none !important;
}

.patron-content {
  color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.patron-description {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82) !important;
  margin-bottom: 36px;
  font-weight: 400;
}

.patron-pills {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
  margin-top: 24px;
}

.pp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 100px;
  padding: 10px 20px 10px 14px;
  color: var(--white) !important;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex: 0 1 calc(50% - 12px);
  min-width: 260px;
}

.pp-item:hover {
  background: rgba(0, 168, 89, 0.12) !important;
  border-color: var(--green) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 89, 0.2);
}

.pp-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green);
  background: rgba(0, 168, 89, 0.15);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.pp-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pp-content strong {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white) !important;
  line-height: 1.25;
}

.pp-content span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.25;
}

/* Extra data-reveal directions */
[data-reveal="fade-right"] {
  transform: translateX(-14px);
}

[data-reveal="fade-left"] {
  transform: translateX(14px);
}

/* Responsive Overrides */
@media (max-width: 992px) {

  /* ═══════════════════════════════════════════════════
     INITIATIVE / PATRON SECTION — Clean mobile layout
     Portrait fills background, text card at bottom
  ═══════════════════════════════════════════════════ */

  .patron-section {
    /* Section is already 100svh via .snap-section */
    background: #0a0f0b !important;
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
  }

  /* Portrait media: true full-bleed background */
  .patron-media {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    display: block !important;
  }

  /* Dark-to-transparent overlay: heavy at bottom, clear at top so face shows */
  .patron-media::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      to top,
      rgba(10, 15, 11, 0.97) 0%,
      rgba(10, 15, 11, 0.80) 42%,
      rgba(10, 15, 11, 0.25) 68%,
      transparent 100%
    ) !important;
    z-index: 1 !important;
  }

  /* Card is just a container for the image — no styling */
  .patron-card {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: block !important;
  }

  /* Portrait image: fills section, face anchored to top */
  .patron-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    filter: brightness(0.92) !important;
  }

  /* Hide card glow and badge on mobile */
  .patron-card-glow,
  .patron-badge {
    display: none !important;
  }

  .desktop-only-label {
    display: none !important;
  }

  /* Name label: floats centered, flows naturally above the text content card */
  .mobile-only-label {
    display: block !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    background: rgba(10, 15, 11, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 10px 30px !important;
    border-radius: 100px !important;
    text-align: center !important;
    white-space: nowrap !important;
    width: max-content !important;
    max-width: 95vw !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    z-index: 5 !important;
    margin: 0 auto 16px !important;
  }

  .mobile-only-label strong {
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: block !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  .mobile-only-label span {
    color: var(--green) !important;
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    display: block !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
  }

  /* patron-inner: anchored to the bottom of the section */
  .patron-inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 16px 16px 28px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
  }

  /* Content card: dark glass container sitting at the very bottom */
  .patron-content {
    width: 100% !important;
    background: rgba(10, 15, 11, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 18px 20px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }

  .patron-content .cs-watermark {
    display: none !important;
  }

  .patron-content .cs-label {
    font-size: 0.7rem !important;
    color: var(--green) !important;
    margin-bottom: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }

  .patron-content .cs-label i {
    stroke: var(--green) !important;
    width: 14px !important;
    height: 14px !important;
  }

  .patron-content .cs-title {
    font-size: 1.45rem !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  .patron-description {
    font-size: 0.76rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    margin-bottom: 0 !important;
  }

  .patron-pills {
    display: none !important;
  }

  /* ═══════════════════════════════════════════════════
     CHAPTER SECTIONS — Cinematic mobile slide deck
  ═══════════════════════════════════════════════════ */

  /* Minify chapter heading size on tablet */
  .cs-title {
    font-size: 1.6rem !important;
    margin-bottom: 8px !important;
  }

  .cs-metric-card.floating-metric {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 72px 16px 8px !important;
    max-width: calc(100% - 32px) !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: rgba(10, 15, 11, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    z-index: 10 !important;
  }

  .cs-metric-num {
    font-size: 2.2rem !important;
    margin-bottom: 2px !important;
  }

  .cs-metric-desc {
    font-size: 0.74rem !important;
    line-height: 1.4 !important;
  }

  .cs-bullets {
    gap: 6px !important;
  }

  .cs-bullets li {
    font-size: 0.74rem !important;
    padding: 4px 10px !important;
  }

  /* Quote and footer full height snap */
  .quote-section {
    height: 100svh !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer {
    height: 100svh !important;
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    scroll-snap-align: start !important;
  }

  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 24px !important;
  }
}

/* ============================================================
   MULTI-PAGE ARCHITECTURE STYLES
   ============================================================ */
html.multi-page,
body.multi-page {
  scroll-snap-type: none !important;
  overflow-y: auto !important;
  height: auto !important;
}

body.multi-page .snap-section {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}

body.multi-page .footer {
  height: auto !important;
  min-height: auto !important;
  padding: 60px 0 30px !important;
  scroll-snap-align: none !important;
}

/* Subpage Hero Header */
.subpage-hero {
  position: relative;
  padding: 130px 0 60px;
  background: radial-gradient(circle at 50% 10%, rgba(0, 168, 89, 0.12) 0%, rgba(10, 15, 11, 0.95) 70%), var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subpage-hero .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.subpage-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}

.subpage-breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.subpage-breadcrumb a:hover {
  text-decoration: underline;
}

.subpage-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.25);
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 168, 89, 0.12);
  border: 1px solid rgba(0, 168, 89, 0.35);
  border-radius: 20px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}

.subpage-title {
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.subpage-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

/* Subpage Main Content Wrapper */
.subpage-content {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

body.multi-page .chapter-section {
  height: auto !important;
  min-height: 85vh;
  margin-bottom: 40px;
}

body.multi-page .chapter-section,
body.multi-page #education,
body.multi-page #healthcare,
body.multi-page #talent,
body.multi-page #infrastructure,
body.multi-page .patron-section {
  background: var(--bg-dark) !important;
}

body.multi-page .cs-title,
body.multi-page .section-title,
body.multi-page .hero-title,
body.multi-page .subpage-title,
body.multi-page .portal-title,
body.multi-page .it-content h3,
body.multi-page .deepdive-card h4 {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

body.multi-page .cs-metric-card {
  background: rgba(10, 15, 11, 0.88) !important;
  border: 1px solid rgba(0, 168, 89, 0.35) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 168, 89, 0.15) !important;
}

body.multi-page .cs-metric-desc {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.multi-page .cs-bullets li {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.multi-page .cs-bullets li i {
  color: var(--green) !important;
}

/* Subpage Deep Dive Cards */
.deepdive-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #060907 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deepdive-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head-center {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
}

.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.deepdive-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.deepdive-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 168, 89, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 168, 89, 0.12);
}

.dd-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 168, 89, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 20px;
}

.dd-icon-wrap i {
  width: 26px;
  height: 26px;
}

.deepdive-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.deepdive-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* Subpage Mini Gallery Preview */
.subpage-gallery {
  padding: 60px 0 80px;
  background: var(--bg-dark);
}

.subpage-gallery .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-row .m-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
}

.gallery-row .m-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-row .m-item:hover img {
  transform: scale(1.06);
}

/* Chapter Pagination Navigation */
.chapter-pagination {
  padding: 40px 0 60px;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-pagination .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.chapter-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  min-width: 260px;
}

.chapter-nav-btn:hover {
  background: rgba(0, 168, 89, 0.1);
  border-color: rgba(0, 168, 89, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.chapter-nav-btn .cn-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.chapter-nav-btn .cn-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.chapter-nav-btn i {
  color: var(--green);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.chapter-nav-btn.next {
  margin-left: auto;
  text-align: right;
}

/* Home Portal Section */
.portal-section {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #060907 100%);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.portal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.portal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 168, 89, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 168, 89, 0.15);
}

.portal-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #111;
}

.portal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.portal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: rgba(10, 15, 12, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 168, 89, 0.35);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
}

.portal-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}

.portal-metric-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 168, 89, 0.08);
  border: 1px solid rgba(0, 168, 89, 0.2);
  border-radius: 10px;
  margin-bottom: 20px;
}

.portal-metric-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.portal-metric-lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
  margin-top: auto;
  transition: gap 0.2s ease;
}

.portal-card:hover .portal-cta {
  gap: 12px;
}

/* Home Initiative Teaser Banner */
.initiative-teaser-section {
  padding: 70px 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 168, 89, 0.1) 0%, transparent 60%), var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.initiative-teaser-section .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.it-banner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 900px) {
  .it-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .it-portrait-wrap {
    margin: 0 auto;
  }
  .it-content {
    align-items: center;
  }
}

.it-portrait-wrap {
  width: 240px;
  height: 290px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0, 168, 89, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 168, 89, 0.15);
  flex-shrink: 0;
}

.it-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.it-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.it-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.it-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.it-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 168, 89, 0.3);
}

.it-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 168, 89, 0.4);
}
