/* ============================================
   SRUTHI VIDHODHAYA — DESIGN SYSTEM
   Shared stylesheet for all pages
============================================ */

:root {
  --primary: #F0F8FF;
  --secondary: #003262;

  /* ═══ Accent color — solid #FFD800 (vivid yellow) ═══
     • --accent          → Solid color for text, icons, SVG, borders, backgrounds
     • --accent-gradient → Same solid color (kept variable name for legacy code)
     • --accent-soft     → Very light wash for backgrounds
     • --accent-rgb      → RGB triplet for rgba() usage */
  --accent: #FFD800;                          /* vivid yellow */
  --accent-end: #FFD800;                      /* same — gradient removed */
  --accent-soft: #FFF8D0;                     /* light yellow wash */
  --accent-rgb: 255, 216, 0;
  --accent-gradient: #FFD800;                 /* SOLID — no longer a gradient */

  --primary-deep: #DDECF8;
  --primary-soft: #E8F2FB;
  --surface: #FFFFFF;
  --secondary-soft: #1A4A85;
  --secondary-deep: #001F42;
  --ink-mute: #5A7494;
  --ink-soft: #8AA3BF;
  --line: #D6E5F2;
  --line-soft: #E8F0F9;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Section vertical padding — consistent across all pages */
  --section-y: clamp(56px, 7vw, 96px);
  --section-y-sm: clamp(40px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--primary);
  color: var(--secondary);
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   TYPOGRAPHY
============================================ */

.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary-soft);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--secondary);
  display: inline-block;
}

h1, h2, h3, h4, h5 { color: var(--secondary); font-weight: 700; letter-spacing: -0.02em; }
p { color: var(--ink-mute); }

/* ============================================
   LAYOUT
============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }
.section-pad { padding: clamp(70px, 10vw, 130px) 0; }

.section-head {
  margin-bottom: clamp(48px, 7vw, 80px);
  max-width: 720px;
}
.section-head .eyebrow { margin-bottom: 22px; }
.section-head h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.section-head .lede {
  margin-top: 22px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 56ch;
}

/* ============================================
   BUTTONS
============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--secondary); color: var(--primary); }
.btn-primary:hover { background: var(--secondary-soft); transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0, 50, 98, 0.45); }

/* Gradient CTA — for highlighted primary actions (Apply now, View gallery, etc.)
   Use this when you want a button that stands out from navy buttons. */
.btn-accent {
  background: var(--accent-gradient);
  color: var(--secondary);
  position: relative;
  overflow: hidden;
}
.btn-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  background-position: 100% 0;
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-accent:hover::before { opacity: 1; }
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(255, 216, 0, 0.5);
}
.btn-accent > * { position: relative; z-index: 1; }

.btn-secondary { background: transparent; color: var(--secondary); border: 1px solid var(--secondary); }
.btn-secondary:hover { background: var(--secondary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--secondary); padding: 8px 0; border-bottom: 1px solid var(--secondary); border-radius: 0; }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }

/* ============================================
   ANNOUNCEMENT BAR
============================================ */

.announcement {
  background: var(--secondary);
  color: var(--primary);
  padding: 10px var(--gutter);
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.announcement strong { font-weight: 700; letter-spacing: 0.06em; }
.announcement .ann-cta { text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.announcement .ann-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============================================
   NAVIGATION — centered logo + Home link
============================================ */

.nav {
  position: sticky; top: 0; z-index: 90;
  padding: 18px 0;
  background: rgba(240, 248, 255, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(240, 248, 255, 0.94);
  border-bottom-color: rgba(0, 50, 98, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 60px);
  position: relative;
}

.nav-links {
  display: flex;
  gap: clamp(2px, 1vw, 16px);
  list-style: none;
  align-items: center;
}
.nav-links-left { justify-content: flex-end; }
.nav-links-right { justify-content: flex-start; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--secondary);
  padding: 10px 6px;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 6px; right: 6px;
  height: 1.5px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { font-weight: 700; }

.nav-logo-center { height: 100px; transition: height 0.4s var(--ease); }
.nav.scrolled .nav-logo-center { height: 72px; }
.nav-logo-center a { display: block; height: 100%; }
.nav-logo-center img { height: 100%; max-width: 320px; object-fit: contain; }

/* Progressive logo scaling for smaller screens */
@media (max-width: 900px) {
  .nav-logo-center { height: 76px; }
  .nav.scrolled .nav-logo-center { height: 60px; }
  .nav-logo-center img { max-width: 240px; }
}
@media (max-width: 640px) {
  .nav-logo-center { height: 60px; }
  .nav.scrolled .nav-logo-center { height: 48px; }
  .nav-logo-center img { max-width: 190px; }
}
@media (max-width: 420px) {
  .nav-logo-center { height: 52px; }
  .nav.scrolled .nav-logo-center { height: 42px; }
  .nav-logo-center img { max-width: 160px; }
}

.nav-menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--secondary);
  color: var(--primary);
  align-items: center;
  justify-content: center;
}
.nav-menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .nav-links-left, .nav-links-right { display: none; }
  .nav-menu-btn {
    display: inline-flex;
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
  }
  .nav-inner { grid-template-columns: 1fr; justify-items: center; }
}

/* ============================================================
   MOBILE MENU — Brethren-style editorial design
   ------------------------------------------------------------
   Full-screen overlay (navy background) with a centered white
   card containing big bold menu items + Instagram preview card.
   Animation: card slides up + fades in; nav items stagger in.
============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--secondary);                  /* navy overlay */
  z-index: 95;
  padding: clamp(16px, 4vw, 24px);
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- White editorial card ---- */
.mm-card {
  background: var(--primary);
  border-radius: clamp(18px, 3vw, 24px);
  padding: clamp(20px, 5vw, 32px);
  width: 100%;
  max-width: 540px;
  min-height: calc(100vh - clamp(32px, 8vw, 48px));
  position: relative;
  display: flex;
  flex-direction: column;

  /* Animate card sliding up + fading in */
  transform: translateY(32px);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
}
.mobile-menu.open .mm-card {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.05s;
}

/* ---- Close button (top pill) ---- */
.mm-close {
  align-self: flex-start;
  background: var(--primary);
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 9px 14px 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.24s var(--ease);
}
.mm-close:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mm-close .mm-x {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  margin-left: 4px;
  position: relative;
  top: -1px;
}

/* ---- Big editorial menu items ---- */
.mm-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 1vw, 4px);
  margin-top: clamp(28px, 5vw, 44px);
  margin-bottom: clamp(28px, 5vw, 36px);
}
.mm-nav a {
  font-family: var(--sans);
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--secondary);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.15;
  padding: 6px 0;
  position: relative;
  transition: color 0.24s var(--ease), padding-left 0.32s var(--ease-out);

  /* Stagger animation — items start below and fade in */
  opacity: 0;
  transform: translateY(16px);
  transition-property: opacity, transform, color, padding-left;
  transition-duration: 0.45s, 0.45s, 0.24s, 0.32s;
}
.mm-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.32s var(--ease-out);
}
.mm-nav a:hover,
.mm-nav a.active {
  color: var(--secondary-deep);
  padding-left: 22px;
}
.mm-nav a:hover::before,
.mm-nav a.active::before {
  width: 14px;
}

/* Apply staggered entrance once menu is open */
.mobile-menu.open .mm-nav a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .mm-nav a:nth-child(1) { transition-delay: 0.18s, 0.18s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(2) { transition-delay: 0.22s, 0.22s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(3) { transition-delay: 0.26s, 0.26s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(4) { transition-delay: 0.30s, 0.30s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(5) { transition-delay: 0.34s, 0.34s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(6) { transition-delay: 0.38s, 0.38s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(7) { transition-delay: 0.42s, 0.42s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(8) { transition-delay: 0.46s, 0.46s, 0s, 0s; }
.mobile-menu.open .mm-nav a:nth-child(9) { transition-delay: 0.50s, 0.50s, 0s, 0s; }

/* ---- Instagram preview card ---- */
.mm-ig {
  text-decoration: none;
  color: inherit;
  margin-top: auto;
  padding-top: clamp(20px, 4vw, 28px);
  border-top: 1px solid var(--line);
  display: block;

  /* Animate the IG card last */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.mobile-menu.open .mm-ig {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.mm-ig-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: clamp(14px, 2vw, 18px);
  overflow: hidden;
  background: var(--secondary);
}
/* Photo fills the card */
.mm-ig-card img,
.mm-ig-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Dark gradient overlay for text readability over the photo */
.mm-ig-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 30, 60, 0.55) 0%, rgba(0, 50, 98, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}
.mm-ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: clamp(14px, 3.4vw, 17px);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.mm-ig-icon {
  width: clamp(20px, 5vw, 26px);
  height: clamp(20px, 5vw, 26px);
}
.mm-ig-text {
  font-family: var(--sans);
}
.mm-ig-caption {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #5a7494;
  letter-spacing: 0.02em;
}

/* ---- Tiny screens: tighter typography ---- */
@media (max-width: 380px) {
  .mm-nav a { font-size: 28px; }
}

/* Prevent body scroll when menu is open (added via JS below as well) */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   HERO (homepage)
============================================ */

.hero { padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-meta-top {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 32px;
}
.hero-meta-top .badge-icon {
  width: 18px; height: 18px;
  background: var(--secondary);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.hero-meta-top .badge-icon svg { width: 10px; height: 10px; color: var(--primary); }
.hero-meta-top .divider { width: 1px; height: 14px; background: var(--line); }

.hero h1 {
  font-size: clamp(44px, 6.8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-mute);
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.trust-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.trust-badges { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--secondary); }
.trust-badge .tb-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 660px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--secondary);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--ease); }
.hero-visual:hover img { transform: scale(1.04); }
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 31, 66, 0.5));
}
.hv-overlay {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--primary);
  z-index: 2;
  gap: 16px;
}
.hv-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.3;
  max-width: 22ch;
}
.hv-meta {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
  font-weight: 700;
  opacity: 0.85;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-height: 480px; aspect-ratio: 5/4; }
}

/* ============================================
   PAGE HEADER (inner pages)
============================================ */

.page-header {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
}
.ph-bread { font-size: 12px; color: var(--ink-mute); margin-bottom: 18px; font-weight: 600; letter-spacing: 0.02em; }
.ph-bread .ph-sep { color: var(--ink-soft); margin: 0 8px; }
.ph-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--secondary);
}
.ph-sub {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink-mute);
  max-width: 60ch;
  line-height: 1.65;
}

/* ============================================
   STATS STRIP
============================================ */

.stats-strip { background: var(--secondary); color: var(--primary); padding: clamp(48px, 7vw, 88px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { position: relative; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(10px, 1.5vw, 20px));
  top: 12px; bottom: 12px;
  width: 1px;
  background: rgba(240, 248, 255, 0.2);
}
.stat .num {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  color: var(--primary);
}
.stat .num sup { font-size: 0.45em; vertical-align: super; margin-left: 2px; opacity: 0.7; }
.stat .lbl { font-size: 13px; color: rgba(240, 248, 255, 0.7); line-height: 1.5; max-width: 22ch; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .stat + .stat::before { display: none; }
}

/* ============================================
   ABOUT BLOCK
============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about-side { position: sticky; top: 120px; }
.about-image { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--secondary); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-side .pull {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--r-lg);
  margin-top: -60px;
  margin-right: -8%;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 60px -28px rgba(0, 50, 98, 0.25);
}
.about-side .pull .label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 10px;
}
.about-side .pull .value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--secondary);
}
.about-text h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}
.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: var(--ink-mute);
}
.principles {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.principle {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s, transform 0.3s;
}
.principle:hover { border-color: var(--secondary); transform: translateY(-2px); }
.principle .ico {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.principle .ico svg { width: 18px; height: 18px; color: var(--secondary); }
.principle h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.principle p { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: relative; top: 0; max-width: 480px; }
  .about-side .pull { margin-right: 0; }
}
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* ============================================
   PROGRAMS / ACADEMICS
============================================ */

.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.program {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--line-soft);
}
.program:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 50, 98, 0.3); }
.program .p-img { aspect-ratio: 4/3; background: var(--secondary); overflow: hidden; position: relative; }
.program .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.program:hover .p-img img { transform: scale(1.06); }
.program .p-grade {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}
.program .p-body { padding: 22px 22px 24px; }
.program h4 { font-size: 22px; font-weight: 700; line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.02em; }
.program .p-desc { font-size: 14px; line-height: 1.55; color: var(--ink-mute); margin-bottom: 16px; }
.program .p-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
  padding-bottom: 3px;
}
.program .p-link svg { width: 11px; height: 11px; }
@media (max-width: 1000px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .programs { grid-template-columns: 1fr; } }

/* Curriculum subjects */
.curriculum-block {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 4vw, 64px);
  padding-top: 56px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.curriculum-block h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.curriculum-block .cb-head p { font-size: 14.5px; line-height: 1.6; color: var(--ink-mute); }
.subjects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.subject {
  background: var(--surface);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  transition: background 0.3s;
}
.subject:hover { background: var(--primary); }
.subject .sub-num { font-size: 12px; color: var(--ink-soft); min-width: 22px; font-weight: 700; }
@media (max-width: 760px) {
  .curriculum-block { grid-template-columns: 1fr; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) { .subjects { grid-template-columns: 1fr; } }

/* ============================================
   ADMISSIONS
============================================ */

.adm-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
/* .steps-list and .adm-step are styled in admissions.css — see that file */

.adm-card {
  background: var(--secondary);
  color: var(--primary);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  position: sticky;
  top: 120px;
}
.adm-card .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(240, 248, 255, 0.12);
  border: 1px solid rgba(240, 248, 255, 0.25);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
}
.adm-card .pill::before { content: ''; width: 6px; height: 6px; background: var(--accent-gradient); border-radius: 50%; display: inline-block; }
.adm-card h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.05; margin-bottom: 14px; letter-spacing: -0.025em; color: var(--primary); }
.adm-card > p { font-size: 14.5px; line-height: 1.6; margin-bottom: 28px; color: rgba(240, 248, 255, 0.75); }
.adm-dates {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 22px;
  background: rgba(240, 248, 255, 0.06);
  border-radius: var(--r);
  border: 1px solid rgba(240, 248, 255, 0.1);
}
.adm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.adm-row .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(240, 248, 255, 0.65); }
.adm-row .value { font-size: 16px; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.adm-card .btn-primary {
  background: var(--secondary);
  color: var(--primary);
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: 100px;
  box-shadow: 0 8px 20px -10px rgba(0, 50, 98, 0.45);
  transition: all 0.3s var(--ease, ease);
}
.adm-card .btn-primary:hover {
  background: var(--accent);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(255, 216, 0, 0.55);
}
.adm-card .btn-primary svg {
  transition: transform 0.3s ease;
}
.adm-card .btn-primary:hover svg {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .adm-grid { grid-template-columns: 1fr; }
  .adm-card { position: relative; top: 0; }
}

/* ============================================
   FACILITIES
============================================ */

.fac-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.fac {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--secondary);
  cursor: pointer;
}
.fac img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.fac:hover img { transform: scale(1.07); }
.fac::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 31, 66, 0.85));
  pointer-events: none;
}
.fac-body {
  position: absolute;
  bottom: 22px; left: 22px; right: 22px;
  color: var(--primary);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.fac h4 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--primary); margin-bottom: 4px; }
.fac .fac-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.fac-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.fac:hover .fac-arrow { transform: translate(4px, -4px); }
.fac-arrow svg { width: 13px; height: 13px; }

.fac:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.fac:nth-child(2), .fac:nth-child(3) { grid-column: span 2; }
.fac:nth-child(4), .fac:nth-child(5) { grid-column: span 3; }

@media (max-width: 900px) {
  .fac-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .fac:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .fac:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 520px) {
  .fac-grid { grid-template-columns: 1fr; }
  .fac:nth-child(1) { grid-column: span 1; }
}

/* ============================================
   GALLERY
============================================ */

.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal {
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--secondary);
  position: relative;
  cursor: pointer;
}
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gal:hover img { transform: scale(1.08); }
.gal.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gal.tall { grid-row: span 2; aspect-ratio: 1/2; }

@media (max-width: 760px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal.wide, .gal.tall { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; }
}

/* ============================================
   FACULTY
============================================ */

.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fc {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 50, 98, 0.3); }
.fc .fc-img { aspect-ratio: 4/5; background: var(--secondary); overflow: hidden; }
.fc .fc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.fc:hover .fc-img img { transform: scale(1.05); }
.fc .fc-body { padding: 22px 22px 24px; }
.fc .fc-name { font-size: 18px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--secondary); }
.fc .fc-role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary-soft); font-weight: 700; margin-bottom: 14px; }
.fc .fc-creds { font-size: 13px; color: var(--ink-mute); line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 900px) { .faculty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .faculty-grid { grid-template-columns: 1fr; } }

/* ============================================
   ALUMNI / TESTIMONIALS
============================================ */

.alumni-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.featured-quote {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 56px);
}
.featured-quote .q-mark { font-family: var(--serif); font-style: italic; font-size: 96px; line-height: 0.5; color: rgba(240, 248, 255, 0.3); margin-bottom: 20px; height: 36px; }
.featured-quote blockquote { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.3; margin-bottom: 32px; letter-spacing: -0.025em; color: var(--primary); }
.fq-author { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(240, 248, 255, 0.15); }
.fq-author .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(240, 248, 255, 0.1);
  border: 1px solid rgba(240, 248, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.fq-author .au-name { font-size: 17px; font-weight: 700; color: var(--primary); }
.fq-author .au-meta { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(240, 248, 255, 0.65); font-weight: 700; margin-top: 4px; }

.alumni-side { display: grid; gap: 16px; }
.mini-quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.3s;
}
.mini-quote:hover { border-color: var(--secondary); }
.mini-quote .stars { color: var(--accent); font-size: 12px; letter-spacing: 3px; margin-bottom: 12px; }
.mini-quote p { font-size: 15px; line-height: 1.5; color: var(--ink-mute); margin-bottom: 16px; font-style: italic; }
.mini-quote .mq-name { font-size: 13.5px; font-weight: 700; color: var(--secondary); }
.mini-quote .mq-meta { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-top: 3px; }

@media (max-width: 900px) { .alumni-grid { grid-template-columns: 1fr; } }

/* ============================================
   NEWS PAGE — dynamic cards from Google Sheets
============================================ */

.news-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.news-search { position: relative; max-width: 100%; }
.news-search input {
  width: 100%;
  padding: 14px 44px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  color: var(--secondary);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.news-search input::placeholder { color: var(--ink-soft); }
.news-search input:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(0, 50, 98, 0.08); }
.news-search .search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-soft); pointer-events: none; }
.news-search .clear-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--primary-deep); color: var(--secondary); display: none; place-items: center; }
.news-search .clear-btn.show { display: grid; }
.news-search .clear-btn svg { width: 12px; height: 12px; }

.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.3s;
}
.cat-tab:hover { background: var(--primary-deep); border-color: var(--secondary-soft); }
.cat-tab.active { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }

.news-count { font-size: 12px; color: var(--ink-mute); font-weight: 600; margin-bottom: 18px; }
.news-count strong { color: var(--secondary); font-weight: 700; }

@media (max-width: 600px) {
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .cat-tab { flex-shrink: 0; }
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  cursor: pointer;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0, 50, 98, 0.3); border-color: var(--line); }
.nc-img { aspect-ratio: 16/10; background: var(--primary-deep); overflow: hidden; position: relative; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.news-card:hover .nc-img img { transform: scale(1.06); }
.nc-img.no-img { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 30%, var(--primary-deep), var(--primary-soft)); }
.nc-img.no-img::after {
  content: '';
  width: 48px; height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4A85' stroke-width='1.4'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; opacity: 0.4;
}
.nc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.nc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary-soft); font-weight: 700; margin-bottom: 10px; }
.nc-cat { letter-spacing: 0.06em; text-transform: none; color: var(--secondary); background: var(--primary-deep); padding: 3px 10px; border-radius: 100px; font-size: 10.5px; }
.nc-msep { opacity: 0.35; font-weight: 400; }
.nc-title { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--secondary); }
.nc-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); margin: 0 0 16px; flex: 1; }
.nc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--secondary); align-self: flex-start;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
  transition: gap 0.3s;
}
.nc-link:hover { gap: 10px; }
.nc-link svg { width: 11px; height: 11px; }

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

/* Skeleton loading */
.news-skeleton { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.skel-img { aspect-ratio: 16/10; background: linear-gradient(90deg, var(--primary-deep) 25%, var(--primary-soft) 50%, var(--primary-deep) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skel-body { padding: 20px 22px 22px; }
.skel-line { height: 12px; background: var(--primary-deep); border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--primary-deep) 25%, var(--primary-soft) 50%, var(--primary-deep) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skel-line.short { width: 40%; }
.skel-line.med { width: 75%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.news-state {
  padding: 60px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--ink-mute);
}
.news-state h3 { font-size: 20px; font-weight: 700; color: var(--secondary); margin-bottom: 8px; letter-spacing: -0.02em; }
.news-state p { font-size: 14px; line-height: 1.55; max-width: 40ch; margin: 0 auto 18px; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* News modal */
.news-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 31, 66, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.news-modal-overlay.open { opacity: 1; visibility: visible; }
.news-modal {
  background: var(--surface);
  width: 100%;
  max-width: 640px;
  border-radius: var(--r-lg);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.news-modal::-webkit-scrollbar { display: none; }
.news-modal-overlay.open .news-modal { transform: scale(1) translateY(0); opacity: 1; }
.nm-img { aspect-ratio: 16/9; background: var(--primary-deep); overflow: hidden; }
.nm-img img { width: 100%; height: 100%; object-fit: cover; }
.nm-body { padding: clamp(24px, 4vw, 36px); }
.nm-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary-soft); font-weight: 700; margin-bottom: 14px; }
.nm-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 18px; color: var(--secondary); }
.nm-desc { font-size: 15px; line-height: 1.7; color: var(--ink-mute); white-space: pre-wrap; }
.nm-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0, 31, 66, 0.65);
  backdrop-filter: blur(8px);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}
.nm-close:hover { background: var(--secondary); transform: rotate(90deg); }
.nm-close svg { width: 14px; height: 14px; }

/* ============================================
   FAQ
============================================ */

.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-side .image { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--secondary); }
.faq-side .image img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--secondary); }
.faq-item.open { border-color: var(--secondary); }
.faq-q {
  padding: 22px 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.005em;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.faq-item.open .faq-icon { background: var(--secondary); color: var(--primary); transform: rotate(45deg); }
.faq-icon svg { width: 12px; height: 12px; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-a { padding: 0 24px 24px; max-height: 400px; }
.faq-a p { font-size: 14.5px; line-height: 1.65; color: var(--ink-mute); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: relative; top: 0; max-width: 480px; } }

/* ============================================
   CONTACT
============================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 20px; }
.contact-info > p { font-size: 15.5px; line-height: 1.65; color: var(--ink-mute); max-width: 46ch; margin-bottom: 36px; }

.contact-cards { display: grid; gap: 12px; }
.cc-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  transition: border-color 0.3s;
}
.cc-card:hover { border-color: var(--secondary); }
.cc-card .cc-ico {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}
.cc-card .cc-ico svg { width: 18px; height: 18px; color: var(--secondary); }
.cc-card .lbl { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 4px; }
.cc-card .val { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--secondary); }
.cc-card .val a { color: inherit; }
.cc-card .val a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form {
  background: var(--surface);
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.contact-form h4 { font-size: 22px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.contact-form .sub { font-size: 13.5px; color: var(--ink-mute); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--primary);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--secondary);
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23003262' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 11px; padding-right: 32px; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--secondary); background: var(--surface); }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

/* ============================================
   CTA BLOCK
============================================ */

.cta-block {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.cta-block h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--primary); margin-bottom: 14px; }
.cta-block p { color: rgba(240, 248, 255, 0.75); font-size: 15.5px; line-height: 1.6; max-width: 50ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta-block .btn-primary { background: var(--primary); color: var(--secondary); }
.cta-block .btn-primary:hover { background: var(--surface); }
.cta-block .btn-secondary { color: var(--primary); border-color: rgba(240, 248, 255, 0.3); }
.cta-block .btn-secondary:hover { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
@media (max-width: 800px) { .cta-block { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* ============================================
   FOOTER
============================================ */

footer { background: var(--secondary); color: var(--primary); padding: 80px 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(240, 248, 255, 0.18);
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { height: 60px; margin-bottom: 22px; display: block; }
.footer-brand .logo img { height: 100%; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(240, 248, 255, 0.85); line-height: 1.4; margin-bottom: 24px; }

.footer-col h5 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240, 248, 255, 0.55); font-weight: 700; margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 14px; color: rgba(240, 248, 255, 0.8); transition: color 0.3s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; flex-wrap: wrap; gap: 20px; }
.footer-bottom .legal { font-size: 12px; color: rgba(240, 248, 255, 0.55); line-height: 1.6; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(240, 248, 255, 0.25);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.socials a:hover { background: var(--primary); border-color: var(--primary); color: var(--secondary); }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================
   ADMISSION POPUP
============================================ */

.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 31, 66, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.popup-overlay.open { opacity: 1; visibility: visible; }
.popup {
  background: var(--surface);
  width: 100%;
  max-width: 500px;
  border-radius: var(--r-lg);
  padding: 0;
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
  box-shadow: 0 50px 100px -20px rgba(0, 31, 66, 0.5);
}
.popup::-webkit-scrollbar { display: none; }
.popup-overlay.open .popup { transform: scale(1) translateY(0); opacity: 1; }

.popup-banner {
  background: var(--secondary);
  color: var(--primary);
  padding: 24px 28px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.popup-banner .banner-icon {
  width: 44px; height: 44px;
  background: rgba(240, 248, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.popup-banner .banner-icon svg { width: 20px; height: 20px; color: var(--primary); }
.popup-banner .banner-text .small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.popup-banner .banner-text .big { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-top: 4px; color: var(--primary); }

.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(240, 248, 255, 0.18);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
  z-index: 2;
}
.popup-close:hover { background: rgba(240, 248, 255, 0.3); transform: rotate(90deg); }
.popup-close svg { width: 14px; height: 14px; }

.popup-body { padding: clamp(24px, 4vw, 36px); }
.popup-head { margin-bottom: 24px; }
.popup-head h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 8px; }
.popup-head p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }

.popup-form .field { margin-bottom: 14px; }
.popup-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .popup-form .field-row { grid-template-columns: 1fr; gap: 0; } }
.popup-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; padding: 14px; }
.popup-foot { text-align: center; margin-top: 16px; font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; }
.popup-foot strong { color: var(--secondary); font-weight: 700; }

.popup-success { text-align: center; padding: 8px 0; display: none; }
.popup-success.show { display: block; animation: fadeUp 0.6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.popup-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--secondary);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.popup-success .check svg { width: 28px; height: 28px; color: var(--secondary); }
.popup-success h3 { font-size: 26px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.025em; }
.popup-success p { font-size: 14px; color: var(--ink-mute); line-height: 1.55; max-width: 36ch; margin: 0 auto 24px; }

/* ============================================
   REVEAL ANIMATION
============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  /* Fallback: if JS doesn't add .in within 1.5s, force visible via animation
     so the site still renders even with a script error or slow network. */
  animation: reveal-fallback 0.6s var(--ease-out) 1.5s forwards;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Floating mobile apply */
.float-apply {
  position: fixed;
  bottom: 18px; right: 18px;
  z-index: 50;
  display: none;
  padding: 14px 20px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 32px -10px rgba(0, 50, 98, 0.5);
  align-items: center;
  gap: 8px;
}
.float-apply svg { width: 13px; height: 13px; }
@media (max-width: 720px) { .float-apply { display: inline-flex; } }

/* ============================================
   HOME PAGE — NEW LAYOUT (matches reference)
============================================ */

/* Hero card — contained white card on the page bg */
.home-hero {
  padding: 24px 0 0;
}
.hero-card {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  box-shadow: 0 1px 0 rgba(0, 50, 98, 0.04);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.hero-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

.hero-card h1 {
  font-size: clamp(40px, 5.8vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--secondary);
}
.hero-card h1 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.hero-card .hero-lede {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 42ch;
  margin-bottom: 32px;
}

.hero-card .hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-card .btn-text {
  background: none;
  border: none;
  padding: 14px 6px;
  color: var(--secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.hero-card .btn-text svg { width: 14px; height: 14px; transition: transform 0.3s; }
.hero-card .btn-text:hover svg { transform: translateX(3px); }

.hero-divider {
  height: 1px;
  background: var(--line);
  margin: 36px 0 28px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hs-num {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hs-num .big {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--secondary);
}
.hs-num .lbl {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.3;
  max-width: 9ch;
  font-weight: 500;
}
.hs-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: var(--primary-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.hs-pill .hs-ico {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hs-pill .hs-ico svg { width: 13px; height: 13px; }
.hs-pill strong { font-weight: 700; }

/* Photo collage on right */
.hero-photos {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 540px;
  margin: 0 auto;
}
.photo-main {
  position: absolute;
  top: 0; right: 0;
  width: 78%;
  aspect-ratio: 1/1;
  border-radius: 22px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 60px -30px rgba(0, 50, 98, 0.35);
}
.photo-main img { width: 100%; height: 100%; object-fit: cover; }
.photo-overlay {
  position: absolute;
  bottom: 4%; left: 4%;
  width: 44%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  padding: 8px;
  transform: rotate(-3deg);
  box-shadow: 0 24px 50px -22px rgba(0, 50, 98, 0.45);
  z-index: 2;
}
.photo-overlay img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.since-badge {
  position: absolute;
  top: 18px; right: 22px;
  background: var(--surface);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--secondary);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px -4px rgba(0, 50, 98, 0.2);
}
.since-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-photos { aspect-ratio: 5/4; max-height: 420px; max-width: 100%; margin-top: 16px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 14px; }
  .hs-num .big { font-size: 30px; }
}

/* ============================================
   WHY CHOOSE US — 3 cards with middle featured
============================================ */

.why-us { padding: clamp(80px, 11vw, 130px) 0 clamp(60px, 8vw, 100px); }
.wu-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); }
.wu-head .wu-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 22px;
}
.wu-head .wu-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.wu-head h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--secondary);
}
.wu-head h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}
.wu-head p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0 auto;
}

.wu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.wu-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 36px 32px;
  text-align: center;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wu-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 50, 98, 0.25); }
.wu-card .wu-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.wu-card .wu-icon svg { width: 24px; height: 24px; color: var(--secondary); }
.wu-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; color: var(--secondary); }
.wu-card .wu-desc { font-size: 14px; line-height: 1.6; color: var(--ink-mute); margin-bottom: 24px; max-width: 28ch; flex: 1; }
.wu-card .wu-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--secondary);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.wu-card .wu-read:hover { background: var(--primary); border-color: var(--secondary); }

/* Featured (middle) card — dark */
.wu-card.featured {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
}
.wu-card.featured .wu-icon { background: rgba(240, 248, 255, 0.12); }
.wu-card.featured .wu-icon svg { color: var(--primary); }
.wu-card.featured h3 { color: var(--primary); }
.wu-card.featured .wu-desc { color: rgba(240, 248, 255, 0.78); }
.wu-card.featured .wu-read { background: var(--primary); color: var(--secondary); border-color: var(--primary); }
.wu-card.featured .wu-read:hover { background: var(--surface); }

@media (max-width: 900px) {
  .wu-cards { grid-template-columns: 1fr; gap: 16px; max-width: 460px; margin: 0 auto; }
}

/* ============================================
   FEATURED EVENT card
============================================ */

.featured-event { padding: 20px 0 clamp(60px, 9vw, 100px); }
.fe-card {
  background: var(--secondary);
  border-radius: 22px;
  padding: clamp(32px, 4vw, 56px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: var(--primary);
  overflow: hidden;
}
.fe-card::after {
  content: '';
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 248, 255, 0.05), transparent 70%);
  pointer-events: none;
}
.fe-top { display: flex; justify-content: space-between; align-items: flex-start; }
.fe-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 216, 0, 0.18);
  border: 1px solid rgba(255, 216, 0, 0.35);
  color: var(--accent);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.fe-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.fe-play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
}
.fe-play:hover { transform: scale(1.05); }
.fe-play svg { width: 18px; height: 18px; margin-left: 3px; }

.fe-bottom { position: relative; z-index: 2; }
.fe-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(240, 248, 255, 0.55);
  margin-bottom: 12px;
}
.fe-card h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 24px;
  max-width: 22ch;
}
.fe-card h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.fe-meta {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(240, 248, 255, 0.85);
}
.fe-meta span { display: inline-flex; align-items: center; gap: 8px; }
.fe-meta svg { width: 14px; height: 14px; opacity: 0.7; }

/* ============================================
   JOIN US (final) CTA card
============================================ */

.join-us { padding: 0 0 clamp(60px, 9vw, 100px); }
.ju-card {
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(60px, 9vw, 110px) clamp(28px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ju-card::before,
.ju-card::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--primary-soft);
  pointer-events: none;
  z-index: 0;
}
.ju-card::before { top: -120px; left: -120px; }
.ju-card::after { bottom: -120px; right: -120px; }
.ju-card > * { position: relative; z-index: 1; }
.ju-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 22px;
}
.ju-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.ju-card h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--secondary);
  margin-bottom: 18px;
}
.ju-card h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}
.ju-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 52ch;
  margin: 0 auto 32px;
}

/* ============================================
   FOOTER NEWSLETTER (added column)
============================================ */

.footer-top.with-newsletter {
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
}
.footer-newsletter h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.55);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-newsletter p {
  font-size: 14px;
  color: rgba(240, 248, 255, 0.8);
  line-height: 1.55;
  margin-bottom: 18px;
}
.newsletter-form {
  display: flex;
  background: rgba(240, 248, 255, 0.08);
  border: 1px solid rgba(240, 248, 255, 0.18);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--primary);
  min-width: 0;
}
.newsletter-form input::placeholder { color: rgba(240, 248, 255, 0.5); }
.newsletter-form button {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.newsletter-form button:hover { background: var(--surface); }

@media (max-width: 1000px) {
  .footer-top.with-newsletter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top.with-newsletter { grid-template-columns: 1fr; }
}

/* Footer bottom — privacy/terms */
.footer-bottom .legal-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.footer-bottom .legal-links a {
  color: rgba(240, 248, 255, 0.55);
  transition: color 0.3s;
}
.footer-bottom .legal-links a:hover { color: var(--primary); }

/* ============================================
   PAGE-WIDE TWEAKS FOR THE NEW REFERENCE DESIGN
============================================ */

/* Big page-header titles with italic accents (no border) */
.page-header {
  border-bottom: none;
  padding: clamp(60px, 8vw, 100px) 0 clamp(20px, 4vw, 40px);
}
.ph-title .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}

/* Two-column section head: big heading on left, lede on right */
.section-head-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.section-head-2col .sh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 18px;
}
.section-head-2col .sh-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.section-head-2col h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--secondary);
}
.section-head-2col h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}
.section-head-2col .sh-right {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-mute);
  max-width: 46ch;
}
@media (max-width: 800px) {
  .section-head-2col { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

/* ============================================
   ABOUT — "Education that respects the whole child"
============================================ */

.about-respects {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}
.ar-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.ar-left h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--secondary);
}
.ar-left h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
}
.ar-right p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.ar-cards {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ar-card {
  background: var(--surface);
  padding: 28px 28px 30px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s, transform 0.3s;
}
.ar-card:hover { border-color: var(--secondary); transform: translateY(-2px); }
.ar-card .ar-ico {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ar-card .ar-ico svg { width: 20px; height: 20px; color: var(--secondary); }
.ar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.ar-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }

@media (max-width: 800px) {
  .ar-grid { grid-template-columns: 1fr; }
  .ar-cards { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT — Dark section with image stack + stats
============================================ */

.about-dark {
  background: var(--secondary);
  color: var(--primary);
  padding: clamp(60px, 9vw, 110px) 0;
}
.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.ad-images {
  display: grid;
  gap: 18px;
}
.ad-images .img {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(240, 248, 255, 0.08);
}
.ad-images .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-images .img-1 { aspect-ratio: 5/3.6; }
.ad-images .img-2 { aspect-ratio: 5/3.6; }
.ad-text h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--primary);
  margin-bottom: 22px;
}
.ad-text h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.ad-text p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 248, 255, 0.78);
  margin-bottom: 18px;
  max-width: 48ch;
}
.ad-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(240, 248, 255, 0.18);
  margin-top: 32px;
  max-width: 380px;
}
.ad-stat .ad-num {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.ad-stat .ad-num::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--accent-gradient);
}
.ad-stat .ad-lbl {
  font-size: 12.5px;
  color: rgba(240, 248, 255, 0.7);
  line-height: 1.4;
  max-width: 18ch;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .ad-grid { grid-template-columns: 1fr; }
}

/* Footer credit (right side of footer-bottom) */
.footer-bottom .credit {
  font-size: 12px;
  color: rgba(240, 248, 255, 0.55);
  margin: 0;
}
.footer-bottom .credit a {
  color: inherit;
  transition: color 0.3s;
}
.footer-bottom .credit a:hover {
  color: var(--primary);
}

/* ============================================
   DOWNLOADS PAGE
============================================ */
.dl-group { margin-bottom: 40px; }
.dl-group h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--secondary);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dl-list li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; transition: border-color 0.3s; }
.dl-list li:hover { border-color: var(--secondary); }
.dl-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
}
.dl-list svg { color: var(--secondary-soft); flex-shrink: 0; }
.dl-list span:not(.dl-dl) { flex: 1; }
.dl-list .dl-dl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
}
.dl-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-mute);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

/* ============================================
   FOOTER v2 — Comprehensive School Footer
   ──────────────────────────────────────────
   Replaces previous footer styling.
   Sections: Newsletter band → Main grid (Info, Quick,
   Resources, Community, Contact) → Bottom bar.
============================================ */

/* Reset the older footer paddings */
footer { padding: 0 !important; }

/* --- Newsletter band at the top of the footer --- */
.footer-newsletter-band {
  background: linear-gradient(135deg, #002048 0%, var(--secondary) 100%);
  border-bottom: 1px solid rgba(240, 248, 255, 0.1);
  padding: clamp(24px, 2.5vw, 32px) 0;
  position: relative;
  overflow: hidden;
}
.footer-newsletter-band::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255, 216, 0, 0.06) 0%, transparent 60%);
  top: -190px; right: -120px;
  pointer-events: none;
}
.fnb-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.fnb-text .fnb-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 216, 0, 0.12);
  border: 1px solid rgba(255, 216, 0, 0.25);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fnb-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.fnb-text h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 4px;
}
.fnb-text h3 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.fnb-text p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(240, 248, 255, 0.7);
  margin: 0;
  max-width: 460px;
}
.fnb-form {
  display: flex;
  gap: 8px;
  background: rgba(240, 248, 255, 0.08);
  border: 1px solid rgba(240, 248, 255, 0.15);
  border-radius: 100px;
  padding: 4px;
  backdrop-filter: blur(4px);
}
.fnb-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--primary);
  outline: none;
}
.fnb-form input::placeholder { color: rgba(240, 248, 255, 0.45); }
.fnb-form button {
  background: var(--accent-gradient);
  color: var(--secondary);
  border: 0;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.24s ease;
}
.fnb-form button:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(255, 216, 0, 0.5); }

/* --- Main footer body --- */
.footer-main {
  background: var(--secondary);
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
  gap: clamp(20px, 2.4vw, 36px);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(240, 248, 255, 0.12);
}

/* --- Column 1: School Information --- */
.fg-brand { max-width: 340px; }
.fg-brand .fg-logo {
  display: block;
  margin-bottom: 16px;
}
.fg-brand .fg-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}
.fg-brand .fg-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 10px;
}
.fg-brand .fg-tagline {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(240, 248, 255, 0.7);
  margin-bottom: 18px;
}
.fg-brand .fg-socials {
  display: flex;
  gap: 10px;
}
.fg-brand .fg-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(240, 248, 255, 0.2);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(240, 248, 255, 0.7);
  transition: all 0.3s ease;
}
.fg-brand .fg-socials a:hover {
  background: var(--accent-gradient);
  border-color: var(--accent);
  color: var(--secondary);
  transform: translateY(-2px);
}
.fg-brand .fg-socials svg { width: 16px; height: 16px; }

/* --- Link columns: Quick / Resources / Community --- */
.fg-col h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.fg-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fg-col a {
  font-size: 13px;
  color: rgba(240, 248, 255, 0.75);
  text-decoration: none;
  transition: all 0.24s ease;
  display: inline-block;
}
.fg-col a:hover {
  color: var(--primary);
  padding-left: 4px;
}

/* --- Contact column with icons --- */
.fg-contact h5 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.fg-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fg-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.fg-contact-item .ico {
  width: 28px; height: 28px;
  background: rgba(240, 248, 255, 0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}
.fg-contact-item .ico svg { width: 12px; height: 12px; }
.fg-contact-item .text {
  font-size: 12.5px;
  color: rgba(240, 248, 255, 0.78);
  line-height: 1.5;
  min-width: 0;
}
.fg-contact-item .text a {
  color: rgba(240, 248, 255, 0.78);
  text-decoration: none;
  transition: color 0.24s ease;
}
.fg-contact-item .text a:hover { color: var(--accent); }
.fg-contact-item .text strong {
  display: block;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}

/* --- Bottom bar --- */
.footer-bottombar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
}
.fbb-copy {
  font-size: 12.5px;
  color: rgba(240, 248, 255, 0.55);
  line-height: 1.7;
}
.fbb-copy strong {
  color: rgba(240, 248, 255, 0.85);
  font-weight: 700;
  display: block;
}
.fbb-center {
  display: flex;
  align-items: center;
  gap: 18px;
}
.fbb-center a {
  font-size: 12.5px;
  color: rgba(240, 248, 255, 0.7);
  text-decoration: none;
  transition: color 0.24s ease;
}
.fbb-center a:hover { color: var(--accent); }
.fbb-center .sep {
  width: 3px; height: 3px;
  background: rgba(240, 248, 255, 0.3);
  border-radius: 50%;
}
.fbb-credit {
  font-size: 12px;
  color: rgba(240, 248, 255, 0.5);
  text-align: right;
}
.fbb-credit a {
  color: rgba(240, 248, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted rgba(240, 248, 255, 0.25);
  transition: all 0.24s ease;
}
.fbb-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .fg-brand { grid-column: 1 / -1; max-width: 540px; }
}

@media (max-width: 880px) {
  .fnb-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottombar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
  .fbb-copy, .fbb-credit { text-align: center; }
  .fbb-center { justify-content: center; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .fnb-form { flex-direction: column; background: transparent; border: 0; padding: 0; gap: 10px; }
  .fnb-form input { background: rgba(240, 248, 255, 0.08); border: 1px solid rgba(240, 248, 255, 0.15); border-radius: 12px; padding: 14px 18px; }
  .fnb-form button { border-radius: 12px; padding: 14px 24px; }
}

/* ============================================================
   FORMSUBMIT AJAX THANK-YOU + ERROR STATES
   Used by the unified form handler in script.js
============================================================ */
.fs-thanks {
  background: linear-gradient(135deg, rgba(255, 216, 0, 0.08), rgba(0, 50, 98, 0.04));
  border: 1px solid rgba(0, 50, 98, 0.12);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 32px);
  text-align: center;
  animation: fsThanksIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fsThanksIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fs-thanks-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  box-shadow: 0 8px 24px -8px rgba(255, 216, 0, 0.45);
}
.fs-thanks-icon svg {
  width: 28px; height: 28px;
}
.fs-thanks h4 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.fs-thanks p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a6885;
  margin: 0 0 6px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.fs-thanks-sub {
  font-size: 12.5px !important;
  color: #6b8caf !important;
  margin-top: 10px !important;
  font-style: italic;
}

/* Error banner above form */
.fs-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  animation: fsErrorIn 0.3s ease-out both;
}
@keyframes fsErrorIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Newsletter footer band thank-you — needs smaller/inverted styling since it's on dark bg */
.footer-newsletter-band .fs-thanks {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 216, 0, 0.3);
  padding: 20px 24px;
  margin-top: 0;
}
.footer-newsletter-band .fs-thanks h4 {
  color: var(--primary);
  font-size: 17px;
}
.footer-newsletter-band .fs-thanks p {
  color: rgba(240, 248, 255, 0.85);
  font-size: 13px;
}
.footer-newsletter-band .fs-thanks-sub {
  color: rgba(240, 248, 255, 0.55) !important;
}

/* ============================================================
   DESIGNER CREDIT LINK — Portfolio link in footer
============================================================ */
.designer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 216, 0, 0.35);
  transition: color 0.24s ease, border-color 0.24s ease;
  padding-bottom: 1px;
}
.designer-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.designer-link strong {
  font-weight: 700;
}