/* Bhaskar Academy Landing — clear school theme, performance-first */
/* Self-hosted fonts (no external dependency, works fully offline) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --cream-50: #fffaf0;
  --cream-100: #fff2d8;
  --cream-200: #ffe2a8;
  --gold-300: #ffe08a;
  --gold-400: #f4b321;
  --gold-500: #f09000;
  --gold-600: #b55f00;
  --gold-700: #753800;
  --sun-500: #f0a020;
  --red-500: #d60012;
  --red-600: #a8000f;
  --logo-black: #111111;
  --ink-950: #111111;
  --ink-900: #17120d;
  --ink-700: #33271c;
  --ink-600: #514233;
  --ink-500: #6d6257;
  --ink-300: #988d82;
  --white: #ffffff;
  --shadow-soft: 0 14px 34px -24px rgba(17, 17, 17, 0.28);
  --shadow-card: 0 18px 48px -30px rgba(17, 17, 17, 0.32);
  --shadow-gold: 0 18px 38px -22px rgba(214, 0, 18, 0.45);
  --radius-xl: 0.5rem;
  --radius-2xl: 0.5rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-700);
  background: linear-gradient(180deg, #fffaf0, #fff2d8 52%, #fffaf0);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  letter-spacing: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  text-wrap: balance;
}
p { text-wrap: pretty; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link (a11y) */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--ink-900);
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); color: var(--gold-300); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 150;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red-600), var(--gold-500) 58%, var(--gold-300));
  box-shadow: 0 1px 12px -2px rgba(214, 0, 18, 0.35);
  will-change: transform;
}

/* Ambient background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(255,250,240,0.96), rgba(255,242,216,0.9)),
    radial-gradient(circle at 18% 12%, rgba(240, 144, 0, 0.12), transparent 22rem),
    radial-gradient(circle at 85% 18%, rgba(214, 0, 18, 0.08), transparent 20rem),
    linear-gradient(300deg, rgba(244,179,33,0.12), transparent 48%);
  pointer-events: none;
}
.particle-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 0, 18, 0.1);
  transition: box-shadow 0.35s var(--ease-out);
}
.nav.is-scrolled { box-shadow: 0 12px 32px -24px rgba(17, 17, 17, 0.28); }
.nav__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-900);
}
.nav__brand img { width: 2.75rem; height: auto; }
.nav__brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .nav__brand span { font-size: 1rem; }
}
.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
}
@media (min-width: 1180px) {
  .nav__links { display: flex; }
}
.nav__links a {
  position: relative;
  display: block;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-600);
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-600), var(--gold-500));
  transform: translateX(-50%);
  opacity: 0;
  transition: width 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__links a:hover {
  color: var(--ink-900);
  background: rgba(240, 144, 0, 0.1);
}
.nav__links a.is-active { color: var(--ink-900); }
.nav__links a.is-active::after {
  width: calc(100% - 1.44rem);
  opacity: 1;
}
.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(214, 0, 18, 0.16);
  border-radius: 0.5rem;
  background: var(--white);
  cursor: pointer;
  color: var(--ink-900);
}
@media (min-width: 1180px) { .nav__toggle { display: none; } }
.nav__drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.nav__drawer.is-open { transform: translateX(0); }
.nav__drawer a {
  display: block;
  padding: 1rem 0;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-700);
  border-bottom: 1px solid rgba(214, 0, 18, 0.1);
}

/* Sections */
.page-section {
  padding: clamp(4.75rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 2.5rem);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.page-section__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.85rem;
}
.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink-900);
  margin: 0 0 1.25rem;
}
.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 42rem;
  margin: 0;
}

/* Hero */
.hero {
  min-height: min(820px, calc(100dvh - 4.5rem));
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 10vw, 7rem));
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,250,240,0.96), rgba(255,242,216,0.84) 45%, rgba(255,250,240,0.22)),
    linear-gradient(180deg, rgba(17,17,17,0.04), rgba(17,17,17,0.24)),
    url("../img/hero/bhaskar-academy-hero.webp") center/cover no-repeat;
  opacity: 1;
  filter: saturate(1.05) contrast(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--cream-50));
}
.hero__grid {
  display: grid;
  align-items: end;
}
.hero-copy {
  position: relative;
  width: min(700px, 100%);
}
.hero .hero-copy > * {
  opacity: 1;
  transform: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(214, 0, 18, 0.18);
  box-shadow: 0 10px 24px -18px rgba(17, 17, 17, 0.32);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--red-500);
}
.hero__title {
  font-size: clamp(2.55rem, 6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(135deg, var(--red-600), var(--gold-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.9rem 1.7rem;
  border-radius: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn--gold {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 14px 30px -20px rgba(214, 0, 18, 0.5);
}
.btn--gold:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -20px rgba(214, 0, 18, 0.58);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  border: 1px solid rgba(214, 0, 18, 0.18);
  box-shadow: var(--shadow-soft);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .hero {
    padding-top: calc(var(--nav-h) + 2.25rem);
    padding-bottom: 2.75rem;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,250,240,0.97), rgba(255,242,216,0.9) 62%, rgba(255,250,240,0.5)),
      linear-gradient(180deg, rgba(17,17,17,0.02), rgba(17,17,17,0.24)),
      url("../img/hero/bhaskar-academy-hero.webp") center/cover no-repeat;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero .reveal {
  opacity: 1;
  transform: none;
}

/* Feature grid */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tile {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(214, 0, 18, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.tile__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  background: rgba(240, 144, 0, 0.14);
  color: var(--red-600);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--ink-900);
}
.tile p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ink-600); }

/* Timeline / programs */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.panel {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid rgba(214, 0, 18, 0.1);
  box-shadow: var(--shadow-soft);
}
.panel ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-500);
}
.panel li + li { margin-top: 0.5rem; }

.media-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid rgba(214, 0, 18, 0.1);
  box-shadow: var(--shadow-card);
}
.media-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.media-card:hover img { transform: scale(1.02); }

.director-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid rgba(214, 0, 18, 0.1);
  box-shadow: var(--shadow-card);
}
@media (min-width: 820px) {
  .director-card { grid-template-columns: 280px 1fr; }
}
.director-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.5rem;
}
.director-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  line-height: 1.25;
  color: var(--ink-900);
}

.gallery-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,243,223,0.64)),
    var(--cream-200);
  border: 1px solid rgba(214, 0, 18, 0.1);
  box-shadow: var(--shadow-card);
  transform: translateZ(0);
  isolation: isolate;
}
/* Feature tiles only vary in WIDTH (never row-span) so the grid packs with
   no holes. The 8/3 ratio keeps a 2-column tile the same height as a 4/3 tile. */
@media (min-width: 1080px) {
  .gallery-item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.02);
  transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.gallery-item--contain img {
  object-fit: contain;
  padding: 0.7rem;
  background: linear-gradient(135deg, #ffffff, var(--cream-100));
}
.gallery-item--top img { object-position: top center; }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 45%, rgba(17,16,13,0.68)),
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.34), transparent 12rem);
  opacity: 0.85;
  transition: opacity 0.45s var(--ease-out);
}
.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.1) contrast(1.04);
}
.gallery-item:hover::after {
  opacity: 0.55;
}
.gallery-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px -18px rgba(17,16,13,0.32);
}
.gallery-item.reveal {
  transform: translate3d(0, 34px, 0) scale(0.98);
}
.gallery-item.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}
.gallery-item:nth-child(2) { transition-delay: 0.04s; }
.gallery-item:nth-child(3) { transition-delay: 0.08s; }
.gallery-item:nth-child(4) { transition-delay: 0.12s; }
.gallery-item:nth-child(5) { transition-delay: 0.16s; }
.gallery-item:nth-child(6) { transition-delay: 0.20s; }
.gallery-item:nth-child(7) { transition-delay: 0.24s; }
.gallery-item:nth-child(8) { transition-delay: 0.28s; }
.gallery-item:nth-child(9) { transition-delay: 0.32s; }
.gallery-item:nth-child(10) { transition-delay: 0.36s; }
.gallery-item:nth-child(11) { transition-delay: 0.40s; }

/* Contact */
.contact-card {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid rgba(214, 0, 18, 0.1);
  box-shadow: var(--shadow-card);
}
@media (min-width: 700px) {
  .contact-card { grid-template-columns: repeat(3, 1fr); }
}
.contact-card dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 0.35rem;
}
.contact-card dd { margin: 0; color: var(--ink-900); font-weight: 600; }
.contact-card a { color: var(--ink-900); text-decoration: none; }
.contact-card a:hover { color: var(--red-600); text-decoration: underline; }

/* Premium additions */
.seo-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.seo-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(214, 0, 18, 0.12);
  color: var(--ink-700);
  font-size: 0.78rem;
  font-weight: 800;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.65rem;
  max-width: 580px;
}
@media (min-width: 720px) {
  .hero-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hero-metric {
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23,68,111,0.12);
  box-shadow: 0 12px 28px -24px rgba(17, 17, 17, 0.28);
}
.hero-metric strong {
  display: block;
  font-family: var(--font-display);
  color: var(--ink-900);
  font-size: 1.35rem;
  line-height: 1;
}
.hero-metric span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.announcement {
  margin: -1.75rem auto 0;
  width: min(1140px, calc(100% - 2rem));
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid rgba(214, 0, 18, 0.12);
  box-shadow: var(--shadow-card);
}
.announcement.reveal {
  opacity: 1;
  transform: none;
}
.announcement .btn {
  grid-column: 1 / -1;
}
@media (min-width: 840px) {
  .announcement {
    grid-template-columns: auto 1fr auto;
    padding: 1.1rem 1.25rem;
  }
  .announcement .btn {
    grid-column: auto;
  }
}
.announcement__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  background: var(--red-600);
  color: #fff;
  font-weight: 900;
}
.announcement strong { color: var(--ink-900); }
.announcement p { margin: 0; color: var(--ink-500); }
.section-intro {
  max-width: 740px;
  margin-bottom: 2.35rem;
}
.program-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 860px) {
  .program-grid { grid-template-columns: repeat(4, 1fr); }
}
.program-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.78) 55%, rgba(255,255,255,0.94)),
    var(--program-img) center/cover no-repeat;
  color: var(--ink-900);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), filter 0.45s;
  border: 1px solid rgba(23,68,111,0.1);
  position: relative;
}
.program-card:hover { transform: translateY(-4px); filter: saturate(1.05); }
.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 80% 18%, rgba(255,255,255,0.72), transparent 9rem);
  pointer-events: none;
}
.program-card > * {
  position: relative;
  z-index: 1;
}
.program-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.program-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.92rem;
  font-weight: 600;
}
.program-card--early { --program-img: url("../img/illustrations/early-years.svg"); }
.program-card--primary { --program-img: url("../img/illustrations/primary-school.svg"); }
.program-card--middle { --program-img: url("../img/illustrations/middle-school.svg"); }
.program-card--secondary { --program-img: url("../img/illustrations/secondary-school.svg"); }
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.step-card {
  counter-increment: step;
  position: relative;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(23,68,111,0.1);
  box-shadow: var(--shadow-soft);
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background: var(--red-600);
  color: #fff;
  font-weight: 900;
}
.step-card h3 {
  margin: 0 0 0.35rem;
  color: var(--ink-900);
}
.step-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.9rem;
}
.achievement-band {
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(17,17,17,0.92), rgba(168,0,15,0.84)),
    url("../img/gallery/bhaskar-campus-10.webp") center/cover no-repeat;
  background-blend-mode: multiply;
  color: white;
  box-shadow: var(--shadow-card);
}
.achievement-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (min-width: 780px) {
  .achievement-grid { grid-template-columns: repeat(4, 1fr); }
}
.achievement-grid div {
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.achievement-grid strong {
  display: block;
  color: var(--gold-300);
  font-size: 1.4rem;
  line-height: 1;
}
.achievement-grid span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.85rem;
  font-weight: 700;
}
.faq {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}
.faq details {
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(23,68,111,0.1);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  color: var(--ink-900);
  font-weight: 900;
}
.faq p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-500);
}

/* Footer */
.footer {
  padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
  border-top: 1px solid rgba(214, 0, 18, 0.1);
  background: rgba(255, 255, 255, 0.72);
}
.footer__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer__legal button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal button:hover { color: var(--red-600); }
.footer__copy {
  font-size: 0.82rem;
  color: var(--ink-300);
  margin: 0;
}

/* Legal modal */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
@media (min-width: 768px) {
  .modal-root { align-items: center; padding: 1.5rem; }
}
.modal-root.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  background: var(--white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: 0 40px 100px -30px rgba(17, 17, 17, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
}
@media (min-width: 768px) {
  .modal { border-radius: var(--radius-2xl); transform: translateY(24px) scale(0.97); }
}
.modal-root.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(214, 0, 18, 0.1);
  flex-shrink: 0;
}
.modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink-900);
}
.modal__close {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--cream-100);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-700);
}
.modal__body {
  padding: 1.25rem 1.5rem 1.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 0.92rem;
  color: var(--ink-500);
}
.modal__body h3 {
  color: var(--ink-900);
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.modal__body h3:first-child { margin-top: 0; }
.modal__body p, .modal__body li { margin: 0 0 0.75rem; }
.modal__body ul, .modal__body ol { padding-left: 1.25rem; }
.modal__updated {
  font-size: 0.78rem;
  color: var(--ink-300);
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(214, 0, 18, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
