/* =====================================================================
   Lidlidda National High School - public site + shared components
   ===================================================================== */
:root {
  --sky-25: #f6fbff;
  --sky-50: #eef7ff;
  --sky-100: #e0f1fe;
  --sky-200: #bfe2fc;
  --sky-300: #8ccdf8;
  --sky-500: #2a9df4;
  --blue-600: #1d5ee8;
  --blue-700: #1846c2;
  --navy-800: #0b2a6f;
  --navy-900: #071a48;
  --gold: #f6b400;
  --gold-600: #d99700;
  --red: #d7263d;
  --green: #12805c;
  --ink: #0a1a3a;
  --ink-2: #26375a;
  --muted: #5a6b8c;
  --line: #d3e5f6;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 111, .06), 0 2px 8px rgba(11, 42, 111, .05);
  --shadow: 0 10px 30px -10px rgba(11, 42, 111, .25), 0 2px 6px rgba(11, 42, 111, .06);
  --shadow-lg: 0 30px 60px -20px rgba(7, 26, 72, .35);
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(140, 205, 248, .45), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(191, 226, 252, .6), transparent 60%),
    linear-gradient(180deg, #e8f5ff 0%, #f1f9ff 45%, #e6f3fe 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
/* Reveal animations start offset sideways; never let that create horizontal scroll */
body.site { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy-800); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--card); --fg: var(--navy-800); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 700 .95rem/1 var(--font-head); letter-spacing: .01em;
  cursor: pointer; position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn-primary { --bg: linear-gradient(135deg, var(--blue-600), var(--navy-800)); --fg: #fff; --bd: transparent; background: var(--bg); }
.btn-gold { --bg: linear-gradient(135deg, #ffd24a, var(--gold)); --fg: var(--navy-900); --bd: transparent; background: var(--bg); }
.btn-glass { --bg: rgba(255, 255, 255, .14); --fg: #fff; --bd: rgba(255, 255, 255, .45); backdrop-filter: blur(8px); }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-danger { --bg: #fff; --fg: var(--red); --bd: #f3c2c9; }
.btn-success { --bg: linear-gradient(135deg, #18a072, var(--green)); --fg: #fff; --bd: transparent; background: var(--bg); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-xs { padding: .4em .75em; font-size: .78rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }

/* ---------- Topbar + header ---------- */
.topbar { background: var(--navy-900); color: #cfe3ff; font-size: .8rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar-gov { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-gov img { width: 20px; height: 20px; }
.topbar-links { display: inline-flex; gap: 18px; flex: none; }
.topbar-links a { color: #cfe3ff; display: inline-flex; align-items: center; gap: 6px; }
.topbar-links a:hover { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 248, 255, .82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(211, 229, 246, .8); transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(11, 42, 111, .25); background: rgba(246, 251, 255, .94); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; transition: min-height .3s var(--ease); }
.header.is-scrolled .header-in { min-height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy-900); min-width: 0; }
.brand-logo { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(11, 42, 111, .25)); transition: width .3s var(--ease), height .3s var(--ease), transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.header.is-scrolled .brand-logo { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font: 900 clamp(1rem, 2.1vw, 1.45rem)/1.05 var(--font-head); letter-spacing: -.005em;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-700)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
/* Header right side: the Login / Dashboard button and the 3-bar menu button. All page links live in the dropdown
   at every screen size, so the school name and address beside the logo always have room. */
.header-actions { position: relative; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--navy-800); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px)); z-index: 60;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: all .25s var(--ease);
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav a { padding: 12px 14px; font: 700 .98rem/1.2 var(--font-head); color: var(--ink-2); border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--navy-800); background: var(--sky-50, #f2f7fc); }
.nav a.is-active { color: var(--navy-800); background: var(--sky-100); box-shadow: inset 3px 0 0 var(--gold); }
/* Home and Request Documents beside the Login button: outlined, so Login stays the main button */
.nav-quick { background: #fff; color: var(--navy-800); border: 1.5px solid var(--line); }
.nav-quick:hover { border-color: var(--blue-600); color: var(--navy-800); }
.nav-quick.is-active { border-color: var(--blue-600); background: var(--sky-50, #f2f7fc); box-shadow: inset 0 -3px 0 var(--gold); }
@media (max-width: 1100px) {
  .nav-quick .nav-cta-label { display: none; }   /* icons only, so the school name keeps its room */
  .nav-quick { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 600px) {
  /* Phones: the buttons get their own row under the school name, with their words shown again */
  .header-in { flex-wrap: wrap; row-gap: 6px; padding-top: 8px; padding-bottom: 10px; }
  .brand { flex: 1 1 100%; }
  .header-actions { flex: 1 1 100%; justify-content: flex-end; }
  .nav-quick .nav-cta-label { display: inline; }
}
@media (max-width: 440px) {
  .nav-cta-long { display: none; }   /* "Documents" on small phones, so everything fits on one row */
}
@media (max-width: 480px) {
  .nav-cta-label { display: none; }   /* icon-only button on small phones */
  .nav-cta { padding-left: 12px; padding-right: 12px; }
  .header-actions { gap: 8px; }
  .nav-toggle { width: 42px; height: 42px; }
}
@media (max-width: 720px) {
  .topbar-gov { font-size: .72rem; }
  .topbar-links a:not([aria-label]) { display: none; }
}
@media (max-width: 480px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-sub { font-size: .66rem; }
  .header-in { min-height: 74px; }
}

/* ---------- Alerts + badges ---------- */
.alert { margin: 16px 0; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; animation: drop .45s var(--ease); }
.alert-success { background: #e8f8f1; border-color: #a6e3c9; color: #0b5c40; }
.alert-error { background: #fdecef; border-color: #f4b7c1; color: #8e1426; }
.alert-info { background: var(--sky-50); border-color: var(--sky-200); color: var(--navy-800); }
.alert-warn { background: #fff7e0; border-color: #ffe08a; color: #7a5200; }
.alert ul { margin: 0; padding-left: 18px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: .28em .7em; border-radius: 999px; font: 700 .72rem/1.2 var(--font-head); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.badge-gray { background: #eef2f7; color: #4b5a74; }
.badge-blue { background: #e1edff; color: #1846c2; }
.badge-green { background: #dff6ec; color: #0b6b4a; }
.badge-amber { background: #fff1cc; color: #8a5a00; }
.badge-red { background: #fde3e7; color: #a3172c; }
.badge-violet { background: #ece6ff; color: #5131b8; }
.badge-gold { background: linear-gradient(135deg, #ffe58a, var(--gold)); color: var(--navy-900); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 .78rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--blue-600)); }
.title-xl { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 0; }
.hero-card {
  position: relative; border-radius: 28px; overflow: hidden; min-height: clamp(520px, 78vh, 720px);
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-lg); isolation: isolate; background: var(--navy-900);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 26, 72, .92) 0%, rgba(11, 42, 111, .7) 42%, rgba(11, 42, 111, .1) 75%),
    linear-gradient(0deg, rgba(7, 26, 72, .65), transparent 45%);
}
.hero-content { position: relative; z-index: 2; padding: clamp(28px, 6vw, 72px); max-width: 760px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 700 .8rem/1 var(--font-head);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); margin-bottom: 22px;
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .7); animation: pulse 2s infinite; }
.hero-chip.closed .dot { background: var(--gold); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -.025em; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.hero h1 .accent { background: linear-gradient(90deg, #ffe07a, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #dbe8ff; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; right: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 40px); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; padding: 0; transition: width .4s var(--ease), background .3s; }
.hero-dots button.is-active { width: 34px; background: var(--gold); }
.hero-caption { position: absolute; z-index: 3; right: clamp(20px, 4vw, 48px); bottom: clamp(44px, 6vw, 64px); font-size: .82rem; color: #cfe0ff; text-align: right; max-width: 260px; }
@media (max-width: 640px) { .hero-caption { display: none; } .hero-card { border-radius: 20px; } }

.stats { position: relative; z-index: 4; margin-top: -54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 clamp(16px, 4vw, 48px); }
.stat {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: transform .35s var(--ease);
}
.stat:hover { transform: translateY(-4px); }
.stat-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky-100), var(--sky-200)); color: var(--blue-700); flex: none; }
.stat-ic .ic { width: 24px; height: 24px; }
.stat strong { display: block; font: 900 1.7rem/1 var(--font-head); color: var(--navy-900); }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -40px; } }
@media (max-width: 420px) { .stat { padding: 16px; } .stat strong { font-size: 1.35rem; } .stat-ic { width: 40px; height: 40px; } }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(20px, 3vw, 32px); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit; height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sky-300); color: inherit; }
.post-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--sky-100), var(--sky-200)); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.07); }
.post-media .badge { position: absolute; top: 14px; left: 14px; box-shadow: var(--shadow-sm); }
.post-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-700); }
.post-media .ph img { width: 72px; height: 72px; opacity: .5; object-fit: contain; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); font-weight: 600; }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-body h3 { margin: 4px 0 0; font-size: 1.12rem; }
.post-body p { color: var(--muted); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; padding-top: 10px; font: 800 .85rem/1 var(--font-head); color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }
.read-more .ic { transition: transform .3s var(--ease); }
.post-card:hover .read-more .ic { transform: translateX(4px); }

.date-badge { position: absolute; top: 14px; right: 14px; background: #fff; border-radius: 14px; padding: 8px 12px; text-align: center; box-shadow: var(--shadow); line-height: 1; }
.date-badge b { display: block; font: 900 1.4rem/1 var(--font-head); color: var(--navy-900); }
.date-badge small { font: 800 .68rem/1 var(--font-head); color: var(--red); letter-spacing: .1em; text-transform: uppercase; }

.feature-post { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.feature-post .post-media { aspect-ratio: auto; min-height: 100%; }
.feature-post .post-body { padding: clamp(24px, 4vw, 40px); justify-content: center; }
.feature-post h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
@media (max-width: 800px) { .feature-post { grid-template-columns: 1fr; } .feature-post .post-media { aspect-ratio: 16/9; } }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 700 .88rem/1 var(--font-head); color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.tabs .is-active { background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: #fff; box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- About block ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-visual { position: relative; }
.about-visual .main { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-visual .float {
  position: absolute; right: -18px; bottom: 32px; width: 46%; border-radius: 18px; border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover;
  animation: floaty 6s ease-in-out infinite;
}
.about-visual .seal {
  position: absolute; left: -16px; top: 24px; width: 108px; height: 108px; border-radius: 50%; background: #fff; padding: 8px; box-shadow: var(--shadow);
  animation: spin 40s linear infinite;
}
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.value-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 800 .9rem/1 var(--font-head); color: var(--navy-800); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.value-chip:hover { transform: translateY(-3px) rotate(-1deg); }
.value-chip .ic { color: var(--gold-600); }
.mv-card { padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--sky-25)); border: 1px solid var(--line); }
.mv-card h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700); }
.mv-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } .about-visual { max-width: 520px; margin: 0 auto 20px; } .about-visual .float { right: 0; } .about-visual .seal { left: 0; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px); color: #fff;
  background: radial-gradient(600px 300px at 90% 10%, rgba(246, 180, 0, .35), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--blue-700) 60%, var(--sky-500));
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; box-shadow: var(--shadow-lg);
}
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -180px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6ff; }
.cta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.cta-list li { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; }
.cta-list .ic { color: var(--gold); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- People / org chart ---------- */
.person { text-align: center; padding: 26px 18px; transition: transform .35s var(--ease), box-shadow .35s; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--sky-200), var(--shadow-sm);
  display: grid; place-items: center; font: 900 1.8rem/1 var(--font-head); color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
}
.person h3 { font-size: 1.02rem; margin-bottom: 4px; }
.person .pos { font-weight: 700; color: var(--blue-700); font-size: .88rem; }
.person .desig { color: var(--muted); font-size: .82rem; }
.person.head { max-width: 360px; margin: 0 auto; background: linear-gradient(180deg, #fff, var(--sky-50)); }
.person.head .avatar { width: 132px; height: 132px; box-shadow: 0 0 0 4px var(--gold), var(--shadow); }
.org-group { margin-top: 48px; }
.org-group > h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-800); margin-bottom: 18px; }
.org-group > h3::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--sky-200), transparent); }
.org-line { width: 2px; height: 40px; margin: 0 auto; background: linear-gradient(var(--gold), var(--sky-300)); }

/* ---------- Docs list ---------- */
.doc-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background .2s; }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: var(--sky-25); }
.doc-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fde8ec; color: var(--red); flex: none; }
.doc-ic .ic { width: 22px; height: 22px; }
.doc-row .grow { flex: 1; min-width: 0; }
.doc-row strong { display: block; color: var(--navy-900); }
.doc-row small { color: var(--muted); }
@media (max-width: 560px) { .doc-row { flex-wrap: wrap; } .doc-row .btn { width: 100%; } }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sky-100); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.contact-item .stat-ic { width: 44px; height: 44px; }
.contact-item strong { display: block; font-family: var(--font-head); color: var(--navy-900); }
.contact-item span, .contact-item a { color: var(--muted); font-size: .93rem; word-break: break-word; }
.fb-card { background: linear-gradient(135deg, #1877f2, #0b4fc0); color: #fff; border: 0; }
.fb-card strong, .fb-card span { color: #fff !important; }
.fb-card .stat-ic { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-width: 900px) { .location { grid-template-columns: 1fr; } .map-frame, .map-frame iframe { min-height: 320px; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); position: relative; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 680px; font-size: 1.06rem; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 600; }
.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose p, .prose ul { margin-bottom: 1.1em; }
.prose strong { color: var(--navy-900); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.article-cover { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 32px; aspect-ratio: 21 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery a { border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.layout-aside { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .layout-aside { grid-template-columns: 1fr; } }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.pager .is-active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty .ic { width: 42px; height: 42px; color: var(--sky-300); margin: 0 auto 12px; display: block; }

/* ---------- Forms (shared) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .form-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .form-grid, .form-grid-3, .form-grid-4 { grid-template-columns: 1fr; } }
/* Enrollment form: yes/no and choice groups, and the boxes inside a numbered item */
.yn { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.fieldset .yn legend, .yn legend { font: 600 .9rem/1.3 var(--font-body, inherit); color: inherit; text-transform: none; letter-spacing: 0; padding: 0; margin-bottom: 6px; width: 100%; }
.yn .check { align-items: center; }
.yn .hint { font-size: .8rem; color: var(--muted); }
.fieldset-sub { margin: 16px 0 0; padding: 16px; }
.fieldset .fieldset-sub legend { text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.fieldset legend { line-height: 1.3; }
form [hidden] { display: none !important; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font: 700 .84rem/1.2 var(--font-head); color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
.req::after { content: " *"; color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; padding: .78em .95em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  font: 500 .95rem/1.3 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 94, 232, .15); }
.input:invalid:not(:placeholder-shown) { border-color: #f0a1ad; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 18px; }
.fieldset legend { font: 800 .82rem/1 var(--font-head); color: var(--blue-700); text-transform: uppercase; letter-spacing: .12em; padding: 0 8px; }

/* ---------- Login ---------- */
.auth { min-height: calc(100vh - 124px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(100%, 980px); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg); background: #fff; }
.auth-side {
  position: relative; padding: 44px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px;
  background: linear-gradient(0deg, rgba(7, 26, 72, .92), rgba(11, 42, 111, .45)), url("../img/school2.jpg") center / cover;
}
.auth-side img.logo { width: 92px; height: 92px; margin-bottom: auto; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); }
.auth-side h2 { color: #fff; font-size: 1.8rem; font-weight: 900; }
.auth-side p { color: #d4e3ff; margin: 0; }
.auth-form { padding: clamp(28px, 5vw, 48px); }
.auth-form h1 { font-size: 1.8rem; }
.auth-form .tabs { width: 100%; margin: 8px 0 24px; }
.auth-form .tabs button { flex: 1; }
.auth-form .field { margin-bottom: 16px; }
@media (max-width: 820px) { .auth-card { grid-template-columns: 1fr; } .auth-side { min-height: 220px; padding: 28px; } .auth-side img.logo { width: 64px; height: 64px; } }

/* ---------- Footer ---------- */
.footer { margin-top: 64px; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #bcd0f2; padding-top: 64px; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--sky-500), var(--blue-600), var(--red)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: #bcd0f2; display: flex; align-items: center; gap: 8px; padding: 4px 0; transition: color .2s, transform .2s; }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; font-size: .93rem; }
.footer p .ic { margin-top: 4px; color: var(--gold); }
.footer-logos { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-logos img { width: 56px; height: 56px; }
.footer-name { font: 900 1.15rem/1.2 var(--font-head); color: #fff; display: block; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Tables (shared) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font: 800 .74rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sky-25); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #e8f1fa; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--sky-25); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(.94); }

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

@media print {
  .topbar, .header, .footer, .no-print { display: none !important; }
  body { background: #fff; }
}

/* Request form: the two first choices (owner / representative) and the check-box groups */
.dr-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .dr-choice { grid-template-columns: 1fr; } }
.dr-pick { position: relative; cursor: pointer; }
.dr-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dr-pick span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.dr-pick span svg { width: 28px; height: 28px; color: var(--blue-700, #1846c2); }
.dr-pick span strong { font-size: 1.02rem; }
.dr-pick span small { color: var(--muted); }
.dr-pick input:checked + span { border-color: var(--blue-700, #1846c2); background: var(--sky-50, #eef5ff); box-shadow: 0 0 0 3px rgba(24, 70, 194, .12); }
.dr-pick input:focus-visible + span { outline: 3px solid var(--gold-600, #d99700); outline-offset: 2px; }
.dr-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
@media (max-width: 640px) { .dr-checks { grid-template-columns: 1fr; } }
