/*!==================================================================
 * Treehouse — Free Kids School Website Template
 * Author: uiCookies — https://uicookies.com/
 * License: Free for personal and commercial use — https://uicookies.com/license/
 * Design layer: royal blue, sunshine yellow and tomato on white.
 * Type: "Baloo 2" (display) + "Figtree" (body), from Google Fonts.
 *==================================================================*/

/* ------------------------------------------------------------------
   1. Design tokens — change these to rebrand the whole template
------------------------------------------------------------------ */
:root {
  --blue:        #365b9e;   /* royal blue — primary */
  --blue-dark:   #294a86;   /* hover */
  --blue-edge:   #1f396b;   /* chunky button edge */
  --blue-deep:   #152c4b;   /* footer */
  --blue-50:     #eef3fa;   /* soft wash */
  --blue-100:    #d7e2f3;

  --sun:         #f2c65a;   /* sunshine yellow */
  --sun-dark:    #c99522;
  --sun-50:      #fff7df;
  --sun-ink:     #6b4b00;   /* text on yellow washes */

  --tomato:      #b65a59;   /* tomato — shapes and large accents */
  --tomato-ink:  #9a4746;   /* tomato for small text (AA on white) */
  --tomato-50:   #f8e7e6;

  --ink:         #17204a;   /* headings */
  --text:        #2b3458;   /* body copy */
  --muted:       #5a6387;   /* secondary copy */
  --line:        #e3e8f6;   /* hairlines and card borders */
  --cream:       #fffaf0;
  --white:       #ffffff;

  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(23, 32, 74, .06);
  --shadow:    0 16px 40px rgba(23, 32, 74, .10);
  --shadow-lg: 0 30px 70px rgba(23, 32, 74, .16);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --header-h:  80px;
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
/* Bootstrap's reboot turns on smooth scrolling for :root; main.js animates
   anchor links itself, so programmatic scrolls stay instant and predictable. */
:root { scroll-behavior: auto; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--sun); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; padding-inline: 20px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2000;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--sun); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Progressive enhancement helpers */
html:not(.js) .js-only { display: none !important; }
.js .no-js-only { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------------------------
   3. Reusable pieces
------------------------------------------------------------------ */
.section { position: relative; padding: 104px 0; overflow-x: clip; }
.section-tight { padding-top: 0; }
@media (max-width: 767.98px) { .section { padding: 72px 0; } }

/* Rounded, inset colour bands */
.band {
  margin-inline: clamp(8px, 1.6vw, 24px);
  border-radius: clamp(28px, 4vw, 48px);
}
.band-sky   { background: var(--blue-50); }
.band-cream { background: var(--cream); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(2.1rem, 1.45rem + 2.3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.04;
  margin-bottom: .9rem;
}
.section-lead { font-size: 1.14rem; color: var(--muted); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--sun-50);
}
.kicker-tomato { color: var(--tomato-ink); }
.kicker-tomato::before { background: var(--tomato); box-shadow: 0 0 0 4px var(--tomato-50); }
.kicker-light { color: var(--sun); }
.kicker-light::before { box-shadow: 0 0 0 4px rgba(255, 255, 255, .16); }

/* Chunky "toy block" buttons */
.btn-pop {
  --bg: var(--blue);
  --fg: var(--white);
  --edge: var(--blue-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1;
  padding: 1rem 1.55rem .9rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 5px 0 var(--edge);
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .2s;
}
.btn-pop:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); }
.btn-pop:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.btn-pop .ico { width: 1.1em; height: 1.1em; }
.btn-pop-sun { --bg: var(--sun); --fg: var(--ink); --edge: var(--sun-dark); }
.btn-pop-white { --bg: var(--white); --fg: var(--ink); --edge: rgba(8, 18, 64, .35); }
.btn-pop-line {
  --bg: var(--white);
  --fg: var(--ink);
  --edge: var(--line);
  box-shadow: inset 0 0 0 2px var(--line), 0 5px 0 var(--line);
}
.btn-pop-line:hover { box-shadow: inset 0 0 0 2px var(--blue-100), 0 7px 0 var(--blue-100); }
.btn-pop-sm { font-size: .98rem; padding: .78rem 1.2rem .7rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--blue);
}
.text-link .ico { transition: transform .2s var(--ease); }
.text-link:hover .ico { transform: translateX(4px); }

/* Arch-shaped photo frame — a treehouse window */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  border: 10px solid var(--white);
  background: var(--blue-100);
  box-shadow: var(--shadow-lg);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative shapes */
.shape { position: absolute; pointer-events: none; }
.shape-dots {
  background-image: radial-gradient(var(--tomato) 2.2px, transparent 2.8px);
  background-size: 16px 16px;
  opacity: .75;
}
.shape-sun { color: var(--sun); }
.shape-sun svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.shape-ring { border-radius: 50%; border: 22px solid var(--tomato); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--ink);
}
.check-list .tick .ico { width: 15px; height: 15px; stroke-width: 3; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  background: var(--blue-50);
  color: var(--blue);
}
.pill-sun { background: var(--sun-50); color: var(--sun-ink); }
.pill-tomato { background: var(--tomato-50); color: var(--tomato-ink); }

/* Initials avatars (no photos of people) */
.avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  padding-top: .12em;
  background: var(--blue);
  color: var(--white);
}
.avatar-sun { background: var(--sun); color: var(--ink); }
.avatar-tomato { background: var(--tomato-ink); }
.avatar-ink { background: var(--ink); }

/* Reveal on scroll (only hidden when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ------------------------------------------------------------------
   4. Announcement bar + header
------------------------------------------------------------------ */
.announce { background: var(--sun); color: var(--ink); font-size: .92rem; font-weight: 600; }
.announce .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  padding-block: .45rem;
}
.announce p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.announce p .ico { flex: none; }
.announce a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.announce a:hover { color: var(--blue-deep); }
.announce-meta { display: none; gap: 1.4rem; white-space: nowrap; }
.announce-meta a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.announce-meta a:hover { text-decoration: underline; }
@media (min-width: 992px) { .announce-meta { display: flex; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(23, 32, 74, .07); }
.site-header .navbar { padding: 14px 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: none; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; line-height: .95; padding-top: .12em; }
.brand-sub { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.nav-menu { gap: 2px; }
.nav-menu .nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: .55rem .9rem;
  border-radius: 999px;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus-visible { background: var(--blue-50); color: var(--blue); }
.nav-menu .nav-link[aria-current="page"] { color: var(--blue); background: var(--blue-50); }
.nav-cta { margin-left: .6rem; }

.navbar-toggler {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--white);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.toggler-bar { width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 14px;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 24px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav-menu .nav-link { padding: .75rem 1rem; }
  .nav-cta { margin: .5rem 0 .3rem; width: 100%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-menu .nav-link { padding: .5rem .65rem; font-size: .95rem; }
  .brand-sub { display: none; }
}

/* ------------------------------------------------------------------
   5. Home hero
------------------------------------------------------------------ */
.hero { position: relative; padding: 48px 0 72px; overflow: clip; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 44%;
  height: 88%;
  background: var(--blue-50);
  border-bottom-left-radius: 220px;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (max-width: 991.98px) {
  .hero::before { top: auto; bottom: 0; left: clamp(8px, 1.6vw, 24px); right: clamp(8px, 1.6vw, 24px); width: auto; height: 46%; border-radius: 160px 160px 0 0; }
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } }

.hero h1 {
  font-size: clamp(2.7rem, 1.5rem + 4.4vw, 4.7rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
  margin: .2rem 0 1.4rem;
  isolation: isolate;
}
.scribble { position: relative; display: inline-block; color: var(--blue); white-space: nowrap; }
.scribble svg { position: absolute; z-index: -1; left: -3%; bottom: .02em; width: 106%; height: .34em; color: var(--sun); }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 2rem 0 2.2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.hero-points li { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); font-size: .98rem; }
.hero-points .dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue);
}
.hero-points li:nth-child(2) .dot { background: var(--sun-50); color: var(--sun-ink); }
.hero-points li:nth-child(3) .dot { background: var(--tomato-50); color: var(--tomato-ink); }
.hero-points .dot .ico { width: 17px; height: 17px; }

.hero-visual { position: relative; width: 100%; max-width: 500px; margin-inline: auto; isolation: isolate; }
.hero-visual .arch { aspect-ratio: 1000 / 1080; }
.hero-visual .shape-sun { z-index: -1; top: -46px; right: -48px; width: 170px; height: 170px; }
.hero-visual .shape-dots { z-index: -1; left: -40px; bottom: 90px; width: 128px; height: 144px; }

.sticker {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--sun-dark);
  transform: rotate(-10deg);
}
.sticker strong { display: block; font-size: 1.9rem; line-height: .9; }
.sticker span { display: block; font-size: .8rem; letter-spacing: .02em; margin-top: .25rem; padding-inline: 12px; }
.hero-visual .sticker { width: 118px; height: 118px; left: -22px; top: 70px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 22px;
  padding: 14px 18px 14px 14px;
  box-shadow: var(--shadow);
}
.hero-visual .float-card { right: -26px; bottom: 34px; max-width: 290px; }
.float-card p { margin: 0; font-size: .92rem; line-height: 1.35; color: var(--muted); }
.float-card strong { display: block; color: var(--ink); font-size: 1rem; }
.float-card a { font-weight: 700; font-size: .92rem; }
.nowrap { white-space: nowrap; }

.date-chip {
  flex: none;
  width: 56px;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  background: var(--blue-50);
}
.date-chip .m { display: block; padding: 3px 0 2px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--tomato-ink); color: var(--white); }
.date-chip .d { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1.35; color: var(--ink); }

@media (max-width: 575.98px) {
  .hero-visual { max-width: 330px; }
  .hero-visual .sticker { width: 96px; height: 96px; left: -10px; top: 30px; }
  .sticker strong { font-size: 1.5rem; }
  .sticker span { font-size: .7rem; }
  .hero-visual .float-card { right: -8px; left: 24px; bottom: -28px; max-width: none; }
  .hero-visual .shape-sun { top: -30px; right: -34px; width: 120px; height: 120px; }
  .hero { padding-bottom: 88px; }
}

/* Fact strip */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}
@media (min-width: 992px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--white); padding: 26px 24px; display: flex; gap: 16px; align-items: center; }
.fact-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.fact:nth-child(2) .fact-ico { background: var(--sun-50); color: var(--sun-ink); }
.fact:nth-child(3) .fact-ico { background: var(--tomato-50); color: var(--tomato-ink); }
.fact:nth-child(4) .fact-ico { background: var(--blue-50); color: var(--blue-deep); }
.fact-ico .ico { width: 26px; height: 26px; }
.fact-num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--ink); padding-top: .1em; }
.fact-label { font-size: .92rem; color: var(--muted); line-height: 1.35; margin-top: .2rem; }
@media (max-width: 575.98px) {
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 18px; }
  .fact-ico { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------------
   6. Why Treehouse
------------------------------------------------------------------ */
.why-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 992px) { .why-grid { grid-template-columns: .92fr 1.08fr; gap: 72px; } }
.why-media { position: relative; max-width: 540px; width: 100%; margin-inline: auto; padding: 0 70px 70px 0; isolation: isolate; }
.why-media .arch { aspect-ratio: 760 / 940; }
.why-media .inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 720 / 560;
  border-radius: 24px;
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}
.why-media .inset img { width: 100%; height: 100%; object-fit: cover; }
.why-media .sticker { width: 112px; height: 112px; right: 8px; top: 40px; transform: rotate(8deg); background: var(--blue); color: var(--white); box-shadow: 0 6px 0 var(--blue-edge); }
.why-media .sticker strong { font-size: 1.6rem; }
.why-media .shape-dots { z-index: -1; left: -28px; top: 44%; width: 96px; height: 128px; }

.feature-grid { display: grid; gap: 30px 34px; margin: 2.2rem 0 2.4rem; }
@media (min-width: 576px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-ico {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--blue-50);
  color: var(--blue);
  transform: rotate(-5deg);
  transition: transform .3s var(--ease);
}
.feature:hover .feature-ico { transform: rotate(4deg) scale(1.05); }
.feature-ico .ico { width: 28px; height: 28px; }
.feature-ico.sun { background: var(--sun-50); color: var(--sun-ink); }
.feature-ico.tomato { background: var(--tomato-50); color: var(--tomato-ink); }
.feature h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: 1rem; }

/* ------------------------------------------------------------------
   7. Learning by grade (tabs)
------------------------------------------------------------------ */
.grade-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 auto 26px;
  max-width: 980px;
}
@media (min-width: 768px) { .grade-tabs { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.grade-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border: 2px solid transparent;
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.grade-tab:hover { background: var(--white); transform: translateY(-2px); }
.grade-tab .num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  padding-top: .12em;
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue-100);
  transition: background-color .2s, color .2s, border-color .2s;
}
.grade-tab[aria-selected="true"] { background: var(--white); border-color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.grade-tab[aria-selected="true"] .num { background: var(--blue); border-color: var(--blue); color: var(--white); }
.grade-tab[data-hue="sun"][aria-selected="true"] .num { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.grade-tab[data-hue="tomato"][aria-selected="true"] .num { background: var(--tomato); border-color: var(--tomato); color: var(--ink); }

.grade-panel {
  display: grid;
  gap: 36px;
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(24px, 4.5vw, 52px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.grade-panel + .grade-panel { margin-top: 20px; }
@media (min-width: 992px) { .grade-panel { grid-template-columns: 1.12fr .88fr; gap: 48px; } }
.grade-panel:focus-visible { outline-offset: 6px; border-radius: var(--radius-lg); }
.js .grade-panel.is-entering { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.grade-panel h3 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); font-weight: 800; margin-bottom: .6rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.grade-panel h3 .pill { font-family: var(--font-body); font-size: .82rem; letter-spacing: 0; }
.grade-panel .lead-copy { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.6rem; }
.grade-side { display: grid; gap: 18px; align-content: start; }
.project-card {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: var(--sun-50);
  border: 2px dashed var(--sun-dark);
}
.project-card h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-ink); margin-bottom: .6rem; display: flex; align-items: center; gap: .45rem; }
.project-card p { margin: 0; color: var(--ink); font-weight: 600; }
.snapshot { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.snapshot div { background: var(--blue-50); border-radius: 18px; padding: 14px 16px; }
.snapshot dt { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.snapshot dd { margin: .15rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.2; }

/* ------------------------------------------------------------------
   8. After-school clubs
------------------------------------------------------------------ */
.clubs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 36px; }
.clubs-head .section-head { margin-bottom: 0; }
.day-filter-wrap { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 992px) { .day-filter-wrap { justify-items: end; } }
.day-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.day-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .95rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.day-chip:hover { border-color: var(--blue); }
.day-chip .count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: .78rem;
  background: var(--blue-50);
  color: var(--blue);
}
.day-chip .count:empty { display: none; }
.day-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.day-chip[aria-pressed="true"] .count { background: var(--sun); color: var(--ink); }
.club-status { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 0; }

.club-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .club-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .club-grid { grid-template-columns: repeat(3, 1fr); } }
.club-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 26px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.club-card:hover { transform: translateY(-4px); border-color: var(--blue-100); box-shadow: var(--shadow); }
.club-card.pop { animation: pop-in .4s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.club-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.club-ico { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.club-ico .ico { width: 27px; height: 27px; }
.club-card[data-hue="sun"] .club-ico { background: var(--sun-50); color: var(--sun-ink); }
.club-card[data-hue="tomato"] .club-ico { background: var(--tomato-50); color: var(--tomato-ink); }
.club-card h3 { font-size: 1.4rem; margin: 6px 0 0; }
.club-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.club-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 2px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}
.club-meta .time { display: inline-flex; align-items: center; gap: .35rem; }
.club-meta .time .ico { width: 16px; height: 16px; color: var(--muted); }
.week { display: flex; gap: 4px; }
.week span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  background: var(--blue-50);
  color: var(--muted);
}
.week span.on { background: var(--blue); color: var(--white); }
.club-empty { text-align: center; padding: 40px; color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------
   9. Events calendar
------------------------------------------------------------------ */
.calendar-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) { .calendar-layout { grid-template-columns: 1.5fr 1fr; gap: 28px; } }
.cal-card, .agenda {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 28px;
  padding: clamp(14px, 2.6vw, 28px);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; margin: 0; padding-top: .1em; }
.cal-nav { display: flex; gap: 8px; }
.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.round-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.round-btn:disabled { opacity: .35; cursor: not-allowed; }
.round-btn .ico { width: 20px; height: 20px; stroke-width: 2.5; }

.cal-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 5px; margin: -5px; width: calc(100% + 10px); }
.cal-table th { padding: 2px 0 6px; text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cal-table th abbr { text-decoration: none; cursor: default; }
.cal-table td { height: 96px; padding: 0; vertical-align: top; border-radius: 14px; background: #f6f8ff; }
.cal-table td.out { background: transparent; }
.cal-table td.is-closed { background: repeating-linear-gradient(135deg, #f3f4f9 0 7px, #e9ebf3 7px 14px); }
.cal-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 6px 0 0 6px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}
.cal-table td.out .cal-num { color: #aab1cc; }
.cal-table td.is-today .cal-num { background: var(--sun); }
.cal-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 96px;
  padding: 0 0 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  transition: background-color .15s, box-shadow .15s;
}
.cal-btn .cal-num { align-self: flex-start; }
.cal-btn:hover { background: var(--blue-50); }
.cal-btn[aria-pressed="true"] { background: var(--blue-50); box-shadow: inset 0 0 0 2px var(--blue); }
.cal-chip {
  display: block;
  margin: 3px 4px 0;
  padding: 2px 5px;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-more { display: block; margin: 3px 8px 0; font-size: .7rem; font-weight: 700; color: var(--muted); }
.cal-dots { display: none; }
.t-school { background: var(--blue-100); color: #142c86; }
.t-family { background: #ffe7a1; color: #5a3f00; }
.t-sports { background: var(--tomato-50); color: #9e2c16; }
.t-closed { background: #e4e7f0; color: #3f4663; }
.cal-noscript { margin: 0; padding: 18px; border-radius: 16px; background: var(--blue-50); color: var(--ink); font-weight: 600; }
@media (max-width: 767.98px) {
  .cal-table { border-spacing: 3px; margin: -3px; width: calc(100% + 6px); }
  .cal-table th { font-size: .66rem; letter-spacing: .02em; }
  .cal-table td, .cal-btn { height: 52px; min-height: 52px; border-radius: 10px; }
  .cal-num { width: 26px; height: 26px; margin: 3px 0 0 3px; font-size: .82rem; }
  .cal-chip, .cal-more { display: none; }
  .cal-dots { display: flex; gap: 3px; margin: 3px 0 0 7px; }
  .cal-dots i { width: 7px; height: 7px; border-radius: 50%; }
  .cal-dots i.t-school { background: var(--blue); }
  .cal-dots i.t-family { background: var(--sun-dark); }
  .cal-dots i.t-sports { background: var(--tomato); }
  .cal-dots i.t-closed { background: var(--muted); }
}

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .85rem; font-weight: 600; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend i { width: 14px; height: 14px; border-radius: 4px; }

.agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.agenda-head h3 { font-size: 1.35rem; margin: 0; padding-top: .1em; }
.link-btn { border: 0; background: none; padding: 0; font-weight: 700; font-size: .9rem; color: var(--blue); cursor: pointer; white-space: nowrap; }
.link-btn:hover { color: var(--blue-dark); text-decoration: underline; }
.agenda-list { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-bottom: 2px dashed var(--line); }
.agenda-item:last-child { border-bottom: 0; padding-bottom: 0; }
.agenda-item .date-chip .m { background: var(--blue); }
.agenda-item .date-chip.t-family .m { background: var(--sun); color: var(--ink); }
.agenda-item .date-chip.t-sports .m { background: var(--tomato-ink); }
.agenda-item .date-chip.t-closed .m { background: var(--muted); }
.agenda-item .date-chip { background: var(--blue-50); }
.agenda-item h4 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 700; line-height: 1.3; margin: 2px 0 3px; }
.agenda-item .meta { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.type-pill { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.agenda-empty { padding: 20px 0; color: var(--muted); font-weight: 600; }
.agenda-foot { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }

/* ------------------------------------------------------------------
   10. News
------------------------------------------------------------------ */
.news-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.news-top .section-head { margin-bottom: 0; }
.news-grid { display: grid; gap: 32px 28px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-card { position: relative; display: flex; flex-direction: column; }
.news-img { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 10 / 7; margin-bottom: 18px; background: var(--blue-50); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img .pill { position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.news-date { font-size: .88rem; font-weight: 700; color: var(--muted); }
.news-card h3 { font-size: 1.42rem; line-height: 1.15; margin: .35rem 0 .6rem; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 26px; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--muted); font-size: 1rem; }

/* ------------------------------------------------------------------
   11. Parent portal box
------------------------------------------------------------------ */
.portal {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(26px, 4.5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 992px) { .portal { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.portal .shape-dots { z-index: -1; right: -20px; top: -20px; width: 150px; height: 110px; opacity: .35; }
.portal-key {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--ink);
  transform: rotate(-6deg);
  box-shadow: 0 5px 0 var(--sun-dark);
  margin-bottom: 22px;
}
.portal-key .ico { width: 30px; height: 30px; }
.portal h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 800; }
.portal p { color: var(--muted); margin-bottom: 1.6rem; }
.portal-note { display: block; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.portal-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 576px) { .portal-links { grid-template-columns: repeat(3, 1fr); } }
.portal-links a {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  transition: border-color .2s, transform .2s var(--ease), color .2s;
}
.portal-links a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.portal-links .ico { width: 28px; height: 28px; color: var(--blue); }
.portal-links li:nth-child(3n+2) .ico { color: var(--tomato-ink); }
.portal-links li:nth-child(3n) .ico { color: var(--sun-dark); }
.portal-links small { display: block; font-weight: 500; font-size: .84rem; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------------
   12. Admissions CTA panel
------------------------------------------------------------------ */
.cta-panel {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
  padding: clamp(32px, 6vw, 76px);
  border-radius: 40px;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 992px) { .cta-panel { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.cta-panel h2 { color: var(--white); font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.5rem); font-weight: 800; line-height: 1.02; margin-bottom: 1rem; }
.cta-panel p { color: rgba(255, 255, 255, .9); font-size: 1.12rem; max-width: 36rem; }
.cta-panel .hero-actions { margin: 2rem 0 0; }
.cta-panel .shape-sun { z-index: -1; right: -70px; top: -70px; width: 210px; height: 210px; }
.cta-panel .shape-ring { z-index: -1; left: -110px; bottom: -120px; width: 200px; height: 200px; border-color: var(--tomato); opacity: .9; }
@media (max-width: 767.98px) {
  .cta-panel .shape-sun { right: -58px; top: -58px; width: 130px; height: 130px; }
  .cta-panel .shape-ring, .cta-panel .shape-dots { display: none; }
  .strip .shape-ring { right: -80px; top: auto; bottom: -120px; }
}
.cta-panel .shape-dots { z-index: -1; right: 36%; bottom: 26px; width: 110px; height: 60px; background-image: radial-gradient(rgba(255, 255, 255, .45) 2px, transparent 2.6px); }
.dates-card { position: relative; padding: 26px; border-radius: 26px; background: rgba(9, 22, 90, .36); border: 2px solid rgba(255, 255, 255, .18); }
.dates-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 14px; }
.dates-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dates-card li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.dates-card .when { flex: none; min-width: 76px; text-align: center; padding: .35rem .6rem; border-radius: 12px; background: var(--sun); color: var(--ink); font-family: var(--font-display); font-weight: 800; line-height: 1.1; padding-top: .45rem; }

/* ------------------------------------------------------------------
   13. Footer
------------------------------------------------------------------ */
.site-footer { position: relative; margin-top: 110px; padding: 84px 0 30px; background: var(--blue-deep); color: rgba(255, 255, 255, .8); font-size: .98rem; }
.footer-wave { position: absolute; left: 0; top: -44px; width: 100%; height: 46px; color: var(--blue-deep); display: block; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 48px; } }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand-sub { color: rgba(255, 255, 255, .65); }
.site-footer p { color: rgba(255, 255, 255, .78); }
.footer-title { color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .88); }
.site-footer a:hover { color: var(--sun); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ico { margin-top: .2rem; color: var(--sun); }
.footer-hours { margin-top: 1.2rem; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); font-size: .92rem; }
.footer-hours strong { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--sun); color: var(--ink); }
.socials .ico { width: 19px; height: 19px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .9rem;
  color: rgba(255, 255, 255, .7);
}
.footer-bottom p { margin: 0; color: inherit; }
.footer-bottom a { color: var(--sun); }

/* ------------------------------------------------------------------
   14. Inner page hero + jump nav
------------------------------------------------------------------ */
.page-hero { position: relative; padding: 40px 0 76px; overflow: clip; isolation: isolate; }
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 clamp(8px, 1.6vw, 24px);
  background: var(--blue-50);
  border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
}
.page-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; font-size: .92rem; font-weight: 700; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #9aa2c2; }
.crumbs a { color: var(--blue); }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.3rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-bottom: 1.1rem; isolation: isolate; }
.page-hero .hero-lead { max-width: 36rem; }
.page-hero-media { position: relative; max-width: 480px; width: 100%; margin-inline: auto; isolation: isolate; }
.page-hero-media .arch { aspect-ratio: 1000 / 820; border-radius: 240px 240px 28px 28px; }
.page-hero-media .shape-sun { z-index: -1; right: -40px; top: -40px; width: 140px; height: 140px; }
.page-hero-media .shape-dots { z-index: -1; left: -36px; bottom: 30px; width: 110px; height: 120px; }
.page-hero-media .sticker { width: 108px; height: 108px; left: -18px; bottom: -14px; transform: rotate(-8deg); }
.page-hero-media .sticker strong { font-size: 1.45rem; }
@media (max-width: 575.98px) {
  .page-hero-media { max-width: 320px; }
  .page-hero-media .sticker { left: -6px; width: 92px; height: 92px; }
  .page-hero-media .shape-sun { right: -26px; top: -26px; width: 100px; height: 100px; }
}

.jump-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.jump-nav a:hover { border-color: var(--blue); color: var(--blue); }
.jump-nav .ico { width: 17px; height: 17px; color: var(--blue); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; background: var(--white); font-weight: 700; font-size: .95rem; color: var(--ink); box-shadow: var(--shadow-sm); }
.hero-facts .ico { width: 18px; height: 18px; color: var(--tomato-ink); }

/* ------------------------------------------------------------------
   15. Academics
------------------------------------------------------------------ */
.curr-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .curr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .curr-grid { grid-template-columns: repeat(3, 1fr); } }
.curr-card { border: 2px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.curr-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--blue-50); }
.curr-card[data-hue="sun"] .curr-head { background: var(--sun-50); }
.curr-card[data-hue="tomato"] .curr-head { background: var(--tomato-50); }
.curr-badge {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  padding-top: .12em;
  background: var(--blue);
  color: var(--white);
  transform: rotate(-5deg);
}
.curr-card[data-hue="sun"] .curr-badge { background: var(--sun); color: var(--ink); }
.curr-card[data-hue="tomato"] .curr-badge { background: var(--tomato); color: var(--ink); }
.curr-head h3 { font-size: 1.45rem; margin: 0; padding-top: .1em; }
.curr-head div > span { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); }
.curr-list { margin: 0; padding: 8px 22px 20px; }
.curr-list div { padding: 12px 0; border-bottom: 2px dashed var(--line); }
.curr-list div:last-child { border-bottom: 0; }
.curr-list dt { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.curr-list dt::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--blue); }
.curr-list div:nth-child(2) dt::before { background: var(--sun-dark); }
.curr-list div:nth-child(3) dt::before { background: var(--tomato); }
.curr-list div:nth-child(4) dt::before { background: var(--ink); }
.curr-list dd { margin: .25rem 0 0; font-size: .97rem; color: var(--muted); line-height: 1.5; }

/* Specialist bento */
.spec-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(6, 1fr); }
  .spec-card { grid-column: span 2; }
  .spec-card.wide { grid-column: span 3; }
}
.spec-card { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line); border-radius: 28px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.spec-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.spec-card.wide .spec-img { aspect-ratio: 16 / 9; }
.spec-img img { width: 100%; height: 100%; object-fit: cover; }
.spec-img .pill { position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.spec-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.spec-body h3 { font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.spec-body h3 .ico { width: 26px; height: 26px; color: var(--blue); }
.spec-card:nth-child(2) h3 .ico { color: var(--tomato-ink); }
.spec-card:nth-child(3) h3 .ico { color: var(--sun-dark); }
.spec-card:nth-child(5) h3 .ico { color: var(--tomato-ink); }
.spec-body p { color: var(--muted); margin: 0; font-size: 1rem; }
.teacher { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 2px dashed var(--line); font-size: .92rem; line-height: 1.3; }
.teacher .avatar { width: 42px; height: 42px; font-size: .95rem; }
.teacher strong { display: block; color: var(--ink); }
.teacher div > span { color: var(--muted); }

/* Minutes chart (built by JS from data) */
.chart-card { margin-top: 28px; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: var(--blue-50); }
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.chart-head h3 { font-size: 1.6rem; margin: 0 0 .3rem; }
.chart-head p { color: var(--muted); margin: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; padding: 0; margin: 0; font-size: .86rem; font-weight: 700; color: var(--ink); }
.chart-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 14px; height: 14px; border-radius: 4px; }
.chart-rows { display: grid; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 104px 1fr 76px; align-items: center; gap: 14px; }
.chart-row .label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.chart-row .total { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.1rem; text-align: right; line-height: 1; }
.chart-row .total small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--muted); }
.chart-track { height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.chart-bar { display: flex; height: 100%; width: 0; border-radius: 10px; overflow: hidden; transition: width 1s var(--ease); }
.chart-bar span { height: 100%; border-right: 2px solid var(--blue-50); }
.chart-bar span:last-child { border-right: 0; }
.seg-music { background: var(--blue); }
.seg-art { background: var(--tomato); }
.seg-pe { background: var(--sun); }
.seg-spanish { background: var(--blue-deep); }
.seg-stem { background: #7e9bff; }
.chart-fallback { margin: 0; padding-left: 1.2rem; color: var(--ink); }
@media (max-width: 575.98px) {
  .chart-row { grid-template-columns: 1fr 64px; gap: 6px 10px; }
  .chart-row .label { grid-column: 1 / -1; }
}

/* Learning support */
.support-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 992px) { .support-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.service-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 18px; }
.service-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.service-list .feature-ico { width: 52px; height: 52px; margin: 0; border-radius: 16px; }
.service-list .feature-ico .ico { width: 25px; height: 25px; }
.service-list h3 { font-size: 1.22rem; margin: .1rem 0 .2rem; }
.service-list p { color: var(--muted); font-size: .98rem; margin: 0; }
.support-media { position: relative; isolation: isolate; }
.support-media .photo { border-radius: 30px; overflow: hidden; aspect-ratio: 800 / 640; box-shadow: var(--shadow); }
.support-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.support-media .shape-dots { z-index: -1; right: -24px; top: -24px; width: 120px; height: 110px; }
.cycle { margin-top: -56px; margin-inline: 18px; position: relative; padding: 24px; background: var(--white); border-radius: 26px; box-shadow: var(--shadow); }
.cycle h3 { font-size: 1.25rem; margin-bottom: 14px; }
.cycle ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: step; }
@media (min-width: 576px) { .cycle ol { grid-template-columns: repeat(4, 1fr); } }
.cycle li { counter-increment: step; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.cycle li strong { display: flex; align-items: center; gap: .45rem; color: var(--ink); font-size: 1rem; margin-bottom: .2rem; }
.cycle li strong::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  padding-top: .1em;
  background: var(--sun);
  color: var(--ink);
}

/* Timetable */
.tt-wrap { border: 2px solid var(--line); border-radius: 26px; overflow-x: auto; background: var(--white); -webkit-overflow-scrolling: touch; }
.tt-wrap:focus-visible { outline-offset: 4px; }
.tt { width: 100%; min-width: 780px; table-layout: fixed; border-collapse: separate; border-spacing: 6px; }
.tt thead th:first-child { width: 96px; }
.tt td { height: 1px; }
.tt caption { caption-side: top; padding: 18px 18px 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.tt th, .tt td { padding: 0; font-size: .9rem; }
.tt thead th { padding: 8px 10px; text-align: left; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tt tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 104px;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
  font-weight: 800;
  color: var(--ink);
  background: var(--white);
}
.tt tbody th small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.tt td > span { display: flex; align-items: center; min-height: 52px; height: 100%; padding: 8px 12px; border-radius: 12px; font-weight: 700; line-height: 1.25; }
.tt .c-core { background: var(--blue-50); color: #142c86; }
.tt .c-spec { background: var(--sun-50); color: var(--sun-ink); }
.tt .c-play { background: var(--tomato-50); color: #9e2c16; }
.tt .c-together { background: #f1f2f7; color: #3f4663; }
.tt td[colspan] > span { justify-content: center; }
@media (max-width: 767.98px) { .tt td[colspan] > span { justify-content: flex-start; } }
.tt-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.tt-note p { margin: 0; color: var(--muted); font-size: .92rem; }
.tt-legend .c-core { background: var(--blue-100); }
.tt-legend .c-spec { background: #ffe7a1; }
.tt-legend .c-play { background: #ffd4c8; }
.tt-legend .c-together { background: #dfe2ec; }
.swipe-hint { display: none; align-items: center; gap: .4rem; font-weight: 700; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 767.98px) { .swipe-hint { display: inline-flex; } }

/* Assessment */
.assess-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 992px) { .assess-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.principles { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 16px; }
.principles li { padding: 18px 20px; border-radius: 20px; border: 2px solid var(--line); }
.principles h3 { font-size: 1.2rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; }
.principles h3 .ico { color: var(--blue); }
.principles p { color: var(--muted); font-size: .98rem; margin: 0; }
.report { position: relative; padding: clamp(22px, 3.6vw, 34px); border-radius: 28px; background: var(--white); border: 2px solid var(--line); box-shadow: var(--shadow); }
.report::before { content: ""; position: absolute; left: 34px; right: 34px; top: -10px; height: 10px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(90deg, var(--blue) 0 25%, var(--sun) 25% 50%, var(--tomato) 50% 75%, var(--blue-deep) 75% 100%); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.report-head h3 { font-size: 1.45rem; margin: 0; }
.report-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.scale-key { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.scale-key b { color: var(--ink); }
.skill { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 10px 0; }
.skill-name { font-size: .95rem; color: var(--ink); font-weight: 600; line-height: 1.35; }
.skill-name small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.skill-level { font-size: .82rem; font-weight: 800; color: var(--ink); text-align: right; white-space: nowrap; }
.meter { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 10px; border-radius: 6px; background: #edf0f8; }
.meter[data-level="1"] i:nth-child(-n+1),
.meter[data-level="2"] i:nth-child(-n+2),
.meter[data-level="3"] i:nth-child(-n+3),
.meter[data-level="4"] i:nth-child(-n+4) { background: var(--blue); }
.comment { margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--sun-50); color: var(--ink); font-size: .98rem; }
.comment span { display: block; margin-top: .4rem; font-size: .85rem; font-weight: 700; color: var(--sun-ink); }

.year-line { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 14px; position: relative; }
@media (min-width: 992px) {
  .year-line { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .year-line::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; border-top: 3px dashed var(--blue-100); z-index: -1; }
}
.year-line li { position: relative; padding: 20px; border-radius: 22px; background: var(--white); border: 2px solid var(--line); }
.year-line .month {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 34px;
  padding: .15em .7rem 0;
  border-radius: 999px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--blue);
  color: var(--white);
}
.year-line li:nth-child(2) .month { background: var(--sun); color: var(--ink); }
.year-line li:nth-child(3) .month { background: var(--tomato-ink); }
.year-line li:nth-child(4) .month { background: var(--ink); }
.year-line li:nth-child(5) .month { background: var(--blue); }
.year-line h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.year-line p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Full-width CTA strip used on inner pages */
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(26px, 4vw, 44px); border-radius: 32px; background: var(--sun); color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.strip h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.3rem); font-weight: 800; margin: 0 0 .3rem; }
.strip p { margin: 0; font-weight: 600; color: var(--sun-ink); }
.strip .shape-ring { z-index: -1; right: 250px; top: -120px; width: 200px; height: 200px; border-color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------------
   16. Admissions
------------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 52px; border-top: 3px dashed var(--blue-100); z-index: 0; }
}
.step { position: relative; z-index: 1; padding: 26px 22px; border-radius: 26px; background: var(--white); border: 2px solid var(--line); display: flex; flex-direction: column; }
.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  padding-top: .12em;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 6px var(--white);
}
.step:nth-child(2) .step-num { background: var(--sun); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--tomato); color: var(--ink); }
.step:nth-child(4) .step-num { background: var(--ink); }
.step h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .96rem; }
.step .pill { margin-top: auto; align-self: flex-start; }
.step p + .pill { margin-top: 14px; }

.fees-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 992px) { .fees-grid { grid-template-columns: 1.4fr .8fr; gap: 32px; } }
.table-card { border: 2px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--white); }
.table-card + .table-card { margin-top: 22px; }
.fees-grid > * { min-width: 0; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table caption { caption-side: top; padding: 20px 22px 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.fee-table th, .fee-table td { padding: 15px 22px; text-align: left; border-top: 2px solid var(--line); vertical-align: middle; }
.fee-table thead th { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--blue-50); border-top: 0; }
.fee-table tbody th { font-weight: 700; color: var(--ink); }
.fee-table tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; }
.fee-table .num { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); white-space: nowrap; }
.fee-table .num.big { font-size: 1.35rem; color: var(--blue); }
.fee-table td.muted { color: var(--muted); font-size: .95rem; }
/* Phones: each fee row becomes a small card */
@media (max-width: 575.98px) {
  .fee-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fee-stack caption { padding: 18px 18px 6px; }
  .fee-stack tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding: 14px 18px; border-top: 2px solid var(--line); }
  .fee-stack tbody th, .fee-stack tbody td { display: block; padding: 0; border: 0; }
  .fee-stack tbody th { grid-column: 1 / -1; }
  .fee-stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-family: var(--font-body); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .fee-stack .num.big { font-size: 1.2rem; }
  .fee-stack-2 tbody tr { grid-template-columns: auto 1fr; align-items: baseline; }
  .fee-stack-2 td.muted { font-size: .9rem; }
}
.fee-aside { display: grid; gap: 20px; }
.aid-card { padding: 26px; border-radius: 26px; background: var(--sun-50); border: 2px dashed var(--sun-dark); }
.aid-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.aid-card p { color: var(--ink); font-size: .98rem; }
.aid-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: .8rem 0 1rem; }
.aid-stat strong { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink); }
.aid-stat span { font-weight: 700; color: var(--sun-ink); line-height: 1.3; }
.included { padding: 26px; border-radius: 26px; background: var(--white); }
.included h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.included .check-list { font-size: .98rem; }
.included .tick { background: var(--blue-50); color: var(--blue); }

/* Open days booking */
.book-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .book-grid { grid-template-columns: .82fr 1.18fr; gap: 56px; } }
.book-media { position: relative; isolation: isolate; max-width: 480px; margin-top: 36px; }
.book-media .arch { aspect-ratio: 1000 / 820; border-radius: 240px 240px 28px 28px; }
.book-media .shape-sun { z-index: -1; right: -34px; top: -34px; width: 130px; height: 130px; }
.visit-plan { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.visit-plan li { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.visit-plan li:last-child { border-bottom: 0; }
.visit-plan time { font-family: var(--font-display); font-weight: 800; color: var(--blue); font-size: 1.05rem; padding-top: .05em; }
.visit-plan strong { display: block; color: var(--ink); }
.visit-plan span { color: var(--muted); font-size: .94rem; }

.form-card { position: relative; padding: clamp(22px, 4vw, 40px); border-radius: 30px; background: var(--white); border: 2px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.7rem; margin-bottom: .3rem; }
.form-card > p { color: var(--muted); margin-bottom: 1.4rem; }
.field-group { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.field-group legend, .form-label { float: none; width: auto; font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: .55rem; padding: 0; }
.form-label .opt { font-weight: 500; color: var(--muted); font-size: .88rem; }
.date-options { display: grid; gap: 12px; }
@media (min-width: 576px) { .date-options { grid-template-columns: repeat(2, 1fr); } }
.date-opt { position: relative; display: block; cursor: pointer; margin: 0; }
.date-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.date-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  height: 100%;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.date-opt:hover .date-card { border-color: var(--blue-100); }
.date-opt input:focus-visible + .date-card { outline: 3px solid var(--blue); outline-offset: 3px; }
.date-opt input:checked + .date-card { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 5px 0 var(--blue); transform: translateY(-2px); }
.date-opt input:disabled + .date-card { opacity: .55; cursor: not-allowed; background: #f6f7fb; }
.date-card .date-chip .m { background: var(--blue); }
.date-card strong { display: block; color: var(--ink); line-height: 1.25; }
.date-card span.sub { display: block; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.date-card .spots { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 800; color: #1c7a4a; }
.date-card .spots.low { color: var(--tomato-ink); }
.date-card .spots.full { color: var(--muted); }
.field-group.is-invalid .date-opt input:not(:disabled) + .date-card { border-color: #d63a2a; }

.form-control, .form-select {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: .75rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--white);
}
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35, 73, 214, .15); }
.form-control::placeholder { color: #8a92b2; }
textarea.form-control { min-height: 120px; height: auto; resize: vertical; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #d63a2a; background-image: none; padding-right: 1rem; }
.form-select.is-invalid { padding-right: 2.25rem; background-image: var(--bs-form-select-bg-img); }
.field-error { display: none; margin-top: .4rem; font-size: .86rem; font-weight: 600; color: #b3261e; }
.field-error.show { display: block; }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: 4px; background: var(--white); }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); cursor: pointer; transition: background-color .2s, color .2s; }
.stepper button:hover:not(:disabled) { background: var(--blue); color: var(--white); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper button .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.stepper input { width: 64px; border: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); background: transparent; padding: .1em 0 0; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--blue); }
.field-help { display: block; margin-top: .45rem; font-size: .86rem; color: var(--muted); }

.form-success { display: none; padding: 26px; border-radius: 22px; background: var(--blue-50); border: 2px solid var(--blue-100); text-align: center; }
.form-success.show { display: block; animation: pop-in .4s var(--ease) both; }
.form-success .badge-ok { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-dark); }
.form-success .badge-ok .ico { width: 30px; height: 30px; stroke-width: 3; }
.form-success h4 { font-size: 1.6rem; margin-bottom: .4rem; }
.form-success p { color: var(--text); }
.form-success .small-note { font-size: .86rem; color: var(--muted); margin-top: .6rem; }
.form-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
form.is-sent .form-fields { display: none; }

/* Key dates */
.kd-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .kd-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 22px; } }
.kd-item { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 22px; background: var(--white); border: 2px solid var(--line); }
.kd-item .date-chip { width: 64px; }
.kd-item .date-chip .m { background: var(--blue); }
.kd-item.hl { border-color: var(--tomato); background: var(--tomato-50); }
.kd-item.hl .date-chip { background: var(--white); }
.kd-item.hl .date-chip .m { background: var(--tomato-ink); }
.kd-item h3 { font-size: 1.15rem; margin: 0 0 .15rem; }
.kd-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* FAQ */
.faq-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 992px) { .faq-grid { grid-template-columns: .7fr 1.3fr; gap: 64px; } }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 2px solid var(--line); border-radius: 22px; background: var(--white); transition: border-color .2s; }
.faq-item[open] { border-color: var(--blue-100); background: #fbfcff; }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: transform .25s var(--ease), background-color .2s, color .2s; }
.faq-item summary .plus .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: 20px; }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.contact-card { margin-top: 26px; padding: 24px; border-radius: 24px; background: var(--blue-50); }
.contact-card .who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.contact-card .avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.contact-card strong { display: block; color: var(--ink); font-size: 1.05rem; }
.contact-card .who div > span { color: var(--muted); font-size: .92rem; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-weight: 600; }
.contact-card li { display: flex; align-items: center; gap: .6rem; }
.contact-card li .ico { color: var(--blue); }

/* ------------------------------------------------------------------
   17. Logo mark colours
------------------------------------------------------------------ */
.bm-trunk, .bm-door { fill: var(--ink); }
.bm-canopy { fill: var(--blue); }
.bm-roof { fill: var(--tomato); }
.bm-house { fill: var(--sun); }
.site-footer .bm-canopy { fill: #4a6ff2; }
.site-footer .bm-trunk { fill: var(--white); }

/* No-JS layout: the calendar grid needs JS, so the agenda takes the full width */
html:not(.js) .calendar-layout { grid-template-columns: 1fr; }


/* Kisalaya brand + image-safe utility styles */
.brand-badge {
  width: 48px; height: 48px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 15px;
  background: var(--tomato);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.brand-name { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.brand-sub { white-space: nowrap; }
.hero-visual .arch img, .page-hero-media .arch img {
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767.98px) {
  .container { padding-inline: 16px; }
  .brand-sub { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
  .nav-menu { padding-bottom: 12px; }
  .hero-actions, .hero-points { gap: 10px; }
  .hero-actions .btn-pop { width: 100%; }
  .hero-visual .float-card { left: 8px; right: 8px; bottom: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* Kisalaya academic page refinements */
.story-grid,.split-media{display:grid;gap:48px;align-items:center}
@media (min-width: 900px){.story-grid{grid-template-columns:1fr 1fr}.split-media{grid-template-columns:.9fr 1.1fr}}
.service-list{margin:32px 0 0;padding:0;list-style:none;display:grid;gap:18px}
.service-list li{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:start}
.service-list h3{font-size:1.15rem;margin:0 0 4px}.service-list p{margin:0;color:var(--muted)}
.source-note{margin-top:28px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.78);color:var(--muted);font-size:.95rem;line-height:1.6}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.stat-row>div{padding:18px;border:2px solid var(--line);border-radius:20px;background:var(--white)}
.stat-row strong{display:block;font:800 1.7rem/1 var(--font-display);color:var(--blue);margin-bottom:6px}.stat-row span{display:block;color:var(--muted);font-size:.86rem;line-height:1.4}
.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.media-card{display:flex;flex-direction:column;overflow:hidden;border:2px solid var(--line);border-radius:24px;background:var(--white);color:var(--ink);box-shadow:var(--shadow-sm);transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.media-card:hover{color:var(--ink);transform:translateY(-4px);box-shadow:var(--shadow)}
.media-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.media-card>span{padding:16px 18px}.media-card strong,.media-card small{display:block}.media-card small{margin-top:4px;color:var(--muted)}
.map-placeholder{aspect-ratio:4/3;display:grid;place-items:center;align-content:center;gap:8px;background:linear-gradient(135deg,var(--blue-50),var(--sun-50));color:var(--blue)}.map-placeholder .ico{width:42px;height:42px}.map-placeholder strong{font:800 1.5rem var(--font-display)}.map-placeholder small{max-width:230px;text-align:center;color:var(--muted)}
.curr-head{align-items:flex-start}.curr-badge{width:48px;height:48px;border-radius:14px;font-size:1.1rem;transform:none;letter-spacing:.02em}.curr-head>div{min-width:0}.curr-head h3{font-size:1.35rem;line-height:1.1}.curr-head div>span{line-height:1.35}
@media (max-width:899px){.media-grid{grid-template-columns:1fr 1fr}.stat-row{grid-template-columns:1fr}.story-grid{gap:32px}}
@media (max-width:599px){.media-grid{grid-template-columns:1fr}.section{padding:64px 0}.page-hero{padding-top:28px}.page-hero h1{font-size:2.5rem}.jump-nav{gap:8px}.jump-nav a{padding:.55rem .75rem;font-size:.82rem}.stat-row{grid-template-columns:1fr}.service-list li{grid-template-columns:40px 1fr}.feature-ico{width:40px;height:40px}}
/* Home / admissions research-page components */
.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.timeline-item{padding:24px;border:2px solid var(--line);border-radius:24px;background:var(--white)}.timeline-item>span{display:inline-flex;padding:.35rem .7rem;border-radius:999px;background:var(--blue-50);color:var(--blue);font-weight:800;margin-bottom:12px}.timeline-item h3{font-size:1.35rem}.timeline-item p{color:var(--muted);margin:0}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.feature-card{padding:26px;border:2px solid var(--line);border-radius:24px;background:var(--white)}.feature-card h3{font-size:1.25rem;margin:16px 0 7px}.feature-card p{margin:0;color:var(--muted)}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.photo-card{margin:0;overflow:hidden;border:2px solid var(--line);border-radius:24px;background:var(--white)}.photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.photo-card figcaption{padding:14px 16px;color:var(--muted);font-size:.9rem}.center-actions,.source-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}.info-card{padding:28px;border:2px solid var(--line);border-radius:26px;background:var(--white)}.info-card.large{max-width:760px;margin:28px auto 0}.info-card dl{margin:0 0 22px}.info-card dl>div{padding:14px 0;border-bottom:1px dashed var(--line)}.info-card dl>div:last-child{border-bottom:0}.info-card dt{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--blue)}.info-card dd{margin:.25rem 0 0;color:var(--muted)}.facts-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.fact-card{padding:24px;border:2px solid var(--line);border-radius:22px;background:var(--white)}.fact-card strong{display:block;font:800 1.35rem var(--font-display);color:var(--ink)}.fact-card span{display:block;margin-top:5px;color:var(--muted);font-size:.9rem}.split-media{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.split-media .photo{overflow:hidden;border-radius:32px;box-shadow:var(--shadow)}.split-media .photo img{width:100%;aspect-ratio:4/3;object-fit:cover}
@media(max-width:991px){.feature-grid{grid-template-columns:repeat(2,1fr)}.facts-grid{grid-template-columns:repeat(2,1fr)}.timeline{grid-template-columns:1fr}.photo-grid{grid-template-columns:1fr 1fr}.info-grid,.split-media{grid-template-columns:1fr}}
@media(max-width:599px){.feature-grid,.photo-grid,.facts-grid{grid-template-columns:1fr}.timeline-item{padding:20px}.info-card{padding:22px}}


/* ------------------------------------------------------------------
   Kisalaya Cute 3D illustration layer
   ------------------------------------------------------------------ */
:root{
  --kvm-mint:#dff5e7;
  --kvm-peach:#ffe7df;
  --kvm-lilac:#eee9ff;
  --kvm-sky:#e7f3ff;
  --kvm-yellow:#fff1bd;
  --kvm-green:#4d9b68;
  --kvm-coral:#ef766b;
}
body{background:linear-gradient(180deg,#fff 0%,#fffdf9 42%,#f7fbff 100%)}
header,.site-header{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.hero{background:radial-gradient(circle at 12% 18%,var(--kvm-yellow),transparent 24%),linear-gradient(135deg,#fffdf5 0%,#eef8ff 55%,#f3fff3 100%)}
.hero-grid,.page-hero-grid{align-items:center}
.hero-visual .arch,.page-hero-media .arch,.photo,.spec-img,.photo-card{box-shadow:0 18px 45px rgba(42,64,104,.12);border:4px solid rgba(255,255,255,.85)}
.hero-visual .arch img,.page-hero-media .arch img,.photo img,.spec-img img,.photo-card img{object-position:center;filter:saturate(1.04) contrast(1.01)}
.hero-visual .arch,.page-hero-media .arch{border-radius:38px 38px 72px 72px;transform:rotate(1deg);overflow:hidden}
.hero-visual .sticker{background:var(--kvm-yellow);border-color:#fff;box-shadow:0 10px 25px rgba(80,65,30,.14)}
.btn-pop{border-radius:999px;box-shadow:0 5px 0 var(--blue-edge),0 12px 22px rgba(42,74,134,.12)}
.btn-pop:hover{transform:translateY(-2px)}
.band{box-shadow:0 12px 36px rgba(41,61,91,.05)}
.feature-card,.fact-card,.info-card,.timeline-item,.spec-card,.grade-panel{border-color:#e6eafa;box-shadow:0 12px 28px rgba(42,64,104,.06)}
.feature-card:nth-child(1){background:linear-gradient(145deg,#fff4f1,#fff)}
.feature-card:nth-child(2){background:linear-gradient(145deg,#effbef,#fff)}
.feature-card:nth-child(3){background:linear-gradient(145deg,#fff9dc,#fff)}
.feature-card:nth-child(4){background:linear-gradient(145deg,#f0f4ff,#fff)}
.feature-ico{border-radius:20px;box-shadow:0 8px 18px rgba(35,55,90,.08)}
.spec-card{border-radius:30px}
.spec-img{border:0;box-shadow:none;border-radius:0}
.spec-img .pill{z-index:2;left:16px;bottom:16px;border-radius:999px;padding:.5rem .8rem;font-weight:800}
.spec-card h3{font-size:1.45rem}
.spec-body{padding:24px 24px 28px}
.photo-grid{gap:24px}
.photo-card{transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.photo-card:hover{transform:translateY(-5px) rotate(-.3deg);box-shadow:0 20px 42px rgba(42,64,104,.13)}
.kvm-illustration-note{margin:18px auto 0;max-width:760px;padding:12px 16px;border:1px dashed #cfd8ea;border-radius:16px;background:rgba(255,255,255,.72);color:var(--muted);font-size:.86rem;text-align:center}
/* Fix the academics card title/pill collisions seen in the previous layout. */
.grade-panel{overflow:hidden}
.grade-panel h3{position:relative;display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;padding-right:8px}
.grade-panel h3 .pill{position:static;order:-1;flex:0 0 auto;white-space:nowrap;margin:0;font-size:.76rem;padding:.35rem .65rem;border-radius:999px}
.grade-panel h3 .grade-title{min-width:0;flex:1 1 150px}
@media(max-width:767.98px){
 .hero-visual .arch,.page-hero-media .arch{border-radius:28px 28px 50px 50px}
 .spec-body{padding:20px}
 .kvm-illustration-note{margin-inline:12px}
}
