/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #0A6B35;
  --green-dark: #084F27;
  --gold: #C9A227;
  --gold-dark: #A9871F;
  --blue: #1E3A8A;
  --red: #B91C1C;
  --ink: #1A1D1A;
  --muted: #5B6560;
  --surface: #F7F7F5;
  --white: #FFFFFF;
  --border: rgba(10,20,15,0.09);
  --radius: 14px;
  --shadow: 0 12px 30px -14px rgba(10,20,15,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.h-section {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  max-width: 640px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }

.btn--gold { background: var(--gold); color: #1A1500; }
.btn--gold:hover { background: var(--gold-dark); }

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--secondary {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn--secondary:hover { background: var(--green); color: #fff; }

/* =============================================================
   NAVBAR
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  min-width: 0;
}
.nav__brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav__crest { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav__links a { color: var(--muted); transition: color 0.15s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--green); }

.nav__cta { display: none; flex-shrink: 0; padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.nav__toggle {
  width: 46px; height: 46px;
  border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle span { width: 25px; height: 2.6px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
/* distance between span centers = span height (2.6px) + gap (6px) = 8.6px, not 7.2px — that gap was the "incomplete X" bug */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8.6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8.6px) rotate(-45deg); }

/* =============================================================
   OFF-CANVAS MOBILE MENU — slides in from the left, full height
   ============================================================= */
.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 10, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}
.nav__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__links {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 4.5rem 1.6rem 2rem;
  box-shadow: var(--shadow);
  z-index: 200;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.35s;
  overflow-y: auto;
}
.nav__close {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem 0.2rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.nav__close:hover { color: var(--green); }
.nav__close svg { flex-shrink: 0; }

.nav__links a {
  width: 100%;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.15s ease;
}
.nav__links-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.nav__links .nav__links-actions a {
  width: 100%;
  padding: 0.85rem 1rem;
  border-bottom: none;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
}
.nav__links.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
.nav__links.is-open a {
  opacity: 1;
  transform: translateX(0);
}
.nav__links.is-open .nav__links-actions a {
  opacity: 1;
  transform: none;
}
/* stagger each link as the menu opens (index 1 is the hint text, so links start at 2) */
.nav__links.is-open a:nth-child(2) { transition-delay: 0.05s; }
.nav__links.is-open a:nth-child(3) { transition-delay: 0.09s; }
.nav__links.is-open a:nth-child(4) { transition-delay: 0.13s; }
.nav__links.is-open a:nth-child(5) { transition-delay: 0.17s; }
.nav__links.is-open a:nth-child(6) { transition-delay: 0.21s; }
.nav__links.is-open a:nth-child(7) { transition-delay: 0.25s; }
.nav__links.is-open a:nth-child(8) { transition-delay: 0.29s; }

@media (min-width: 900px) {
  .nav__links {
    display: flex;
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    overflow: visible;
  }
  .nav__close,
  .nav__links-actions {
    display: none;
  }
  .nav__links a {
    width: auto;
    padding: 0;
    border-bottom: none;
    font-size: 0.88rem;
    opacity: 1;
    transform: none;
  }
  .nav__backdrop { display: none; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__inner { padding: 0.9rem 20px; }
  .nav__brand { font-size: 1rem; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg-wrap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__bg.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg { transition: none; }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,15,10,0.78) 0%, rgba(8,15,10,0.5) 38%, rgba(8,15,10,0.15) 72%, rgba(8,15,10,0.05) 100%);
}
/* On narrow screens object-fit:cover crops the photo differently, so the
   left-to-right gradient no longer reliably sits behind the text. This keeps
   it dark only near the top (behind the headline) and fades out quickly,
   so the photo's subjects stay bright and visible lower on the screen. */
@media (max-width: 640px) {
  .hero__overlay {
    background: linear-gradient(180deg, rgba(8,15,10,0.66) 0%, rgba(8,15,10,0.36) 42%, rgba(8,15,10,0.1) 72%, rgba(8,15,10,0.02) 100%);
  }
  .hero__content h1 { text-shadow: 0 2px 16px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8); }
  .hero__content p { text-shadow: 0 1px 12px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.7); }
}
.hero__content h1 { text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.hero__content p { text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.hero__content { position: relative; z-index: 1; color: #fff; max-width: 640px; padding: 2rem 20px; }
.hero__content h1 { font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero__content p { font-size: clamp(0.92rem, 2vw, 1.05rem); color: rgba(255,255,255,0.92); margin-bottom: 1.6rem; max-width: 520px; }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__actions .btn { flex: 1 1 auto; min-width: 160px; }

@media (min-width: 640px) {
  .hero { min-height: 78vh; }
}

/* =============================================================
   STATS STRIP
   ============================================================= */
.stats-strip { background: var(--green); padding: 2.2rem 0; }
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  color: #fff;
}
.stat-card__icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 0.7rem; }
.stat-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.35rem; line-height: 1.3; }
.stat-card p { font-size: 0.78rem; color: rgba(255,255,255,0.82); line-height: 1.45; margin: 0; }

@media (min-width: 900px) {
  .stats-strip__grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .stat-card { padding: 1.5rem 1.3rem; }
  .stat-card__icon { width: 30px; height: 30px; }
  .stat-card h3 { font-size: 0.95rem; }
  .stat-card p { font-size: 0.82rem; }
}

/* =============================================================
   SECTION PADDING (shared)
   ============================================================= */
.why-choose, .academic-levels, .about-preview, .gallery-preview, .updates-preview, .contact-preview {
  padding: 3.2rem 0;
}
.why-choose, .gallery-preview { background: var(--surface); }

@media (min-width: 700px) {
  .why-choose, .academic-levels, .about-preview, .gallery-preview, .updates-preview, .contact-preview {
    padding: 4.5rem 0;
  }
}

/* =============================================================
   CARDS — WHY MAKURDI TWINKLE STARS
   ============================================================= */
.card-grid { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.card-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 780px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* =============================================================
   ACADEMIC LEVELS
   ============================================================= */
.level-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 1.8rem 0 2rem;
}
@media (min-width: 700px) { .level-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
@media (min-width: 1050px) { .level-grid { grid-template-columns: repeat(5, 1fr); } }

.level-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  border-top: 3px solid var(--gold);
}
.level-card__tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-dark);
}
.level-card h3 { font-size: 1rem; margin: 0.5rem 0 0.4rem; }
.level-card p { font-size: 0.85rem; color: var(--muted); }

/* =============================================================
   ABOUT PREVIEW
   ============================================================= */
.about-preview__stack { max-width: 760px; }
.about-preview__image { margin: 1.4rem 0 1.6rem; }
.about-preview__image img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-preview__text { color: var(--muted); margin-bottom: 1.4rem; }

/* =============================================================
   GALLERY PREVIEW
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1.8rem 0 2rem;
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; } }

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 16px rgba(15, 23, 18, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(15, 23, 18, 0.2);
  position: relative;
  z-index: 2;
}
/* the cultural-day photo places subjects nearer the top of the frame */
.gallery-grid img[src*="cultural"] { object-position: center 15%; }
/* the sports action shot needs a normal centered crop, not top-biased */
.gallery-grid img[src*="sports"] { object-position: center center; }
/* the classroom photo also needs a normal centered crop, not top-biased */
.gallery-grid img[src*="academics"] { object-position: center center; }

/* =============================================================
   SOCIAL PREVIEW (Facebook Page Plugin)
   ============================================================= */
.social-preview__sub {
  max-width: 55ch;
  color: var(--muted);
  margin: 0.6rem 0 1.6rem;
}
.social-preview__embed {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 18, 0.12);
}
.social-preview__embed .fb-page,
.social-preview__embed span,
.social-preview__embed iframe {
  width: 100% !important;
  max-width: 100%;
}
.social-preview__fallback {
  display: inline-block;
  margin-top: 1rem;
}

/* =============================================================
   UPDATES PREVIEW
   ============================================================= */
.update-grid { display: grid; gap: 1rem; margin: 1.8rem 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .update-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

.update-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.update-card__date {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--blue);
}
.update-card h3 { font-size: 1rem; margin: 0.5rem 0 0.5rem; }
.update-card p { font-size: 0.88rem; color: var(--muted); }

/* =============================================================
   CTA
   ============================================================= */
.cta {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 3.2rem 0;
}
.cta h2 { font-size: clamp(1.35rem, 4vw, 2rem); margin-bottom: 1.4rem; font-weight: 800; }

/* =============================================================
   CONTACT PREVIEW
   ============================================================= */
.contact-preview__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .contact-preview__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.contact-preview__details p { margin-bottom: 1rem; color: var(--muted); font-size: 0.92rem; }
.contact-preview__details p a { color: var(--green); font-weight: 600; }
.contact-preview__details .btn { color: #fff; margin-top: 0.4rem; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 3rem 0 1.5rem; }
.footer__grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.footer__brand img { width: 30px; height: 30px; object-fit: contain; }
.footer__brand span { color: #fff; font-weight: 800; }
.footer__tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.6rem; max-width: 32ch; }
.footer__motto { font-size: 0.85rem; color: var(--gold); }

.footer__heading { color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.8rem; }
.footer__col a, .footer__col p { display: block; font-size: 0.86rem; margin-bottom: 0.5rem; }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex !important; align-items: center; gap: 0.5rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.4rem;
  font-size: 0.78rem;
}
.footer__bottom a { color: var(--gold); font-weight: 600; text-decoration: underline; }
.footer__bottom p { margin: 0 0 0.3rem; }
.footer__bottom p:last-child { margin-bottom: 0; }

/* =============================================================
   EXTRA SMALL PHONES (≤380px)
   ============================================================= */
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .hero__content { padding: 1.5rem 16px; }
  .hero__actions .btn { min-width: 100%; }
}

/* =============================================================
   PAGE HERO (used on About, Academics, Admissions, Gallery, Updates, Contact)
   ============================================================= */
.page-hero {
  background: var(--surface);
  padding: 3.5rem 0 2.8rem;
  border-bottom: 1px solid var(--border);
}
.h-page {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}
.page-hero__sub { color: var(--muted); font-size: 1rem; max-width: 520px; }

/* =============================================================
   STORY
   ============================================================= */
.story { padding: 3.2rem 0; }
.story__inner { max-width: 720px; }
.story__inner p { color: var(--muted); margin-top: 0.5rem; }

/* =============================================================
   LEGACY
   ============================================================= */
.legacy {
  background: var(--green-dark);
  color: #fff;
  padding: 3.2rem 0;
}
.legacy .section-label { color: var(--gold); }
.legacy h2 { color: #fff; }
.legacy p { color: rgba(255,255,255,0.85); max-width: 680px; }

/* =============================================================
   MISSION / VISION
   ============================================================= */
.mission-vision { padding: 3.2rem 0; background: var(--surface); }
.mission-vision__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .mission-vision__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }

.mv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  border-top: 3px solid var(--green);
}
.mv-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.mv-card p { color: var(--muted); font-size: 0.95rem; }

/* =============================================================
   VALUES
   ============================================================= */
.values { padding: 3.2rem 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1.8rem;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
}

/* =============================================================
   LEADERSHIP
   ============================================================= */
.leadership { padding: 3.2rem 0; background: var(--surface); }
.leadership__inner { max-width: 640px; }
.leadership__inner p { color: var(--muted); margin-top: 0.5rem; }

/* =============================================================
   LEVEL DETAIL ROWS
   ============================================================= */
.level-detail { padding: 3rem 0; }
.level-detail--alt { background: var(--surface); }

.level-detail__row {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .level-detail__row { grid-template-columns: 0.9fr 1.1fr; gap: 2.4rem; }
  .level-detail--alt .level-detail__row { direction: rtl; }
  .level-detail--alt .level-detail__row > * { direction: ltr; }
}

.level-detail__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.level-detail__content p { color: var(--muted); margin-top: 0.6rem; }

/* =============================================================
   ACTIVITIES
   ============================================================= */
.activities { padding: 3.2rem 0; }
.card-grid--4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   ADMISSION PROCESS
   ============================================================= */
.process { padding: 3.2rem 0; background: var(--surface); }
.process-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-top: 1.8rem;
}
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.process-step h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); font-size: 0.88rem; }

/* =============================================================
   REQUIREMENTS
   ============================================================= */
.requirements { padding: 3.2rem 0; }
.requirements__inner { max-width: 640px; }
.requirements__inner p { color: var(--muted); margin: 0.5rem 0 1.4rem; }

/* Admission Levels cards (this page) don't need the description paragraph —
   the .level-card styles from style.css already handle tag + heading fine
   with p omitted. */

/* =============================================================
   ACADEMICS INTRO
   ============================================================= */
.academics-intro { padding: 2.4rem 0 0.4rem; }
.academics-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

/* =============================================================
   ADMISSIONS INTRO
   ============================================================= */
.admissions-intro { padding: 2.4rem 0 0.4rem; }
.admissions-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

/* =============================================================
   GALLERY PAGE
   ============================================================= */
.gallery-page { padding: 3rem 0 3.5rem; }

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.gallery-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gallery-tab:hover { border-color: var(--green); color: var(--green); }
.gallery-tab.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
@media (min-width: 700px) { .gallery-page-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; } }
@media (min-width: 1050px) { .gallery-page-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-page-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 16px rgba(15, 23, 18, 0.12);
  /* opacity here matches the [data-animate] scroll-reveal timing so both keep working together */
  transition: opacity 0.55s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-page-grid img:hover,
.gallery-page-grid img:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 22px rgba(15, 23, 18, 0.2);
  position: relative;
  z-index: 2;
}
.gallery-page-grid img.is-hidden { display: none; }
/* the cultural-day photos place subjects nearer the top of the frame */
.gallery-page-grid img[src*="cultural"] { object-position: center 15%; }

/* =============================================================
   GALLERY INTRO
   ============================================================= */
.gallery-intro { padding: 2.4rem 0 0.4rem; }
.gallery-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

/* =============================================================
   UPDATES INTRO
   ============================================================= */
.updates-intro { padding: 2.4rem 0 0.4rem; }
.updates-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

/* =============================================================
   UPDATES PAGE GRID
   ============================================================= */
.updates-page { padding: 2.6rem 0 3.5rem; }
.updates-page-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .updates-page-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
@media (min-width: 1050px) { .updates-page-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   CONTACT INTRO
   ============================================================= */
.contact-intro { padding: 2.4rem 0 0.4rem; }
.contact-intro p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 720px;
}

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-page { padding: 2.6rem 0 3rem; }
.contact-page-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 850px) { .contact-page-grid { grid-template-columns: 0.8fr 1.2fr; gap: 2.6rem; } }

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.4rem;
}
.info-block strong { font-size: 0.85rem; color: var(--ink); }
.info-block a { color: var(--green); font-weight: 600; font-size: 0.95rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-form__field {
  display: block;
  margin-top: 1.2rem;
}
.contact-form__field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  /* 16px minimum prevents mobile browsers auto-zooming the page when a field is focused */
  font-size: 16px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form__submit { margin-top: 1.4rem; width: 100%; }

/* =============================================================
   CONTACT MAP
   ============================================================= */
.contact-map { width: 100%; height: 380px; }

/* =============================================================
   FORM VALIDATION STATES
   ============================================================= */
.field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.35rem;
  min-height: 1em;
}
.contact-form__field input.is-invalid,
.contact-form__field textarea.is-invalid {
  border-color: var(--red);
}
.contact-form__status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.contact-form__status.is-success { color: var(--green); }
.contact-form__status.is-error { color: var(--red); }
.contact-form__submit:disabled { opacity: 0.7; cursor: not-allowed; }

.stat-chip__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fff;
}

/* =============================================================
   OFFICE HOURS
   ============================================================= */
.office-hours-line {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* =============================================================
   SCROLL-IN ANIMATIONS (site-wide)
   Add data-animate to any element; script.js reveals it on scroll.
   Optional data-animate="left" / "right" changes the slide direction.
   ============================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate="left"] { transform: translateX(-24px); }
[data-animate="right"] { transform: translateX(24px); }
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================================
   MOTTO
   ============================================================= */
.motto { padding: 2.8rem 0; text-align: center; }
.motto .section-label { display: block; }
.motto h2 { margin: 0 auto; }