/* ==========================================================================
   CENTRAL ASIAN YOUTH ASSEMBLY (CAYA) — STYLESHEET
   ==========================================================================
   STRUCTURE
   ---------
   01. Design tokens (colours, type, spacing)   ← edit brand colours here
   02. Reset & base elements
   03. Reusable utilities (container, buttons, eyebrow, section heads, reveal)
   04. Header & navigation
   05. Hero
   06. About (model + journey timeline)
   07. The Region (countries)
   08. SDG Tracks
   09. Why CAYA (features)
   10. Statistics band
   11. Organizing Team
   12. Program Costs
   13. Applications
   14. FAQ accordion
   15. Contact
   16. Footer
   17. Back-to-top button
   18. Motion / reveal animations
   19. Responsive (tablet & mobile)
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS  — Edit these to re-skin the whole site
   ========================================================================== */
:root {
  /* Palette — rooted in Samarkand's Timurid blue-and-gold heritage */
  --ink:        #122a33;  /* primary text                          */
  --ink-2:      #294049;  /* darker headings / strong text         */
  --deep:       #0c2c39;  /* deep teal — dark immersive bands       */
  --deep-2:     #082530;  /* deepest teal — footer base             */
  --azure:      #1e6e8e;  /* Samarkand tile blue — accents, rules   */
  --azure-deep: #16566f;  /* primary button / hover                 */
  --azure-text: #155e78;  /* link text (AA contrast on light)       */
  --gold:       #b5872e;  /* heritage gold — sparing accent         */
  --gold-2:     #c9a24b;  /* lighter gold (on dark)                 */

  --paper:      #f4f5f2;  /* page background (soft, not warm cream) */
  --surface:    #ffffff;  /* cards                                  */
  --tint:       #e9ece8;  /* tinted section background              */
  --muted:      #57676d;  /* secondary text                         */

  --line:       #e0e3dc;  /* hairlines on light                     */
  --line-dark:  rgba(255, 255, 255, 0.16); /* hairlines on dark     */

  /* Typography */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --fs-hero:  clamp(2.9rem, 6.6vw, 5.3rem);
  --fs-h2:    clamp(2rem, 4.1vw, 3.05rem);
  --fs-h3:    clamp(1.2rem, 2vw, 1.45rem);
  --fs-lede:  clamp(1.06rem, 1.5vw, 1.2rem);
  --fs-eyebrow: 0.78rem;

  /* Spacing & layout */
  --container:        1180px;
  --container-narrow: 760px;
  --gutter:    clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h:  84px;

  /* Radii, shadow, motion */
  --radius:    5px;
  --radius-lg: 9px;
  --shadow-sm: 0 1px 2px rgba(12, 44, 57, 0.05), 0 1px 1px rgba(12, 44, 57, 0.04);
  --shadow:    0 22px 48px -28px rgba(12, 44, 57, 0.30), 0 6px 16px -10px rgba(12, 44, 57, 0.16);
  --ease:      cubic-bezier(0.2, 0.6, 0.2, 1);
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* ~17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--azure-text); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; padding: 0; }

button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--gold); color: #fff; }

/* Anchor offset so sticky header never covers section tops */
[id] { scroll-margin-top: var(--header-h); }
#hero { scroll-margin-top: 0; }

/* Keyboard focus — visible and on-brand */
:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link (visible only when focused) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--deep);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; }


/* ==========================================================================
   03. REUSABLE UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* Standard vertical rhythm for sections */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }

/* Eyebrow label */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure-text);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
}
.eyebrow--light { color: var(--gold-2); }
.eyebrow--light::before { background: var(--gold-2); }

/* Section headings */
.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}
.section__lede {
  margin-top: 1.15rem;
  font-size: var(--fs-lede);
  color: var(--muted);
  max-width: 60ch;
}
.section__lede--center { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }

.btn--primary { background: var(--azure-deep); color: #fff; }
.btn--primary:hover { background: #114457; }

.btn--gold { background: var(--gold); color: var(--deep); }
.btn--gold:hover { background: #a2782a; color: var(--deep); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }


/* ==========================================================================
   04. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Brand / wordmark */
.brand { display: inline-flex; align-items: center; gap: 0.85rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand__seal { width: 40px; height: 40px; color: var(--gold-2); flex: none; }
.brand__seal svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: inherit;
}
.brand__tag {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0.9;
}

/* Desktop nav */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 1.65rem; }
.nav__link {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-2);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: #fff; text-decoration: none; }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: #fff; }

.header__cta { flex: none; }

/* Header state once scrolled (solid) */
.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(12, 44, 57, 0.4);
}
.site-header.is-scrolled .brand { color: var(--ink-2); }
.site-header.is-scrolled .brand__seal { color: var(--gold); }
.site-header.is-scrolled .brand__tag { color: var(--azure-text); }
.site-header.is-scrolled .nav__link { color: var(--ink); }
.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active { color: var(--azure-text); }
.site-header.is-scrolled .nav__link::after { background: var(--gold); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
}
.nav-toggle__bar {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle { border-color: var(--line); }
.site-header.is-scrolled .nav-toggle__bar { background: var(--ink); }

/* Toggle -> X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  background: var(--deep);
  border-top: 1px solid var(--line-dark);
  padding: 1.25rem var(--gutter) 2rem;
}
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu__list a:hover { color: var(--gold-2); text-decoration: none; }
.mobile-menu__cta { width: 100%; margin-top: 1.5rem; }


/* ==========================================================================
   05. HERO
   ========================================================================== */
.hero {
  position: relative;
  /* Pull up under the transparent sticky header */
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(120% 90% at 80% 0%, #11475c 0%, rgba(17, 71, 92, 0) 55%),
    linear-gradient(165deg, #0e3344 0%, var(--deep) 55%, var(--deep-2) 100%);
  color: #fff;
  overflow: hidden;
}
/* Subtle Timurid geometric lattice (pure SVG data-URI, no image file) */
.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='32'/%3E%3Ccircle cx='64' cy='0' r='32'/%3E%3Ccircle cx='0' cy='64' r='32'/%3E%3Ccircle cx='64' cy='64' r='32'/%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.10;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 880px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: 1rem;
}
.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--gold-2);
  margin-bottom: 1.6rem;
}
.hero__desc {
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  margin-bottom: 2.4rem;
}

/* Event date + countdown */
.hero__event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 2.4rem;
}
.hero__date { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__date-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.hero__date-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.countdown { display: flex; gap: 1.4rem; }
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
}
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__lbl {
  margin-top: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.countdown.is-finished { letter-spacing: normal; display: block; }
.countdown__done {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--gold-2);
  max-width: 30ch;
}

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


/* ==========================================================================
   06. ABOUT (model + journey timeline)
   ========================================================================== */
/* Four-phase model */
.model {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.model__phase {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.model__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
}
.model__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0.35rem 0 0.6rem;
}
.model__text { font-size: 0.96rem; color: var(--muted); line-height: 1.65; }
.model__arrow {
  align-self: center;
  color: var(--gold);
  font-size: 1.5rem;
  flex: none;
}

/* Journey timeline */
.journey__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}
.timeline { position: relative; padding-left: 3.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--azure), var(--gold));
}
.timeline__step { position: relative; padding-bottom: 2.6rem; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -3.5rem; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--azure);
}
.timeline__step:last-child .timeline__dot { border-color: var(--gold); }
.timeline__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink-2);
}
.timeline__text { font-size: 0.95rem; color: var(--muted); }

/* Reusable image placeholder (looks intentional, not broken) */
.img-ph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(140% 120% at 50% 0%, #11465b 0%, var(--deep) 70%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
}
.img-ph--wide { aspect-ratio: 16 / 11; }
.img-ph__seal {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='2.4'%3E%3Ccircle cx='50' cy='50' r='46.5'/%3E%3Ccircle cx='50' cy='50' r='13'/%3E%3Crect x='26' y='26' width='48' height='48'/%3E%3Cpolygon points='50,16 84,50 50,84 16,50'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46%;
  opacity: 0.18;
}
.img-ph__label {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  z-index: 1;
}
.img-ph__label code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--gold-2);
}
/* When a real photo is dropped in */
.about__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }


/* ==========================================================================
   07. THE REGION (countries)
   ========================================================================== */
.countries {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.country {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.country:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.country__mark {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 1rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: block;
  aspect-ratio: 3 / 2;
}
.country__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.country__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-top: 0.1rem;
}


/* ==========================================================================
   08. SDG TRACKS
   ========================================================================== */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.track {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.track:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.track__top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.track__badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  /* SDG accent colour (set per card below) */
  background: var(--sdg, var(--azure));
}
.track__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-2);
}
.track__summary { color: var(--muted); font-size: 0.98rem; }

/* Expandable detail */
.track__detail {
  overflow: hidden;
  /* animated via inline max-height set by JS; default closed */
}
.track__detail p {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.7;
}

.track__more {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  color: var(--azure-text);
  font-weight: 600;
  font-size: 0.92rem;
  align-self: flex-start;
}
.track__more-label::after { content: ""; }
.track__more-icon {
  width: 14px; height: 14px;
  position: relative;
}
.track__more-icon::before,
.track__more-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.track__more-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }     /* horizontal */
.track__more-icon::after  { top: 0; left: 6px; width: 2px; height: 14px; }      /* vertical   */
.track__more[aria-expanded="true"] .track__more-icon::after { transform: scaleY(0); }

/* SDG accent colours (official-inspired, used only as a small badge) */
.track[data-sdg="13"] { --sdg: #3f7e44; }
.track[data-sdg="4"]  { --sdg: #c5192d; }
.track[data-sdg="3"]  { --sdg: #4c9f38; }
.track[data-sdg="8"]  { --sdg: #a21942; }
.track[data-sdg="11"] { --sdg: #bf8b2e; }


/* ==========================================================================
   09. WHY CAYA (features)
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 2.25rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.feature__index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
}
.feature__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink-2);
  margin: 0.6rem 0 0.6rem;
}
.feature__text { font-size: 0.96rem; color: var(--muted); line-height: 1.65; }


/* ==========================================================================
   10. STATISTICS BAND
   ========================================================================== */
.stats {
  background:
    linear-gradient(160deg, #0e3344 0%, var(--deep) 60%, var(--deep-2) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat { padding: 0.5rem; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
}
/* Thin gold divider under the numbers */
.stat { position: relative; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--line-dark);
}

/* ==========================================================================
   11. ORGANIZING TEAM
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5rem;
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Half-body portrait area (placeholder or <img>) */
.member__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: radial-gradient(130% 110% at 50% 0%, #15506a 0%, var(--deep) 72%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.member__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Initials watermark, drawn from data-initials */
.member__portrait::before {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(201, 162, 75, 0.55);
}
.member__ph-label {
  position: absolute;
  bottom: 0.85rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.member__body {
  padding: 1rem 1.7rem 1.35rem;

}
.member__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.2;
  text-wrap: balance;
  hyphens: none;
}
.member__role {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--azure-text);
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
  hyphens: none;
}

/* ==========================================================================
   12. PROGRAM COSTS
   ========================================================================== */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.cost {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-sm);
}
.cost--feature {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.cost__name {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure-text);
  font-weight: 600;
}
.cost--feature .cost__name { color: var(--gold-2); }
.cost__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--ink-2);
  margin: 0.6rem 0 0.9rem;
  line-height: 1;
}
.cost--feature .cost__price { color: #fff; }
.cost__sub { font-size: 1rem; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.cost--feature .cost__sub { color: rgba(255, 255, 255, 0.7); }
.cost__note { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.cost--feature .cost__note { color: rgba(255, 255, 255, 0.78); }

/* Financial Aid (within Program Costs) */
.aid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.aid__head { max-width: 640px; margin-bottom: 1.75rem; }
.aid__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.6rem;
}
.aid__text { font-size: 0.98rem; color: var(--muted); line-height: 1.65; }
.aid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.aid-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  box-shadow: var(--shadow-sm);
}
.aid-card--feature {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.aid-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--azure-text);
  background: rgba(30, 110, 142, 0.09);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.aid-card--feature .aid-card__badge { color: var(--gold-2); background: rgba(255, 255, 255, 0.14); }
.aid-card__name {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure-text);
  font-weight: 600;
}
.aid-card--feature .aid-card__name { color: var(--gold-2); }
.aid-card__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  color: var(--ink-2);
  margin: 0.6rem 0 0.9rem;
  line-height: 1;
}
.aid-card--feature .aid-card__price { color: #fff; }
.aid-card__note { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.aid-card--feature .aid-card__note { color: rgba(255, 255, 255, 0.78); }
.aid__foot {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}


/* ==========================================================================
   12b. ROADMAP / DEADLINES
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.roadmap-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--azure);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.roadmap-step--final {
  background: var(--deep);
  border-color: var(--deep);
  border-top: 3px solid var(--gold);
  color: #fff;
  box-shadow: var(--shadow);
}
.roadmap-step__date {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--azure-text);
  background: rgba(30, 110, 142, 0.09);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.95rem;
}
.roadmap-step--final .roadmap-step__date { color: var(--gold-2); background: rgba(255, 255, 255, 0.14); }
.roadmap-step__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.55rem;
}
.roadmap-step--final .roadmap-step__name { color: #fff; }
.roadmap-step__text { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.roadmap-step--final .roadmap-step__text { color: rgba(255, 255, 255, 0.8); }


/* ==========================================================================
   13. APPLICATIONS
   ========================================================================== */
.apply {
  position: relative;
  background:
    radial-gradient(120% 100% at 20% 0%, #11475c 0%, rgba(17, 71, 92, 0) 55%),
    linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #fff;
  padding-block: clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}
.apply__pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a24b' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='32'/%3E%3Ccircle cx='64' cy='0' r='32'/%3E%3Ccircle cx='0' cy='64' r='32'/%3E%3Ccircle cx='64' cy='64' r='32'/%3E%3Ccircle cx='32' cy='32' r='32'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}
.apply__inner { position: relative; max-width: 720px; text-align: center; margin-inline: auto; }
.apply__inner .eyebrow { justify-content: center; }
.apply__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.apply__lede {
  margin: 1.15rem auto 2.4rem;
  font-size: var(--fs-lede);
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
}
.apply__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.apply__hint {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}


/* ==========================================================================
   14. FAQ ACCORDION
   ========================================================================== */
.faq__list {
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--azure-text); }

/* Plus/minus icon */
.faq__icon {
  flex: none;
  position: relative;
  width: 18px; height: 18px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }

.faq__a { overflow: hidden; }  /* max-height animated by JS */
.faq__a p {
  padding: 0 0.25rem 1.6rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 70ch;
}


/* ==========================================================================
   15. CONTACT
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
.contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact__value {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--ink-2);
}
a.contact__value:hover { color: var(--azure-text); }


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer { background: var(--deep-2); color: rgba(255, 255, 255, 0.7); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
.footer__seal { width: 44px; height: 44px; color: var(--gold-2); margin-bottom: 1rem; }
.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}
.footer__tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-top: 0.3rem;
}
.footer__blurb {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  max-width: 34ch;
  line-height: 1.7;
}
.footer__heading {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.footer__col a:hover { color: var(--gold-2); text-decoration: none; }
.footer__place { margin-top: 1.1rem; font-size: 0.9rem; }

.footer__bar { border-top: 1px solid var(--line-dark); }
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer__credit { font-family: var(--font-display); font-style: italic; }


/* ==========================================================================
   17. BACK-TO-TOP BUTTON
   ========================================================================== */
.to-top {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  border: 1px solid var(--line-dark);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--azure-deep); }


/* ==========================================================================
   18. MOTION / REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .track:hover, .member:hover, .country:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */

/* ---- Large tablet / small laptop ---- */
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  /* Nav: hide desktop links + CTA, show hamburger */
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }

  /* Model: stack into 2 columns, hide inline arrows */
  .model { flex-wrap: wrap; }
  .model__phase { flex: 1 1 calc(50% - 0.5rem); }
  .model__arrow { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .img-ph--wide { aspect-ratio: 16 / 9; max-height: 360px; width: 100%; }

  .countries { grid-template-columns: repeat(3, 1fr); }

  .features { grid-template-columns: repeat(2, 1fr); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .stat:not(:last-child)::after { display: none; }

  .team-grid { grid-template-columns: repeat(3, 1fr); }

  .cost-grid { grid-template-columns: 1fr; max-width: 460px; }

  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }

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

/* ---- Mobile ---- */
@media (max-width: 620px) {
  body { font-size: 1rem; }

  .hero__event { gap: 1.25rem 1.75rem; }
  .countdown { gap: 0.9rem; }
  .countdown__unit { min-width: 2.6rem; }
  .hero__actions .btn { flex: 1 1 100%; }

  .model__phase { flex: 1 1 100%; }

  .countries { grid-template-columns: repeat(2, 1fr); }
  .country:last-child:nth-child(odd) { grid-column: 1 / -1; }

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

  .stats__grid { gap: 2rem 1rem; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .aid-grid { grid-template-columns: 1fr; max-width: 460px; }
  .roadmap-grid { grid-template-columns: 1fr; max-width: 460px; }

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

  .apply__actions .btn { flex: 1 1 100%; }
}

/* ---- Small mobile ---- */
@media (max-width: 400px) {
  .countdown__num { font-size: 1.55rem; }
  .countdown { gap: 0.7rem; }
  .brand__name { font-size: 0.98rem; }
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}


