/* ============================================================
   Prerana School — design system
   ============================================================ */
:root {
  --ink: #16282e;
  --muted: #5f7176;
  --cream: #f6f4ee;
  --paper: #fffdf8;
  --coral: #d52128;
  --coral-dark: #b4151d;
  --teal: #1f6e6a;
  --teal-dark: #17524f;
  --gold: #e9b95f;
  --gold-dark: #b08d1f;
  --line: #dce4df;
  --shadow: 0 18px 45px rgba(22, 40, 46, .08);
  --shadow-lg: 0 28px 70px rgba(22, 40, 46, .16);
  --radius: 6px;
  --radius-lg: 14px;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
p { color: var(--ink); }
p, li { line-height: 1.75; }
strong { color: var(--ink); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  color: var(--coral);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .72rem;
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--gold); }
.lead { font-size: 1.12rem; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border: 0; border-radius: var(--radius);
  font: 700 .95rem var(--font-body);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn .icon { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
/* Base size for every inline SVG icon. Without this, icons with no specific
   rule render at the raw SVG default size (huge). More specific rules override. */
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(213, 33, 40, .24); }
.btn--primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn--gold { background: var(--gold-dark); color: #fff; box-shadow: 0 10px 22px rgba(176, 141, 31, .35); }
.btn--gold:hover { background: #9a771a; color: #fff; transform: translateY(-2px); }
.btn--gold-outline { border: 2px solid var(--gold-dark); color: var(--gold-dark); background: transparent; }
.btn--gold-outline:hover { background: var(--gold-dark); color: #fff; }
.btn--outline { border: 2px solid var(--coral); color: var(--coral); background: transparent; }
.btn--outline:hover { background: var(--coral); color: #fff; }
.btn--outline-light { border: 2px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--ghost { color: var(--coral); font-weight: 500; }
.btn--ghost:hover { color: var(--coral-dark); }
.btn--danger { background: #f9dfe1; color: var(--coral-dark); }
.btn--danger:hover { background: var(--coral); color: #fff; }
.btn--red { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(213, 33, 40, .26); }
.btn--red:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 600; color: var(--ink); text-decoration: none;
  letter-spacing: -.01em;
}
.brand__logo {
  width: 78px; height: 78px; object-fit: contain; border-radius: 14px;
  background: var(--paper); padding: 0; border: 0; box-shadow: var(--shadow);
  flex-shrink: 0; display: block;
}
.brand__text { font-size: 1.12rem; letter-spacing: 0; }
.brand--light { color: #fff; }

/* ---------- Header brand — logo only, sized to sit cleanly in the bar ---------- */
.site-brand { flex: none; display: inline-flex; align-items: center; align-self: center; }
.site-brand .brand__logo {
  width: auto; height: 66px; max-width: 190px; object-fit: contain;
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
@media (max-width: 1080px) { .site-brand .brand__logo { height: 58px; } }
@media (max-width: 768px) { .site-brand .brand__logo { height: 46px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1560px; margin: auto;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 86px; padding: 0 clamp(20px, 2.5vw, 40px);
}
.site-header__top {
  display: flex; align-items: center; gap: 16px; flex: 0 0 auto;
}
.site-header__bottom {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  flex: 0 1 auto; min-width: 0; flex-wrap: nowrap;
}
.site-header__bottom .site-nav-wrap { margin-left: 4px; flex: 0 0 auto; }
.site-nav-wrap {
  display: flex; align-items: center; gap: 4px;
  flex: 0 0 280px; width: 280px; min-width: 180px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 99px;
  padding: 3px 3px 3px 16px; transition: border-color .2s, box-shadow .2s;
}
.site-nav-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 110, 106, .12); }
.site-nav-wrap input[type="search"] {
  flex: 1 1 auto; border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; max-width: none;
  font: 500 14px/1.4 var(--font-body); color: var(--ink);
}
.site-nav-wrap input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.site-nav-wrap input[type="search"]::placeholder { color: var(--muted); }
.site-nav-wrap button[type="submit"] {
  flex: none; border: 0; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--coral); color: #fff;
  transition: background .2s, transform .2s;
}
.site-nav-wrap button[type="submit"] .icon { width: 16px; height: 16px; }
.site-nav-wrap button[type="submit"]:hover { background: var(--coral-dark); transform: scale(1.06); }
.site-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  flex: 0 0 auto; min-width: 0;
  flex-wrap: nowrap; list-style: none; margin: 0; padding: 0;
  font-size: .92rem; font-weight: 600;
}
.site-nav > li { flex: 0 0 auto; }
.site-nav > li > a { color: var(--ink); padding: 8px 10px; border-radius: 9px; }
.site-nav > li > a:hover { color: var(--coral); background: rgba(213, 33, 40, .06); }
.site-nav > li.active > a { color: var(--coral); font-weight: 700; position: relative; }
.site-nav > li.active > a::after {
  content: ""; position: absolute; inset: 4px 0; left: 0; right: 0; height: 2px;
  background: var(--coral); border-radius: 0 0 2px 2px;
}
.site-nav__search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; }
.site-nav__search input {
  border: 0; outline: 0; background: transparent; width: 180px; font: 500 14px/1.4 var(--font-body); color: var(--ink);
}
.site-nav__search input::placeholder { color: var(--muted); }
.site-nav__search button {
  border: 0; background: none; cursor: pointer; color: var(--muted); padding: 3px;
}
.site-nav__search button:hover { color: var(--coral); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--coral); color: #fff; font-weight: 700;
  padding: 9px 16px; border-radius: 99px; text-decoration: none; font-size: .84rem;
  transition: background .2s, transform .2s;
  flex: 0 0 auto;
}
.nav-cta:hover { background: var(--coral-dark); transform: translateY(-1px); }
.nav-cta .icon { width: 14px; height: 14px; }
/* Contact CTA must stay white in every state. These selectors out-specify the
   `.site-nav > li > a` colour/background rules so the label never turns dark. */
.site-nav > li > a.nav-cta,
.site-nav > li > a.nav-cta:visited { color: #fff; background: var(--coral); }
.site-nav > li > a.nav-cta:hover,
.site-nav > li > a.nav-cta:focus,
.site-nav > li > a.nav-cta:active { color: #fff; background: var(--coral-dark); transform: translateY(-1px); }
.site-nav > li > a.nav-cta .icon { color: #fff; }

.nav-toggle { display: none; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; margin: 3px 0;
  background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Mobile menu (slide-down) ---------- */
.site-nav--mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink); color: #fff;
  flex-direction: column; align-items: stretch;
  padding: 8px 0 14px; border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
  animation: slideDown .25s ease;
}
.site-nav--mobile a {
  display: flex; align-items: center; gap: 12px;
  color: #fff; padding: 13px 16px; border-radius: 8px; font-size: .95rem; font-weight: 500;
}
.site-nav--mobile a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav--mobile a.active { background: rgba(233, 185, 95, .18); color: var(--gold); }
.site-nav--mobile .nav-cta {
  background: var(--gold-dark); color: #fff; width: 100%;
  margin-top: 6px; justify-content: center;
}
.site-nav--mobile .nav-cta:hover { background: #9a771a; }
.site-nav--mobile .nav-cta .icon { width: 14px; height: 14px; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 700px; }
}
.hide { display: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  animation: heroZoom 14s ease-out forwards;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(15deg, rgba(13, 32, 36, .92) 0%, rgba(13, 32, 36, .55) 45%, rgba(13, 32, 36, .18) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); width: 100%; margin: auto;
  padding: 120px var(--gutter) 110px;
  color: #fff;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 40px;
}
.hero__copy { max-width: 1280px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  color: #fff; max-width: 820px; margin-bottom: 20px;
  font-size: clamp(2.5rem, 3.4vw, 4rem);
  line-height: 1.08; letter-spacing: -0.03em; white-space: nowrap; text-align: center;
}
.hero__lead { max-width: 1100px; text-align: center; }
/* No student cards: centre the copy and let the lead run on one line */
.hero--centered .hero__inner { justify-content: center; text-align: center; }
.hero--centered .hero__copy { max-width: none; }
.hero--centered .hero h1 { margin-left: auto; margin-right: auto; }
.hero--centered .hero__lead { max-width: none; }
.hero--centered .hero__actions { justify-content: center; }

@media (max-width: 1240px) {
  .site-header__inner { gap: 12px; }
  .site-header__bottom { gap: 8px; }
  .site-nav { gap: 2px; font-size: .87rem; }
  .site-nav > li > a { padding: 8px 7px; }
  .site-brand .brand__logo { max-width: 170px; }
}

@media (max-width: 1400px) and (min-width: 1121px) {
  .site-header__inner { gap: 8px; }
  .site-nav { gap: 1px; font-size: .82rem; }
  .site-nav > li > a { padding-right: 4px; padding-left: 4px; }
  .site-nav-wrap { flex-basis: 220px; width: 220px; min-width: 164px; }
}

@media (max-width: 1120px) {
  .site-header__inner { gap: 10px; }
  .site-header__inner { justify-content: space-between; }
  .site-header__bottom { gap: 6px; }
  .site-nav { gap: 1px; font-size: .82rem; }
  .site-nav > li > a { padding: 8px 5px; }
  .nav-cta { padding: 8px 11px; font-size: .78rem; gap: 6px; }
  .nav-cta .icon { width: 13px; height: 13px; }
  .site-brand .brand__logo { height: 56px; max-width: 140px; }
  .site-nav-wrap { padding-left: 11px; }
}

@media (max-width: 1120px) {
  .site-header__inner { gap: 8px; }
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; justify-content: space-between; }
  .site-header__top { display: flex; }
  .site-header__bottom { flex: 0 0 auto; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; }
  .site-nav-wrap { display: none; }
  .site-nav--mobile:not(.hide) { display: flex; }
  .hero h1 { max-width: 16ch; white-space: normal; font-size: clamp(2.4rem, 6vw, 3.4rem); }
}

@media (max-width: 768px) {
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; justify-content: space-between; }
  .nav-toggle { display: flex; }
  /* Keep the logo visible on mobile; collapse the desktop nav into the hamburger menu. */
  .site-header__top { display: flex; }
  .site-header__bottom { flex: 0 0 auto; }
  .site-header__bottom--mobileshow {
    display: flex !important;
  }
  .site-nav { display: none; }
  .site-nav-wrap { display: none; }
  .hero { min-height: clamp(470px, 68vh, 620px); }
  .hero__inner { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 74px; padding-bottom: 56px; }
  .hero__copy { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero h1 { white-space: normal; font-size: clamp(2.5rem, 9vw, 4rem); max-width: 14ch; margin-left: auto; margin-right: auto; text-align: center; }
  .hero__lead { max-width: 100%; font-size: 1rem; margin-left: auto; margin-right: auto; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { width: 100%; max-width: 290px; }
}

@media (max-width: 420px) {
  .brand { letter-spacing: .08em; font-size: .69rem; white-space: normal; }
  .site-header__inner { gap: 8px; }
  .hero__inner { padding-left: 16px; padding-right: 16px; }
  .hero__actions { width: 100%; gap: 10px; }
}

/* Hero student portrait cards (PNG, arch shape, no circles) */
.hero__students { position: relative; flex: none; width: 430px; height: 470px; }
.student-card {
  position: absolute;
  border-radius: 130px 130px var(--radius-lg) var(--radius-lg); /* arch: round top, straight base */
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .75));
  box-shadow: 0 30px 60px rgba(13, 32, 36, .45);
  animation: floaty 6.5s ease-in-out infinite;
  will-change: transform;
}
.student-card--girl { width: 270px; top: 0; right: 0; transform: rotate(3deg); z-index: 1; }
.student-card--boy  { width: 235px; bottom: 0; left: 0; animation-delay: -3.2s; z-index: 2; }
.student-card__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5;              /* portraits auto-fit the arch card, any source size */
  object-fit: cover; object-position: center;
  border-radius: 120px 120px 8px 8px;
}
.student-card__ring { position: absolute; inset: -14px; border: 2px dashed rgba(233, 185, 95, .8); border-radius: 140px 140px 16px 16px; animation: spin 26s linear infinite; pointer-events: none; }
.student-card--boy .student-card__ring { border-color: rgba(31, 110, 106, .75); animation-duration: 32s; animation-direction: reverse; }
.student-card__badge {
  position: absolute; bottom: -16px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 99px; font: 700 .82rem var(--font-body);
  box-shadow: 0 10px 22px rgba(13, 32, 36, .35);
}
.student-card__badge .icon { width: 15px; height: 15px; }
.student-card__badge--gold { right: -18px; background: var(--gold); color: var(--ink); }
.student-card__badge--teal { left: -18px; background: var(--teal); color: #fff; }
@keyframes floaty { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -18px; } }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 1080px) { .hero__students { display: none; } }
.hero__lead { color: #e7efe9; font-size: 1.14rem; max-width: 560px; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroller {
  position: absolute; z-index: 1; bottom: 22px; right: var(--gutter);
  color: rgba(255, 255, 255, .7); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--ink); }
.stats-bar__inner { max-width: var(--wrap); margin: auto; padding: 34px var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font: 700 2.3rem/1.1 var(--font-display); color: var(--gold); }
.stat span { color: #b9c9c4; font-size: .88rem; letter-spacing: .04em; }
@media (max-width: 600px) {
  .stats-bar__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; padding-top: 24px; padding-bottom: 24px; }
  .stat strong { font-size: 1.8rem; }
}

/* ---------- Notices page: dual calendar ---------- */
.calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.cal-card-cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 24px; }
.cal-toolbar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-select { width: auto; padding: 8px 12px; font-weight: 700; border-radius: var(--radius); }
.cal-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: border-color .2s, background .2s; }
.cal-btn:hover { border-color: var(--teal); background: #fff; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-weight: 700; font-size: .78rem; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.cal-week--bs { font-size: .85rem; text-transform: none; letter-spacing: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 10px; font-weight: 500; font-size: .95rem; cursor: pointer; transition: background .15s, color .15s; }
.cal-week--bs + .cal-grid .cal-day { font-size: 1.05rem; }
.cal-day:hover { background: var(--cream); }
.cal-day--out { color: #b8c4bf; background: transparent; cursor: default; }
.cal-day--today { background: var(--teal); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(31, 110, 106, .35); }
.cal-caption { text-align: center; color: var(--muted); font-size: .88rem; margin: 16px 0 0; }
/* B.S. numerals: Poppins draws the Devanagari digits U+0966–096F with
   Latin-looking shapes, so "२६" reads as "26". Use a true Devanagari face
   for everything numeric in the Nepali calendars (notices + admissions picker). */
[data-cal="bs"] .cal-day,
[data-cal="bs"] .cal-caption,
[data-cal="bs"] .cal-select,
[data-cal="bs"] .cal-week,
.cal-bs-num {
  font-family: 'Noto Sans Devanagari', 'Poppins', system-ui, sans-serif;
}
@media (max-width: 860px) { .calendars { grid-template-columns: 1fr; } }

/* ---------- Admissions date pickers ---------- */
.field__row--date { display: flex; align-items: stretch; gap: 8px; }
.field__row--date > input { flex: 1 1 auto; }
.field__row--date-ad { flex-wrap: nowrap; }
.field__row--date-ad > input[type="date"] { flex: 1 1 0; width: 0; min-width: 0; }
.field__row--date-ad input[type="date"]::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; width: 0; height: 0; margin: 0; padding: 0; -webkit-appearance: none; }
.field__date-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; padding: 0;
  border: 1px solid var(--line); border-left: 0;
  background: var(--paper); color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.field__date-btn:hover { color: var(--teal); border-color: var(--teal); background: #fff; }
.field__date-btn .icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .field__row--date { flex-wrap: wrap; }
  .field__date-btn { border-left: 1px solid var(--line); border-top: 0; }
  .field__row--date-ad { flex-wrap: nowrap; }
  .field__row--date-ad .field__date-btn { border-left: 0; border-top: 1px solid var(--line); }
}
.field__picker {
  position: absolute; z-index: 60;
  width: 280px; max-width: calc(100vw - 16px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.field__picker[hidden] { display: none !important; }
.field__picker--up { bottom: 8px; }
.field__picker .cal-card-cal { border: 0; border-radius: 0; box-shadow: none; padding: 12px; }
.field__picker .cal-toolbar { flex-wrap: nowrap; gap: 3px; margin-bottom: 10px; }
.field__picker .cal-toolbar .cal-btn { flex: 0 0 26px; width: 26px; height: 30px; border-radius: 7px; }
.field__picker .cal-toolbar .cal-select { flex: 1 1 0; width: auto; min-width: 0; padding: 6px 3px; font-size: .78rem; }
.field__picker .cal-toolbar [data-cal-month] { flex-grow: 1.15; }
.field__picker .cal-toolbar [data-cal-year] { flex-grow: .85; }
.field__picker .cal-week { gap: 2px; margin-bottom: 4px; font-size: .7rem; }
.field__picker .cal-grid { gap: 2px; }
.field__picker .cal-day { aspect-ratio: auto; height: 28px; border-radius: 6px; font-size: .85rem; }
.field__picker .cal-week--bs + .cal-grid .cal-day { font-size: .9rem; }
.field__picker .cal-caption { margin-top: 8px; font-size: .78rem; }
.field__picker:has(.cal-toolbar--bs) {
  width: 360px; max-width: calc(100vw - 16px);
}
.field__picker .cal-toolbar--bs { justify-content: center; gap: 6px; margin-bottom: 12px; }
/* The year is picked from its dropdown list (same as the A.D. picker),
   so the year arrows stay hidden. Month + year selects stay VISIBLE —
   they are the "list of month and year" opened on click. */
.field__picker .cal-toolbar--bs > [data-cal-prev="year"],
.field__picker .cal-toolbar--bs > [data-cal-next="year"] { display: none; }
.field__picker .cal-toolbar--bs > [data-cal-prev="month"],
.field__picker .cal-toolbar--bs > [data-cal-next="month"] { flex: 0 0 34px; width: 34px; height: 34px; font-size: 1.4rem; }
.field__picker .cal-toolbar--bs > [data-cal-month] { flex: 1.3 1 0; font-size: .88rem; }
.field__picker .cal-toolbar--bs > [data-cal-year] { flex: 1 1 0; }
.field__picker .cal-toolbar--bs + .cal-week + .cal-grid + .cal-caption { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.field__picker .cal-week--bs { font-size: .9rem; color: var(--muted); }
.field__picker .cal-week--bs + .cal-grid .cal-day { height: 38px; font-size: 1rem; }
.field__picker:has(.cal-toolbar--bs) .cal-day--today { border: 2px solid #194398; background: var(--paper); color: #194398; box-shadow: none; font-weight: 700; }
.field__picker:has(.cal-toolbar--bs) .field__picker-foot { background: var(--paper); border-top: 0; padding: 10px 12px; }
.field__picker:has(.cal-toolbar--bs) [data-dob-bs-today] { border: 1px solid #dce4f2; background: #f3f5f9; color: var(--ink); }
.field__picker:has(.cal-toolbar--bs) [data-dob-bs-done] { border: 1px solid #194398; background: #194398; color: #fff; }
.field__picker-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 12px; border-top: 1px solid var(--line); background: var(--cream);
}
.field--rel { position: relative; }
.form-grid .field--rel { z-index: 1; }
.form-stack .field--rel { z-index: 1; }
/* ---------- Gallery albums ---------- */
.album-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.album-filter .chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 99px; padding: 9px 18px; font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.album-filter .chip b { font-weight: 700; color: var(--muted); }
.album-filter .chip:hover { border-color: var(--teal); transform: translateY(-1px); }
.album-filter .chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.album-filter .chip.is-active b { color: rgba(255, 255, 255, .75); }
.gallery-placeholder { aspect-ratio: 1 / .85; display: grid; place-items: center; background: linear-gradient(135deg, rgba(31, 110, 106, .08), rgba(217, 100, 72, .08)); color: var(--teal); margin-bottom: 18px; }
.gallery-placeholder .icon { width: 42px; height: 42px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) var(--gutter); max-width: var(--wrap); margin: auto; }
/* Wider container for the admissions page only (do NOT reuse .section--wide — that name is taken by the full-bleed flex sections on home/about) */
.section--admissions { max-width: 1400px; }
/* Feature section that fills more of the viewport than the standard --wrap column
   (used by the home "Message from the Principal" showcase). */
.section--wide { max-width: min(1480px, 100%); padding-left: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.section--tinted { max-width: none; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tinted > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 42px; flex-wrap: wrap; }
.section-head h2, .section-head h1 { margin-bottom: 0; }
.section-head__note { max-width: 380px; margin: 0; }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(50px, 7vw, 80px) var(--gutter); }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 22px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; overflow: hidden; display: flex; flex-direction: column; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.pillar__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, rgba(31, 110, 106, .12), rgba(217, 100, 72, .12)); color: var(--teal); margin: 22px 0 16px; margin-left: auto; margin-right: auto; }
.pillar__icon .icon { width: 24px; height: 24px; }
.pillar h3 { margin: 0 0 6px; font-size: 1.2rem; }
.pillar__subtitle { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.pillar p { margin: 0; font-size: .92rem; line-height: 1.6; }
.pillar__body { padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }

/* ---------- Explore cards ---------- */
.explore-section { background: linear-gradient(180deg, var(--cream), #efece2); }
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.explore-col { display: grid; gap: 22px; }
.explore-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.explore-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.explore-card__num { grid-row: 1 / 3; font: 700 1.9rem/1 var(--font-display); color: rgba(31, 110, 106, .35); }
.explore-card__label { font: 700 1.2rem var(--font-body); color: var(--ink); }
.explore-card__note { color: var(--muted); font-size: .9rem; }
.explore-card__arrow { grid-row: 1 / 3; color: var(--teal); display: inline-flex; transition: transform .25s; }
.explore-card:hover .explore-card__arrow { transform: translateX(5px); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card__focus { font-size: .92rem; margin-bottom: 0; }
.card--flat { box-shadow: none; }
.card--media, .card--person { padding: 0 0 22px; overflow: hidden; }
.card--media img, .card--person img { width: 100%; aspect-ratio: 1 / .85; object-fit: cover; margin-bottom: 18px; }
/* Academic level card with photo */
.card--level { padding: 0 0 26px; overflow: hidden; display: flex; flex-direction: column; }
.card--level .card__photo { aspect-ratio: 16 / 10; overflow: hidden; background: #efece2; }
.card--level .card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card--level .card__body { padding: 22px 24px 0; }
.card__body { padding: 0 22px; }
.card__body p { margin-bottom: 0; }
.card__body .eyebrow { margin-bottom: 6px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__text h2 { margin-bottom: 16px; }
.image-frame { min-height: 430px; border-radius: var(--radius-lg); background: center / cover no-repeat; box-shadow: var(--shadow-lg); }
.image-frame--tall { min-height: 520px; }

.check-list { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; }
.check-list .icon { color: var(--teal); margin-top: 4px; width: 18px; height: 18px; }

/* ---------- Gallery strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-strip__item { margin: 0; min-height: 300px; border-radius: var(--radius-lg); background: center / cover no-repeat; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.gallery-strip__item:hover { transform: scale(1.02); }
.gallery-strip__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13, 32, 36, .78)); }
.gallery-strip__item figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-weight: 700; letter-spacing: .02em; }

/* ---------- Meet us / Contact page ---------- */
.meet-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.form-divider { display: flex; align-items: baseline; gap: 12px; border-top: 1px dashed var(--line); margin-top: 26px; padding-top: 22px; }
.form-divider h3 { margin: 0; color: var(--teal); font-size: 1.15rem; }
.form-divider--first { border-top: 0; margin-top: 0; padding-top: 0; }

/* Admissions — submit row inside the form */
.adm-submit { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
.adm-submit__note { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.adm-submit__note .icon { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* Admissions — "What happens next" band */
.adm-next { max-width: none; background: linear-gradient(160deg, var(--teal-dark), var(--teal) 70%); padding: clamp(38px, 5vw, 62px) var(--gutter); }
.adm-next__head { max-width: var(--wrap); margin: 0 auto 26px; }
.adm-next__head h2 { color: #fff; margin-bottom: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.adm-next__head .eyebrow { margin-bottom: 9px; }
.adm-next__head .eyebrow--light { color: var(--gold); }
.adm-next__grid { max-width: var(--wrap); margin: 0 auto; }
/* Glass step cards on the dark teal band */
.adm-next__card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: #e7efe9; backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.adm-next__card::before { background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, .55)); }
.adm-next__card:hover { border-color: rgba(233, 185, 95, .5); box-shadow: 0 26px 54px rgba(0, 0, 0, .28); }
.adm-next__card h3 { color: #fff; }
.adm-next__card p { color: rgba(255, 255, 255, .78); }
.adm-next__card .step-card__icon {
  background: linear-gradient(140deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07));
  color: var(--gold); box-shadow: 0 12px 26px rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .25);
}
.adm-next__card .step-card__icon::before { border-color: rgba(233, 185, 95, .4); }
.adm-next__card .step-card__num { background: var(--gold); color: var(--teal-dark); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.adm-next__card::after { border-color: rgba(233, 185, 95, .55); }

/* Admissions — balanced two-column layout, same proportions as the reference */
.meet-grid--admissions { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.meet-grid--admissions > * { min-width: 0; }
.meet-grid--admissions .meet-aside { gap: 20px; }
.meet-grid--admissions .meet-aside .panel { padding: 22px 24px; }
.meet-grid--admissions .meet-aside__title { margin-bottom: 10px; }
.meet-grid--admissions .meet-aside__address { margin-bottom: 10px; }
.meet-grid--admissions .meet-aside__lines { gap: 7px; }
.meet-grid--admissions .meet-hours { gap: 7px; }
.meet-grid--admissions .meet-hours li { padding-bottom: 7px; }

/* Admissions — sidebar */
.meet-aside--sticky { position: sticky; top: 96px; }

/* ---------- Public forms ---------- */
.form-stack { display: grid; gap: 18px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-grid--full { grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.field input,
.field textarea,
.field select {
  grid-column: auto / span 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font: 400 15px/1.4 var(--font-body);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 110, 106, .14);
}
.field input::placeholder,
.field textarea::placeholder { color: #b3c4be; }
.field input[type="date"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field textarea, .field select { width: 100%; min-width: 0; }
.field textarea {
  resize: vertical;
  min-height: 118px;
}
.field .optional { font-size: .74rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Full-width field inside a 2-col grid */
.field--full { grid-column: 1 / -1; }
.field--full input,
.field--full textarea,
.field--full select { grid-column: auto; }

/* Compact form (used on the admissions page) */
.form--compact { max-width: 760px; margin: 0 auto; }
.form--compact .field { gap: 3px; }
.form--compact .field label { font-size: .68rem; letter-spacing: .03em; }
.form--compact .field input,
.form--compact .field textarea,
.form--compact .field select { padding: 7px 10px; font-size: 13px; }
.form--compact .field .optional { font-size: .62rem; }
.form-stack button[type="submit"] { justify-self: start; }

/* Admissions — denser vertical rhythm so the whole enquiry fits with far less
   scrolling. No fields are removed; only spacing and control heights shrink. */
.form--compact.form-stack { gap: 9px; }
.form--compact .form-grid { gap: 9px 14px; }
.form--compact .form-divider { margin-top: 11px; padding-top: 10px; }
.form--compact .form-divider h3 { font-size: .95rem; }
.form--compact .field textarea { min-height: 58px; }
.form--compact .adm-submit { margin-top: 9px; padding-top: 11px; gap: 8px 16px; }
.form--compact .adm-submit__note { font-size: .76rem; }
/* Right-size the admissions submit button (was btn--lg: too tall). */
.form--compact .adm-submit .btn { padding: 9px 18px; font-size: .86rem; }
.form--compact .adm-submit .btn .icon { width: 15px; height: 15px; }
.form--compact small.muted { margin-top: 2px; font-size: .72rem; }
.panel.form--compact { padding: 18px 20px; }
/* Trim the admissions section's own vertical padding (biggest source of scroll) */
.section--admissions { padding-top: clamp(30px, 3.5vw, 48px); padding-bottom: clamp(30px, 3.5vw, 48px); }
/* Smaller section heading above the form */
.section--admissions .section-head { margin-bottom: 18px; }
.section--admissions .section-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Contact page — "Send a message / Start a conversation" runs more compact. */
.section--contact { padding-top: clamp(34px, 4vw, 56px); padding-bottom: clamp(34px, 4vw, 56px); }
.section--contact .section-head { margin-bottom: 20px; }
.section--contact .section-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.section--contact .meet-points { margin-bottom: 20px; gap: 9px; }
.section--contact .meet-points li { padding: 11px 15px; font-size: .9rem; }
.section--contact .panel { padding: 22px 24px; }
.section--contact .form-stack { gap: 13px; }
.section--contact .form-grid { gap: 13px 16px; }
.section--contact .field textarea { min-height: 96px; }
.section--contact .meet-aside { gap: 16px; }
.section--contact .meet-aside__panel { padding: 20px 22px; }
.section--contact .meet-aside__title { font-size: .98rem; margin-bottom: 9px; }
.section--contact .meet-hours li { padding-bottom: 7px; font-size: .9rem; }
@media (max-width: 900px) { .form--compact .form-grid { gap: 8px 12px; } }

/* Compact panel container for public forms */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 10px; font-size: 1.15rem; }
.panel p { margin: 0; }

/* Validation feedback */
.form-stack.is-invalid .field:has(input:invalid:not(:focus):not([value=""])),
.form-stack.is-invalid .field:has(textarea:invalid:not(:focus)) { border: 1px solid var(--coral) !important; }
.form-stack .field-error { color: var(--coral); font-size: .78rem; font-weight: 600; margin-top: 4px; display: none; }
.form-stack.is-invalid .field-error { display: block; }
.adm-aside-cta { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(217, 100, 72, .1), rgba(233, 185, 95, .16)); border: 1px solid rgba(217, 100, 72, .25); transition: transform .2s, box-shadow .2s; }
.adm-aside-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.adm-aside-cta .icon { width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 11px; background: var(--coral); color: #fff; }
.adm-aside-cta span { font-size: .9rem; color: var(--muted); display: grid; }
.adm-aside-cta b { color: var(--ink); font-size: .95rem; }
.meet-points--stack { margin: 0; }
.meet-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.meet-points li { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; font-size: .95rem; color: var(--ink); }
.meet-points .icon { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }
.meet-points strong { color: var(--ink); }
.meet-aside { display: grid; gap: 22px; }
.meet-aside__panel { margin-bottom: 0; }
.meet-aside__title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 12px; }
.meet-aside__title .icon { width: 20px; height: 20px; color: var(--coral); }
.meet-aside__address { margin-bottom: 12px; }
.meet-aside__lines { display: grid; gap: 8px; font-size: .95rem; }
.meet-aside__lines span { display: flex; align-items: center; gap: 9px; }
.meet-aside__lines .icon { width: 16px; height: 16px; color: var(--teal); flex: none; }
.meet-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.meet-hours li { display: flex; justify-content: space-between; gap: 14px; font-size: .95rem; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.meet-hours li:last-child { border-bottom: none; padding-bottom: 0; }
.meet-hours span { color: var(--muted); }
.meet-aside__note { font-size: .85rem; margin: 14px 0 0; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: clamp(340px, 45vw, 500px); border: 0; display: block; }
@media (max-width: 900px) { .meet-grid { grid-template-columns: 1fr; } .meet-aside--sticky { position: static; } }

/* ---------- News page ---------- */
.news-date { flex: none; width: 74px; height: 84px; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 0; background: linear-gradient(160deg, var(--teal), var(--teal-dark)); color: #fff; text-align: center; box-shadow: var(--shadow); }
.news-date b { font: 700 1.7rem/1.1 var(--font-display); }
.news-date span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.news-date--gold { background: linear-gradient(160deg, #d9a441, #b07e22); }
.news-featured { position: relative; overflow: hidden; display: flex; gap: 26px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 34px; margin-bottom: 30px; }
.news-featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), #3b918c); }
.news-featured h3 { font-size: 1.55rem; margin-bottom: 10px; }
.news-featured p { margin-bottom: 0; max-width: none; }
.news-card { display: flex; flex-direction: column; }
.news-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; }
.news-card--soon { border-top: 3px solid var(--gold); }
.news-grid { margin-top: 0; }

/* Latest-news grid cards: rotating teal / coral / gold accents */
.news-grid > .news-card { position: relative; overflow: hidden; padding: 26px 26px 24px; }
.news-grid > .news-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--nc-1, var(--teal)), var(--nc-2, var(--teal-dark))); transform: scaleX(.32); transform-origin: left; transition: transform .35s; }
.news-grid > .news-card:hover::before { transform: scaleX(1); }
.news-grid > .news-card:nth-child(3n + 1) { --nc-1: var(--teal);      --nc-2: #3b918c; }
.news-grid > .news-card:nth-child(3n + 2) { --nc-1: var(--coral);     --nc-2: var(--coral-dark); }
.news-grid > .news-card:nth-child(3n)     { --nc-1: var(--gold-dark); --nc-2: #b07e22; }
.news-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.news-card__label { margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--nc-1, var(--teal)); }
.news-date--sm { width: 54px; height: 60px; border-radius: 14px; background: linear-gradient(160deg, var(--nc-1, var(--teal)), var(--nc-2, var(--teal-dark))); box-shadow: 0 10px 22px rgba(22, 40, 46, .16); }
.news-date--sm b { font: 700 1.35rem/1.1 var(--font-display); }
.news-date--sm span { font-size: .62rem; }
.news-card__body { display: flex; flex-direction: column; flex: 1; }
.news-card__excerpt { margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-card__foot > span:first-child { font-size: .8rem; font-weight: 600; color: var(--muted); }
.news-card__more { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(31, 110, 106, .1); color: var(--nc-1, var(--teal)); transition: background .25s, color .25s, transform .25s; }
.news-card__more .icon { width: 16px; height: 16px; }
.news-card:hover .news-card__more { background: var(--nc-1, var(--teal)); color: #fff; transform: translateX(3px); }

/* A lone card in the last row stretches full-width, laid out horizontally */
@media (min-width: 861px) {
  .news-grid > .news-card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 30px; }
  .news-grid > .news-card:last-child:nth-child(3n + 1) .news-card__head { flex: none; width: 96px; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 0; }
  .news-grid > .news-card:last-child:nth-child(3n + 1) .news-card__excerpt { -webkit-line-clamp: 2; }
}
.empty-state { text-align: center; padding: clamp(50px, 8vw, 90px) 24px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px; background: linear-gradient(135deg, rgba(31, 110, 106, .12), rgba(217, 100, 72, .12)); color: var(--teal); }
.empty-state__icon .icon { width: 30px; height: 30px; }
.empty-state p { max-width: 420px; margin: 0 auto 22px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--teal-dark), var(--teal)); color: #fff; }
.cta-band::before { content: ""; position: absolute; top: -120px; right: -80px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 185, 95, .22), rgba(233, 185, 95, 0) 70%); pointer-events: none; }
.cta-band::after { content: ""; position: absolute; bottom: -140px; left: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.cta-band__inner { max-width: var(--wrap); margin: auto; padding: clamp(32px, 4vw, 52px) var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.cta-band .eyebrow { margin-bottom: 8px; }
.cta-band p { color: #cfe3df; max-width: 560px; margin: 0; font-size: .93rem; }
.cta-band__actions { display: flex; gap: 11px; flex-wrap: wrap; }
.cta-band__actions .btn { padding: 10px 19px; font-size: .88rem; }

/* ---------- Generic page ---------- */
.page-title { margin-top: 4px; }
.page-content h3 { margin-top: 28px; }
.page-content p { max-width: 640px; }
.page-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.notfound { text-align: center; }
.notfound .page-actions { justify-content: center; }

/* ---------- About page ---------- */
.about-hero { position: relative; min-height: clamp(420px, 60vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.about-hero__media { position: absolute; inset: 0; background: center / cover no-repeat; animation: heroZoom 14s ease-out forwards; }
.about-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(12deg, rgba(13, 32, 36, .92) 0%, rgba(13, 32, 36, .55) 50%, rgba(13, 32, 36, .22) 100%); }
.about-hero__inner { position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: auto; padding: 90px var(--gutter) 72px; color: #fff; }
.about-hero h1 { color: #fff; margin: 0 0 14px; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
/* Dark pill label like the home showcase cards */
.about-hero__pill { display: inline-block; width: fit-content; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(4px); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: 99px; margin: 0 0 18px; }
.about-hero__bar { width: 78px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--coral)); margin-bottom: 20px; }
.about-hero__lead { color: #e7efe9; font-size: 1.1rem; line-height: 1.75; max-width: 640px; margin: 0 0 26px; }
/* Fact chips under the lead */
.about-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.about-hero__fact { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(4px); color: #fff; font-size: .82rem; font-weight: 500; padding: 9px 16px; border-radius: 99px; }
.about-hero__fact .icon { width: 15px; height: 15px; color: var(--gold); flex: none; }

.about-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.about-intro__text h2 { margin-bottom: 14px; }
/* Who we are — calmer heading with gold dash, justified copy */
.about-intro__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.about-intro__eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: var(--gold); }
.about-intro__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.about-intro__content { text-align: justify; }
.about-intro__content h3 { font-size: 1.15rem; margin: 22px 0 8px; padding-left: 14px; border-left: 3px solid var(--gold); }

/* At a glance — stats panel style */
.glance--panel { padding: 26px 24px; }
.glance__title { display: flex; align-items: center; gap: 9px; }
.glance__title .icon { width: 18px; height: 18px; color: var(--coral); }
.glance__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.glance__stat { background: linear-gradient(150deg, rgba(31, 110, 106, .07), rgba(233, 185, 95, .1)); border: 1px solid rgba(31, 110, 106, .14); border-radius: var(--radius); padding: 12px 10px; text-align: center; }
.glance__stat strong { display: block; font: 700 1.35rem/1.2 var(--font-display); color: var(--teal); }
.glance__stat span { font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
/* "View classes offered" — inline expandable panel */
.glance__more { margin-top: 16px; }
.glance__more summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; width: 100%; justify-content: center; }
.glance__more summary::-webkit-details-marker { display: none; }
.glance__more summary .icon { width: 15px; height: 15px; }
.glance__more[open] summary { background: var(--paper); color: var(--teal); }
.glance__more-body { margin-top: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); animation: glance-more-in .3s ease; }
@keyframes glance-more-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.glance__more-body h4 { margin: 0 0 6px; font-size: 1rem; }
.glance__more-body p { margin: 0; font-size: .9rem; line-height: 1.7; text-align: justify; }
.glance__more-label { display: block; margin: 14px 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }

.glance { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px 28px; position: sticky; top: 96px; }
.glance__title { font-size: 1.15rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--gold); }
.glance__row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.glance__row:last-child { border-bottom: 0; padding-bottom: 0; }
.glance__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(31, 110, 106, .12), rgba(217, 100, 72, .12)); color: var(--teal); }
.glance__icon .icon { width: 20px; height: 20px; }
.glance__row strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.glance__row p { margin: 3px 0 0; font-size: .95rem; }

.level-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-block; padding: 5px 13px; border-radius: 99px; background: rgba(31, 110, 106, .1); color: var(--teal-dark); font-weight: 700; font-size: .82rem; }

/* History + timeline */
.history-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.history-media-wrap { position: relative; margin-bottom: 30px; }
.history-media { min-height: 340px; border-radius: var(--radius-lg); background: center / cover no-repeat; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
/* Warm offset panel behind the history photo */
.history-media-wrap::before { content: ""; position: absolute; z-index: 0; top: 22px; right: -16px; bottom: -16px; left: 12%; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(233, 185, 95, .35), rgba(31, 110, 106, .22)); }
.history-badge { position: absolute; z-index: 2; left: 18px; bottom: -16px; display: inline-flex; align-items: center; gap: 9px; background: var(--teal); color: #fff; padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: .8rem; box-shadow: var(--shadow-lg); }
.history-badge .icon { width: 15px; height: 15px; color: var(--gold); }
.history-text { font-size: 1.02rem; }
.timeline { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 26px 26px 30px; border-left: 4px solid var(--teal); display: grid; gap: 20px; }
.timeline__item { position: relative; padding-left: 30px; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid rgba(233, 185, 95, .3); }
.timeline__year { font: 700 1.05rem var(--font-display); color: var(--teal); letter-spacing: .04em; display: block; margin-bottom: 4px; }
.timeline__item p { margin: 0; font-size: .93rem; }

/* Vision & mission — deep-teal cinematic cards */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; transition: transform .3s, box-shadow .3s; }
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.vm-card__media { min-height: 240px; background: center / cover no-repeat; flex: none; position: relative; transition: transform .5s ease; }
.vm-card:hover .vm-card__media { transform: scale(1.04); }
.vm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 32, 36, .1) 30%, rgba(13, 32, 36, .55)); }
.vm-card__body { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.vm-card__body h3 { margin-bottom: 12px; }
.vm-card--vision { background: linear-gradient(160deg, var(--teal), var(--teal-dark)); color: #fff; }
.vm-card--vision h3 { color: #fff; }
.vm-card--vision .eyebrow { color: var(--gold); }
.vm-card--vision .vm-card__text { color: #d9e8e4; }
.vm-card--mission { background: var(--paper); border: 1px solid var(--line); }
.vm-card--mission .eyebrow { color: var(--coral); }
.vm-card__text { font: 500 1.08rem/1.7 var(--font-body); margin: 0; text-align: justify; }
/* Small icon chip marking each card */
.vm-card__chip { position: absolute; z-index: 2; top: 18px; left: 22px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.vm-card__chip .icon { width: 21px; height: 21px; }

/* Core values — numbered gradient cards */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .about-intro, .history-grid, .vm-grid { grid-template-columns: minmax(0, 1fr); }
  .glance { position: static; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .value-grid { grid-template-columns: minmax(0, 1fr); } }
.value-card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(31, 110, 106, .35); }
.value-card__num { position: absolute; top: 10px; right: 16px; font: 700 2.4rem/1 var(--font-display); color: rgba(31, 110, 106, .1); }
.value-card__mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(31, 110, 106, .14), rgba(233, 185, 95, .22)); color: var(--teal); margin-bottom: 14px; }
.value-card__mark .icon { width: 20px; height: 20px; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value-card p { margin: 0; font-size: .93rem; }

/* Home: About our school — showcase card (sample design).
   One large rounded card: photo left with orange offset outline and a
   circular icon chip, text right with pill label, serif heading and
   gradient underline. */
.about-home { background: linear-gradient(180deg, #fbfaf5, #f4f2ea); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: center; max-width: min(1560px, calc(100% - clamp(16px, 4vw, 64px))); padding-top: clamp(30px, 4.5vw, 64px); padding-bottom: clamp(30px, 4.5vw, 64px); }
/* Soft decorative circle, bottom right */
.about-home::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 110, 106, .08), rgba(31, 110, 106, 0) 70%); pointer-events: none; }
.about-home__media { position: relative; margin: clamp(20px, 2.6vw, 34px) 0 clamp(20px, 2.6vw, 34px) clamp(18px, 2.4vw, 34px); }
.about-home__photo { width: 100%; aspect-ratio: 1 / 1.02; max-height: 560px; border-radius: var(--radius-lg); background: center / cover no-repeat #e7e4da; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
/* Orange offset outline around the photo — sits BEHIND the photo, shifted to the bottom-right, so no line crosses the image itself. */
.about-home__media::before { content: ""; position: absolute; z-index: 0; top: 34px; right: -18px; bottom: -18px; left: 15%; border: 2px solid var(--coral); border-radius: 18px; pointer-events: none; }
/* Circular icon chip overlapping the photo's top-right */
.about-home__icon { position: absolute; z-index: 3; top: -6px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.about-home__icon .icon { width: 22px; height: 22px; }
.about-home__body { padding: clamp(24px, 3vw, 44px) clamp(22px, 3.4vw, 48px) clamp(24px, 3vw, 44px) 0; }
/* Dark pill label (like "FOUNDER & CEO") */
.about-home__pill { display: inline-block; width: fit-content; background: var(--teal-dark); color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 15px; border-radius: 99px; margin: 0 0 14px; }
.about-home__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin-bottom: 12px; }
/* Short gradient bar under the heading (orange → green) */
.about-home__bar { width: 78px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--teal)); margin-bottom: 18px; }
.about-home__text p { text-align: justify; color: var(--muted); font-size: .98rem; line-height: 1.75; margin: 0 0 12px; }
/* "More about us" — inline expandable panel */
.about-home__more { margin-top: 18px; }
.about-home__more summary { display: inline-flex; align-items: center; gap: 7px; width: fit-content; list-style: none; cursor: pointer; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.about-home__more summary::-webkit-details-marker { display: none; }
.about-home__more summary:hover { color: var(--coral); }
.about-home__more summary .icon { transition: transform .25s; width: 15px; height: 15px; }
.about-home__more[open] summary .icon { transform: rotate(90deg); }
.about-home__more-body { margin-top: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow); animation: about-more-in .3s ease; }
@keyframes about-more-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.about-home__more-body p { text-align: justify; font-size: .95rem; margin-bottom: 10px; }
.about-home__more-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .about-home { grid-template-columns: 1fr; } .about-home__body { padding: 0 clamp(22px, 3.4vw, 48px) clamp(24px, 3vw, 44px); } .about-home__media { margin-right: clamp(22px, 3.4vw, 48px); } .about-home__photo { max-height: 420px; } }
@media (min-width: 1441px) { .about-home { max-width: min(1640px, calc(100% - clamp(16px, 4vw, 64px))); } }

/* ---------- Home: card sliders (pillars / testimonials / teachers) ---------- */
.slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.slider-head h2 { margin-bottom: 0; }
.slider-nav { display: flex; gap: 10px; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.slider-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.slider-btn .icon { width: 18px; height: 18px; }
.slider-btn:first-child .icon { transform: rotate(180deg); }
.slider { max-width: var(--wrap); margin: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; }
.slider::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: 20px; }
.slider__item { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; cursor: pointer; }
@media (max-width: 1000px) { .slider__item { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px)  { .slider__item { flex-basis: 86%; } }

/* Pillar cards inside the slider + "Read more" hint */
.pillar-section .slider { overflow-x: auto; }
.slider-head--center { justify-content: center; text-align: center; }
.slider-head--center .eyebrow, .slider-head--center h2 { text-align: center; }
/* Arrows placed below the cards, centered — easy to see and click */
.slider-nav--below { justify-content: center; margin-top: 26px; }
.slider-nav--below .slider-btn { width: 52px; height: 52px; background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: var(--shadow); }
.slider-nav--below .slider-btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-3px); }
.pillar { cursor: pointer; }
.pillar__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.pillar__more .icon { width: 14px; height: 14px; transition: transform .2s; }
.pillar:hover .pillar__more { color: var(--coral); }
.pillar:hover .pillar__more .icon { transform: translateX(4px); }

/* Testimonial quote cards */
.quote-card { margin: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 26px; box-shadow: var(--shadow); position: relative; transition: transform .25s, box-shadow .25s; }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote-card__mark { position: absolute; top: 6px; right: 22px; font: 700 5rem/1 var(--font-display); color: rgba(233, 185, 95, .5); }
.quote-card blockquote { margin: 0 0 18px; font-size: .98rem; line-height: 1.75; color: var(--ink); text-align: justify; }
.quote-card figcaption { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.quote-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.quote-card figcaption span { font-size: .8rem; color: var(--muted); }

/* ============================================================
   Recovered component styles
   (footer, cards, dialogs, admin & login UI)
   ============================================================ */

/* ---------- Small type helpers ---------- */
.muted { color: var(--muted); font-size: .92rem; }
small.muted { display: inline-block; margin-top: 6px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--teal); }
.text-link:hover { color: var(--coral); }
.text-link .icon { width: 15px; height: 15px; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Teacher cards — circular portrait with gradient ring ---------- */
.teacher-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 24px 26px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(31, 110, 106, .35); }
.teacher-card__ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 132px; height: 132px; border-radius: 50%;
  padding: 5px; margin-bottom: 18px; background: conic-gradient(from 140deg, var(--teal), var(--gold), var(--coral), var(--teal));
  box-shadow: 0 10px 24px rgba(31, 110, 106, .18);
}
.teacher-card__photo {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: #e7e4da; border: 4px solid var(--paper);
}
.teacher-card__initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%; border: 4px solid var(--paper);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; font: 700 2.6rem/1 var(--font-display);
}
/* Card reveal-on-scroll (JS adds .js-reveal to <html> then toggles .revealed).
   Guarded so the cards stay visible if JavaScript never runs. */
html.js-reveal .teacher-card[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
html.js-reveal .teacher-card[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js-reveal .teacher-card[data-reveal] { opacity: 1; transform: none; transition: none; } }
.teacher-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.teacher-card__role { color: var(--coral); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.teacher-card__bio { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.teacher-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.teacher-card__link .icon { width: 14px; height: 14px; transition: transform .2s; }
.teacher-card:hover .teacher-card__link { color: var(--coral); }
.teacher-card:hover .teacher-card__link .icon { transform: translateX(4px); }
.people { align-items: stretch; }
.gallery { align-items: stretch; }

/* ---------- Gallery cards + lightbox ---------- */
.gallery-card { position: relative; }
.gallery-card[data-gallery-open] { cursor: zoom-in; }
.gallery-card__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(13, 32, 36, .6); color: #fff; backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s, background .25s;
}
.gallery-card__zoom .icon { width: 17px; height: 17px; }
.gallery-card:hover .gallery-card__zoom,
.gallery-card:focus-visible .gallery-card__zoom { opacity: 1; transform: scale(1); }
.gallery-card:hover .gallery-card__zoom { background: var(--coral); }
.gallery-card img { transition: transform .45s ease; }
.gallery-card:hover img { transform: scale(1.05); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: none; max-height: none;
  width: min(1100px, calc(100% - 32px)); overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 20, 24, .82); backdrop-filter: blur(6px); }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.lightbox__img {
  width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px;
  background: rgba(255, 255, 255, .05); box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.lightbox__caption { text-align: center; color: #e7efe9; }
.lightbox__caption strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.lightbox__caption span { font-size: .82rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.lightbox__close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background .2s;
}
.lightbox__close:hover { background: var(--coral); }
@media (max-width: 640px) { .lightbox__close { top: -42px; right: 0; } .lightbox__img { max-height: 68vh; } }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--3 { grid-template-columns: 1fr; } }

/* ---------- Info dialog (pillar / program / teacher detail) ---------- */
.info-dialog {
  width: min(640px, calc(100% - 32px)); max-height: 86vh; overflow: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 42px); background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.info-dialog::backdrop { background: rgba(13, 32, 36, .55); backdrop-filter: blur(3px); }
.info-dialog h3 { margin-bottom: 10px; }
.info-dialog__close {
  position: absolute; top: 14px; right: 16px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(22, 40, 46, .07); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s;
}
.info-dialog__close:hover { background: var(--coral); color: #fff; }
.info-dialog__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(31, 110, 106, .14), rgba(233, 185, 95, .22)); color: var(--teal);
}
.info-dialog__icon .icon { width: 24px; height: 24px; }
.info-dialog__photo { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.info-dialog__meta { color: var(--muted); font-weight: 600; font-size: .85rem; margin: 0 0 14px; }
.info-dialog__body p { margin: 0 0 12px; text-align: justify; }
.info-dialog__body p:last-child { margin-bottom: 0; }
.info-dialog__focus { background: rgba(31, 110, 106, .07); border-left: 3px solid var(--teal); padding: 12px 16px; border-radius: var(--radius); font-size: .93rem; }
.info-dialog--person { width: min(760px, calc(100% - 32px)); }
.info-dialog__person { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: start; }
.info-dialog__person > img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); background: #e7e4da; }
@media (max-width: 620px) { .info-dialog__person { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- Why choose us (about) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 24px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(217, 33, 40, .3); }
.why-card__num { position: absolute; top: 8px; right: 16px; font: 700 2.6rem/1 var(--font-display); color: rgba(217, 33, 40, .12); }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Curriculum (academics) ---------- */
.curriculum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.curriculum-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.curriculum-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.curriculum-card__step { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; font: 700 1.1rem var(--font-display); }
.curriculum-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.curriculum-card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Steps (admissions "what happens next") ---------- */
/* Professional process cards — centered layout with a large circular icon,
   a numbered badge and a connector arrow linking each step on desktop. */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; align-items: stretch; }
.step-card {
  position: relative; overflow: visible; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 26px 32px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.step-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(31, 110, 106, .35); }
.step-card__num {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 99px;
  background: var(--teal); color: #fff;
  font: 700 .82rem/1 var(--font-display); letter-spacing: .04em;
  box-shadow: 0 6px 14px rgba(31, 110, 106, .3);
}
/* Big centered circular icon with a soft halo ring */
.step-card__icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(140deg, var(--teal), var(--teal-dark)); color: #fff;
  box-shadow: 0 12px 26px rgba(31, 110, 106, .3);
  transition: transform .3s;
}
.step-card__icon::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px dashed rgba(31, 110, 106, .28);
}
.step-card:hover .step-card__icon { transform: scale(1.06) translateY(-2px); }
.step-card__icon .icon { width: 34px; height: 34px; }
.step-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.step-card p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.65; max-width: 24ch; }
/* Connector arrow between cards (only when all four sit on one row) */
@media (min-width: 901px) {
  .steps-grid > .step-card:not(:last-child)::after {
    content: ""; position: absolute; top: 39px; right: -19px; width: 15px; height: 15px; z-index: 2;
    border-top: 2px solid rgba(31, 110, 106, .4); border-right: 2px solid rgba(31, 110, 106, .4);
    border-radius: 2px; transform: rotate(45deg);
  }
}

/* ---------- Principal showcase (home) ---------- */
.principal-showcase {
  max-width: none; margin: auto; display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px);
  align-items: center; background: linear-gradient(180deg, #fbfaf5, #f4f2ea);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding-top: clamp(30px, 4.5vw, 64px); padding-bottom: clamp(30px, 4.5vw, 64px);
  position: relative; overflow: hidden;
}
.principal-showcase__media { position: relative; margin: clamp(20px, 2.6vw, 34px) 0 clamp(20px, 2.6vw, 34px) clamp(18px, 2.4vw, 34px); }
.principal-showcase__photo { width: 100%; aspect-ratio: 1 / 1.02; max-height: 520px; border-radius: var(--radius-lg); background: center / cover no-repeat #e7e4da; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.principal-showcase__media::before { content: ""; position: absolute; z-index: 0; top: 34px; right: -18px; bottom: -18px; left: 15%; border: 2px solid var(--gold); border-radius: 18px; pointer-events: none; }
.principal-showcase__icon { position: absolute; z-index: 3; top: -6px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.principal-showcase__icon .icon { width: 22px; height: 22px; }
.principal-showcase__body { padding: clamp(24px, 3vw, 44px) clamp(22px, 3.4vw, 48px) clamp(24px, 3vw, 44px) 0; }
.principal-showcase__pill { display: inline-block; width: fit-content; background: var(--teal-dark); color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 15px; border-radius: 99px; margin: 0 0 14px; }
.principal-showcase__bar { width: 78px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--teal)); margin-bottom: 18px; }
.principal-showcase__quote { margin: 0; font: 500 1.12rem/1.75 var(--font-body); color: var(--muted); text-align: justify; border-left: 3px solid var(--gold); padding-left: 18px; }
@media (max-width: 900px) { .principal-showcase { grid-template-columns: 1fr; } .principal-showcase__body { padding: 0 clamp(22px, 3.4vw, 48px) clamp(24px, 3vw, 44px); } .principal-showcase__media { margin-right: clamp(22px, 3.4vw, 48px); } }

/* vm-card chip teal variant (about) */
.vm-card__chip--teal { background: rgba(31, 110, 106, .85); }
.history-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }

/* ---------- Contact / admissions layout extras ---------- */
.meet-main { min-width: 0; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } .curriculum-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Admin: shell, top bar, nav, content ---------- */
body.admin-shell { background: #eef1ef; font-family: 'DM Sans', var(--font-body); }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--ink); color: #fff; padding: 14px clamp(18px, 3vw, 36px);
  position: sticky; top: 0; z-index: 60; box-shadow: var(--shadow);
}
.admin-top .brand { color: #fff; font-weight: 700; letter-spacing: .06em; font-size: .95rem; }
.admin-top .brand span { color: var(--gold); }
.admin-top .brand__logo { width: 40px; height: 40px; box-shadow: none; background: transparent; }
.admin-top-user { display: flex; align-items: center; gap: 14px; }
.admin-top-name { font-size: .88rem; color: #cfdad6; }
.admin-notifications { position: relative; flex: none; }
.admin-notifications > summary {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  color: #fff; cursor: pointer; list-style: none; transition: background .2s, border-color .2s;
}
.admin-notifications > summary::-webkit-details-marker { display: none; }
.admin-notifications > summary:hover, .admin-notifications[open] > summary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.42); }
.admin-notifications > summary .icon { width: 18px; height: 18px; }
.admin-notifications__count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 99px;
  background: var(--coral); color: #fff; font: 700 10px/1 var(--font-body); border: 2px solid var(--ink);
}
.admin-notifications__menu {
  position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: min(320px, calc(100vw - 24px));
  padding: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.admin-notifications__menu > strong { display: block; padding: 5px 8px 10px; font-size: .9rem; }
.admin-notifications__menu > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px; border-radius: var(--radius); font-size: .82rem; }
.admin-notifications__menu > a:hover { background: rgba(31,110,106,.08); color: var(--teal-dark); }
.admin-notifications__menu > a b { min-width: 24px; padding: 2px 7px; border-radius: 99px; background: rgba(213,33,40,.12); color: var(--coral-dark); text-align: center; }
.admin-notifications__menu > p { margin: 0; padding: 8px; color: var(--muted); font-size: .82rem; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; align-items: start; min-height: calc(100vh - 68px); }
.admin-nav {
  display: flex; flex-direction: column; gap: 3px; padding: 22px 16px;
  background: #fff; border-right: 1px solid var(--line); position: sticky; top: 68px;
  height: calc(100vh - 68px); overflow-y: auto;
}
.admin-nav a { padding: 10px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.admin-nav a:hover { background: rgba(31, 110, 106, .08); color: var(--teal-dark); }
.admin-nav a.active { background: var(--teal); color: #fff; font-weight: 700; }
.admin-nav__label { margin: 16px 0 6px; padding: 0 14px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.admin-nav__label:first-child { margin-top: 4px; }
.admin-content { padding: clamp(22px, 3vw, 40px); min-width: 0; }
.admin-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 22px 0; }
.admin-cards .stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.admin-cards .stat span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.admin-cards .stat strong { display: block; margin-top: 6px; font: 700 2rem/1 var(--font-display); color: var(--teal); }
.admin-quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.admin-quick a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 99px; background: rgba(31, 110, 106, .08); border: 1px solid rgba(31, 110, 106, .2); color: var(--teal-dark); font-weight: 600; font-size: .88rem; }
.admin-quick a:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.admin-quick a .icon { width: 16px; height: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: 12px 14px; background: rgba(31, 110, 106, .06); color: var(--teal-dark); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(31, 110, 106, .035); }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 18px 0; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { display: inline; margin: 0; }
.inbox-details { max-width: 420px; }
.inbox-contact { min-width: 170px; }
.inbox-contact__link { display: flex; align-items: flex-start; gap: 7px; width: fit-content; max-width: 100%; color: var(--teal-dark); font-size: .84rem; overflow-wrap: anywhere; }
.inbox-contact__link + .inbox-contact__link { margin-top: 5px; }
.inbox-contact__link:hover { color: var(--coral-dark); text-decoration: underline; }
.inbox-contact__link .icon { width: 14px; height: 14px; margin-top: 3px; flex: none; }
.inbox-contact > .muted { display: block; margin-top: 5px; }
.inbox-details__actions { margin-top: 10px; }
.inbox-dialog { width: min(680px, calc(100% - 32px)); }
.inbox-dialog h2 { margin: 0 42px 8px 0; font-size: clamp(1.5rem, 3vw, 2rem); overflow-wrap: anywhere; }
.inbox-dialog__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 18px 0 22px; }
.inbox-dialog__fields > div { min-width: 0; padding: 11px 0; border-top: 1px solid var(--line); }
.inbox-dialog__fields dt { margin-bottom: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.inbox-dialog__fields dd { margin: 0; overflow-wrap: anywhere; white-space: normal; }
.inbox-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .inbox-dialog__fields { grid-template-columns: minmax(0, 1fr); } }

/* Admin: badges, notices, flash */
.badge { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: capitalize; }
.badge--new { background: rgba(217, 33, 40, .12); color: var(--coral-dark); }
.badge--read { background: rgba(31, 110, 106, .12); color: var(--teal-dark); }
.badge--replied { background: rgba(176, 141, 31, .16); color: var(--gold-dark); }
.notice { background: rgba(31, 110, 106, .1); border: 1px solid rgba(31, 110, 106, .28); border-left: 4px solid var(--teal); color: var(--teal-dark); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .92rem; }
.notice a { font-weight: 700; text-decoration: underline; }
.flash-banner { background: var(--teal); color: #fff; text-align: center; padding: 12px 18px; font-weight: 600; font-size: .92rem; }

/* Admin: section boxes (website builder) */
.box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 22px; }
.section-box { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.section-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.section-box__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-box__head h3 { margin: 0; font-size: 1.12rem; }
.section-box__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: linear-gradient(135deg, rgba(31, 110, 106, .14), rgba(233, 185, 95, .22)); color: var(--teal); }
.section-box__icon .icon { width: 20px; height: 20px; }
.section-box__desc { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.section-box__meta { margin-bottom: 16px; }
.section-box__actions { display: flex; gap: 10px; margin-top: auto; }

/* Admin: block editor rows */
.media-subhead { font-size: 1.1rem; margin: 26px 0 6px; }
.block-row { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.block-row--hidden { opacity: .6; border-style: dashed; }
.block-row__layout { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; }
.block-row__photo { min-width: 0; }
.block-row__fields { min-width: 0; }

/* Admin: image upload field (used by settings, home, about & academics editors) */
.image-field { display: grid; gap: 10px; }
.image-field > label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.image-field__row { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.image-field__preview { flex: none; width: 190px; height: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.image-field__preview img { width: 100%; height: 100%; object-fit: contain; }
.image-field__empty { color: var(--muted); font-size: .82rem; }
.image-field__controls { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 120px; }
.image-field__controls input[type="file"] { font-size: .85rem; max-width: 240px; }
.image-field__remove { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.image-field__remove input { width: auto; }
.block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.block-grid--stats { grid-template-columns: 1fr 1fr 100px auto auto; align-items: end; }
.block-grid--explore { grid-template-columns: 1.2fr 1fr 1fr 90px auto auto; align-items: end; }
.block-grid .field--full { grid-column: 1 / -1; }
.field--small { max-width: 120px; }
.block-visible { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.block-visible input { width: auto; }
.block-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; margin-top: 4px; }
.block-add { margin: 18px 0; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 4px 20px 18px; background: rgba(255, 255, 255, .5); }
.block-add summary { cursor: pointer; font-weight: 700; color: var(--teal); padding: 14px 0; list-style: none; }
.block-add summary::-webkit-details-marker { display: none; }
.intro-more { display: block; }
.intro-more summary { display: inline-flex; width: auto; }
@media (max-width: 900px) {
  .block-row__layout { grid-template-columns: 1fr; }
  .block-grid, .block-grid--stats, .block-grid--explore { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .block-grid, .block-grid--stats, .block-grid--explore { grid-template-columns: 1fr; } }

/* ---------- Admin: login ---------- */
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-brand { position: relative; display: flex; align-items: center; padding: clamp(32px, 5vw, 64px); color: #fff; background: var(--teal-dark); overflow: hidden; }
.login-brand__inner { position: relative; z-index: 1; max-width: 440px; }
.login-brand__copy { margin: clamp(28px, 5vw, 56px) 0 32px; }
.login-brand__copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.login-brand__text { color: #d3e5e1; font-size: 1rem; line-height: 1.75; margin: 0; }
.login-brand__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.login-brand__list li { display: flex; gap: 12px; align-items: flex-start; color: #e4efec; font-size: .93rem; line-height: 1.6; }
.login-brand__list .icon { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold); }
.login-brand__list strong { color: #fff; }
.login-brand__foot { margin-top: 40px; color: #a9c4bf; font-size: .82rem; letter-spacing: .04em; }
.login-form-col { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px); background: var(--cream); }
.login-card { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(28px, 4vw, 44px); }
.login-card__brand { display: inline-block; margin-bottom: 22px; font-weight: 700; letter-spacing: .08em; font-size: .92rem; color: var(--ink); }
.login-card__brand span { color: var(--coral); }
.login-card__title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 18px; }
.login-error { display: flex; align-items: center; gap: 9px; background: #f9dfe1; border: 1px solid rgba(217, 33, 40, .3); color: var(--coral-dark); padding: 12px 15px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 18px; }
.login-error .icon { width: 16px; height: 16px; flex: none; }
.login-form { margin-top: 4px; }
.login-form__remember { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); margin: 4px 0 18px; }
.login-form__remember input { width: auto; }
.login-form__submit { width: 100%; }
.login-card__hint { color: var(--muted); font-size: .85rem; margin: 18px 0 8px; }
.login-card__back { display: inline-block; font-weight: 600; font-size: .88rem; color: var(--teal); }
.login-card__back:hover { color: var(--coral); }
.login-body { display: contents; }
@media (max-width: 860px) { .login-shell { grid-template-columns: 1fr; } .login-brand { display: none; } }

/* ---------- Responsive admin ---------- */
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav__label { width: 100%; margin: 8px 0 2px; }
}
@media (max-width: 600px) {
  .admin-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 16px; }
  .admin-top .brand { min-width: 0; }
  .admin-top-user { display: grid; grid-template-columns: minmax(0, 1fr) 40px auto auto; gap: 6px; min-width: 0; }
  .admin-top-name { grid-column: 1 / -1; overflow-wrap: anywhere; }
  .admin-top-user .btn { padding: 7px 10px; font-size: .78rem; }
  .admin-content { padding: 18px 16px; }
}

/* ---------- Search results page ---------- */
.section--search { padding-top: clamp(32px, 4vw, 52px); }
.search-page-form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto 28px; }
.search-page-form input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 13px 18px; border: 1px solid var(--line);
  border-radius: 99px; background: var(--paper); font: 500 15px/1.4 var(--font-body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search-page-form input[type="search"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 110, 106, .14); }
.search-page-form .btn { flex: none; border-radius: 99px; }
.search-summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.search-summary .chip b { margin-left: 4px; opacity: .75; }
.search-group { margin-bottom: 34px; }
.search-group__title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 14px; }
.search-group__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; flex: none; background: linear-gradient(135deg, rgba(31, 110, 106, .14), rgba(233, 185, 95, .22)); color: var(--teal); }
.search-group__icon .icon { width: 19px; height: 19px; }
.search-group__title small { font-size: .78rem; color: var(--muted); font-weight: 600; background: rgba(31, 110, 106, .1); padding: 3px 10px; border-radius: 99px; }
.search-list { display: grid; gap: 10px; }
.search-result { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.search-result:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(31, 110, 106, .35); }
.search-result__body { min-width: 0; }
.search-result__body h3 { font-size: 1.02rem; margin: 0 0 4px; }
.search-result__body p { margin: 0; font-size: .89rem; color: var(--muted); }
.search-result__go { margin-left: auto; flex: none; color: var(--teal); display: inline-flex; transition: transform .2s; }
.search-result:hover .search-result__go { transform: translateX(4px); color: var(--coral); }
@media (max-width: 560px) { .search-page-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: #123a37; color: #cfe0db; padding: clamp(48px, 7vw, 80px) var(--gutter) 28px; }
.footer-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); }
.footer-about .brand { color: #fff; margin-bottom: 14px; }
.footer-about .brand__logo { box-shadow: none; background: rgba(255, 255, 255, .06); }
.footer-about p { color: #a9c4bd; font-size: .92rem; margin: 0 0 16px; }
.footer-contact-line { line-height: 2; }
.footer-contact-line .icon { width: 15px; height: 15px; color: var(--gold); vertical-align: -2px; margin-right: 6px; }
.footer-contact-line a { color: #cfe0db; }
.footer-contact-line a:hover { color: var(--gold); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.footer-col a { color: #a9c4bd; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); min-height: 190px; }
.footer-map { width: 100%; height: 100%; min-height: 190px; border: 0; display: block; filter: grayscale(.3); }
.site-footer small { display: block; max-width: var(--wrap); margin: 44px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); color: #93b3ac; font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
