/* ============================================================
   GYAN VALLEY SENIOR SECONDARY SCHOOL — Design System
   Door to the Future
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --blue-950: #0a1e44;
  --blue-900: #0f2a5f;
  --blue-800: #14367d;
  --blue-700: #1b449c;
  --blue-600: #2257c5;
  --blue-500: #2f6ae0;
  --blue-100: #dbe6f9;
  --blue-50:  #eef3fc;

  --maroon-700: #6e1423;
  --maroon-600: #85182a;
  --maroon-500: #9d1f33;
  --maroon-50:  #f9edef;

  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #5b6b82;
  --ink-300: #b8c2d0;

  --white: #ffffff;
  --paper: #f7f9fc;
  --line: #e4e9f1;

  /* Typography */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 10px 30px -8px rgba(15, 42, 95, .14);
  --shadow-lg: 0 24px 60px -16px rgba(15, 42, 95, .22);
  --section-pad: clamp(64px, 9vw, 116px);
  --container: 1180px;

  --ease-out: cubic-bezier(.22, .8, .26, .99);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-800); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--blue-800); color: #fff; }

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

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

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); }
h4 { font-size: 1.08rem; font-family: var(--font-body); font-weight: 700; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--ink-500); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--maroon-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--maroon-600);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; }

/* ---------- 4. Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

section { padding-block: var(--section-pad); }
section.tight { padding-block: clamp(48px, 6vw, 72px); }
.bg-paper { background: var(--paper); }
.bg-navy { background: linear-gradient(160deg, var(--blue-950), var(--blue-800)); color: var(--blue-100); }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px); align-items: center;
}

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-500), var(--maroon-700));
  color: #fff; box-shadow: 0 8px 20px -6px rgba(133, 24, 42, .45);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -6px rgba(133, 24, 42, .55); }

.btn-blue {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #fff; box-shadow: 0 8px 20px -6px rgba(27, 68, 156, .45);
}
.btn-blue:hover { color: #fff; }

.btn-outline {
  background: transparent; color: var(--blue-800);
  box-shadow: inset 0 0 0 2px var(--blue-800);
}
.btn-outline:hover { background: var(--blue-800); color: #fff; }

.btn-light {
  background: #fff; color: var(--blue-900);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35);
}
.btn-light:hover { color: var(--blue-700); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .12); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.btn-whatsapp { background: #1faa53; color: #fff; box-shadow: 0 8px 20px -6px rgba(31, 170, 83, .45); }
.btn-whatsapp:hover { color: #fff; background: #189145; }

/* ---------- 6. Top Bar ---------- */
.topbar {
  background: var(--blue-950); color: var(--blue-100);
  font-size: .85rem; padding: 8px 0;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.topbar a { color: var(--blue-100); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-note { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.topbar-note .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  60% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
@media (max-width: 700px) { .topbar-note { display: none; } }

/* ---------- 7. Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; min-width: 0; }
.brand img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; line-height: 1.18;
  color: var(--blue-900); font-size: 1.06rem; letter-spacing: .01em;
}
.brand-tag {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--maroon-600); font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 13px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; color: var(--ink-700);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--blue-800); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-800); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: 2.5px; border-radius: 2px; background: var(--maroon-600);
}
.nav-cta { flex: none; }
.nav-cta .btn { padding: 11px 24px; font-size: .92rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 10px;
  border-radius: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: var(--blue-900); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.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(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; top: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(255, 255, 255, .98);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .3s var(--ease-out), visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; z-index: 99; }
  .nav-links a { font-size: 1.25rem; padding: 12px 24px; }
  .nav-cta { display: none; }
  .brand-name { font-size: .95rem; }
  .brand img { width: 48px; height: 48px; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  display: grid; align-items: center;
  min-height: clamp(560px, 86vh, 780px);
  padding-block: clamp(90px, 12vw, 140px);
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, var(--blue-950), var(--blue-700));
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 14s var(--ease-out) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 22, 52, .92) 0%, rgba(10, 30, 68, .72) 48%, rgba(10, 30, 68, .35) 100%);
}
.hero-inner { max-width: 700px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  padding: 8px 18px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 26px;
}
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero .hero-tagline {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: #ffd9de;
  margin-bottom: 20px;
}
.hero p.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: rgba(255, 255, 255, .88);
  max-width: 560px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ""; width: 1.5px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,.8), transparent);
  animation: drip 2s infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(1100px 420px at 85% -60%, rgba(47, 106, 224, .35), transparent),
    linear-gradient(150deg, var(--blue-950), var(--blue-800));
  color: var(--blue-100);
  padding-block: clamp(72px, 9vw, 110px);
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: rgba(255, 255, 255, .82); max-width: 640px; }
.crumbs {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 18px; color: rgba(255, 255, 255, .65);
}
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.crumbs span.sep { opacity: .5; }

/* ---------- 9. Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding-block: 0;
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.trust-item .t-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700);
}
.trust-item .t-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; color: var(--ink-900); font-size: .98rem; line-height: 1.3; }
.trust-item small { color: var(--ink-500); font-size: .82rem; }
@media (max-width: 960px) {
  .trust-strip .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 540px) {
  .trust-strip .container { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
}

/* ---------- 10. Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }

.icon-chip {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  color: var(--blue-700);
}
.icon-chip svg { width: 26px; height: 26px; }
.card:hover .icon-chip { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; }
.icon-chip, .card .icon-chip { transition: background .35s, color .35s; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .97rem; color: var(--ink-500); }

.card.maroon .icon-chip { background: var(--maroon-50); color: var(--maroon-600); }
.card.maroon:hover .icon-chip { background: linear-gradient(135deg, var(--maroon-500), var(--maroon-700)); color: #fff; }

/* ---------- 11. Media frames ---------- */
.media-frame { position: relative; }
.media-frame img {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.media-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg); z-index: -1;
  background: linear-gradient(135deg, var(--blue-100), transparent 65%);
}
.media-frame.accent-maroon::before {
  background: linear-gradient(135deg, var(--maroon-50), transparent 65%);
}
.media-badge {
  position: absolute; left: 22px; bottom: 22px;
  background: rgba(255, 255, 255, .96); border-radius: var(--radius-sm);
  padding: 12px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.media-badge .mb-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--blue-800); color: #fff;
}
.media-badge .mb-icon svg { width: 19px; height: 19px; }
.media-badge strong { display: block; font-size: .92rem; color: var(--ink-900); line-height: 1.25; }
.media-badge small { font-size: .78rem; color: var(--ink-500); }

.media-badge { z-index: 3; }

/* Multi-photo slideshow — activates automatically when name-2.jpg, name-3.jpg … exist */
.media-slides {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.media-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; box-shadow: none;
  opacity: 0; transition: opacity .9s var(--ease-out);
}
.media-slides img.current { opacity: 1; }
.media-dots {
  position: absolute; right: 18px; bottom: 16px; z-index: 3;
  display: flex; gap: 7px;
  background: rgba(8, 22, 52, .35); backdrop-filter: blur(4px);
  padding: 7px 10px; border-radius: 999px;
}
.media-frame .media-badge ~ .media-dots,
.media-frame .media-badge + .media-dots { bottom: 16px; }
.media-dots button {
  width: 9px; height: 9px; border-radius: 999px; padding: 0;
  background: rgba(255, 255, 255, .55);
  transition: background .25s, width .3s var(--ease-out);
}
.media-dots button.active { background: #fff; width: 22px; }
.media-dots button:hover { background: #fff; }

/* Hero crossfade slideshow */
.hero-media img.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s var(--ease-out);
}
.hero-media img.hero-slide.current { opacity: 1; }

/* image fallback (when a photo is not yet uploaded) */
.img-fallback {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(420px 220px at 80% 10%, rgba(47,106,224,.30), transparent),
    linear-gradient(150deg, var(--blue-900), var(--blue-700));
  color: rgba(255,255,255,.85); box-shadow: var(--shadow-lg);
  font-family: var(--font-display); font-size: 1.05rem; font-style: italic;
}

.img-fallback-badge {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}

/* ---------- 12. Checklist ---------- */
.checklist li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 9px 0; font-weight: 600; color: var(--ink-700);
}
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>')
    center / 12px no-repeat,
    linear-gradient(135deg, var(--blue-600), var(--blue-800));
}

/* ---------- 13. Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 30px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; color: #fff; line-height: 1.1;
}
.stat .label { font-size: .88rem; color: rgba(255, 255, 255, .75); margin-top: 6px; letter-spacing: .04em; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ---------- 14. Principal / quote ---------- */
.quote-mark {
  font-family: var(--font-display); font-size: 5.4rem; line-height: .6;
  color: var(--blue-100); display: block; margin-bottom: 18px;
}
.signature { margin-top: 26px; }
.signature strong { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--ink-900); }
.signature span { color: var(--maroon-600); font-weight: 700; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 15. Class pills ---------- */
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.class-pill {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 18px; text-align: center;
  font-weight: 700; color: var(--blue-900);
  transition: transform .3s var(--ease-out), box-shadow .3s, background .3s, color .3s;
  box-shadow: var(--shadow-sm);
}
.class-pill small { display: block; font-weight: 600; color: var(--ink-500); font-size: .8rem; margin-top: 3px; transition: color .3s; }
.class-pill:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.class-pill:hover small { color: var(--blue-100); }
@media (max-width: 640px) { .class-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(900px 380px at 12% 120%, rgba(157, 31, 51, .5), transparent),
    radial-gradient(900px 380px at 88% -40%, rgba(47, 106, 224, .45), transparent),
    linear-gradient(150deg, var(--blue-950), var(--blue-800));
  color: var(--blue-100);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 580px; margin: 0 auto 34px; color: rgba(255,255,255,.82); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--blue-950); color: #9fb0cf;
  padding-top: clamp(56px, 7vw, 84px); font-size: .94rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 52px); padding-bottom: 48px;
}
.site-footer h4 {
  color: #fff; font-family: var(--font-body); font-size: .85rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.footer-brand img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font-family: var(--font-display); color: #fff; font-size: 1.05rem; line-height: 1.25; display: block; }
.footer-brand small { color: #ffb3bd; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: #9fb0cf; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #5d7cc1; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #c2cfe8;
  transition: background .25s, transform .25s, color .25s;
}
.footer-social a:hover { background: var(--maroon-600); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0; font-size: .85rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 18. Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-weight: 700; font-size: .88rem; color: var(--ink-900);
  margin-bottom: 7px;
}
.field label .req { color: var(--maroon-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); font-size: .98rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 106, 224, .12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--ink-500); margin-top: 14px; }
.form-success {
  display: none; margin-top: 18px; padding: 16px 20px; border-radius: 10px;
  background: #ecfdf3; border: 1px solid #abefc6; color: #067647; font-weight: 600;
}
.form-success.show { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 19. Steps (admission process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 34px 26px 28px;
  box-shadow: var(--shadow-sm); counter-increment: step;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-card::before {
  content: "0" counter(step);
  position: absolute; top: -18px; left: 24px;
  background: linear-gradient(135deg, var(--maroon-500), var(--maroon-700));
  color: #fff; font-weight: 800; font-size: .92rem;
  padding: 7px 15px; border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(133, 24, 42, .5);
}
.step-card h3 { font-size: 1.12rem; margin: 8px 0 8px; }
.step-card p { font-size: .92rem; color: var(--ink-500); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 20. Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-item {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%;
  aspect-ratio: 4 / 3; background: var(--blue-900);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .g-caption {
  position: absolute; inset: auto 0 0 0; padding: 38px 18px 14px;
  background: linear-gradient(to top, rgba(8, 22, 52, .85), transparent);
  color: #fff; font-weight: 700; font-size: .95rem; text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.gallery-item:hover .g-caption { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 14, 32, .94); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 4vmin;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 82vh; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox figcaption { color: #cfdaf0; text-align: center; margin-top: 16px; font-weight: 600; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- 21. News / Notices ---------- */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card .news-top {
  background: linear-gradient(135deg, var(--blue-50), #fff);
  padding: 22px 28px 0;
}
.news-card .news-body { padding: 18px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-body p { flex: 1; }
.badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.badge.blue { background: var(--blue-50); color: var(--blue-700); }
.badge.maroon { background: var(--maroon-50); color: var(--maroon-600); }
.badge.green { background: #ecfdf3; color: #067647; }
.badge.amber { background: #fffaeb; color: #b54708; }
.news-date { font-size: .84rem; color: var(--ink-500); font-weight: 600; margin: 12px 0 6px; display: flex; align-items: center; gap: 7px; }
.news-date svg { width: 14px; height: 14px; }
.news-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.read-more { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.read-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease-out); }
.read-more:hover svg { transform: translateX(4px); }

/* Notice board */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tab-btn {
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: var(--white); color: var(--ink-700); border: 1.5px solid var(--line);
  transition: all .25s;
}
.tab-btn:hover { border-color: var(--blue-600); color: var(--blue-700); }
.tab-btn.active { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }

.notice-list { display: flex; flex-direction: column; gap: 14px; }
.notice-row {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.notice-row:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.notice-cal {
  flex: none; width: 62px; text-align: center; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.notice-cal .ncal-m {
  background: var(--maroon-600); color: #fff; font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 0;
}
.notice-cal .ncal-d {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  color: var(--blue-900); padding: 4px 0 6px; background: #fff;
}
.notice-row h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.notice-row p { font-size: .88rem; color: var(--ink-500); margin-top: 3px; }
.notice-row .badge { margin-left: auto; flex: none; }
@media (max-width: 640px) {
  .notice-row { flex-wrap: wrap; }
  .notice-row .badge { margin-left: 78px; order: 3; }
}

/* ---------- 22. Calendar ---------- */
.cal-month { margin-bottom: 40px; }
.cal-month-title {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.cal-month-title h3 { font-size: 1.3rem; }
.cal-month-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cal-events { display: grid; gap: 12px; }
.cal-event {
  display: flex; gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  border-radius: 10px; padding: 16px 22px; box-shadow: var(--shadow-sm);
}
.cal-event.holiday { border-left-color: var(--maroon-600); }
.cal-event.exam { border-left-color: #b54708; }
.cal-event .ce-date {
  flex: none; min-width: 92px; font-weight: 800; color: var(--blue-900); font-size: .92rem;
}
.cal-event strong { color: var(--ink-900); display: block; font-size: .98rem; }
.cal-event small { color: var(--ink-500); }

.legend { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 34px; font-size: .88rem; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .l-blue { background: var(--blue-600); }
.legend .l-maroon { background: var(--maroon-600); }
.legend .l-amber { background: #b54708; }

/* ---------- 23. Downloads ---------- */
.dl-row {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.dl-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.dl-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--maroon-50); color: var(--maroon-600);
}
.dl-icon svg { width: 22px; height: 22px; }
.dl-row strong { display: block; color: var(--ink-900); font-size: .98rem; }
.dl-row small { color: var(--ink-500); font-size: .82rem; }
.dl-row .btn { margin-left: auto; padding: 10px 20px; font-size: .85rem; flex: none; }
@media (max-width: 560px) {
  .dl-row { flex-wrap: wrap; }
  .dl-row .btn { margin-left: 66px; }
}

/* ---------- 24. Contact ---------- */
.contact-info-card {
  background: linear-gradient(160deg, var(--blue-950), var(--blue-800));
  color: var(--blue-100); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px); height: 100%;
  position: relative; overflow: hidden;
}
.contact-info-card::after {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 31, 51, .5), transparent 70%);
}
.contact-info-card h3 { color: #fff; margin-bottom: 24px; }
.contact-info-card ul li { display: flex; gap: 15px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card .c-icon {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff;
}
.contact-info-card .c-icon svg { width: 19px; height: 19px; }
.contact-info-card strong { color: #fff; display: block; margin-bottom: 2px; font-size: .95rem; }
.contact-info-card a { color: var(--blue-100); }
.contact-info-card a:hover { color: #fff; }
.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------- 25. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1faa53; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -6px rgba(31, 170, 83, .55);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- 26. Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ---------- 27. Utilities ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(40px, 6vw, 64px); }
