/* ==========================================================================
   Vidyodaya Academy — custom design system
   Bootstrap 5 is used only for its grid/container utilities and JS bundle;
   all visual styling below is bespoke and overrides/ignores Bootstrap's
   default component look.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Neutral surface palette */
  --bg:            #F8FAFC;   /* page background */
  --bg-alt:        #EEF2F7;   /* alternating section background */
  --surface:       #FFFFFF;   /* card surfaces */
  --line:          #E2E8F0;   /* hairline borders */

  /* Text */
  --ink:           #17202A;
  --ink-soft:      #4B5A68;
  --ink-faint:     #5E6E7B;

  /* Brand: Navy (trust/structure), Teal (accent/highlights), Yellow (CTAs) */
  --navy:          #12355B;
  --navy-dark:     #0C2540;
  --on-navy:       #F8FAFC;
  --on-navy-soft:  #A9C6DC;   /* muted light text on navy */
  --on-navy-teal:  #8FD4C7;   /* teal-tinted highlight text on navy */

  --accent:        #0F766E;   /* teal — icons, links, secondary highlights */
  --accent-dark:   #0B5C56;
  --accent-soft:   #E3F1EF;   /* tint for badges/backgrounds */

  --yellow:        #F4B942;   /* CTAs, important highlights, small accents */
  --yellow-dark:   #E0A62E;
  --on-yellow:     #12355B;   /* text on yellow surfaces */

  /* Kept as an alias so any remaining "on-accent" usage still resolves */
  --on-accent:     var(--on-navy);

  /* Semantic */
  --error:         #B3261E;
  --success:       #15803D;

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container-max: 1200px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: .18s;
  --dur-base: .3s;
  --dur-slow: .5s;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(18, 53, 91, 0.08);
  --shadow-md: 0 6px 20px rgba(18, 53, 91, 0.10);
  --shadow-lg: 0 16px 36px rgba(18, 53, 91, 0.16);
}

/* ---------- Reset-ish base ---------- */
* { box-sizing: border-box; }
html {
  scroll-padding-top: 88px; /* offset for sticky header on in-page jumps */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net: no horizontal scroll from any stray element */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container-xl {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 20px);
}

/* Grid/flex items default to min-width:auto, which lets an intrinsically
   large child (an image, a long unbreakable string) force its track wider
   than the viewport. Resetting to 0 lets every grid item shrink properly. */
.hero__grid > *,
.story-grid > *,
.contact-grid > *,
.site-footer__grid > *,
.course-grid > *,
.why-grid > *,
.faculty-grid > *,
.testimonial-grid > *,
.topper-grid > *,
.steps > *,
.stat-strip > *,
.cta-banner__inner > * {
  min-width: 0;
}

/* ---------- Accessibility: focus states & skip link ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Motion ----------
   All entrance / scroll-reveal / counter / parallax choreography lives in
   assets/animations.js (GSAP + ScrollTrigger), which sets its own initial
   "hidden" inline styles via JS immediately before animating — so content
   already in the DOM is never hidden by CSS alone, and pages render fully
   visible with JS disabled. That file branches on prefers-reduced-motion
   itself (gsap.matchMedia) to skip motion entirely for those visitors.
   This backstop below additionally collapses any CSS transition/animation
   (hover states, the sticky-header shrink, etc.) for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Page load fade-in: a quick, CSS-only entrance that needs no JS and so
   never risks a blank page if a script fails to load. */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageFadeIn .4s ease both; }
  @keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Scroll progress bar — injected by animations.js, sits above the sticky
   header. Uses transform:scaleX (not width) so the per-scroll-frame
   update stays off the layout/paint path. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--yellow));
  z-index: 1100;
  pointer-events: none;
}

/* Word-by-word hero heading reveal (animations.js wraps each word in a
   .word span; this just gives each one its own transformable box). */
.word-split .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Gentle idle float for small decorative/icon elements. Kept off entirely
   for reduced-motion visitors, and only ever applied to small badges —
   never to large sections or text (per the "don't overanimate" rule). */
@media (prefers-reduced-motion: no-preference) {
  .float-idle {
    animation: floatIdle 4.5s ease-in-out infinite;
  }
  @keyframes floatIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}

/* Subtle decorative glows on dark bands (results section + CTA banner) */
.section--dark,
.cta-banner {
  position: relative;
  overflow: hidden;
}
.section--dark::before,
.section--dark::after,
.cta-banner::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.section--dark::before {
  width: 320px;
  height: 320px;
  top: -110px;
  left: -80px;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.10) 0%, rgba(244, 185, 66, 0) 70%);
}
.section--dark::after {
  width: 260px;
  height: 260px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(143, 212, 199, 0.14) 0%, rgba(143, 212, 199, 0) 70%);
}
.cta-banner::before {
  width: 240px;
  height: 240px;
  top: -90px;
  right: 8%;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.14) 0%, rgba(244, 185, 66, 0) 70%);
}
.section--dark > .container-xl,
.cta-banner > .container-xl { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .section--dark::before { animation: floatSlow 9s ease-in-out infinite; }
  .section--dark::after { animation: floatSlow 11s ease-in-out infinite reverse; }
  .cta-banner::before { animation: floatSlow 10s ease-in-out infinite; }
  @keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -18px); }
  }
}

/* Magnetic CTA buttons (desktop, fine-pointer only — animations.js gates
   this the same way). The hover lift is handed over entirely to JS while
   magnetised, so the two transforms never fight each other. */
.btn--magnetic { will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .btn--magnetic:hover { transform: none; }
}

/* Decorative arrow on key CTAs — purely visual, marked aria-hidden in markup */
.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
  min-height: 48px; /* comfortable tap target on mobile */
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary-cta {
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: var(--shadow-sm);
}
.btn-primary-cta:hover {
  background: var(--yellow-dark);
  color: var(--on-yellow);
  box-shadow: var(--shadow-md);
}

.btn-ghost-cta {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost-cta:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

@media (max-width: 575.98px) {
  /* Let long button labels wrap onto a second line instead of forcing
     the button (and the page) wider than a narrow viewport. */
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Eyebrows / section heads ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 .6em;
}
.eyebrow--dark { color: var(--yellow); }

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(28px, 5vw, 48px);
}
.section-head--dark .section-title { color: var(--on-navy); }
.section-title {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.3rem);
  font-weight: 700;
}
.section-swash { display: block; margin-top: 14px; }
.section-swash--dark { filter: brightness(0) invert(1) opacity(.85); }

.section { padding: clamp(48px, 8vw, 88px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); }

.section-footer-link { text-align: center; margin-top: clamp(28px, 4vw, 40px); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(248, 250, 252, 0.98);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  min-height: 72px;
  transition: padding var(--dur-base) var(--ease), min-height var(--dur-base) var(--ease);
}
.site-header.is-scrolled .site-header__row { padding: 8px 0; min-height: 60px; }

/* The header is fixed (removed from normal flow) so every page reserves
   its own space for it; the homepage cancels this because its hero sits
   full-bleed behind the transparent, pre-scroll header instead. */
body { padding-top: 72px; }
body.is-home { padding-top: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); }
.brand__mark { flex-shrink: 0; transition: transform var(--dur-base) var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.site-header.is-scrolled .brand__mark { transform: scale(0.85); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); background: var(--accent-soft); }
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav__list { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 6px 2px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--accent);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.primary-nav__actions { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: color var(--dur-fast) var(--ease);
}
.nav-phone:hover { color: var(--accent); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-whatsapp:hover { background: var(--navy-dark); color: var(--on-navy); transform: translateY(-2px); }

.nav-cta { padding: 10px 20px; font-size: 0.88rem; min-height: 40px; }

@media (max-width: 991.98px) {
  .primary-nav__actions .nav-phone { display: none; }
}

@media (max-width: 767.98px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    /* .site-header has backdrop-filter set, which makes it the containing
       block for any position:fixed descendant (a CSS gotcha — same rule
       as filter/transform) instead of the viewport. inset's bottom:0 was
       being measured against the header's own ~72px box, not the screen,
       collapsing this panel to almost nothing. vh/dvh sidestep that,
       since viewport units ignore the containing block. */
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: var(--bg);
    padding: 24px 20px 40px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility var(--dur-base);
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 24px;
  }
  .nav-link { display: block; width: 100%; padding: 14px 4px; font-size: 1.05rem; min-height: 48px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-sm); padding-left: 12px; }
  .primary-nav__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .primary-nav__actions .nav-phone {
    display: inline-flex;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    min-height: 48px;
  }
  .btn-whatsapp, .nav-cta { justify-content: center; min-height: 48px; }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(40px, 7vw, 64px) 0 clamp(56px, 8vw, 88px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(227, 241, 239, 0) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}
.hero__title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero__subhead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 40px; }

.hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__trust-item { display: flex; flex-direction: column; gap: 2px; }
.hero__trust-item dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
}
.hero__trust-item dd {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 18ch;
}

.hero__visual { display: flex; justify-content: center; }
.hero__visual img { width: 100%; max-width: 460px; height: auto; }

@media (max-width: 991.98px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 320px; margin-inline: auto; }
}
@media (max-width: 575.98px) {
  .hero__cta-row .btn { width: 100%; }
}

/* ==========================================================================
   Page banner (internal pages: About, Courses, Gallery, Contact)
   ========================================================================== */
.page-banner {
  padding: clamp(40px, 7vw, 56px) 0 clamp(32px, 5vw, 48px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-banner__title {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.8rem);
  font-weight: 800;
  max-width: 20ch;
}
.page-banner__intro {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.05rem);
  max-width: 62ch;
  margin-bottom: 0;
}
.page-banner .section-swash { margin-top: 18px; }

/* ==========================================================================
   CTA banner (reusable "book a demo" band)
   ========================================================================== */
.cta-banner { background: var(--navy); padding: clamp(40px, 6vw, 56px) 0; }
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner__title {
  color: var(--on-navy);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  margin-bottom: 8px;
}
.cta-banner__text { color: var(--on-navy-soft); margin: 0; max-width: 48ch; }
.cta-banner__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-ghost-cta--on-dark {
  border-color: rgba(248, 250, 252, 0.5);
  color: var(--on-navy);
}
.btn-ghost-cta--on-dark:hover { border-color: var(--on-navy); color: var(--on-navy); background: rgba(248, 250, 252, 0.1); }

@media (max-width: 575.98px) {
  .cta-banner__actions { width: 100%; }
  .cta-banner__actions .btn { width: 100%; }
}

/* ==========================================================================
   Courses / Batches
   ========================================================================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 24px);
}
.course-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
  border-top-color: var(--yellow);
}
/* Subtle decorative glow that appears on hover, behind the content */
.course-card::after {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(227, 241, 239, 0) 70%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
  z-index: 0;
}
.course-card:hover::after { opacity: 1; }
.course-card > * { position: relative; z-index: 1; }
.course-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.course-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.course-card:hover .course-card__media img { transform: scale(1.08); }
.course-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 53, 91, 0) 45%, rgba(18, 53, 91, 0.55) 100%);
}
.course-card__media .course-card__tag { position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0; background: rgba(255, 255, 255, 0.95); }
.course-card__body { padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 26px) clamp(22px, 3vw, 28px); }
.course-card__meta {
  display: flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: 0.8rem;
  margin: -2px 0 12px;
}
.course-card__subjects {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 14px;
}
.course-card__subjects li {
  font-size: 0.76rem; font-weight: 600; color: var(--navy);
  background: var(--bg-alt); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.course-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-weight: 700; font-size: 0.9rem; color: var(--accent);
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.course-card__cta .btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.course-card:hover .course-card__cta .btn__arrow { transform: translateX(4px); }

.course-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.course-card__title { font-size: 1.2rem; margin-bottom: 10px; }
.course-card__text { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 14px; }
.course-card__points {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0;
}
.course-card__points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.course-card__points li:last-child { margin-bottom: 0; }
.course-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1199.98px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Our Story (About page) + timeline
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  /* .story-content slides in from the left on scroll (animations.js);
     contain that pre-scroll offset locally instead of letting it
     register as page-level horizontal overflow. */
  /* overflow-x: hidden; */
  /* overflow-y: visible; */
}
.story-content p { color: var(--ink-soft); font-size: 1.02rem; }
.story-content p:first-of-type { color: var(--ink); font-size: 1.1rem; }

.timeline { position: relative; border-left: 2px solid var(--line); padding-left: 28px; }
/* Progressive "fill" line — a real element injected by animations.js
   (GSAP can't target ::before directly), animated 0→100% height as the
   visitor scrolls through the timeline, tracing the journey underneath
   the static track above. */
.timeline-progress {
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(var(--accent), var(--yellow));
  z-index: 1;
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--accent-soft);
}
.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.timeline-text { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

@media (max-width: 991.98px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 32px);
}
.why-item { transition: transform var(--dur-base) var(--ease); }
.why-item:hover { transform: translateY(-4px); }
.why-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
  transition: background-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.why-item:hover .why-item__icon { background: var(--yellow); color: var(--on-yellow); transform: scale(1.06); }
.why-item__title { font-size: 1.08rem; margin-bottom: 8px; }
.why-item__text { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }

@media (max-width: 1199.98px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 767.98px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Faculty
   ========================================================================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 28px);
  /* Cards slide in from the right on scroll (animations.js); contain
     that pre-scroll offset locally rather than causing page overflow.
     overflow-y stays visible so the hover lift/shadow are unaffected.
     The padding + negative margin gives edge cards' hover shadow room
     to bleed before the clip, without shifting the visible layout. */
  overflow-x: hidden;
  overflow-y: visible;
  padding: 24px;
  margin: -24px;
}
.faculty-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.faculty-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.faculty-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: transform var(--dur-slow) var(--ease);
}
.faculty-card:hover .faculty-card__photo { transform: scale(1.04); }
.faculty-card__name { font-size: 1.05rem; margin-bottom: 2px; }
.faculty-card__meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.faculty-card__quote {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

@media (max-width: 1199.98px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .faculty-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
}

/* Hover-reveal badge on a faculty photo (homepage + about.php faculty grids) */
.faculty-card__photo-wrap { position: relative; margin-bottom: 16px; }
.faculty-card__photo-wrap .faculty-card__photo { margin-bottom: 0; }
.faculty-card__badge {
  position: absolute;
  right: 10px; bottom: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-yellow);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.faculty-card:hover .faculty-card__badge { opacity: 1; transform: translateY(0) scale(1); }

/* Floating stat/info badge over a hero-style image (homepage + about.php hero) */
.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 210px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  z-index: 3;
}
.hero__badge--top { top: 0; left: 0; }
.hero__badge--bottom { bottom: 0; right: 0; }
.hero__badge__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.hero__badge__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.hero__badge__label { display: block; font-size: 0.74rem; color: var(--ink-soft); line-height: 1.3; }
.hero__badge--bottom.float-idle { animation-delay: .8s; }
@media (max-width: 991.98px) {
  .hero__badge { padding: 10px 12px; max-width: 170px; }
}
@media (max-width: 575.98px) {
  .hero__badge__label { font-size: 0.68rem; }
}

/* ==========================================================================
   Results & toppers
   ========================================================================== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 0 56px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.16);
  margin-bottom: 56px;
}
.stat-strip__item { text-align: left; }
.stat-strip__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.7rem + 1.5vw, 3rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-strip__label {
  display: block;
  color: var(--on-navy-soft);
  font-size: 0.95rem;
  max-width: 26ch;
}
.stat-strip--teaser { border-bottom: none; margin-bottom: 0; padding-bottom: 12px; }

/* Light variant for stat strips placed on a light section background
   (homepage intro, gallery.php) instead of a dark .section--dark band. */
.stat-strip--light {
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: none;
  margin: clamp(40px, 6vw, 56px) 0 0;
  padding: clamp(32px, 5vw, 40px) 0 0;
}
.stat-strip--light .stat-strip__number { color: var(--navy); }
.stat-strip--light .stat-strip__label { color: var(--ink-soft); }
@media (max-width: 991.98px) {
  .stat-strip--light { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 575.98px) {
  .stat-strip--light { grid-template-columns: 1fr; }
}

.topper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* Cards slide in from the left on scroll (animations.js); see the
     matching comment on .faculty-grid above. */
  overflow-x: hidden;
  overflow-y: visible;
  padding: 24px;
  margin: -24px;
}
.topper-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 28px;
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.topper-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
/* Left column: photo, name and course/score stacked together */
.topper-card__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 130px;
  gap: 2px;
}
.topper-card__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yellow);
  margin-bottom: 10px;
}
.topper-card__name { color: var(--on-navy); font-size: 0.98rem; margin: 0; }
.topper-card__score {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.8rem;
  margin: 0;
}
/* Right column: the quote, set off with a divider */
.topper-card__quote {
  flex: 1 1 0%;
  min-width: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(248, 250, 252, 0.18);
  color: var(--on-navy-soft);
  font-size: 0.95rem;
  font-style: italic;
  margin: 0;
}

@media (max-width: 767.98px) {
  .stat-strip { grid-template-columns: 1fr; gap: 28px; }
  .topper-grid { grid-template-columns: 1fr; }
  /* Stack + center each card's own content too — the grid above already
     collapses to one column here, so a card still laid out photo-left /
     quote-right looks lopsided rather than centered on a phone screen. */
  .topper-card {
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    justify-self: center;
  }
  .topper-card__profile { align-self: center; }
  .topper-card__quote {
    padding-left: 0;
    padding-top: 18px;
    border-left: none;
    border-top: 1px solid rgba(248, 250, 252, 0.18);
    text-align: center;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .topper-card__quote { font-size: 0.84rem; }
}

/* ---------- Slick-ified topper carousel (about.php + courses.php results) ---------- */
/* .topper-grid (base rule above) sets overflow-x:hidden + a negative
   margin/padding pair for its own plain-grid scroll-reveal — both would
   clip or mis-position Slick's arrows, which it inserts as new direct
   children of this element. Reset them and establish this element (not
   some further-up ancestor) as the positioning context for those arrows. */
.topper-carousel {
  position: relative;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.topper-grid.topper-carousel.slick-initialized {
  display: block;
  max-width: 640px;
  margin-inline: auto;
}
.topper-carousel .slick-track { display: flex !important; }
.topper-carousel .slick-slide { height: auto; padding: 4px 8px; }
.topper-carousel .slick-slide > div { height: 100%; }
.topper-carousel.slick-initialized .topper-card { height: 100%; }
.topper-carousel .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.topper-carousel .slick-dots li { width: auto; height: auto; margin: 0; }
.topper-carousel .slick-dots li button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: rgba(248, 250, 252, 0.3);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.topper-carousel .slick-dots li button:before { display: none; }
.topper-carousel .slick-dots li.slick-active button { background: var(--yellow); transform: scale(1.2); }
.topper-carousel .slick-arrow {
  width: 42px; height: 42px;
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(248, 250, 252, 0.28);
  border-radius: 50%;
  z-index: 2;
  transition: background-color var(--dur-fast) var(--ease);
}
.topper-carousel .slick-arrow:hover { background: rgba(248, 250, 252, 0.28); box-shadow: var(--shadow-md); }
/* Sit fully clear of the card's edge (not straddling its border) on
   desktop, where there's room; drop to a safe inset position once the
   viewport gets too narrow to fit the card plus external arrows. */
.topper-carousel .slick-prev { left: -40px; }
.topper-carousel .slick-next { right: -40px; }
.topper-carousel .slick-prev:before, .topper-carousel .slick-next:before { color: #fff; font-size: 18px; opacity: 1; }
@media (max-width: 767.98px) {
  .topper-carousel .slick-arrow { width: 36px; height: 36px; background: rgba(9, 20, 34, 0.55); }
  .topper-carousel .slick-prev { left: 10px; }
  .topper-carousel .slick-next { right: 10px; }
}

/* ---------- Bento grid gallery + lightbox (homepage preview & gallery.php) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery-grid .gallery-slide {
  border-radius: var(--radius-md);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.gallery-grid .gallery-slide img {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-grid .gallery-slide:hover img,
.gallery-grid .gallery-slide:focus-visible img { transform: scale(1.08); }
.gallery-grid .gallery-slide--wide { grid-column: span 2; }
.gallery-grid .gallery-slide--tall { grid-row: span 2; }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(12, 37, 64, 0.88), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  pointer-events: none;
}
.gallery-grid .gallery-slide:hover .gallery-caption,
.gallery-grid .gallery-slide:focus-visible .gallery-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .gallery-slide--wide,
  .gallery-grid .gallery-slide--tall { grid-column: span 1; grid-row: span 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 20, 34, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { position: relative; max-width: min(90vw, 1000px); margin: 0; }
.lightbox__img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--radius-md); display: block; }
.lightbox__caption { color: rgba(248, 250, 252, 0.85); text-align: center; margin: 14px 0 0; font-size: 0.9rem; }
.lightbox__counter { color: rgba(248, 250, 252, 0.55); text-align: center; margin: 4px 0 0; font-size: 0.78rem; letter-spacing: .04em; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(248, 250, 252, 0.28);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(248, 250, 252, 0.24); }
/* .lightbox__close/__prev/__next are siblings of .lightbox__figure, not
   children of it — so they position against the full-viewport .lightbox
   overlay itself. Pin them to the viewport edges (not the image edges)
   with offsets that stay on-screen at every viewport size. */
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 575.98px) {
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}

/* CTA banner photo variant (homepage + gallery.php) */
.cta-banner.cta-banner--photo {
  background-image:
    linear-gradient(115deg, rgba(12, 37, 64, 0.94) 12%, rgba(12, 37, 64, 0.78) 55%, rgba(12, 37, 64, 0.55) 100%),
    url('https://images.unsplash.com/photo-1580927752452-89d86da3fa0a?w=1600&q=70&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

/* ---------- Visual break: large photo, overlay copy, parallax (courses.php + contact.php) ---------- */
.visual-break {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21 / 9;
}
.visual-break img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.visual-break::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12, 37, 64, 0.85) 15%, rgba(12, 37, 64, 0.35) 60%, rgba(12, 37, 64, 0.05) 100%);
}
.visual-break__copy {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding: clamp(24px, 5vw, 56px);
  z-index: 1;
}
.visual-break__copy h2 {
  color: #fff;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 800;
  max-width: 16ch;
  margin: 0 0 0.3em;
  line-height: 1.25;
}
.visual-break__copy h2 em { color: var(--yellow); font-style: normal; }
.visual-break__copy p { color: var(--on-navy-soft); max-width: 42ch; margin: 0 0 18px; }
.visual-break__cta { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.visual-break__cta:hover { text-decoration: underline; }

@media (max-width: 767.98px) {
  .visual-break { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 24px);
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 0;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card__text {
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.testimonial-card__author span {
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-top: 2px;
}

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

/* Once JS turns this into a Slick carousel (one quote at a time, with
   dots), it drops the static grid in favour of Slick's own track layout.
   Without JS, visitors simply see the 3-column grid above — a complete,
   non-broken fallback. */
.testimonial-grid.slick-initialized {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  /* Gutter on each side so the prev/next arrows have their own space
     instead of sitting on top of the quote card's edge/text. */
  padding-inline: clamp(40px, 6vw, 56px);
}
.testimonial-grid .slick-track { display: flex !important; }
.testimonial-grid .slick-slide { height: auto; padding: 4px 6px; }
.testimonial-grid .slick-slide > div { height: 100%; }
.testimonial-grid.slick-initialized .testimonial-card { height: 100%; }
.testimonial-grid .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.testimonial-grid .slick-dots li { width: auto; height: auto; margin: 0; }
.testimonial-grid .slick-dots li button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: var(--line);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.testimonial-grid .slick-dots li button:before { display: none; }
.testimonial-grid .slick-dots li.slick-active button { background: var(--accent); transform: scale(1.2); }
.testimonial-grid .slick-arrow {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.testimonial-grid .slick-arrow:hover { box-shadow: var(--shadow-md); }
.testimonial-grid .slick-prev { left: 0; }
.testimonial-grid .slick-next { right: 0; }
.testimonial-grid .slick-prev:before,
.testimonial-grid .slick-next:before { color: var(--accent); font-size: 18px; opacity: 1; }
@media (max-width: 575.98px) {
  .testimonial-grid.slick-initialized { padding-inline: 34px; }
  .testimonial-grid .slick-arrow { width: 32px; height: 32px; }
}

/* ==========================================================================
   Admission steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 32px);
  position: relative;
}
.step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__number {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-yellow);
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.step__icon { display: inline-flex; color: var(--accent); margin: 12px 0 16px; }
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step__text { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.step__arrow {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.step:hover .step__arrow { opacity: 1; transform: translateX(0); }

/* Desync the idle float slightly per badge so all 3 don't bob in unison */
.step:nth-child(2) .step__number.float-idle { animation-delay: .5s; }
.step:nth-child(3) .step__number.float-idle { animation-delay: 1s; }

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

/* ==========================================================================
   Contact & location
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  /* The two columns slide in from opposite sides on scroll
     (animations.js); contain that locally rather than causing page
     overflow. overflow-y stays visible for the form's own focus rings. */
  overflow-x: hidden;
  overflow-y: visible;
}
.contact-info__heading { font-size: 1.3rem; margin-bottom: 10px; }
.contact-info__address { color: var(--ink-soft); margin-bottom: 20px; }
.contact-info__list { margin-bottom: 28px; }
.contact-info__list li { margin-bottom: 10px; }
.contact-info__list a { font-weight: 600; color: var(--accent); }
.contact-info__list a:hover { text-decoration: underline; }

.timings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.timings-table caption {
  text-align: left;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 14px 16px 8px;
  caption-side: top;
  color: var(--ink);
}
.timings-table th, .timings-table td {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.timings-table th { color: var(--ink-soft); font-weight: 600; width: 45%; }
.timings-table td { color: var(--ink); }

@media (max-width: 575.98px) {
  .timings-table th, .timings-table td { padding: 8px 12px; font-size: 0.84rem; }
}

.map-placeholder {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field__optional { font-weight: 400; color: var(--ink-faint); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem; /* 16px avoids iOS auto-zoom on focus */
  min-height: 48px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-field textarea { min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field.has-error input,
.form-field.has-error select {
  border-color: var(--error);
}
.form-error {
  display: block;
  min-height: 1.1em;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
}
/* Honeypot: visually hidden but present for real browsers, so screen readers skip it via aria-hidden and it never appears for sighted users */
.form-field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-form__submit { width: 100%; justify-content: center; }
.enquiry-form__status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.enquiry-form__status.is-success { color: var(--success); }
.enquiry-form__status.is-error { color: var(--error); }

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

/* ==========================================================================
   Legal pages (Privacy Policy / Terms & Conditions)
   ========================================================================== */
.legal-content { max-width: 72ch; }
.legal-content h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-soft); }
.legal-content a { color: var(--accent); font-weight: 600; }
.legal-content a:hover { text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: var(--on-navy-soft);
  padding: clamp(40px, 7vw, 64px) 0 24px;
}
.site-footer .brand__name { color: var(--on-navy); }
.site-footer .brand__sub { color: var(--on-navy-teal); }
.brand--footer { margin-bottom: 16px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}
.site-footer__tagline { font-size: 0.92rem; max-width: 42ch; color: var(--on-navy-soft); margin-bottom: 18px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(248, 250, 252, 0.22);
  color: var(--on-navy-soft);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.site-footer__social a:hover {
  color: var(--on-navy);
  border-color: var(--yellow);
  background: rgba(244, 185, 66, 0.12);
  transform: translateY(-2px);
}
.site-footer__heading {
  color: var(--on-navy);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.site-footer__links li, .site-footer__contact li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer__links a, .site-footer__contact a { transition: color var(--dur-fast) var(--ease); }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--on-navy-teal); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #7A96AC;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #7A96AC; transition: color var(--dur-fast) var(--ease); }
.site-footer__bottom a:hover { color: var(--on-navy-teal); text-decoration: underline; }

@media (max-width: 991.98px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__about { grid-column: auto; }
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page { text-align: center; }
.error-page__intro { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; }

/* ==========================================================================
   Floating action buttons
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: transform var(--dur-fast) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); color: #fff; }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before { animation: whatsappPulse 2.4s ease-out infinite; }
  @keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.7); opacity: 0; }
  }
}
.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy-dark);
  color: var(--on-navy);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.whatsapp-float:hover .whatsapp-float__tooltip,
.whatsapp-float:focus-visible .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 767.98px) {
  .whatsapp-float__tooltip { display: none; }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility var(--dur-base), box-shadow var(--dur-fast) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

@media (max-width: 575.98px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .back-to-top { right: 16px; bottom: 76px; }
}
