/* =========================================================
   श्री चन्द्र जी महाराज लघु माध्यमिक विद्यालय — Design System
   Deep Blue + Red theme, fast & lightweight
   ========================================================= */

:root {
    --blue-900: #10255f;
    --blue-800: #14307a;
    --blue-700: #1b3c8c;
    --blue-600: #2456b3;
    --blue-500: #3b72d0;
    --blue-100: #e8eefb;
    --blue-50:  #f3f6fd;

    --red-700: #a8222b;
    --red-600: #c0282d;
    --red-500: #d6363c;

    --bg: #f5f6fb;
    --card: #ffffff;
    --text: #27324d;
    --text-soft: #5a647d;
    --line: #e3e8f3;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(16, 37, 95, 0.18);
    --shadow-lg: 0 22px 50px -18px rgba(16, 37, 95, 0.28);

    --font-hi: "Mukta", "Poppins", system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Noto Sans Devanagari", sans-serif;
    --font-en: "Poppins", "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-hi);
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    font-size: 1.05rem;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--red-600); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--blue-900); font-weight: 700; }

.container { width: min(1120px, 92%); margin-inline: auto; }

.section { padding: 4.5rem 0; position: relative; }
.section:nth-of-type(even) { background: #fff; }
.section:nth-of-type(odd) { background: var(--bg); }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--red-600); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
    border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .95rem; }

.btn-accent { background: var(--red-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(192, 40, 45, .55); }
.btn-accent:hover { background: var(--red-700); color: #fff; transform: translateY(-2px); }

.btn-solid { background: var(--blue-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(27, 60, 140, .55); }
.btn-solid:hover { background: var(--blue-800); color: #fff; transform: translateY(-2px); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn-outline-solid { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-outline-solid:hover { background: var(--blue-700); color: #fff; transform: translateY(-2px); }

/* ---------- Section heading (logo-inspired ring) ---------- */
.section-head { text-align: center; margin-bottom: 2.6rem; }
.sec-ring {
    position: relative; display: inline-block; width: 34px; height: 34px;
    border: 3px solid var(--red-600); border-radius: 50%;
    margin-bottom: .55rem;
}
.sec-ring::before {
    content: ""; position: absolute; inset: 7px; border: 1.6px dashed var(--blue-600); border-radius: 50%;
}
.sec-ring::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
    background: var(--blue-700); border-radius: 50%;
}
.sec-eyebrow {
    text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600;
    color: var(--red-600); font-family: var(--font-en); margin-bottom: .3rem;
}
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.25rem); color: var(--blue-900); }
.sec-sub { text-align: center; color: var(--text-soft); max-width: 640px; margin: -1.2rem auto 2rem; font-size: 1.05rem; }

/* ---------- Prose (rendered content) ---------- */
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose .sub-title { font-size: 1.45rem; margin: 1.6rem 0 .9rem; color: var(--blue-800); }
.prose .mini-title { font-size: 1.2rem; margin: 1.5rem 0 .7rem; color: var(--blue-700); }
.prose .mini-title::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red-600); margin-right: .5rem; vertical-align: middle; }
.prose blockquote {
    border-left: 4px solid var(--red-600); background: var(--blue-50);
    padding: 1rem 1.3rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--blue-900); font-size: 1.1rem; margin: 1.2rem 0; font-weight: 500;
}
.tick-list { list-style: none; margin: .6rem 0 1.2rem; display: grid; gap: .5rem; }
.tick-list li {
    position: relative; padding-left: 1.9rem;
}
.tick-list li::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: 13px; height: 13px; border-radius: 50%;
    background: radial-gradient(circle at center, var(--red-600) 0 36%, transparent 38%),
        radial-gradient(circle, var(--blue-100), var(--blue-100));
    border: 2px solid var(--blue-600);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(16, 37, 95, .35); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 76px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand .school-logo { flex: none; border-radius: 50%; box-shadow: 0 4px 12px -4px rgba(16, 37, 95, .35); }
.brand .school-logo-img { object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--blue-900); font-size: 1.12rem; font-weight: 700; }
.brand-text small { color: var(--red-600); font-size: .82rem; font-weight: 600; letter-spacing: .02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.site-nav-head { display: none; }
.site-nav ul { display: flex; list-style: none; gap: .25rem; }
.site-nav a { display: inline-block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .98rem; }
.site-nav ul a:hover { color: var(--red-600); background: var(--blue-50); }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; background: var(--blue-50);
    border: 1px solid var(--line); border-radius: 10px; padding: 0 10px;
}
.nav-toggle span { height: 2.5px; width: 100%; background: var(--blue-900); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.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); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: var(--blue-900);
    color: #fff; padding: 5.4rem 0 8.6rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(9, 18, 52, .94) 0%, rgba(16, 37, 95, .82) 46%, rgba(16, 37, 95, .5) 100%);
}
.hero-overlay::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(9, 18, 52, .92), transparent 42%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-glow-1 { width: 460px; height: 460px; top: -180px; right: -110px; background: rgba(59, 114, 208, .5); }
.hero-glow-2 { width: 380px; height: 380px; bottom: -150px; left: -130px; background: rgba(192, 40, 45, .26); }

.ring {
    position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .14);
}
.ring-1 { width: 480px; height: 480px; top: -210px; right: -130px; }
.ring-2 { width: 300px; height: 300px; bottom: -130px; left: -70px; }

.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.12fr .88fr; gap: 3.2rem; align-items: center;
}

/* ---------- Hero text (left column) ---------- */
.hero-text { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    color: #ffd9d9; font-weight: 600; font-size: .88rem;
    letter-spacing: .1em; text-transform: uppercase;
    font-family: var(--font-en);
    background: rgba(192, 40, 45, .2); border: 1px solid rgba(192, 40, 45, .45);
    padding: .42rem .95rem; border-radius: 999px; margin-bottom: 1.15rem;
}
.hero-eyebrow-line {
    width: 14px; height: 3px; border-radius: 2px; flex: none;
    background: var(--red-500);
}

.hero h1 {
    color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700;
    margin-bottom: .7rem; line-height: 1.25;
    text-shadow: 0 6px 24px rgba(6, 15, 42, .4);
}
.hero-place { color: #e6edfb; font-size: 1.08rem; margin-bottom: .9rem; font-weight: 500; }
.hero-tagline { color: #dbe3f5; font-size: 1.1rem; line-height: 1.85; margin-bottom: 1.5rem; max-width: 560px; }

.hero-motto {
    display: flex; gap: .85rem; align-items: flex-start;
    border-left: 4px solid var(--red-600);
    background: rgba(255, 255, 255, .07);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: .9rem 1.2rem; margin-bottom: 1.8rem; max-width: 580px;
    backdrop-filter: blur(4px);
}
.motto-mark {
    flex: none; font-size: 2.2rem; line-height: 1; color: var(--red-500);
    font-family: Georgia, serif; margin-top: -2px;
}
.motto { font-size: 1.5rem; font-weight: 700; color: #fff; letter-spacing: .02em; line-height: 1.3; }
.motto-meaning { color: #dbe3f5; font-size: .96rem; margin-top: .1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem; margin-top: 2rem; padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-stat { line-height: 1.35; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 1.4rem; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.hero-stat strong em { font-style: normal; color: var(--red-500); }
.hero-stat span { font-size: .88rem; color: #dbe3f5; }

/* ---------- Hero enquiry form (right column) ---------- */
.hero-form-col { position: relative; z-index: 1; min-width: 0; }
.enquiry-card {
    background: #fff; border-radius: 20px; padding: 1.8rem;
    box-shadow: 0 34px 70px -24px rgba(6, 15, 42, .6);
    border-top: 5px solid var(--red-600);
}
.enquiry-head { text-align: center; margin-bottom: 1.3rem; }
.enquiry-head .sec-ring { width: 30px; height: 30px; margin-bottom: .4rem; }
.enquiry-title { color: var(--blue-900); font-size: 1.45rem; }
.enquiry-sub { color: var(--text-soft); font-size: .95rem; }

.form-alert {
    padding: .7rem .9rem; border-radius: 10px; font-size: .95rem;
    margin-bottom: 1rem; line-height: 1.5;
}
.form-alert.is-success { background: #e7f6ec; color: #166534; border: 1px solid #bfe8cb; }
.form-alert.is-error { background: #fdeaea; color: #9f1d23; border: 1px solid #f6c6c6; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.enquiry-form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field span { font-size: .86rem; font-weight: 600; color: var(--blue-900); }
.field input, .field textarea {
    width: 100%; padding: .7rem .9rem; border-radius: 10px;
    border: 1.5px solid var(--line); background: var(--blue-50);
    font-family: inherit; font-size: 1rem; color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa3bb; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(36, 86, 179, .15); background: #fff;
}
.field textarea { resize: vertical; min-height: 74px; }

.btn-block { width: 100%; }
.enquiry-note { text-align: center; font-size: .82rem; color: var(--text-soft); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }

/* ---------- About ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: start; }
.prose > .sub-title { margin-top: 0; }

.about-card {
    background: linear-gradient(160deg, #fff, var(--blue-50));
    border: 1px solid var(--line); border-radius: var(--radius-lg, 20px);
    box-shadow: var(--shadow); padding: 2rem 1.8rem; text-align: center;
    position: sticky; top: 100px;
}
.about-card::before {
    content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(27, 60, 140, .25); border-radius: 14px; pointer-events: none;
}
.about-emblem { display: flex; justify-content: center; margin-bottom: .8rem; }
.about-motto { font-size: 1.35rem; font-weight: 700; color: var(--red-600); margin-bottom: .3rem; }
.about-motto-meaning { color: var(--text-soft); font-size: .95rem; margin-bottom: 1rem; }
.about-rule { border: none; height: 2px; background: linear-gradient(90deg, var(--blue-700), var(--red-600)); margin: 1rem 0; }
.about-tag { font-weight: 600; color: var(--blue-800); margin-bottom: 1.2rem; }

/* ---------- Vision ---------- */
.vision-section { background: linear-gradient(160deg, var(--blue-900), var(--blue-700)) !important; }
.vision-section .sec-eyebrow { color: #f6b7b7; }
.vision-section .sec-title { color: #fff; }
.vision-card {
    position: relative; max-width: 780px; margin-inline: auto; text-align: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius); padding: 2.6rem 2rem; backdrop-filter: blur(4px);
}
.vision-quote-mark {
    position: absolute; top: -.9rem; left: 50%; transform: translateX(-50%);
    width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
    background: var(--red-600); color: #fff; font-size: 2rem; font-family: Georgia, serif;
    border: 3px solid #fff; box-shadow: var(--shadow);
}
.vision-card .prose p { color: #dfe7f8; }
.vision-card .prose blockquote { background: rgba(255, 255, 255, .1); border-color: #f6b7b7; color: #fff; }

/* ---------- Academics ---------- */
.academics-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: start; }
.academics-note {
    background: #fff8f2; border: 1px solid #f3dcc4; border-radius: var(--radius);
    padding: 1.5rem; position: sticky; top: 100px;
}
.note-icon { font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.academics-note h3 { font-size: 1.1rem; color: var(--red-700); margin-bottom: .4rem; }
.academics-note p { color: #7a5a3a; font-size: .98rem; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-item {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.7rem 1.5rem; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.feature-icon {
    display: grid; place-items: center; width: 58px; height: 58px; font-size: 1.7rem;
    border-radius: 50%; margin-bottom: 1rem;
    background: radial-gradient(circle at 30% 25%, #fff, var(--blue-100));
    border: 2px solid var(--blue-700);
    box-shadow: 0 6px 14px -6px rgba(27, 60, 140, .45);
}
.feature-item h3 { font-size: 1.15rem; margin-bottom: .35rem; color: var(--blue-900); }
.feature-item p { color: var(--text-soft); font-size: .98rem; }

/* ---------- Principal ---------- */
.principal-card {
    display: grid; grid-template-columns: 260px 1fr; gap: 2rem; max-width: 900px;
    margin-inline: auto; background: #fff; border: 1px solid var(--line);
    border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2.2rem; overflow: hidden;
    position: relative;
}
.principal-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--blue-700), var(--red-600), var(--blue-700));
}
.principal-profile { text-align: center; align-self: start; }
.principal-photo {
    width: 150px; height: 150px; margin: .5rem auto 1rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 3.2rem; font-weight: 700; color: #fff;
    background: radial-gradient(circle at 30% 25%, var(--blue-500), var(--blue-800));
    border: 4px solid var(--red-600); box-shadow: 0 0 0 6px var(--blue-100);
}
.principal-photo-img {
    background: var(--blue-100);
    overflow: hidden;
}
.principal-photo-img img {
    width: 150px; height: 150px;
    object-fit: cover; object-position: center top;
    border-radius: 50%;
    display: block;
}
.principal-name { font-size: 1.15rem; font-weight: 700; color: var(--blue-900); }
.principal-role { color: var(--red-600); font-size: .9rem; font-weight: 600; margin-top: .15rem; }
.principal-msg { padding-top: .4rem; }
.principal-sign { font-weight: 700; color: var(--blue-900); margin-top: 1rem; }
.principal-note { font-size: .85rem; color: var(--text-soft); margin-top: .6rem; border-top: 1px dashed var(--line); padding-top: .6rem; }

/* ---------- Students & Parents ---------- */
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.sp-card {
    border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.sp-students { background: linear-gradient(160deg, #fff, var(--blue-50)); border-top: 5px solid var(--blue-700); }
.sp-parents { background: linear-gradient(160deg, #fff, #fdf3f3); border-top: 5px solid var(--red-600); }
.sp-card-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.sp-icon {
    display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.3rem;
    background: #fff; border-radius: 12px; box-shadow: var(--shadow);
}
.sp-card h3 { font-size: 1.25rem; color: var(--blue-900); }
.sp-card .tick-list { margin-bottom: 0; }

/* ---------- Admission ---------- */
.admission-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; align-items: center; }
.admission-grid .prose .sub-title { margin-top: 0; }
.admission-card {
    background: linear-gradient(160deg, var(--blue-800), var(--blue-700));
    border-radius: 24px; padding: 2.2rem 1.9rem; color: #fff; text-align: center;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.admission-card::after {
    content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .18); top: -50px; right: -50px;
}
.admission-icon { font-size: 2.2rem; display: inline-block; margin-bottom: .6rem; }
.admission-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: .5rem; }
.admission-card p { color: #d7e0f6; font-size: .98rem; margin-bottom: 1.4rem; }
.admission-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; position: relative; z-index: 1; }
.admission-note { font-size: .82rem; color: #b7c6ea !important; margin-top: 1rem; margin-bottom: 0 !important; }

/* ---------- Notices ---------- */
.notice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.notice-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--red-600);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.notice-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.notice-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; flex-wrap: wrap; }
.notice-pin { font-size: 1.05rem; }
.notice-type {
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--blue-800);
    background: var(--blue-100); padding: .18rem .6rem; border-radius: 999px;
}
.notice-date { margin-left: auto; font-size: .82rem; color: var(--text-soft); }
.notice-title { font-size: 1.08rem; margin-bottom: .4rem; color: var(--blue-900); }
.notice-text { color: var(--text-soft); font-size: .96rem; }
.notice-actions { text-align: center; margin-top: 2rem; }

.empty-state { text-align: center; color: var(--text-soft); padding: 2rem 0; }

/* ---------- Modal (notices + lightbox) ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 45, .72); backdrop-filter: blur(4px); }
.modal-panel {
    position: relative; background: #fff; width: min(680px, 100%); max-height: 82vh;
    border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
    animation: popIn .25s ease;
}
@keyframes popIn { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line);
    background: linear-gradient(120deg, var(--blue-800), var(--blue-700)); color: #fff;
}
.modal-head h3 { color: #fff; font-size: 1.15rem; }
.modal-close {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .12); color: #fff; font-size: 1rem; line-height: 1;
    transition: background .2s ease;
}
.modal-close:hover { background: var(--red-600); border-color: var(--red-600); }
.modal-body { padding: 1.2rem 1.4rem; overflow-y: auto; }

.notice-list { list-style: none; display: grid; gap: .9rem; }
.notice-list-item {
    display: grid; grid-template-columns: auto auto 1fr; gap: .8rem; align-items: start;
    padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--blue-50);
}
.notice-list-date { font-size: .82rem; color: var(--text-soft); font-weight: 600; white-space: nowrap; padding-top: .1rem; }
.notice-list-badge {
    font-size: .72rem; font-weight: 700; color: #fff; background: var(--red-600);
    padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; margin-top: .1rem;
}
.notice-list-item strong { color: var(--blue-900); display: block; }
.notice-list-item p { color: var(--text-soft); font-size: .94rem; margin-top: .15rem; }

/* ---------- Activities ---------- */
.activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.6rem; }
.activity-card {
    text-align: center; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem 1rem; box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.activity-icon {
    display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto .8rem;
    font-size: 1.7rem; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff, var(--blue-100));
    border: 2px solid var(--blue-700);
}
.activity-card h3 { font-size: 1rem; color: var(--blue-900); }

.mini-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.mini-gallery-item {
    position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1;
    border: 1px solid var(--line); background: var(--blue-100);
}
.mini-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mini-gallery-item:hover img { transform: scale(1.1); }
.mini-gallery-zoom {
    position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.4rem;
    background: rgba(16, 37, 95, .35); opacity: 0; transition: opacity .25s ease; color: #fff;
}
.mini-gallery-item:hover .mini-gallery-zoom { opacity: 1; }
.activity-more { text-align: center; margin-top: 1.8rem; }

/* ---------- Campus ---------- */
.campus-wrap {
    max-width: 880px; margin-inline: auto; background: #fff; border: 1px solid var(--line);
    border-radius: 24px; padding: 2.2rem; box-shadow: var(--shadow);
}
.campus-wrap .tick-list { grid-template-columns: 1fr 1fr; gap: .9rem 1.6rem; }
.campus-note { font-size: .85rem; color: var(--text-soft); margin-top: 1rem; text-align: center; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 1.8rem; }
.gallery-filter {
    padding: .45rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--blue-700);
    background: #fff; color: var(--blue-700); font-weight: 600; font-size: .92rem;
    transition: background .2s ease, color .2s ease;
}
.gallery-filter:hover { background: var(--blue-50); }
.gallery-filter.is-active { background: var(--blue-700); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
    position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
    aspect-ratio: 4 / 3; background: var(--blue-100); border: 1px solid var(--line);
    opacity: 0; transform: scale(.92); transition: opacity .3s ease, transform .3s ease;
}
.gallery-item.is-visible { opacity: 1; transform: scale(1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: .9rem; color: #fff;
    background: linear-gradient(transparent, rgba(16, 37, 95, .88));
    transform: translateY(100%); transition: transform .25s ease;
}
.gallery-item:hover figcaption { transform: none; }
.gallery-item figcaption span { font-size: .75rem; font-weight: 600; color: #ffd9d9; display: block; }
.gallery-item figcaption strong { font-size: .95rem; }

.lightbox .lightbox-panel {
    position: relative; background: transparent; width: min(900px, 96vw); max-height: 88vh;
    display: grid; place-items: center;
}
.lightbox-img { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox .modal-close { position: absolute; top: -46px; right: 0; background: rgba(255,255,255,.15); }
.lightbox .modal-close:hover { background: var(--red-600); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
    background: rgba(16, 37, 95, .55); color: #fff; font-size: 1.8rem; line-height: 1;
    transition: background .2s ease;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-nav:hover { background: var(--red-600); }
.lightbox-caption { margin-top: .8rem; color: #fff; text-align: center; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: stretch; }
.contact-info { display: grid; gap: 1rem; align-content: start; }
.contact-card {
    display: flex; gap: 1rem; align-items: flex-start; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
}
.contact-icon {
    flex: none; display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.25rem;
    border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, var(--blue-100));
    border: 2px solid var(--blue-700);
}
.contact-card h3 { font-size: .95rem; color: var(--red-600); font-weight: 700; margin-bottom: .1rem; }
.contact-card p { font-size: .96rem; color: var(--text); }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; padding-top: .3rem; }
.contact-map iframe {
    width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c8d3ef; margin-top: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem;
    padding: 3.4rem 0 2.4rem;
}
.footer-logo { margin-bottom: .8rem; }
.footer-brand h3 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
.footer-brand p { font-size: .97rem; margin-bottom: .7rem; }
.footer-motto { color: #f6b7b7; font-weight: 700; font-size: 1.08rem !important; }
.footer-values { color: #9fb2dd; font-size: .9rem !important; }
.footer-col h4 {
    color: #fff; font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .5rem;
    border-bottom: 2px solid var(--red-600); display: inline-block;
}
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: #c8d3ef; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12); text-align: center;
    padding: 1.2rem 1rem; font-size: .88rem; color: #8fa2cf;
}


body.modal-open { overflow: hidden; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .feature-item.reveal.is-visible { animation: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .activity-grid { grid-template-columns: repeat(3, 1fr); }
    .mini-gallery { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.8rem; }
    .hero-text { order: -1; }
    .hero-eyebrow, .hero-stats { justify-content: center; }
    .hero-tagline, .hero-motto { margin-inline: auto; text-align: left; }
    .hero-actions { justify-content: center; }
    .hero-form-col { max-width: 520px; margin-inline: auto; width: 100%; }
    .principal-card { grid-template-columns: 1fr; text-align: center; }
    .principal-msg { text-align: left; }
}

@media (max-width: 768px) {
    .section { padding: 3.4rem 0; }
    .header-inner { height: 66px; }
    .brand-text strong { font-size: 1rem; }
    .brand-text small { font-size: .72rem; }

    .site-nav {
        position: fixed; top: 0; left: 0; bottom: 0; width: min(80vw, 330px);
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; box-shadow: 12px 0 40px rgba(16, 37, 95, .25);
        padding: 0; margin: 0; transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        z-index: 1200; overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .site-nav.is-open { transform: none; }

    .site-nav-head {
        display: flex; align-items: center; justify-content: space-between; gap: .5rem;
        padding: 1rem 1.1rem;
        background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .site-nav-head .brand { gap: .6rem; }
    .site-nav-head .school-logo { border-radius: 50%; background: #fff; }
    .site-nav-head .brand-text strong { color: #fff; font-size: 1rem; }
    .site-nav-head .brand-text small { color: #ffd9d9; }
    .site-nav-close {
        flex: none; width: 38px; height: 38px; border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1);
        color: #fff; font-size: 1.05rem; line-height: 1; display: grid; place-items: center;
        cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease;
    }
    .site-nav-close:hover { background: var(--red-600); border-color: var(--red-600); transform: rotate(90deg); }

    .site-nav ul { flex-direction: column; gap: .1rem; padding: .9rem 1rem; }
    .site-nav ul a {
        display: flex; align-items: center; justify-content: space-between;
        padding: .85rem .6rem; font-size: 1.05rem;
        border-bottom: 1px solid var(--line); border-radius: 8px;
        font-weight: 600; color: var(--text);
        transition: background .2s ease, color .2s ease, padding-left .2s ease;
    }
    .site-nav ul a::after { content: "›"; color: var(--blue-500); font-size: 1.25rem; line-height: 1; }
    .site-nav ul a:hover { background: var(--blue-50); color: var(--red-600); padding-left: .95rem; }
    .site-nav .nav-cta { width: calc(100% - 2rem); margin: .5rem 1rem 1.4rem; }

    .site-nav-backdrop {
        position: fixed; inset: 0; z-index: 1100;
        background: rgba(9, 18, 52, .55); backdrop-filter: blur(2px);
    }
    .site-nav-backdrop[hidden] { display: none; }
    body.nav-open { overflow: hidden; }

    .nav-toggle { display: flex; }

    .two-col, .academics-grid, .sp-grid, .admission-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-card, .academics-note { position: static; }
    .admission-card { text-align: center; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .activity-grid { grid-template-columns: repeat(2, 1fr); }
    .mini-gallery { grid-template-columns: repeat(3, 1fr); }
    .notice-grid { grid-template-columns: repeat(2, 1fr); }
    .campus-wrap .tick-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
}

@media (max-width: 480px) {
    .notice-grid, .feature-grid, .activity-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .mini-gallery { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .brand-text small { display: none; }
    .hero { padding: 3rem 0 6.8rem; }
    .hero-actions .btn { padding: .7rem 1.2rem; font-size: .95rem; }
    .hero-stats { gap: 1.2rem; }
    .enquiry-card { padding: 1.4rem; }
    .enquiry-title { font-size: 1.3rem; }
    .modal-panel { max-height: 88vh; }
    .notice-list-item { grid-template-columns: 1fr; gap: .3rem; }
}
