/* ============================================================
   IMPERIAL INTERNATIONAL SCHOOL DHAKA — Design System v2
   Professional Redesign 2026
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy-deep: #0b1526;
  --navy: #172040;
  --navy-mid: #1e2e56;
  --brass: #c89b3c;
  --brass-text: #9a7516;
  --brass-bright: #e0b654;
  --brass-pale: #f5e4b0;
  --brass-strong: var(--brass-bright);
  --paper: #f5f6f9;
  --card: #ffffff;
  --sky: #6fa8c9;
  --ink: #14202e;
  --ink-soft: #4b5a6c;
  --ink-muted: #7a8fa5;
  --line: #e2e7ef;
  --line-strong: #c8d0dc;
  --success: #2d8a5a;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --site-max: 1320px;
  --shadow-sm: 0 2px 8px rgba(15,24,48,0.06);
  --shadow: 0 8px 32px rgba(15,24,48,0.09);
  --shadow-md: 0 16px 48px rgba(15,24,48,0.12);
  --shadow-lg: 0 28px 72px rgba(15,24,48,0.16);

  --btn-py: 12px;
  --btn-px: 24px;
  --btn-fz: 0.88rem;
  --header-top-h: 38px;
  --header-main-h: 76px;
  --header-total: calc(var(--header-top-h) + var(--header-main-h));
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-label: 'Source Sans 3', system-ui, sans-serif;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-total) + 12px);
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
  flex-shrink: 0;
}
.section-lede {
  color: var(--ink);
  font-size: 1.04rem;
  max-width: 66ch;
  margin-bottom: 48px;
  line-height: 1.72;
}

.container {
  width: 100%;
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left:  clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}
body.menu-open { overflow: hidden; }
section { padding: 100px 0; }
@media (max-width: 1024px) { section { padding: 80px 0; } }
@media (max-width: 768px) { section { padding: 64px 0; } }
@media (max-width: 600px) { section { padding: 52px 0; } }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--btn-fz);
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 0.95rem; }
.btn-primary {
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 4px 16px rgba(11,21,38,0.18);
}
.btn-primary:hover { background: var(--brass); color: var(--navy-deep); box-shadow: 0 8px 24px rgba(200,155,60,0.3); }
.btn-outline {
  border-color: var(--line-strong);
  color: var(--navy-deep);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.badge-off {
  display: inline-block;
  background: var(--brass);
  color: var(--navy-deep);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ── HEADER ──────────────────────────────────────────────── */
/* Only page-level nav headers stick to the viewport */
header.site-header,
header.dark-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: box-shadow .3s ease;
}
header.dark-header {
  padding: 20px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
header.dark-header.scrolled {
  background: rgba(245,246,249,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
header.dark-header:not(.scrolled) .brand { color: #ffffff; }
header.dark-header:not(.scrolled) .brand small { color: var(--brass-bright); }
header.dark-header:not(.scrolled) .nav-links a:not(.btn) { color: #e2e8f0; }
header.dark-header:not(.scrolled) .nav-links a:not(.btn):hover { color: #ffffff; }
header.dark-header:not(.scrolled) .menu-toggle span { background: #ffffff; }

/* Homepage: utility top bar + main nav */
.site-header .header-top {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-top-h);
  flex-wrap: wrap;
}
.site-header .header-top-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header .header-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.82);
  transition: color .2s ease;
}
.site-header .header-top a:hover { color: #fff; }
.site-header .header-top-cta {
  font-weight: 600;
  color: var(--brass-bright) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.site-header .header-main {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled .header-main {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
}
.site-header .header-main nav {
  min-height: var(--header-main-h);
}

nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; color: var(--navy-deep); flex-shrink: 0;
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links {
  display: flex; gap: 24px; align-items: center;
  font-size: 0.88rem; font-weight: 500;
}
.nav-links a:not(.btn) {
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--navy-deep); }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--brass);
  transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy-deep); margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -12px 0 40px rgba(15,24,48,0.14);
    z-index: 600;
  }
  .site-header .nav-links {
    top: var(--header-total);
    height: calc(100vh - var(--header-total));
    padding-top: 32px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .menu-toggle {
    display: block;
    z-index: 700;
    position: relative;
    min-width: 44px;
    min-height: 44px;
  }
  .site-header .header-top-left { gap: 12px; }
  .site-header .header-top-cta { font-size: 0.62rem; }
  .site-header .header-top-inner { justify-content: center; }
}
@media (max-width: 520px) {
  .site-header .header-top-left a:nth-child(2) { display: none; }
  .site-header .header-top-inner { min-height: auto; padding: 6px 0; }
  .brand { font-size: 0.88rem; }
  .brand img { width: 40px; height: 40px; }
}

/* ── HERO (Classic institutional) ───────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  z-index: 1;
  isolation: isolate;
}
.hero--classic {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  padding: 0;
  margin-top: var(--header-total);
  margin-bottom: 0;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(1.12) contrast(1.06) saturate(1.08);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(11, 21, 38, 0.58) 0%,
    rgba(11, 21, 38, 0.3) 40%,
    rgba(11, 21, 38, 0.08) 65%,
    transparent 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(48px, 8vh, 80px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}
.hero-emblem {
  justify-self: end;
  align-self: center;
  width: 100%;
  max-width: 220px;
}
.hero-emblem__frame {
  padding: clamp(14px, 1.8vw, 20px);
  background: linear-gradient(
    145deg,
    rgba(11, 21, 38, 0.68) 0%,
    rgba(11, 21, 38, 0.44) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 3px solid var(--brass-bright);
  box-shadow: 0 20px 56px rgba(11, 21, 38, 0.34);
}
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: clamp(8px, 1vw, 12px);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.hero-content {
  max-width: 620px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 36px);
  background: linear-gradient(
    135deg,
    rgba(11, 21, 38, 0.72) 0%,
    rgba(11, 21, 38, 0.48) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brass-bright);
  box-shadow: 0 24px 64px rgba(11, 21, 38, 0.35);
}
.hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-weight: 600;
  margin-bottom: 18px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.hero--classic h1 {
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  margin-bottom: 20px;
  max-width: 16ch;
  line-height: 1.12;
  font-weight: 700;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.hero--classic .hero-lede {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-bottom: 28px;
  line-height: 1.75;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-highlight {
  background: var(--brass);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(200, 155, 60, 0.35);
}
.hero-actions .btn-highlight:hover {
  background: var(--brass-bright);
  box-shadow: 0 8px 28px rgba(224, 182, 84, 0.4);
}
.hero-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 768px) {
  .hero--classic {
    min-height: auto;
    align-items: stretch;
  }
  .hero-inner {
    padding: 28px 0 36px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-emblem {
    justify-self: center;
    order: -1;
    max-width: 140px;
  }
  .hero-emblem__frame {
    padding: 10px;
    border-right-width: 2px;
  }
  .hero-logo {
    padding: 8px;
  }
  .hero-content {
    padding: 22px 18px;
    border-left-width: 2px;
    max-width: none;
  }
  .hero--classic h1 {
    max-width: none;
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
    line-height: 1.15;
  }
  .hero--classic .hero-lede {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 22px;
  }
  .hero-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .hero-media img {
    object-position: center 30%;
    filter: brightness(1.05) contrast(1.03) saturate(1.04);
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(11, 21, 38, 0.4) 0%,
      rgba(11, 21, 38, 0.72) 38%,
      rgba(11, 21, 38, 0.88) 100%
    );
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    text-align: center;
    justify-content: center;
    white-space: normal;
    min-height: 48px;
  }
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.hero--classic + .stats-strip {
  margin-top: 0;
}
.stats-strip {
  background: var(--card);
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--line);
  transition: background .2s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--paper); }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 4px;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.stat-item--highlight {
  background: linear-gradient(180deg, rgba(200,155,60,0.08), transparent);
}
.stat-item--highlight .stat-value { color: var(--brass); }
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .stat-item:nth-child(4),
  .stat-item:nth-child(5) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 12px; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
}

/* ── CURRICULUM STRIP ────────────────────────────────────── */
.curriculum-strip {
  background: var(--navy-deep);
  padding: 14px 0;
  border-bottom: 3px solid var(--brass);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.curriculum-marquee {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
  white-space: nowrap;
}
.curriculum-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-style: normal;
  white-space: nowrap;
}
.curriculum-item + .curriculum-item::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  margin: 0 1.75rem;
  flex-shrink: 0;
  vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .curriculum-marquee {
    overflow-x: auto;
  }
}

/* Legacy hero stats (admissions page) */
.hero-stats {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  max-width: fit-content;
}
.hero-stat { padding: 16px 24px; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy-deep);
  margin-bottom: 2px;
}
.hero-stat span { font-size: 0.78rem; color: var(--ink-muted); font-family: var(--font-label); letter-spacing: 0.06em; }
.hero-stat-div { width: 1px; height: 48px; background: var(--line); flex-shrink: 0; align-self: center; }
@media (max-width: 600px) { .hero-stats { flex-direction: column; max-width: 100%; } .hero-stat-div { width: 100%; height: 1px; } }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.5;
  z-index: 0;
}
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px 72px;
  align-items: center;
  margin-bottom: 72px;
}
.welcome-grid .about-visual {
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: hidden;
}
.welcome-grid .about-text {
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .welcome-grid { gap: 40px 48px; }
}
@media (max-width: 768px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 56px;
  }
  .about-visual { order: -1; overflow: visible; }
}

.about-showcase {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 0 0;
  padding-bottom: 8px;
}
.about-showcase__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow-lg);
  background: var(--navy-deep);
  aspect-ratio: 4 / 5;
}
.about-showcase__track {
  position: absolute;
  inset: 0;
}
.about-showcase__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 0;
}
.about-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.about-showcase__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 5.2s ease;
}
.about-showcase__slide.is-active img {
  transform: scale(1.06);
}
.about-showcase__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(11, 21, 38, 0.88) 0%, transparent 100%);
  pointer-events: none;
}
.about-showcase__caption {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  min-height: 1.2em;
  transition: opacity 0.35s ease;
}
.about-showcase__caption.is-fading {
  opacity: 0;
}
.about-showcase__progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}
.about-showcase__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brass-bright);
  border-radius: inherit;
  transform-origin: left center;
}
.about-showcase__progress-bar.is-running {
  animation: aboutShowcaseProgress var(--showcase-duration, 5.2s) linear forwards;
}
@keyframes aboutShowcaseProgress {
  from { width: 0; }
  to { width: 100%; }
}
.about-showcase__nav {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
}
.about-showcase__btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 21, 38, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.about-showcase__frame:hover .about-showcase__btn,
.about-showcase__frame:focus-within .about-showcase__btn {
  opacity: 1;
}
.about-showcase__btn:hover {
  background: rgba(11, 21, 38, 0.78);
}
.about-showcase__btn--prev { transform: translateX(-4px); }
.about-showcase__btn--next { transform: translateX(4px); }
.about-showcase__frame:hover .about-showcase__btn--prev,
.about-showcase__frame:focus-within .about-showcase__btn--prev { transform: translateX(0); }
.about-showcase__frame:hover .about-showcase__btn--next,
.about-showcase__frame:focus-within .about-showcase__btn--next { transform: translateX(0); }
.about-showcase__dots {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
  transform: none;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.about-showcase__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.about-showcase__dot.is-active {
  background: var(--brass-bright);
  transform: scale(1.15);
}
.about-showcase__dot:hover {
  background: rgba(255, 255, 255, 0.65);
}
.about-photo-accent {
  position: absolute;
  left: -8px;
  bottom: -12px;
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200,155,60,0.3);
  border-left: 3px solid var(--brass-bright);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
}
.about-accent-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brass-bright);
  line-height: 1;
}
.about-accent-text {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .about-showcase__slide,
  .about-showcase__slide img,
  .about-showcase__caption,
  .about-showcase__progress-bar {
    transition: none;
    animation: none;
  }
  .about-showcase__slide.is-active img {
    transform: none;
  }
  .about-showcase__btn {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 768px) {
  .about-showcase {
    max-width: 100%;
    margin: 0 auto;
  }
  .about-showcase__frame {
    aspect-ratio: 16 / 10;
  }
  .about-showcase__btn {
    opacity: 1;
    transform: none;
  }
  .about-photo-accent {
    left: 0;
    bottom: -8px;
  }
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 18px; max-width: 58ch; line-height: 1.74; }
.quote-block {
  border-left: 2.5px solid var(--brass);
  padding: 6px 0 6px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  color: var(--navy-deep);
  margin: 28px 0 28px;
  line-height: 1.42;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pillar-card:hover {
  background: var(--card);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(200,155,60,0.14), rgba(200,155,60,0.04));
  border: 1px solid rgba(200,155,60,0.2);
  border-radius: 10px;
  color: var(--brass);
  margin-bottom: 16px;
}
.pillar-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy-deep);
}
.pillar-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.66;
}

/* ── FACILITIES ───────────────────────────────────────────── */
.facilities-section {
  background: var(--paper);
  position: relative;
}
.facilities-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.6;
}
.facilities-section h2 { margin-bottom: 12px; }

/* ── Uniform Photo Grid ────────────────────────────────────── */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

/* Every card — identical size */
.fac-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 20px rgba(15,25,50,0.08);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: opacity .6s cubic-bezier(.16,1,.3,1),
              transform .6s cubic-bezier(.16,1,.3,1),
              box-shadow .4s ease,
              border-color .3s ease;
}

/* Staggered entrance when scrolled into view */
.fac-grid.reveal:not(.is-visible) .fac-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
}
.fac-grid.is-visible .fac-card { opacity: 1; transform: translateY(0) scale(1); }
.fac-grid.is-visible .fac-card:nth-child(1) { transition-delay: 0s; }
.fac-grid.is-visible .fac-card:nth-child(2) { transition-delay: .08s; }
.fac-grid.is-visible .fac-card:nth-child(3) { transition-delay: .16s; }
.fac-grid.is-visible .fac-card:nth-child(4) { transition-delay: .24s; }
.fac-grid.is-visible .fac-card:nth-child(5) { transition-delay: .32s; }
.fac-grid.is-visible .fac-card:nth-child(6) { transition-delay: .40s; }
.fac-grid.is-visible .fac-card:nth-child(7) { transition-delay: .48s; }
.fac-grid.is-visible .fac-card:nth-child(8) { transition-delay: .56s; }

/* Hover lift */
.fac-card:hover {
  box-shadow: 0 20px 50px rgba(15,25,50,0.18);
  border-color: var(--brass);
  transform: translateY(-8px) scale(1);
}

/* Top accent bar on hover */
.fac-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), #e8c547, var(--brass));
  z-index: 5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.fac-card:hover::before {
  transform: scaleX(1);
}

/* Image — fills entire card */
.fac-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16,1,.3,1), filter .4s ease;
}
.fac-card:hover > img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* Content overlay */
.fac-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top,
    rgba(8,15,30,0.95) 0%,
    rgba(8,15,30,0.7) 50%,
    transparent 100%);
  z-index: 3;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
.fac-card:hover .fac-card__content {
  transform: translateY(0);
  opacity: 1;
}

/* Label pill */
.fac-card__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-text);
  background: rgba(200,155,60,0.15);
  border: 1px solid rgba(200,155,60,0.3);
  border-radius: 5px;
  padding: 3px 10px;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Entrance animation */
  transform: translateX(-10px);
  opacity: 0;
  transition: transform .5s cubic-bezier(.16,1,.3,1) .1s, opacity .5s ease .1s;
}
.fac-card:hover .fac-card__label {
  transform: translateX(0);
  opacity: 1;
}

/* Title */
.fac-card__content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin: 0;
  line-height: 1.35;
}

/* ── Feature Highlights strip ──────────────────────────────── */
.fac-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fac-hl {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15,25,50,0.06);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .3s ease;
}
.fac-hl:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(15,25,50,0.12);
  border-color: var(--line-strong);
}
.fac-hl__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-deep);
}
.fac-hl__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.fac-hl:hover .fac-hl__media img {
  transform: scale(1.05);
}
.fac-hl__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,25,50,0.18) 100%);
  pointer-events: none;
}
.fac-hl__body {
  padding: 20px 22px 22px;
}
.fac-hl__body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.fac-hl__body p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fac-grid { grid-template-columns: repeat(3, 1fr); }
  .fac-highlights { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .fac-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .fac-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .fac-grid { grid-template-columns: 1fr; gap: 14px; }
  .fac-card { aspect-ratio: 16 / 10; }
}


/* ── ACADEMICS ───────────────────────────────────────────── */
#academics.academics-section {
  scroll-margin-top: calc(var(--header-total) + 12px);
}
.academics-section {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 2;
  isolation: isolate;
}
.academics-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.academics-section .container {
  position: relative;
  z-index: 1;
}

/* Header — two-column layout */
.academics-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px 56px;
  align-items: start;
  margin-bottom: 56px;
}
.academics-head__text h2 {
  margin-bottom: 16px;
}
.academics-head__text .section-lede {
  margin-bottom: 0;
}
.academics-head__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-self: center;
}
.academics-metric {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.academics-metric:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.academics-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--brass);
  line-height: 1.1;
  margin-bottom: 6px;
}
.academics-metric span {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .academics-head {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }
  .academics-head__metrics {
    max-width: 480px;
  }
}
@media (max-width: 480px) {
  .academics-head__metrics {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Academic explorer — photo + phase list */
.academic-explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 40px 48px;
  align-items: start;
  overflow-anchor: none;
}
.academic-explorer__photo {
  position: sticky;
  top: calc(var(--header-total) + 24px);
}
.academic-explorer__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--card);
  box-shadow: var(--shadow-lg);
  background: var(--navy-deep);
  aspect-ratio: 4 / 5;
}
.academic-explorer__slides {
  position: absolute;
  inset: 0;
}
.academic-explorer__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 0;
  transform: scale(1);
}
.academic-explorer__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  animation: academicKenBurns 6s ease forwards;
}
@keyframes academicKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.academic-explorer__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(11,21,38,0.88) 0%, rgba(11,21,38,0.4) 55%, transparent 100%);
  pointer-events: none;
}
.academic-explorer__caption {
  font-family: var(--font-label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
  transition: opacity 0.25s ease;
}
.academic-explorer__caption.is-fading {
  opacity: 0;
}

/* Phase list */
.academic-explorer__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.academic-explorer__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.academic-explorer__counter {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  min-width: 3.5em;
  text-align: center;
}
.academic-explorer__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.academic-explorer__arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.academic-explorer__arrow:active {
  transform: scale(0.96);
}
.academic-explorer__arrow:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.phase-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.phase-item.is-active {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.phase-item--exam.is-active {
  border-color: rgba(200,155,60,0.45);
  box-shadow: 0 4px 20px rgba(200,155,60,0.12);
}
.phase-item__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.2s ease;
}
.phase-item__trigger:hover {
  background: var(--paper);
}
.phase-item__trigger:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -2px;
}
.phase-item__code {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.phase-item.is-active .phase-item__code {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.phase-item--exam .phase-item__code {
  color: var(--brass);
  border-color: rgba(200,155,60,0.35);
  background: rgba(200,155,60,0.08);
}
.phase-item--exam.is-active .phase-item__code {
  background: linear-gradient(135deg, var(--brass), var(--brass-bright));
  border-color: var(--brass);
  color: var(--navy-deep);
}
.phase-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phase-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.25;
}
.phase-item--exam.is-active .phase-item__title {
  color: var(--brass);
}
.phase-item__dates {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.phase-item__chevron {
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform 0.3s ease, color 0.25s ease;
}
.phase-item.is-active .phase-item__chevron {
  transform: rotate(180deg);
  color: var(--navy);
}
.phase-item--exam.is-active .phase-item__chevron {
  color: var(--brass);
}
.phase-item__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              padding 0.35s ease;
  padding: 0 18px;
}
.phase-item.is-active .phase-item__body {
  max-height: 260px;
  opacity: 1;
  padding: 0 18px 18px;
}
.phase-item__body[hidden] {
  display: none !important;
}
.phase-item__list {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase-item--exam .phase-item__list {
  border-top-color: rgba(200,155,60,0.25);
}
.phase-item__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.phase-item__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brass);
}

@media (max-width: 900px) {
  .academic-explorer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .academic-explorer__photo {
    position: static;
  }
  .academic-explorer__frame {
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .phase-item__trigger {
    padding: 14px 14px;
    gap: 10px;
  }
  .phase-item__code {
    width: 38px;
    height: 38px;
    font-size: 0.66rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .academic-explorer__slide,
  .academic-explorer__caption,
  .phase-item__body,
  .phase-item__chevron {
    transition: none;
    animation: none;
  }
  .academic-explorer__slide.is-active {
    transform: none;
  }
}

.academic-note {
  font-family: var(--font-label);
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  margin-top: 8px;
  margin-bottom: 56px;
}

/* Age Tables in Academics */
.age-section h3 { color: var(--navy-deep); font-size: 1.2rem; margin-bottom: 20px; }
.age-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .age-tables-grid { grid-template-columns: 1fr; } }
.age-table-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.age-table-title {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-text);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.age-table-card table { width: 100%; border-collapse: collapse; }
.age-table-card th, .age-table-card td {
  padding: 11px 18px;
  text-align: left;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
}
.age-table-card th {
  font-family: var(--font-label);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 400;
  background: var(--paper);
}
.age-table-card td { color: var(--ink-soft); }
.age-table-card tr:last-child td { border-bottom: none; }

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-section {
  background: var(--card);
  border-top: 1px solid var(--line);
  position: relative;
}
.gallery-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.45;
}
.gallery-section h2 { margin-bottom: 12px; }
.gallery-section .section-lede { margin-bottom: 36px; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.gallery-filter {
  background: none;
  border: 1.5px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.gallery-filter:hover { border-color: var(--navy-deep); color: var(--navy-deep); }
.gallery-filter.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
  box-shadow: 0 4px 16px rgba(11,21,38,0.18);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 440px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--line);
  aspect-ratio: 4 / 3;
  margin: 0;
  transition: box-shadow .3s ease, transform .3s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 14px 14px;
  background: linear-gradient(to top, rgba(11,21,38,0.92), rgba(11,21,38,0.44) 60%, transparent);
  color: #fff; font-size: 0.82rem; font-weight: 500; line-height: 1.3;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.25,.46,.45,.94);
  display: flex; flex-direction: column; gap: 4px;
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { transform: translateY(0); }
.gallery-tag {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
  display: block;
  margin-bottom: 2px;
}
.gallery-item.hidden { display: none; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,14,26,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-inner {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.lightbox-inner img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  display: block; transition: opacity .22s ease;
}
.lightbox-inner img.fading { opacity: 0; }
.lightbox-caption {
  color: #8fa4c2; font-size: 0.84rem;
  text-align: center; font-family: var(--font-label);
  letter-spacing: 0.04em; margin: 0; max-width: 60ch;
}
.lightbox-close {
  position: fixed; top: 20px; right: 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease; z-index: 2010;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.08) rotate(90deg); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: #fff; width: 52px; height: 52px; border-radius: 50%;
  font-size: 28px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease; z-index: 2010;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 600px) { .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } .lightbox-nav { width: 40px; height: 40px; font-size: 22px; } }

/* ── ADMISSIONS CTA ──────────────────────────────────────── */
.admissions-cta {
  background: var(--paper);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 88px) 0;
  border-top: 1px solid var(--line);
}
.admissions-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(200,155,60,0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(11,21,38,0.04), transparent 50%);
  pointer-events: none;
}
.admission-spotlight {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, var(--navy-deep) 0%, #0f1a2e 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(200,155,60,0.22);
  box-shadow: 0 24px 64px rgba(11, 21, 38, 0.18);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.admission-spotlight:hover {
  box-shadow: 0 32px 72px rgba(11, 21, 38, 0.24);
  transform: translateY(-2px);
}
.admission-spotlight__ribbon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(200,155,60,0.15), rgba(200,155,60,0.28), rgba(200,155,60,0.15));
  border-bottom: 1px solid rgba(200,155,60,0.25);
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-bright);
  overflow: hidden;
}
.admission-spotlight__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-bright);
  flex-shrink: 0;
  animation: admissionPulse 2s ease-in-out infinite;
}
@keyframes admissionPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(224,182,84,0.5); }
  50% { opacity: 0.85; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(224,182,84,0); }
}
.admission-spotlight__grid {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px);
}
.admission-spotlight__offer {
  text-align: center;
}
.scholarship-meter {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
}
.scholarship-meter__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.scholarship-meter__track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 8;
}
.scholarship-meter__fill {
  fill: none;
  stroke: var(--brass-bright);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.scholarship-meter.is-animated .scholarship-meter__fill {
  stroke-dashoffset: 163.36;
}
.scholarship-meter__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass-bright);
  line-height: 1;
}
.scholarship-meter__caption {
  margin: 0;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  max-width: 16ch;
  margin-inline: auto;
}
.admission-spotlight__copy h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin: 0 0 12px;
  line-height: 1.2;
  max-width: 22ch;
}
.admission-spotlight__copy p {
  color: #a8bdd8;
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 18px;
  max-width: 48ch;
}
.admission-spotlight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.admission-spotlight__tags li {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8d6e8;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 7px 12px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.admission-spotlight__tags li:hover {
  background: rgba(200,155,60,0.12);
  border-color: rgba(200,155,60,0.3);
}
.admission-spotlight__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 200px;
}
.admission-spotlight__btn-primary {
  box-shadow: 0 6px 24px rgba(200,155,60,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admission-spotlight__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(200,155,60,0.38);
}
.admission-spotlight__email {
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: #7a94b4;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}
.admission-spotlight__email:hover {
  color: var(--brass-bright);
}
@media (max-width: 900px) {
  .admission-spotlight__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .admission-spotlight__copy h2,
  .admission-spotlight__copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .admission-spotlight__tags {
    justify-content: center;
  }
  .admission-spotlight__actions {
    max-width: 320px;
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admission-spotlight:hover { transform: none; }
  .admission-spotlight__pulse { animation: none; }
  .scholarship-meter__fill { stroke-dashoffset: 163.36; transition: none; }
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-section { background: var(--card); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 1024px) { .contact-grid { gap: 56px; } }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 600px) {
  .contact-form { padding: 28px 20px; }
  .gallery-filters { gap: 8px; }
  .gallery-filter { padding: 7px 14px; font-size: 0.62rem; }
}
.contact-info h2 { margin-bottom: 24px; }
.info-row {
  display: flex; gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 1px solid var(--line); }
.info-row .k {
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: 100px;
  flex-shrink: 0;
  padding-top: 2px;
}
.info-row .v { font-size: 0.96rem; color: var(--navy-deep); font-weight: 500; line-height: 1.6; }
.info-row .v a { color: var(--navy-deep); transition: color .2s ease; }
.info-row .v a:hover { color: var(--brass-text); }
.directions-btn { margin-top: 24px; }

.contact-form {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-deep), var(--brass), var(--navy-deep));
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--navy-deep); }
form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-label);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(11,21,38,0.08);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 4px; }
.form-submit-btn { align-self: flex-start; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(11,21,38,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.modal-open {
  overflow: hidden;
}
.modal-container {
  position: relative;
  width: min(95vw, 1100px);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.show .modal-container { transform: scale(1); }
.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(11,21,38,0.55); color: #fff;
  border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background .2s ease;
}
.modal-close-btn:hover { background: rgba(11,21,38,0.88); }
.modal-banner-link { display: block; }
.modal-banner-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.modal-banner-link:hover .modal-banner-img { opacity: 0.95; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  color: #8fa4c2;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: flex-start;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; color: #fff;
}
.footer-brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; }
.footer-brand strong { display: block; font-size: 1rem; color: #fff; }
.footer-brand span { font-size: 0.78rem; color: #5f7898; font-family: var(--font-label); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f7898;
  margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 0.86rem; color: #8fa4c2; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.74rem;
  color: #445569;
  font-family: var(--font-label);
  letter-spacing: 0.04em;
}

/* ── EMBEDDED PDF CALENDAR VIEWER ────────────────────────── */
.calendar-viewer-wrap {
  margin-top: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.calendar-iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}
.calendar-fallback-actions {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.calendar-fallback-actions p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #a3b8d3;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .calendar-iframe {
    height: 480px;
  }
}

/* ── DEDICATED CALENDAR SECTION ──────────────────────────── */
.calendar-section {
  padding: 100px 0;
  background: var(--paper);
  position: relative;
}
.calendar-section .eyebrow {
  color: var(--ink-soft);
}
.calendar-section h2 {
  color: var(--navy-deep);
}
.calendar-section .section-lede {
  color: var(--ink);
}
.calendar-section .calendar-viewer-wrap {
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.calendar-section .calendar-fallback-actions {
  border-top-color: var(--line);
}
.calendar-section .calendar-fallback-actions p {
  color: var(--ink-muted);
}

/* ── FOUR-QUARTER STRUCTURE BENEFITS ──────────────────────── */
.structure-benefits {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 56px;
  position: relative;
}
.structure-benefits::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.benefits-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  color: var(--navy-deep);
  text-align: center;
  margin-bottom: 36px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  transition: transform .32s cubic-bezier(.4,0,.2,1),
              background .32s ease,
              border-color .32s ease,
              box-shadow .32s ease;
  position: relative;
  overflow: hidden;
}
.benefit-card:hover,
.benefit-card:focus-within {
  transform: translateY(-4px);
  background: var(--card);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.benefit-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(200,155,60,0.14), rgba(200,155,60,0.04));
  color: var(--brass);
  border: 1px solid rgba(200,155,60,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .3s ease, border-color .3s ease;
}
.benefit-card:hover .benefit-icon,
.benefit-card:focus-within .benefit-icon {
  background: linear-gradient(135deg, rgba(200,155,60,0.22), rgba(200,155,60,0.08));
  border-color: rgba(200,155,60,0.35);
}
.benefit-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin-bottom: 10px;
  line-height: 1.25;
}
.benefit-card p {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ── MOBILE OPTIMIZATION ─────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-top-h: 34px;
    --header-main-h: 64px;
  }

  .section-lede {
    margin-bottom: 32px;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .quote-block {
    font-size: 1.05rem;
    margin: 22px 0;
    padding-left: 16px;
  }

  .structure-benefits {
    margin-top: 48px;
    padding-top: 40px;
  }

  .calendar-section {
    padding: 64px 0;
  }

  .calendar-viewer-wrap {
    margin-top: 28px;
    padding: 12px;
  }

  .admissions-cta {
    padding: 48px 0;
  }

  .admission-spotlight__grid {
    padding: 24px 18px 28px;
  }

  .phase-item__trigger {
    min-height: 48px;
    padding: 14px 14px;
  }

  .phase-item.is-active .phase-item__body {
    max-height: 320px;
  }

  .academic-explorer__frame {
    aspect-ratio: 16 / 10;
    max-width: none;
  }

  .academic-explorer__arrow {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .stat-item {
    padding: 18px 10px;
  }

  .stat-value {
    font-size: 0.92rem;
  }

  .stat-label {
    font-size: 0.6rem;
    line-height: 1.35;
  }

  .stat-item:nth-last-child(1) {
    grid-column: 1 / -1;
    border-bottom: none;
    border-top: 1px solid var(--line);
  }

  .gallery-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 6px;
    margin-bottom: 24px;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .info-row {
    flex-direction: column;
    gap: 6px;
    padding: 16px 0;
  }

  .info-row .k {
    width: auto;
    padding-top: 0;
  }

  footer {
    padding: 40px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-cols {
    gap: 24px 32px;
    width: 100%;
  }

  .footer-col {
    flex: 1 1 calc(50% - 16px);
    min-width: 120px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .modal-overlay {
    padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
    align-items: center;
  }

  .modal-container {
    width: 100%;
    max-height: min(90vh, 720px);
    overflow-y: auto;
    border-radius: var(--radius-sm);
  }

  .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    font-size: 22px;
  }

  .calendar-iframe {
    height: min(62vh, 420px);
  }
}

@media (max-width: 480px) {
  .brand span,
  .brand > span {
    max-width: 11em;
  }

  .about-photo-accent {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 12px;
    width: 100%;
  }

  .about-visual {
    padding-bottom: 0;
  }

  .fac-card__content {
    transform: translateY(0);
    opacity: 1;
    padding: 36px 16px 14px;
  }

  .fac-card__label {
    transform: translateX(0);
    opacity: 1;
  }

  .benefit-card {
    padding: 22px 18px;
  }

  .academics-head {
    margin-bottom: 36px;
  }

  .academics-metric {
    padding: 16px 12px;
  }

  .academics-metric strong {
    font-size: 1.45rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .fac-card:hover,
  .fac-card:hover > img,
  .fac-hl:hover,
  .pillar-card:hover,
  .benefit-card:hover,
  .benefit-card:focus-within,
  .admission-spotlight:hover,
  .stat-item:hover {
    transform: none;
  }

  .fac-card:hover > img {
    transform: none;
    filter: none;
  }

  .btn:hover {
    transform: none;
  }
}


/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 80px 0 60px;
  background: var(--card);
}
.faq-section h2 {
  margin-bottom: 12px;
}
.faq-section .section-lede {
  margin-bottom: 40px;
}
.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-deep);
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform .3s ease, background .2s ease, color .2s ease;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item summary:hover {
  color: var(--brass-text);
}
.faq-item .faq-answer {
  padding: 0 4px 20px;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.7;
  animation: faqSlide .3s ease;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--paper);
}
.testimonials-section h2 {
  margin-bottom: 12px;
}
.testimonials-section .section-lede {
  margin-bottom: 48px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--brass-pale);
  pointer-events: none;
}
.testimonial-card blockquote {
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-top: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-deep);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--ink-muted);
}


/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  .sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: stretch;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    padding: 0;
  }
  .sticky-cta-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
    transition: background .2s ease;
  }
  .sticky-cta-bar a:hover,
  .sticky-cta-bar a:active {
    background: rgba(255,255,255,0.08);
  }
  .sticky-cta-bar a svg {
    width: 20px;
    height: 20px;
  }
  .sticky-cta-bar .sticky-cta--wa {
    background: #25d366;
  }
  .sticky-cta-bar .sticky-cta--wa:hover,
  .sticky-cta-bar .sticky-cta--wa:active {
    background: #1ebe5d;
  }
  .sticky-cta-bar .sticky-cta--apply {
    background: linear-gradient(135deg, var(--brass), var(--brass-bright));
    color: var(--navy-deep);
  }
  .sticky-cta-bar .sticky-cta--apply:hover,
  .sticky-cta-bar .sticky-cta--apply:active {
    background: var(--brass-bright);
  }

  body {
    padding-bottom: 68px;
  }
}


/* ============================================================
   FORM STATUS STATES
   ============================================================ */
.form-status {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 16px;
  text-align: center;
}
.form-status.is-visible {
  display: block;
  animation: faqSlide .3s ease;
}
.form-status--success {
  background: rgba(45,138,90,0.1);
  border: 1px solid rgba(45,138,90,0.3);
  color: var(--success);
}
.form-status--error {
  background: rgba(200,50,50,0.08);
  border: 1px solid rgba(200,50,50,0.25);
  color: #b33;
}
.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-fallback {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}
.form-fallback a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: var(--btn-py) var(--btn-px);
  font-size: var(--btn-fz);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  color: #fff;
}
.btn-whatsapp svg {
  flex-shrink: 0;
}
.header-top-left .wa-link {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.header-top-left .wa-link svg {
  color: #25d366;
}
.contact-wa-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-wa-row svg {
  color: #25d366;
  flex-shrink: 0;
}
