/* ============================================================
   AUL BILIM — Steppe Sunrise design system
   Shared across all pages
   ============================================================ */

:root {
  --primary: #1B4F8A;
  --primary-dark: #143A6E;
  --primary-light: #2D6AB4;
  --accent: #F2A413;
  --accent-deep: #E8820A;
  --accent-soft: #FFD27A;
  --cream: #FBF5E9;
  --cream-deep: #F4E8D2;
  --ink: #21232E;
  --body: #4A4A5E;
  --surface: #FFFFFF;
  --line: rgba(180,140,60,0.18);
  --fh: 'Raleway', sans-serif;
  --fb: 'Inter', sans-serif;
  --nav-h: 96px;
  --scroll-pad: calc(var(--nav-h) + 20px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--scroll-pad); }
body {
  font-family: var(--fb);
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--fh); color: var(--ink); line-height: 1.08; font-weight: 800; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  font-family: var(--fh);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 100px;
  transition: transform .18s;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Language toggle visibility ---------- */
html[data-lang="ru"] [lang="kk"] { display: none; }
html[data-lang="kk"] [lang="ru"] { display: none; }

/* grain */
.grain { position: fixed; inset: 0; pointer-events: none; opacity: 0.4; z-index: 1;
  background-image: radial-gradient(circle at 1px 1px, rgba(180,140,60,0.10) 1px, transparent 0);
  background-size: 22px 22px; }

/* ---------- NAV ---------- */
nav.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,245,233,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180,140,60,0.16);
  overflow: visible;
}
.bar-in { display: flex; align-items: stretch; justify-content: space-between; height: var(--nav-h); gap: 20px; overflow: visible; }
.logo { font-family: var(--fh); font-weight: 900; font-size: 21px; color: var(--primary); letter-spacing: -0.02em; display: flex; align-items: center; gap: 11px; flex: none; align-self: center; text-decoration: none; }
.logo--wordmark { gap: 0; min-width: 0; }
.logo-wordmark {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(360px, 58vw);
  object-fit: contain;
  object-position: left center;
}
.logo .sun { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--accent-soft), var(--accent) 70%); box-shadow: 0 0 0 4px rgba(242,164,19,0.18); flex: none; }
.logo-name { white-space: nowrap; letter-spacing: -0.03em; }
.logo-mark { color: var(--accent-deep); }
.nav-links { display: flex; align-items: flex-end; gap: 16px; flex: 1; justify-content: center; min-width: 0; height: 100%; }
.nav-links a,
.nav-dropdown-toggle {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--body);
  transition: color .2s, border-color .2s;
  position: relative;
  white-space: nowrap;
  padding: 0 0 18px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  cursor: pointer;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
@media (min-width: 1200px) {
  .nav-links { gap: 22px; }
  .nav-links a,
  .nav-dropdown-toggle { font-size: 14px; }
  .logo { font-size: 22px; gap: 12px; }
  .logo-wordmark { height: 80px; max-width: min(400px, 52vw); }
  .logo .sun { width: 32px; height: 32px; }
}
@media (min-width: 1400px) {
  .nav-links a,
  .nav-dropdown-toggle { font-size: 15px; }
}
.nav-links a:hover,
.nav-dropdown-toggle:hover { color: var(--primary); }
.nav-links a.active,
.nav-dropdown.active .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--primary);
}
.nav-links a.active,
.nav-dropdown.active .nav-dropdown-toggle {
  border-bottom-color: var(--accent);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-block;
}
.nav-dropdown-toggle svg {
  display: inline-block;
  vertical-align: middle;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  margin-bottom: 2px;
  transition: transform .2s;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(27,79,138,0.28);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s, visibility .18s;
  z-index: 60;
}
.nav-dropdown-menu a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  border-bottom: none;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(27,79,138,0.06);
  color: var(--primary);
}
@media (min-width: 721px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown:hover .nav-dropdown-toggle svg,
  .nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }
}
@media (max-width: 720px) {
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0 14px;
    font-size: 17px;
  }
  .nav-dropdown-toggle svg {
    margin-left: 0;
    margin-bottom: 0;
    flex: none;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 4px 14px;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu a {
    padding: 8px 0 10px;
    font-size: 15px;
    width: 100%;
  }
}

.nav-right { display: flex; align-items: center; gap: 18px; flex: none; align-self: center; }

/* language switch */
.lang-switch { display: inline-flex; align-items: center; background: rgba(27,79,138,0.07); border: 1px solid rgba(27,79,138,0.14); border-radius: 100px; padding: 3px; }
.lang-switch button {
  font-family: var(--fh); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em;
  border: none; background: transparent; color: var(--body); cursor: pointer;
  padding: 6px 12px; border-radius: 100px; transition: background .18s, color .18s;
}
.lang-switch button.on { background: var(--primary); color: #fff; }

.pill {
  font-family: var(--fh); font-weight: 700; font-size: 15px;
  background: var(--primary); color: #fff; padding: 12px 24px; border-radius: 100px;
  transition: transform .18s, background .18s; display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; border: none;
}
.pill:hover { background: var(--primary-dark); transform: translateY(-2px); }
.pill.sun { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(242,164,19,0.6); }
.pill.sun:hover { background: var(--accent-deep); color:#fff; }
.pill.ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px rgba(27,79,138,0.25); }
.pill.ghost:hover { background: rgba(27,79,138,0.06); color: var(--primary-dark); }

.menu-btn { display: none; border: none; background: transparent; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- buttons / links ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.text-link { font-family: var(--fh); font-weight: 700; color: var(--primary); font-size: 15px; padding: 12px 8px; display: inline-flex; gap: 6px; align-items: center; transition: gap .2s; }
.text-link:hover { gap: 11px; }

/* ---------- generic section ---------- */
section.block { position: relative; z-index: 2; padding: 72px 0; }
.head { max-width: 640px; margin-bottom: 52px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-family: var(--fh); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); display: inline-block; margin-bottom: 14px; }
.head h2 { font-size: 44px; letter-spacing: -0.02em; margin-bottom: 16px; }
.head p { font-size: 18px; }

/* hand underline mark */
.mark { position: relative; color: var(--primary); white-space: nowrap; }
.mark svg { position: absolute; left: 0; right: 0; bottom: -12px; width: 100%; height: 16px; }

/* ---------- HERO full-bleed (home) ---------- */
.hero-fb {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 96px));
  height: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* image-slot fills entire hero */
.hero-fb image-slot {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
}
.hero-fb image-slot[data-hydrating] { visibility: hidden; }

/* gradient overlay — photo visible top half, deep navy bottom */
.hero-fb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.02) 0%,
      rgba(14,42,82,0.10) 55%,
      rgba(14,42,82,0.68) 82%,
      rgba(10,30,65,0.96) 100%);
}

.hero-fb-content {
  position: relative;
  z-index: 2;
  padding-bottom: 52px;
  max-width: 900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-fb h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(10, 30, 65, 0.55), 0 1px 3px rgba(0, 0, 0, 0.35);
}
.hero-fb h1 .hero-h1-line { display: block; margin-bottom: 0.18em; }
.hero-fb h1 .hero-h1-sub {
  display: block;
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
}
.hero-fb h1 .mark {
  color: var(--accent);
  white-space: nowrap;
  text-shadow: 0 2px 20px rgba(10, 30, 65, 0.7), 0 0 28px rgba(242, 164, 19, 0.22);
}
.hero-fb h1 .mark svg path { stroke: var(--accent-deep); stroke-width: 7; }
.hero-fb p.lead {
  font-size: 18px;
  line-height: 1.75;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}
.hero-fb p.lead.lead-second {
  margin-top: 14px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
}
.hero-fb .text-link { color: rgba(255,255,255,0.88); }
.hero-fb .text-link:hover { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--fh); font-weight: 700;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep);
  background: #fff; padding: 8px 16px 8px 12px; border-radius: 100px;
  box-shadow: 0 6px 18px -8px rgba(180,120,20,0.4); margin-bottom: 26px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* white eyebrow variant for dark backgrounds */
.eyebrow-dark {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  box-shadow: none;
}
.eyebrow-dark .dot { background: var(--accent-soft); }

/* ---------- STAT STRIP ---------- */
.stat-strip {
  background: var(--primary-dark);
  position: relative; z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-strip-in {
  display: flex; align-items: stretch;
}
.stat-strip-in .ss {
  flex: 1; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-strip-in .ss:last-child { border-right: none; }
.stat-strip-in .ss .n {
  font-family: var(--fh); font-weight: 900; font-size: 34px;
  color: var(--accent-soft); line-height: 1;
}
.stat-strip-in .ss .l {
  font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.3;
}
.stat-strip--head {
  flex: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
  border-bottom: none;
}
.stat-strip--head .stat-strip-in {
  height: 100%;
  width: 100%;
}
.stat-strip--head .stat-strip-in .ss {
  padding: 22px 24px;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.stat-strip--head .stat-strip-in .ss .n {
  font-size: 28px;
}

.map-head-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.map-head-intro {
  flex: 0 0 auto;
  max-width: 360px;
  padding: 22px 28px;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
}
.map-head-intro .kicker {
  display: block;
  margin: 0;
  color: var(--accent-soft);
}
.map-head-intro .map-head-lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.page-hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 620px; height: 620px; border-radius: 50%;
  top: -340px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 70%, var(--accent-soft) 0%, rgba(255,210,122,0.45) 40%, rgba(255,210,122,0) 70%);
}
.page-hero .inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero.center .inner { margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: 56px; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 20px; }
.page-hero p { font-size: 19px; max-width: 56ch; }
.page-hero.center p { margin-left: auto; margin-right: auto; }
.crumbs { font-family: var(--fh); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.crumbs .center & { justify-content: center; }
.page-hero.center .crumbs { justify-content: center; }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--primary); color: #fff; padding: 16px 0; overflow: hidden; white-space: nowrap; position: relative; z-index: 2; }
.marquee-track { display: inline-flex; gap: 40px; animation: scroll 28s linear infinite; font-family: var(--fh); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "✺"; color: var(--accent-soft); }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- PARTNERS ---------- */
.partners { padding: 54px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.partners .lab { text-align: center; font-family: var(--fh); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--body); opacity: 0.7; margin-bottom: 28px; }
.partners .strip { display: flex; justify-content: center; }
.partners .strip img { width: 100%; max-width: 820px; opacity: 0.92; }

/* ---------- PROGRAM CARDS (home) ---------- */
.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prog {
  background: var(--surface); border-radius: 28px; padding: 34px 30px 32px; position: relative; overflow: hidden;
  box-shadow: 0 14px 40px -22px rgba(27,79,138,0.35); transition: transform .22s, box-shadow .22s; display: flex; flex-direction: column;
}
.prog:hover { transform: translateY(-6px); box-shadow: 0 26px 56px -24px rgba(27,79,138,0.45); }
.prog .ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px; }
.prog .ic svg { width: 32px; height: 32px; }
.prog.c1 .ic { background: linear-gradient(135deg, #FFE6AE, var(--accent-soft)); color: var(--accent-deep); }
.prog.c2 .ic { background: linear-gradient(135deg, #CFE2F7, #9CC2EC); color: var(--primary); }
.prog.c3 .ic { background: linear-gradient(135deg, #FBD7B0, #F4B06A); color: #B5560C; }
.prog h3 { font-size: 23px; margin-bottom: 12px; }
.prog p { font-size: 15.5px; flex: 1; }
.prog .more { font-family: var(--fh); font-weight: 700; color: var(--primary); margin-top: 22px; display: inline-flex; gap: 7px; transition: gap .2s; }
.prog:hover .more { gap: 12px; }
.prog .corner { position: absolute; right: -30px; top: -30px; width: 96px; height: 96px; border-radius: 50%; opacity: 0.5; }
.prog.c1 .corner { background: var(--accent-soft); }
.prog.c2 .corner { background: #CFE2F7; }
.prog.c3 .corner { background: #FBD7B0; }

/* ---------- WHY band ---------- */
.why { background: linear-gradient(135deg, var(--primary-dark), var(--primary) 55%, var(--primary-light)); border-radius: 40px; padding: 48px 56px; position: relative; overflow: hidden; color: #fff; }
.why::before { content:""; position:absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; bottom: -180px; background: radial-gradient(circle, rgba(242,164,19,0.45), transparent 65%); }

/* why — horizontal step strip (reuses dir-cycle) */
.why-flow { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.why-flow-label {
  font-family: var(--fh); font-weight: 900; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 22px; color: rgba(255,255,255,0.88);
}
.why-flow-label .hl { color: var(--accent-soft); }
.why .dir-cycle { justify-content: center; gap: 10px; }
.why .dir-cycle-step {
  flex: 1 1 140px;
  max-width: 168px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: none;
}
.why .dir-cycle-step > span { color: #fff; }
.why .dir-cycle-ic { background: rgba(255,255,255,0.18); color: var(--accent-soft); }
.why .dir-cycle-arrow { color: var(--accent-soft); }
.why-flow-note {
  margin: 18px auto 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  font-style: italic;
}

/* ---------- REGIONS / MAP ---------- */
.map-block { position: relative; z-index: 2; padding: 56px 0 92px; scroll-margin-top: var(--scroll-pad); }
.map-section-head { margin-bottom: 32px; }
.map-card { position: relative; background: #fff; border-radius: 40px; padding: 0; overflow: hidden; box-shadow: 0 24px 60px -34px rgba(27,79,138,0.4); }
.map-grid { display: grid; grid-template-columns: 1fr; position: relative; }
.map-wrap { position: relative; order: 1; }
.map-wrap img { width: 100%; display: block; }
/* ---------- INTERACTIVE MAP ---------- */
.map-col {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 4;
  max-width: min(340px, calc(100% - 52px));
  background: transparent;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}
.map-intro.map-hint {
  position: relative;
  left: auto;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 100px;
  padding: 8px 15px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--primary);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
  transition: opacity .3s;
}
.map-stage { position: relative; overflow: hidden; border-radius: 0; contain: layout paint; isolation: isolate; }
.map-pan { position: relative; transform-origin: 0 0; transition: transform .72s cubic-bezier(.16,.84,.34,1); backface-visibility: hidden; width: 100%; aspect-ratio: 1000 / 549; }
.map-stage.is-animating .map-pan { will-change: transform; }
.map-pan img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; pointer-events: none; }
.map-hot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: manipulation; }
.map-hot .map-region { fill: #e7e3dd; stroke: rgba(255,255,255,0.92); stroke-width: 1.35; vector-effect: non-scaling-stroke; transition: fill .18s; }
.map-hot .map-region.active { fill: #d99034; cursor: pointer; }
.map-hot .map-region.active:hover,
.map-hot .map-region.active:focus-visible { fill: #e49b3d; }
.map-hot .map-region.sel { fill: #d99034; }
.map-hot .map-label { fill: rgba(32,35,46,0.78); stroke: rgba(255,255,255,0.78); stroke-width: 3; paint-order: stroke; font-family: var(--fh); font-weight: 900; font-size: 18px; text-anchor: middle; dominant-baseline: middle; pointer-events: none; user-select: none; }
.map-hot .map-label.active { fill: #fff; stroke: rgba(124,76,20,0.72); stroke-width: 4; cursor: pointer; pointer-events: auto; transition: fill .18s, stroke .18s; }
.map-hot .map-label.active:hover,
.map-hot .map-label.active:focus-visible { fill: #fff8df; stroke: rgba(255,188,67,0.95); }
.map-stage.is-animating .map-hot .map-region { transition: none; }
.map-stage.is-animating .map-hot .map-label { pointer-events: none; }
.map-hot .pulse { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; animation: none; }
.map-hot .pulse.hovered { animation: mappulse 1.6s ease-out infinite; }
.map-hot .pulse.pulse2.hovered { animation-delay: 0.65s; }
@keyframes mappulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(3.5); opacity: 0; } 100% { opacity: 0; } }
.map-stage.zoomed .map-hot .pulse { opacity: 0; pointer-events: none; }
.map-stage.zoomed .map-hot .map-region.active:not(.sel) { pointer-events: none; }

.map-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-family: var(--fh); font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 8px; transform: translate(-50%, -135%); opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 6; }
.map-tip.show { opacity: 1; }
.map-tip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }

.map-hint .dotpulse,
.map-intro.map-hint .dotpulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(242,164,19,.6); animation: hintpulse 2s infinite; flex: none; }
@keyframes hintpulse { 0% { box-shadow: 0 0 0 0 rgba(242,164,19,.55); } 70% { box-shadow: 0 0 0 8px rgba(242,164,19,0); } 100% { box-shadow: 0 0 0 0 rgba(242,164,19,0); } }
.map-stage.zoomed .map-intro.map-hint { opacity: 0; pointer-events: none; }

/* region detail panel */
.region-panel { display: none; }
.region-panel.show { display: block; }
.map-col.region-open {
  max-width: 280px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 12px 16px;
  box-shadow: 0 8px 28px -10px rgba(27,79,138,0.22);
}
.map-intro.hide { display: none; }
.region-back { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--primary); font-family: var(--fh); font-weight: 800; font-size: 12px; padding: 0; margin-bottom: 8px; cursor: pointer; transition: color .15s; }
.region-back:hover { color: var(--accent-deep); }
.region-head h3 { font-family: var(--fh); font-weight: 900; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; margin: 0 0 10px; }
.region-schools-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left;
  font-family: var(--fh); font-weight: 800; font-size: 12.5px; line-height: 1.25;
  color: #fff; background: var(--accent-deep);
  border: none; border-radius: 14px;
  padding: 11px 13px; cursor: pointer;
  transition: background .15s, transform .15s;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px -10px rgba(196,98,12,0.55);
}
.region-schools-cta-card:hover { background: var(--accent); color: var(--ink); transform: translateY(-1px); }
.region-schools-cta-card .cta-text { flex: 1; min-width: 0; }
.region-schools-cta-card .cta-arrow { flex: none; font-size: 16px; line-height: 1; opacity: 0.9; }
.district-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: min(42vh, 360px); overflow-y: auto;
  padding-right: 4px;
}
.district { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
button.district {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
button.district:hover {
  background: #fff;
  border-color: rgba(27,79,138,0.22);
  transform: translateY(-1px);
}
button.district:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.district .dn { font-family: var(--fh); font-weight: 700; font-size: 12.5px; color: var(--ink); line-height: 1.2; }
.district .dc { font-family: var(--fh); font-weight: 800; font-size: 10px; color: var(--primary); background: #fff; border-radius: 100px; padding: 2px 8px; flex: none; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .region-panel.show .district { animation: dfade .45s ease both; }
}
@keyframes dfade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* region schools view (View C) — full-screen overlay, no scroll to homepage */
body.map-schools-open { overflow: hidden; }
body.map-schools-open .region-schools-block {
  position: fixed;
  inset: var(--nav-h, 96px) 0 0;
  z-index: 4;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  padding: 0 0 92px;
}
.region-schools-block { padding: 48px 0 92px; }
.region-schools-block[hidden] { display: none !important; }
.map-block[hidden] { display: none !important; }
.region-schools-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 12px 0;
  background: linear-gradient(to bottom, var(--cream) 70%, rgba(251,245,233,0));
}
.region-schools-back {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; color: var(--primary);
  font-family: var(--fh); font-weight: 800; font-size: 14px;
  padding: 0; cursor: pointer;
}
.region-schools-back:hover { color: var(--accent-deep); }
.region-schools-title {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}
.region-schools-title .hl { color: var(--primary); }
.region-schools-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 36px -24px rgba(27,79,138,0.28);
}
.region-schools-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.region-schools-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.region-schools-search {
  width: 100%;
  min-height: 46px;
  padding: 11px 42px 11px 42px;
  border: 1.5px solid rgba(27,79,138,0.12);
  border-radius: 12px;
  background: var(--cream);
  font: 15px/1.4 var(--fb);
  color: var(--ink);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.region-schools-search:hover {
  border-color: rgba(27,79,138,0.22);
  background: #fff;
}
.region-schools-search:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(242,164,19,0.18);
}
.region-schools-search::-webkit-search-cancel-button {
  cursor: pointer;
}
.region-schools-search-count {
  flex: none;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--primary);
  background: rgba(27,79,138,0.08);
  border-radius: 100px;
  padding: 8px 12px;
  white-space: nowrap;
  line-height: 1;
}
.region-schools-search-count[hidden] {
  display: none !important;
}
.schools-search-empty {
  text-align: center;
  padding: 32px 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--body);
  font-size: 15px;
}
.school-card.is-filtered-out,
.schools-district-group.is-filtered-out {
  display: none !important;
}
.region-schools-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 16px 48px -28px rgba(27,79,138,0.28);
  margin-bottom: 48px;
}
.region-schools-hero--chips {
  padding: 24px 28px;
  margin-bottom: 20px;
}
.region-schools-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.region-schools-stats-bar .rss-cell {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -18px rgba(27,79,138,0.22);
}
.region-chip-list {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.region-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.region-chip:hover {
  border-color: rgba(27,79,138,0.35);
  transform: translateY(-1px);
}
.region-chip.is-active {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(27,79,138,0.12);
}
.district-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.region-chip-name {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.2;
  min-width: 0;
  flex: 1;
}
.region-chip-count {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 10px;
  color: var(--primary);
  background: #fff;
  border-radius: 100px;
  padding: 2px 8px;
  flex: none;
  white-space: nowrap;
}
.region-chip.is-active .region-chip-count {
  background: var(--cream);
}
@media (prefers-reduced-motion: no-preference) {
  .region-chip { animation: dfade .45s ease both; }
}
.region-schools-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.region-schools-stats .stat-wide { grid-column: 1 / -1; }
.rss-cell {
  background: var(--cream);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.rss-cell .n {
  font-family: var(--fh); font-weight: 900; font-size: 32px;
  color: var(--primary); line-height: 1; margin-bottom: 6px;
}
.rss-cell .l {
  font-family: var(--fh); font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--body);
}
.schools-district-group + .schools-district-group { margin-top: 40px; }
.schools-district-group { scroll-margin-top: 96px; }
.schools-district-head {
  font-family: var(--fh);
  font-size: clamp(17px, 2.2vw, 20px);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cream-deep);
}
.schools-district-count { font-weight: 600; color: var(--body); font-size: 14px; }
.schools-grid-head {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.school-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px -24px rgba(27,79,138,0.28);
  display: flex; flex-direction: column;
}
.school-card.is-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.school-card-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  flex: none;
  overflow: hidden;
  background: var(--cream-deep);
}
.school-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.school-card-photo--empty {
  background: linear-gradient(160deg, #3d6fa8 0%, #1b4f8a 50%, #143a6e 100%);
}
.school-card-photo--empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/school-hero-placeholder.svg') center / cover no-repeat;
  opacity: 0.9;
}
.school-card.is-clickable:hover,
.school-card.is-clickable:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -22px rgba(27,79,138,0.34);
  border-color: rgba(27,79,138,0.22);
  outline: none;
}
.school-card-gallery { background: var(--cream-deep); }
.school-card-gallery-main {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.school-card-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.school-card-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.school-card-gallery-thumb {
  flex: none;
  width: 56px;
  height: 42px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  opacity: 0.72;
  transition: opacity .18s, border-color .18s;
}
.school-card-gallery-thumb.is-active,
.school-card-gallery-thumb:hover {
  opacity: 1;
  border-color: var(--primary);
}
.school-card-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.school-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.school-card-loc {
  font-family: var(--fh); font-weight: 700; font-size: 12.5px;
  color: var(--primary); margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.school-card-body h4 { font-size: 16px; line-height: 1.25; margin-bottom: 10px; flex: 1; }
.school-card-desc { font-size: 13.5px; line-height: 1.55; flex: 1; margin-bottom: 14px; white-space: pre-line; }
.school-card-video { margin-bottom: 14px; }
.school-card-video-label {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 8px;
}
.school-card-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.school-card-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.school-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.school-card-foot:has(.school-card-teachers) { justify-content: space-between; }
.school-card-teachers {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fh); font-weight: 700; font-size: 12.5px;
  color: var(--primary); background: rgba(27,79,138,0.08);
  border-radius: 100px; padding: 6px 12px;
}
.school-card-link { color: var(--primary); font-size: 18px; line-height: 1; flex: none; }

/* ============ School detail page ============ */
.school-hero-panel {
  padding: 28px 0 72px;
}
.school-page-nav { margin-bottom: 28px; }
.school-page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}
.school-page-back:hover { text-decoration: underline; }

.school-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  align-items: start;
}
.school-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.school-hero-media-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.school-map-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3.5%, 22px);
}
.school-map-card--fallback-photo {
  padding: 0;
  background: var(--cream-deep);
}
.school-map-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  z-index: 2;
}
.school-map-card--fallback-photo .school-map-photo {
  position: absolute;
  inset: 0;
  flex: none;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.school-map-photo[hidden] {
  display: none !important;
}
.school-map-card--photo .school-map-placeholder {
  display: none !important;
}
.school-map-placeholder {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #3d6fa8 0%, #1b4f8a 45%, #143a6e 100%);
  border-radius: 12px;
  pointer-events: none;
}
.school-map-placeholder img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0.85;
}

.school-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.school-page-region {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.school-hero-meta h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.school-hero-loc {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--body);
}
.school-page-desc {
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  color: var(--body);
  white-space: pre-line;
}
.school-page-teachers {
  margin: 4px 0 0;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.school-media-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.school-media-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--line);
}
.school-media-card .school-carousel-col {
  position: absolute;
  inset: 0;
  display: block;
}
.school-media-card .school-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
}
.school-media-card .school-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
}

.school-carousel-track {
  position: absolute;
  inset: 0;
}
.school-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.school-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.school-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--cream-deep);
}
.school-carousel-slide--placeholder img {
  object-fit: cover;
  background: linear-gradient(160deg, #3d6fa8 0%, #1b4f8a 45%, #143a6e 100%);
}
.school-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.school-carousel-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.school-carousel-arrow:hover {
  background: rgba(27,79,138,0.08);
  border-color: rgba(27,79,138,0.28);
}
.school-carousel-arrow:active { transform: scale(0.96); }

.school-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.school-video-frame.is-placeholder {
  background: linear-gradient(135deg, #1a2740, #0f1724);
}
.school-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: 24px;
}
.school-video-placeholder svg { opacity: 0.55; }
.school-video-placeholder p {
  margin: 0;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.school-yt-slot {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.school-yt-bar {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  margin-top: -1px;
}
.school-yt-bar[hidden] { display: none !important; }
.school-yt-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}
.school-yt-slot:has(.school-yt-bar:not([hidden])) .school-media-card {
  border-radius: 14px 14px 0 0;
}

.school-page-empty {
  padding: 96px 0 120px;
  text-align: center;
}
.school-page-empty h1 { margin-bottom: 12px; }
.school-page-empty p { margin-bottom: 24px; color: var(--body); }

@media (max-width: 900px) {
  .school-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.schools-loading {
  text-align: center;
  padding: 48px 24px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 15px;
  color: var(--body);
}
.schools-empty {
  text-align: center; padding: 48px 24px;
  background: var(--cream); border-radius: 20px;
  border: 1px dashed var(--line);
  font-size: 16px; color: var(--body);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .map-hot .pulse,
  .map-hint .dotpulse,
  .map-intro.map-hint .dotpulse {
    animation: none !important;
  }
}

/* ---------- STORIES ---------- */
.stories { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.story { background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 14px 40px -24px rgba(27,79,138,0.35); transition: transform .22s; display: flex; flex-direction: column; }
.story:hover { transform: translateY(-5px); }
.story .ph { aspect-ratio: 16/11; position: relative; }
.ph-blue { background: linear-gradient(150deg, #2D6AB4, #1B4F8A); }
.ph-gold { background: linear-gradient(150deg, #F4B06A, #E8820A); }
.ph-deep { background: linear-gradient(150deg, #2D6AB4, #143A6E); }
.ph-soft { background: linear-gradient(150deg, #FFD27A, #F2A413); }
.story .ph .rg { position: absolute; left: 16px; top: 16px; background: rgba(255,255,255,0.92); color: var(--accent-deep); font-family: var(--fh); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; }
.story .ph .ph-tag { position: absolute; right: 14px; bottom: 12px; font-family: 'Courier New', monospace; font-size: 10.5px; color: rgba(255,255,255,0.82); letter-spacing: 0.04em; }
.story .tx { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.story .tx h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.25; }
.story .tx p { font-size: 14.5px; flex: 1; }
.story .tx .more { font-family: var(--fh); font-weight: 700; color: var(--primary); margin-top: 18px; font-size: 14px; display: inline-flex; gap: 6px; }

/* placeholder photo blocks (striped) */
.imgph { position: relative; border-radius: 24px; overflow: hidden; background:
  repeating-linear-gradient(135deg, rgba(27,79,138,0.06) 0 14px, rgba(27,79,138,0.11) 14px 28px), var(--cream-deep); }
.imgph .tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: 'Courier New', monospace; font-size: 12.5px; color: var(--primary); background: rgba(255,255,255,0.86); padding: 7px 14px; border-radius: 100px; white-space: nowrap; letter-spacing: 0.02em; }

/* ---------- DIRECTIONS (home programs cards) ---------- */
.directions { padding-top: 56px; scroll-margin-top: var(--scroll-pad); }

.dir-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 32px;
}
.dir-head h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.dir-head-aside {
  max-width: 380px;
  text-align: right;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--body);
}

.dir-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dir-card {
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 40px -24px rgba(27,79,138,0.35);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.dir-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px -22px rgba(27,79,138,0.42);
}
.dir-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.dir-card-photo {
  position: relative;
  aspect-ratio: 350 / 236;
  overflow: hidden;
  background: var(--cream-deep);
}
.dir-card-photo > image-slot,
.dir-card-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.22) contrast(1.05);
  transition: filter .22s ease;
}
.dir-card:hover .dir-card-photo > image-slot,
.dir-card:hover .dir-card-photo > img {
  filter: saturate(1.3) contrast(1.07);
}
.dir-card-photo > img { display: block; }

.dir-card-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  background: rgba(255,255,255,0.92);
  color: var(--accent-deep);
  font-family: var(--fh);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}

.dir-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dir-card-body h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.dir-card-body p {
  font-size: 15.5px;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
}

/* Homepage project stages — numbered cards */
#stages .dir-cards--stages {
  gap: 32px;
}

#stages .dir-card--stage {
  border: 1px solid rgba(27, 79, 138, 0.08);
}

#stages .dir-card--stage:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px -24px rgba(27, 79, 138, 0.45);
}

#stages .dir-card-stage-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--accent-deep);
  font-family: var(--fh);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 16px -6px rgba(27, 79, 138, 0.28);
}

#stages .dir-card--stage .dir-card-body {
  padding: 26px 28px 30px;
  border-top: 3px solid rgba(27, 79, 138, 0.06);
  transition: border-color 0.22s ease;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#stages .dir-card--stage:hover .dir-card-body {
  border-top-color: var(--accent);
}

#stages .dir-card--stage .dir-card-body h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--primary);
  letter-spacing: -0.025em;
}

#stages .dir-card--stage .dir-card-body p {
  font-size: 15px;
  color: var(--body);
}

#stages .dir-card--stage[data-stage="1"] .dir-card-stage-badge {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 210, 122, 0.35));
}

#stages .dir-card--stage[data-stage="2"] .dir-card-stage-badge {
  color: var(--accent-deep);
}

#stages .dir-card--stage[data-stage="3"] .dir-card-stage-badge {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(45, 106, 180, 0.12));
}

/* program detail pages (programs.html + dedicated pages) */
.prog-detail-page { scroll-margin-top: 90px; }

.programs-view[hidden] { display: none !important; }

.prog-page { padding-top: 0; }
#main-content.prog-page {
  display: flex;
  flex-direction: column;
}
#main-content.prog-page .programs-view.prog-page:not([hidden]) { order: 0; }
#main-content.prog-page #programs-hub { display: none; }
#main-content.prog-page #programs-cards { display: none; }

.prog-page-hero {
  position: relative;
  min-height: min(78vh, 680px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.prog-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,58,110,0.2) 0%, rgba(20,58,110,0.88) 100%);
  z-index: 1;
}
.prog-page-hero > .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 72px;
}
.prog-page-hero-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.crumbs-light {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.crumbs-light a { color: rgba(255,255,255,0.92); }
.crumbs-light a:hover { color: var(--accent-soft); }

.prog-page-content {
  padding-top: 0;
  padding-bottom: 72px;
}
.prog-page-content .dir-panel-body {
  padding: 48px 0 0;
  background: transparent;
}

.dir-panel {
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 56px -28px rgba(27,79,138,0.38);
  border: 1px solid var(--line);
}

.dir-panel-hero-in h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.08;
}
.dir-panel-hero-in h2 .hl,
.dir-panel-hero-in h3 .hl { color: var(--accent-soft); }
.dir-feat h4 { font-size: 18px; margin-bottom: 10px; line-height: 1.2; }
.dir-results h3 {
  position: relative;
  font-size: 26px;
  color: #fff;
  margin-bottom: 12px;
}

.dir-panel-hero {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.dir-panel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,58,110,0.25) 0%, rgba(20,58,110,0.88) 100%);
}
.prog-hero-grid {
  max-width: 720px;
}
@media (max-width: 1100px) {
  .prog-page-hero .prog-hero-grid .dir-panel-hero-in h2 {
    white-space: normal;
    font-size: clamp(26px, 4.2vw, 40px);
  }
}
.prog-page-hero .prog-hero-grid .dir-panel-hero-in h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  white-space: nowrap;
  margin-bottom: 18px;
}
.prog-page-hero .prog-hero-grid .dir-panel-hero-in p {
  max-width: 52ch;
  margin-bottom: 0;
}
.prog-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, max-content));
  gap: clamp(32px, 6vw, 64px);
  margin-top: 28px;
}
.prog-hero-stat { text-align: left; }
.prog-hero-stat .n {
  font-family: var(--fh);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--accent-soft);
  letter-spacing: -0.02em;
}
.prog-hero-stat .l {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}
.dir-panel-hero-in {
  position: relative;
  z-index: 1;
  padding: 36px 40px 40px;
  max-width: 640px;
  color: #fff;
}
.prog-page-hero .prog-hero-grid .dir-panel-hero-in {
  max-width: none;
  padding: 0;
}
.ustaz-hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.ustaz-program-intro {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  background: linear-gradient(145deg, var(--cream) 0%, #fff 62%, rgba(255,210,122,.16) 100%);
}
.ustaz-program-intro::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -180px;
  bottom: -220px;
  border-radius: 50%;
  background: rgba(45,106,180,.07);
  pointer-events: none;
}
.ustaz-program-intro .wrap { position: relative; z-index: 1; }
.fitout-program-intro {
  padding-top: clamp(52px, 6vw, 76px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.ustaz-hero-carousel {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid rgba(27,79,138,.1);
  box-shadow: 0 24px 64px -32px rgba(27,79,138,.48);
}
.ustaz-hero-carousel .feat-carousel-viewport,
.ustaz-hero-carousel .feat-carousel-track,
.ustaz-hero-carousel .feat-carousel-slide { height: 100%; }
.ustaz-hero-carousel .feat-carousel-viewport { width: 100%; overflow: hidden; }
.ustaz-hero-carousel .feat-carousel-track { width: 100%; }
.ustaz-hero-carousel .feat-carousel-slide { min-width: 100%; max-width: 100%; }
.ustaz-hero-carousel .feat-carousel-viewport,
.ustaz-hero-carousel .feat-carousel-slide,
.ustaz-hero-carousel .feat-carousel-slide img { border-radius: inherit; }
.ustaz-hero-carousel .feat-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.ustaz-hero-carousel.is-single-slide .feat-carousel-arrow,
.ustaz-hero-carousel.is-single-slide .feat-carousel-dots { display: none; }
.ustaz-hero-copy {
  position: static;
  width: 100%;
  padding: 0;
  text-align: center;
}
.ustaz-hero-copy h2 {
  color: var(--primary);
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  white-space: nowrap;
}
.ustaz-hero-copy p {
  color: var(--body);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  max-width: 960px;
  margin: 0 auto;
  text-wrap: pretty;
}
#program-ustaz .prog-page-content {
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--bg);
}
#program-ustaz .prog-page-content .dir-panel-body { padding-top: 0; }
#program-ustaz .prog-slabs { gap: clamp(28px, 4vw, 44px); }
#program-fitout .prog-page-content .dir-panel-body { padding-top: 0; }
#program-samruk .prog-page-content {
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--bg);
}
#program-samruk .prog-page-content .dir-panel-body { padding-top: 0; }
#program-ustaz .prog-slab {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px -36px rgba(27,79,138,.38);
}
.dir-panel-hero-in p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
  max-width: 540px;
}
.prog-hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 13px 24px;
  background: #fff;
  color: var(--primary);
  font-family: var(--fh);
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prog-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  color: var(--primary-dark);
}

.dir-panel-body { padding: 48px 40px 44px; background: var(--cream); }

.dir-sec-head { text-align: center; max-width: min(980px, 100%); margin: 0 auto 36px; }
.dir-sec-title {
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0;
}
.dir-sec-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}
.dir-sec-title.left { text-align: left; }
.dir-sec-title.left::after { margin-left: 0; }
.dir-sec-lead { font-size: 16px; line-height: 1.6; margin-top: 18px; color: var(--body); }
.dir-sec-line { display: block; }
@media (min-width: 860px) {
  .dir-sec-line { white-space: nowrap; }
}
.dir-sec-sub { font-size: 15px; color: var(--body); margin-bottom: 24px; }

#prog-content-samruk .dir-sec-head {
  max-width: min(1040px, 100%);
  margin-bottom: 40px;
}
#prog-content-samruk .dir-sec-lead {
  font-size: 17px;
  line-height: 1.65;
}

/* USTAZ — horizontal slab cards */
.prog-slabs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.prog-slab {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px -32px rgba(27,79,138,0.32), 0 2px 8px rgba(0,0,0,0.06);
}
.prog-slab-side {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}
.prog-slab-side--blue {
  background: linear-gradient(150deg, #143A6E 0%, #1B4F8A 100%);
}
.prog-slab-side--ink {
  background: linear-gradient(150deg, #22243A 0%, #2B2D4A 100%);
}
.prog-slab-side--purple {
  background: linear-gradient(150deg, #2E2450 0%, #4A3570 100%);
}
.prog-slab-title {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 14px;
}
.prog-slab-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.76);
  margin: 0;
}
.prog-slab-body {
  background: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.prog-slab-point {
  padding: 0 0 24px 20px;
  border-left: 3px solid var(--accent-deep);
}
.prog-slab-point + .prog-slab-point {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prog-slab-point:last-child {
  padding-bottom: 0;
}
.prog-slab-point-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 7px;
}
.prog-slab-point p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
}

.prog-slab-body--carousel {
  padding: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.prog-slab:has(.prog-slab-body--carousel) .prog-slab-side {
  min-height: 0;
}
.prog-slab-body--carousel .feat-carousel {
  width: 100%;
  height: auto;
  min-height: 0;
  background: #fff;
}
.prog-slab-body--carousel .feat-carousel-viewport {
  aspect-ratio: 16 / 10;
  height: auto;
  width: 100%;
}

/* Samruk — banner + numbered rows */
.prog-samruk-stack {
  max-width: min(1040px, 100%);
  margin: 0 auto;
}
.prog-samruk-banner {
  background: linear-gradient(135deg, #0E2747 0%, #1B4F8A 60%, #143A6E 100%);
  border-radius: 16px 16px 0 0;
  padding: 34px 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.prog-samruk-banner-kicker {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.prog-samruk-banner-title {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.12;
  color: #fff;
  margin: 0;
}
.prog-samruk-banner-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.74);
  margin: 0;
  max-width: 58ch;
}
.prog-samruk-banner-stat {
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.prog-samruk-banner-stat-n {
  font-family: var(--fh);
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  letter-spacing: -0.04em;
  user-select: none;
}
.prog-samruk-banner-stat-l {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prog-samruk-rows {
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 64px -32px rgba(27,79,138,0.32), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.prog-samruk-row {
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.prog-samruk-row:last-child { border-bottom: none; }
.prog-samruk-row-num {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  font-family: var(--fh);
  font-weight: 900;
  font-size: 34px;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.prog-samruk-row-title {
  padding: 32px 28px 32px 36px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}
.prog-samruk-row-desc {
  padding: 32px 36px 32px 28px;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.prog-samruk-row-desc p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
}

.dir-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}
.dir-feats--pair { grid-template-columns: repeat(2, 1fr); }
.dir-feat--rich h4 { font-size: 18px; margin-bottom: 12px; line-height: 1.3; }
.dir-feat-intro { margin-bottom: 18px; }
.dir-feat-points { display: grid; gap: 14px; }
.dir-feat-point strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.dir-feat-point p { margin: 0; }
.dir-feat {
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px -24px rgba(27,79,138,0.22);
}
.dir-feat-ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.dir-feat-ic svg { width: 24px; height: 24px; }
.dir-feat-ic.tone-sun { background: rgba(242,164,19,0.15); color: var(--accent-deep); }
.dir-feat-ic.tone-blue { background: rgba(27,79,138,0.1); color: var(--primary); }
.dir-feat-ic.tone-green { background: rgba(46,125,80,0.12); color: #2e7d50; }
.dir-feat-ic.tone-purple { background: rgba(107,76,154,0.12); color: #6b4c9a; }
.dir-feat-ic.tone-warm { background: rgba(232,130,10,0.12); color: var(--accent-deep); }
.dir-feat h5 { font-size: 18px; margin-bottom: 10px; line-height: 1.2; }
.dir-feat p { font-size: 14.5px; line-height: 1.55; }

.dir-feat--carousel {
  padding: 0;
  overflow: hidden;
}
.dir-feat--carousel .dir-feat-body {
  padding: 20px 24px 24px;
}
.dir-feat--carousel .dir-feat-ic { margin-bottom: 14px; }

.feat-carousel {
  position: relative;
  background: var(--bg);
}
.feat-carousel-viewport {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.feat-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.feat-carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
}
.feat-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(27, 79, 138, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  z-index: 2;
}
.feat-carousel-arrow svg { width: 18px; height: 18px; }
.feat-carousel:hover .feat-carousel-arrow,
.feat-carousel:focus-within .feat-carousel-arrow { opacity: 1; }
.feat-carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.feat-carousel-prev { left: 10px; }
.feat-carousel-next { right: 10px; }
.feat-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.feat-carousel-dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.feat-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.dir-cycle-block { margin-bottom: 48px; }
.dir-cycle-block .dir-sec-head { margin-bottom: 28px; }
.dir-cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dir-cycle-step {
  flex: 0 1 168px;
  background: var(--surface);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px -20px rgba(27,79,138,0.25);
}
.dir-cycle-ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.dir-cycle-ic svg { width: 24px; height: 24px; }
.dir-cycle-step > span {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.3;
  display: block;
}
.dir-cycle-arrow {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-deep);
  flex: none;
}

.dir-results {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 24px;
  padding: 40px 44px;
  color: #fff;
  text-align: center;
}
.dir-results::before,
.dir-results::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}
.dir-results::before { width: 220px; height: 220px; top: -80px; right: -60px; }
.dir-results::after { width: 180px; height: 180px; bottom: -70px; left: -50px; }
.dir-results h4 {
  position: relative;
  font-size: 26px;
  color: #fff;
  margin-bottom: 12px;
}
.dir-results > p {
  position: relative;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 32px;
}
.dir-results-stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.dir-results-stats .n {
  font-family: var(--fh);
  font-weight: 900;
  font-size: 44px;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 8px;
}
.dir-results-stats .l { font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,0.9); }

/* ---------- PROGRAM DETAIL (programs page) ---------- */
.prog-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prog-row.flip .prog-media { order: 2; }
.prog-media { position: relative; }
.prog-media .media-slot { aspect-ratio: 4 / 3; min-height: 360px; }
.prog-media .imgph { aspect-ratio: 5/4; }
.prog-media.b .imgph { border-radius: 36px 120px 36px 36px; }
.prog-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fh); font-weight: 800; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px; }
.prog-tag .num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; }
.prog-detail h2 { font-size: 38px; letter-spacing: -0.02em; margin-bottom: 18px; }
.prog-detail p { font-size: 17px; margin-bottom: 26px; }
.feat-list { display: grid; gap: 12px; }
.feat-list li { list-style: none; display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.feat-list li .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: none; margin-top: 2px; }
.feat-list li .ck svg { width: 15px; height: 15px; }

/* ---------- ABOUT page ---------- */
.about-mission {
  padding-top: 8px;
  padding-bottom: 16px;
}
.about-mission-in {
  max-width: min(960px, 100%);
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(27, 79, 138, 0.1);
  border-radius: 20px;
  padding: clamp(18px, 2.5vw, 26px) clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 40px -28px rgba(27, 79, 138, 0.2);
}
.about-mission-title {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.about-mission-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-soft));
  margin: 10px auto 0;
}
.about-mission-goals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px 28px;
  text-align: left;
  max-width: 52em;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .about-mission-goals {
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
  }
}
.about-mission-goal {
  position: relative;
  padding-left: 14px;
  border-left: 3px solid var(--accent-soft);
}
.about-mission-goal-title {
  display: block;
  font-family: var(--fh);
  font-size: clamp(15px, 1.6vw, 16px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.about-mission-goal-text {
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--body);
  margin: 0;
}

.about-coop {
  padding-top: 0;
  padding-bottom: 48px;
}
.coop-interactive {
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(27, 79, 138, 0.05) 0%, rgba(27, 79, 138, 0.02) 100%);
  border: 1px solid rgba(27, 79, 138, 0.08);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 3vw, 28px);
}

.coop-diagram {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.coop-diagram-head {
  display: block;
  margin-bottom: 20px;
  text-align: center;
}
.coop-diagram-head-main {
  max-width: 36em;
  margin: 0 auto;
}
.coop-section-lead {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.55;
  color: var(--body);
  margin: 8px 0 0;
}
.coop-diagram-head .kicker { margin-bottom: 0; }

.coop-diagram-stage {
  position: relative;
  overflow: visible;
}
.coop-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.coop-diagram-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 22px;
  align-items: stretch;
}
.coop-zone--kh { grid-column: 2; grid-row: 1; }
.coop-zone--bi { grid-column: 1; grid-row: 2; }
.coop-zone--jf { grid-column: 2; grid-row: 2; }
.coop-zone--local { grid-column: 3; grid-row: 2; }

.coop-zone {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
}
.coop-zone.is-flipped { z-index: 6; }

.coop-card-flip {
  perspective: 1100px;
  width: 100%;
  min-height: 188px;
  height: 100%;
}

.coop-zone-hit {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 188px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  position: relative;
}

.coop-flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  min-height: 188px;
  height: 100%;
}
.coop-zone.is-flipped .coop-flip-inner {
  transform: rotateY(180deg);
}

.coop-card {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 22px 24px;
  border-radius: 16px;
  border: 0;
  background: #fff;
  text-align: left;
  display: flex;
  box-sizing: border-box;
  min-height: 0;
  transition: box-shadow 0.2s ease;
}
.coop-card--front,
.coop-card--back {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coop-card--back {
  transform: rotateY(180deg);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.coop-card--horizontal {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  position: relative;
  padding-bottom: 34px;
}
.coop-card--front {
  transition: box-shadow 0.2s ease, transform 0.22s ease;
}
.coop-zone:not(.is-flipped) .coop-zone-hit:hover .coop-card--front {
  transform: translateY(-4px);
}

.coop-card--kh.coop-card--front {
  box-shadow: 0 14px 34px -14px rgba(232, 72, 122, 0.42);
}
.coop-zone-hit:hover .coop-card--kh.coop-card--front,
.coop-zone-hit.is-active .coop-card--kh.coop-card--front {
  box-shadow: 0 18px 40px -12px rgba(232, 72, 122, 0.5);
}
.coop-card--bi.coop-card--front {
  box-shadow: 0 14px 34px -14px rgba(88, 62, 158, 0.38);
}
.coop-zone-hit:hover .coop-card--bi.coop-card--front,
.coop-zone-hit.is-active .coop-card--bi.coop-card--front {
  box-shadow: 0 18px 40px -12px rgba(88, 62, 158, 0.48);
}
.coop-card--local.coop-card--front {
  box-shadow: 0 14px 34px -14px rgba(46, 140, 90, 0.36);
}
.coop-zone-hit:hover .coop-card--local.coop-card--front,
.coop-zone-hit.is-active .coop-card--local.coop-card--front {
  box-shadow: 0 18px 40px -12px rgba(46, 140, 90, 0.46);
}

.coop-card--jf.coop-card--front {
  color: #fff;
  background: linear-gradient(180deg, #4a9fd4 0%, #2f8fd4 42%, #1b4f8a 100%);
  box-shadow: 0 18px 42px -14px rgba(27, 79, 138, 0.48);
}
.coop-zone-hit:hover .coop-card--jf.coop-card--front,
.coop-zone-hit.is-active .coop-card--jf.coop-card--front {
  box-shadow: 0 22px 48px -12px rgba(27, 79, 138, 0.55);
}
.coop-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.coop-card-logo {
  flex: none;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
}
.coop-card-logo--kh,
.coop-card-logo--bi,
.coop-card-logo--jf,
.coop-card-logo--local {
  width: 72px;
  height: 72px;
}
.coop-card--jf .coop-card-logo img {
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}
.coop-card-logo--local img {
  background: #fff;
  padding: 4px;
  border-radius: 10px;
  box-sizing: border-box;
}
.coop-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.coop-card-role {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}
.coop-card-org {
  font-family: var(--fh);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--body);
  margin-bottom: 10px;
}
.coop-card--jf .coop-card-role,
.coop-card--jf .coop-card-points { color: #fff; }
.coop-card--jf .coop-card-org { color: rgba(255, 255, 255, 0.9); margin-bottom: 10px; }
.coop-card-points {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}
.coop-card-points li {
  position: relative;
  padding-left: 14px;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  margin-bottom: 6px;
}
.coop-card-points li:last-child { margin-bottom: 0; }
.coop-card-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 15px;
  line-height: 1.45;
}
.coop-card--kh .coop-card-points li { color: #e8487a; }
.coop-card--kh .coop-card-points li::before { color: #e8487a; }
.coop-card--bi .coop-card-points li { color: #6a4cb8; }
.coop-card--bi .coop-card-points li::before { color: #6a4cb8; }
.coop-card--local .coop-card-points li { color: #2e8c5a; }
.coop-card--local .coop-card-points li::before { color: #2e8c5a; }
.coop-card--jf .coop-card-points li::before { color: rgba(255, 255, 255, 0.92); }

.coop-card--back {
  background: #fff;
  box-shadow: 0 14px 34px -14px rgba(27, 79, 138, 0.22);
  border: 1px solid rgba(27, 79, 138, 0.1);
}
.coop-card--back.coop-card--kh {
  box-shadow: 0 14px 34px -14px rgba(232, 72, 122, 0.28);
  border-color: rgba(232, 72, 122, 0.18);
}
.coop-card--back.coop-card--bi {
  box-shadow: 0 14px 34px -14px rgba(88, 62, 158, 0.24);
  border-color: rgba(88, 62, 158, 0.16);
}
.coop-card--back.coop-card--local {
  box-shadow: 0 14px 34px -14px rgba(46, 140, 90, 0.22);
  border-color: rgba(46, 140, 90, 0.16);
}
.coop-card--back.coop-card--jf {
  box-shadow: 0 18px 42px -14px rgba(27, 79, 138, 0.35);
  border-color: rgba(27, 79, 138, 0.2);
}
.coop-card-back-body {
  width: 100%;
}

.coop-card-more {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(27, 79, 138, 0.55);
  opacity: 0.85;
  transition: opacity 0.18s ease, color 0.18s ease;
  pointer-events: none;
}
.coop-card--jf .coop-card-more { color: rgba(255, 255, 255, 0.82); }
.coop-zone:not(.is-flipped) .coop-zone-hit:hover .coop-card-more,
.coop-show-hint .coop-card-more {
  opacity: 1;
  color: var(--primary);
}
.coop-zone:not(.is-flipped) .coop-zone-hit:hover .coop-card--jf .coop-card-more,
.coop-show-hint .coop-card--jf .coop-card-more {
  color: #fff;
}
.coop-zone.is-flipped .coop-card-more { opacity: 0; }

@keyframes coop-hub-pulse {
  0%, 100% { box-shadow: 0 18px 42px -14px rgba(27, 79, 138, 0.48); }
  50% { box-shadow: 0 24px 52px -12px rgba(27, 79, 138, 0.62); }
}
.coop-show-hint .coop-zone--jf:not(.is-flipped) .coop-card--front {
  animation: coop-hub-pulse 2.8s ease-in-out infinite;
}

.coop-zone-hit-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.coop-zone-hit:focus-visible {
  outline: none;
}
.coop-zone-hit:focus-visible .coop-card--front {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent);
}

.coop-detail-line {
  font-size: 14px;
  line-height: 1.58;
  color: var(--body);
  margin: 0 0 10px;
}
.coop-detail-line:last-child { margin-bottom: 0; }
.coop-detail-line strong { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .coop-diagram { padding: 0; }
  .coop-connectors { display: none; }
  .coop-diagram-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 18px;
  }
  .coop-zone--kh { grid-column: 1 / -1; grid-row: 1; max-width: none; width: 100%; }
  .coop-zone--jf { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .coop-zone--bi { grid-column: 1; grid-row: 3; width: 100%; justify-self: stretch; }
  .coop-zone--local { grid-column: 2; grid-row: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .coop-flip-inner { transition: none; }
  .coop-card--front { transition: box-shadow 0.2s ease; }
  .coop-zone:not(.is-flipped) .coop-zone-hit:hover .coop-card--front {
    transform: none;
  }
  .coop-show-hint .coop-zone--jf:not(.is-flipped) .coop-card--front {
    animation: none;
  }
}
@media (max-width: 560px) {
  .coop-interactive { padding: 20px 16px; border-radius: 22px; }
  .about-mission-in { padding: 24px 18px; }
  .coop-diagram-grid { grid-template-columns: 1fr; }
  .coop-zone--kh,
  .coop-zone--bi,
  .coop-zone--jf,
  .coop-zone--local {
    grid-column: 1;
    max-width: none;
  }
  .coop-zone--kh { grid-row: 1; }
  .coop-zone--jf { grid-row: 2; }
  .coop-zone--bi { grid-row: 3; }
  .coop-zone--local { grid-row: 4; }
  .coop-card { padding: 18px 16px; }
  .coop-card-flip,
  .coop-zone-hit,
  .coop-flip-inner { min-height: 168px; }
}

/* ---------- VALUES (about) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { background: #fff; border-radius: 24px; padding: 32px 28px; box-shadow: 0 14px 40px -26px rgba(27,79,138,0.32); }
.value .ic { width: 52px; height: 52px; border-radius: 15px; background: var(--cream-deep); color: var(--accent-deep); display: grid; place-items: center; margin-bottom: 20px; }
.value .ic svg { width: 26px; height: 26px; }
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value p { font-size: 15px; }

/* split content (about) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .imgph { aspect-ratio: 4/3; border-radius: 32px; }
.prose h3 { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 16px; }
.prose p { font-size: 16.5px; margin-bottom: 16px; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member .av { aspect-ratio: 1; border-radius: 24px; margin-bottom: 16px; background:
  repeating-linear-gradient(135deg, rgba(27,79,138,0.06) 0 12px, rgba(27,79,138,0.11) 12px 24px), var(--cream-deep);
  display: grid; place-items: center; }
.member .av .ph-tag { font-family: 'Courier New', monospace; font-size: 11px; color: var(--primary); }
.member h4 { font-size: 17px; color: var(--ink); }
.member .role { font-size: 13.5px; color: var(--accent-deep); font-family: var(--fh); font-weight: 700; margin-top: 3px; }

/* ---------- IMAGE SLOTS (drop targets) ---------- */
image-slot { display: block; }
/* story-card photo slots sit behind the region tag */
.story .ph { overflow: hidden; }
.story .ph > image-slot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.story .ph > .rg { z-index: 2; }
/* hero photo slot fills the rounded frame */
.hero-photo .frame > image-slot { width: 100%; height: 100%; }
/* program / about / featured media slots */
.media-slot { display: block; width: 100%; }
/* team headshot slots */
.av-slot { display: block; width: 100%; aspect-ratio: 1; margin-bottom: 16px; }

/* ---------- PARTNER page ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.way { background: #fff; border-radius: 26px; padding: 34px 30px; box-shadow: 0 14px 40px -24px rgba(27,79,138,0.32); display: flex; flex-direction: column; }
.way .ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; }
.way.w1 .ic { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.way.w2 .ic { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.way.w3 .ic { background: linear-gradient(135deg, #F4B06A, #B5560C); }
.way .ic svg { width: 28px; height: 28px; }
.way h3 { font-size: 22px; margin-bottom: 12px; }
.way p { font-size: 15px; flex: 1; margin-bottom: 20px; }
.way .amt { font-family: var(--fh); font-weight: 800; color: var(--accent-deep); font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 14px; }
.step .n { font-family: var(--fh); font-weight: 900; font-size: 17px; width: 44px; height: 44px; border-radius: 13px; background: var(--primary); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.step h4 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* form */
.form-card { background: #fff; border-radius: 36px; padding: 48px 44px; box-shadow: 0 24px 60px -34px rgba(27,79,138,0.4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--fh); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--fb); font-size: 15px; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; width: 100%; transition: border-color .18s, background .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- PARTNER CTA ---------- */
.partner-cta { text-align: center; padding: 86px 0 96px; position: relative; z-index: 2; }
.partner-cta .card { background: #fff; border-radius: 40px; padding: 64px 48px; box-shadow: 0 30px 70px -34px rgba(27,79,138,0.4); position: relative; overflow: hidden; max-width: 860px; margin: 0 auto; }
.partner-cta .card::before { content:""; position:absolute; top:-90px; left:50%; transform: translateX(-50%); width: 320px; height: 320px; border-radius:50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); opacity:0.6; }
.partner-cta h2 { position: relative; font-size: 46px; letter-spacing: -0.02em; margin-bottom: 18px; }
.partner-cta p { position: relative; max-width: 52ch; margin: 0 auto 32px; font-size: 17.5px; }
.partner-cta .btn-row { position: relative; justify-content: center; }

/* ---------- FOOTER ---------- */
footer.site { background: var(--ink); color: rgba(255,255,255,0.66); padding: 60px 0 34px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr minmax(300px, 1.6fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-grid .logo { color: #fff; margin-bottom: 14px; }
.foot-grid .logo .logo-mark { color: var(--accent-soft); }
.foot-brand-title {
  font-family: var(--fh);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.foot-grid p.about { font-size: 14.5px; max-width: 44ch; }
.foot-grid h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid a { display: block; font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.foot-grid a:hover { color: var(--accent-soft); }
.footer-address { display: block; font-size: 14.5px; margin-bottom: 11px; }
.foot-social { min-width: 280px; }
.footer-socials { display: flex; flex-wrap: nowrap; gap: 8px; flex-shrink: 0; }
.footer-social-rows { display: flex; flex-direction: column; gap: 14px; }
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.footer-social-org {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.72);
  flex: 1;
  min-width: 0;
}
.foot-grid .footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.66);
  transition: color .2s, border-color .2s, background .2s;
}
.foot-grid .footer-socials a:hover {
  color: var(--accent-soft);
  border-color: var(--accent-soft);
  background: rgba(255,255,255,0.06);
}
.footer-socials svg { width: 18px; height: 18px; }
.foot-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,0.62); }

/* ---------- IMAGE-SLOT wiring ---------- */

/* Hero frame — slot fills the clipped rounded container */
.frame image-slot {
  display: block;
  width: 100%;
  height: 100%;
}

/* Story card .ph thumbnails — slot fills, region badge floats on top */
.ph {
  position: relative;
}
.ph image-slot {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.ph .rg,
.ph .ph-tag {
  position: relative;
  z-index: 1;
}

/* Program & story featured media slots (class="media-slot") */
.media-slot {
  display: block;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

/* About team avatar slots (class="av-slot") */
.av-slot {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 24px;
  overflow: hidden;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-fb h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
  .stat-strip-in { flex-wrap: wrap; }
  .stat-strip-in .ss { flex: 1 1 40%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-strip-in .ss:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-strip--head .stat-strip-in .ss .n { font-size: 24px; }
  .stat-strip--head .stat-strip-in .ss { padding: 14px 16px; }
  .map-head-bar { flex-direction: column; }
  .map-head-intro {
    max-width: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 18px 20px;
  }
  .progs, .stories, .values, .ways, .dir-cards { grid-template-columns: 1fr 1fr; }
  .dir-head { grid-template-columns: 1fr; gap: 20px; }
  .dir-head-aside { max-width: none; text-align: left; }
  .dir-feats { grid-template-columns: 1fr 1fr; }
  .dir-feats--pair { grid-template-columns: 1fr; }
  .why-grid, .prog-row, .split { grid-template-columns: 1fr; gap: 36px; }
  .prog-row.flip .prog-media { order: 0; }
  .prog-media .media-slot { min-height: 320px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 42px; }
  .schools-grid { grid-template-columns: 1fr 1fr; }
  .region-chip-list {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .hero-fb { min-height: 520px; }
  .hero-fb h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-fb h1 .hero-h1-sub { font-size: 0.88em; }
  .hero-fb p.lead { font-size: 16px; line-height: 1.7; max-width: none; }
  .hero-fb p.lead.lead-second { margin-top: 10px; margin-bottom: 28px; }
  .hero-fb-content { padding-bottom: 36px; }
  .stat-strip-in .ss { flex: 1 1 100%; border-right: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--nav-h, 96px); left: 0; right: 0; background: var(--cream);
    border-bottom: 1px solid var(--line); padding: 16px 28px 22px; box-shadow: 0 20px 40px -24px rgba(27,79,138,0.4);
  }
  .nav-links.open a { padding: 10px 0 14px; font-size: 17px; width: 100%; border-bottom-width: 3px; }
  .nav-links.open .nav-dropdown-toggle { padding: 10px 0 14px; font-size: 17px; width: 100%; border-bottom-width: 3px; }
  .menu-btn { display: grid; place-items: center; }
  .logo { font-size: 18px; gap: 9px; }
  .logo-wordmark { height: 58px; max-width: min(300px, 62vw); }
  .logo .sun { width: 26px; height: 26px; }
  nav.bar { position: sticky; }
  .progs, .stories, .values, .ways, .dir-cards, .steps, .team { grid-template-columns: 1fr; }
  .dir-feats, .dir-results-stats { grid-template-columns: 1fr; }
  .feat-carousel-arrow { opacity: 1; }
  .dir-panel-body { padding: 36px 24px; }
  .prog-page-hero { min-height: min(58vh, 520px); }
  .prog-page-hero > .wrap { padding-bottom: 36px; }
  .prog-hero-grid { max-width: none; }
  .prog-hero-stats { grid-template-columns: 1fr 1fr; }
  .prog-page-hero .prog-hero-grid .dir-panel-hero-in { padding: 0; }
  .ustaz-hero-carousel { aspect-ratio: 4 / 3; border-radius: 26px; }
  .ustaz-hero-copy { width: 100%; }
  .ustaz-hero-copy h2 { font-size: clamp(27px, 7vw, 38px); margin-bottom: 14px; white-space: normal; }
  .ustaz-hero-copy p { font-size: 15px; line-height: 1.55; }
  .prog-slab { grid-template-columns: 1fr; }
  .prog-slab-side { min-height: 0; padding: 36px 28px; }
  .prog-slab-body { padding: 32px 28px; }
  .prog-samruk-banner { grid-template-columns: 1fr; padding: 28px; }
  .prog-samruk-banner-stat { flex-direction: row; gap: 12px; justify-content: flex-start; }
  .prog-samruk-banner-stat-n { font-size: 48px; }
  .prog-samruk-row { grid-template-columns: 64px 1fr; }
  .prog-samruk-row-desc { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); padding: 0 28px 24px 28px; }
  .prog-samruk-row-title { border-left: none; padding: 24px 28px 0; }
  .prog-samruk-row-num { padding: 24px 0; font-size: 28px; }
  .dir-panel-hero-in { padding: 28px 24px 32px; }
  .dir-cycle-arrow { display: none; }
  .dir-cycle-step { flex: 1 1 100%; }
  .prog-media .media-slot { min-height: 260px; }
  .hero h1 { font-size: 40px; }
  .head h2 { font-size: 34px; }
  .why, .form-card { padding: 40px 26px; }
  .why .dir-cycle-step { max-width: none; }
  .map-block > .wrap { padding-left: 16px; padding-right: 16px; }
  .map-card { border-radius: 28px; }
  .map-grid { display: flex; flex-direction: column; }
  .map-col {
    position: static;
    inset: auto;
    left: auto;
    top: auto;
    max-width: none;
    width: 100%;
    padding: 14px 16px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .map-col.region-open {
    max-width: none;
    padding: 14px 16px 12px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .map-wrap { order: 1; width: 100%; }
  .map-intro.map-hint {
    font-size: 11px;
    padding: 7px 12px;
    white-space: normal;
    line-height: 1.25;
  }
  .map-hot .map-label { font-size: 13px; }
  .map-hot .map-label.active { stroke-width: 3; }
  .district-list { max-height: min(36vh, 280px); }
  .region-schools-hero--chips { padding: 20px 18px; margin-bottom: 16px; }
  .region-schools-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .region-schools-search-count { align-self: flex-start; }
  .region-schools-stats-bar { grid-template-columns: 1fr; margin-bottom: 28px; }
  .region-chip-list {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }
  .region-chip {
    padding: 10px 12px;
    gap: 8px;
  }
  .region-chip-name {
    font-size: 13px;
  }
  .schools-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .partner-cta .card { padding: 48px 26px; }
  .hero-badge { left: 0; }
}
@media (max-width: 480px) {
  .footer-social-row { flex-wrap: wrap; }
}
