/* =========================================================
   New Shishu Kalyan High School – Website styles
   ========================================================= */
:root {
    --navy-900: #071d42;
    --navy-800: #0b2a5b;
    --navy-700: #123c7c;
    --navy-600: #1b4d9b;
    --gold: #f5b82e;
    --gold-600: #e0a31a;
    --red: #e23a3a;
    --text: #1d2a44;
    --muted: #6b778c;
    --line: #e5eaf2;
    --bg: #ffffff;
    --bg-soft: #f4f7fc;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(11, 42, 91, .08);
    --shadow-lg: 0 18px 45px rgba(11, 42, 91, .16);
    --container: 1200px;
    --header-h: 76px;
    --ph: linear-gradient(135deg, #dfe8f7 0%, #c4d4ee 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.2; color: var(--navy-800); }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
h1:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.bg-soft { background: var(--bg-soft); }
.text-gold { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .72rem 1.35rem; border-radius: 8px; border: 2px solid transparent;
    font-weight: 600; font-size: .92rem; transition: all .2s ease; white-space: nowrap;
}
.btn i { transition: transform .2s ease; }
.btn:hover i.bi-arrow-right { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 6px 16px rgba(245, 184, 46, .35); }
.btn-gold:hover { background: var(--gold-600); }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); }
.btn-outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-800); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); background: #fff; }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: .5rem .95rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }

.link-arrow { color: var(--navy-600); font-weight: 600; font-size: .88rem; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow:hover { color: var(--navy-800); }

/* ---------- Photo placeholder ---------- */
.photo { position: relative; overflow: hidden; background: var(--ph); }
.photo > .ph-icon {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 2.2rem; color: rgba(18, 60, 124, .35);
}
.photo > .ph-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-800); color: #dbe5f5; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 38px; gap: 1rem; }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 1.4rem; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-links a:hover { color: var(--gold); }
.topbar .socials { display: flex; gap: .55rem; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(11, 42, 91, .07); }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: var(--header-h); max-width: 1360px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 54px; height: 62px; }
.brand-name { font-size: 1.12rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; letter-spacing: -.2px; }
.brand-tag { font-size: .6rem; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.main-nav a {
    padding: .5rem .6rem; border-radius: 6px; font-size: .84rem; font-weight: 500; color: var(--text); white-space: nowrap;
    transition: background .2s, color .2s;
}
.main-nav a:hover { color: var(--navy-600); background: var(--bg-soft); }
.main-nav a.active { background: var(--navy-700); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent;
    display: grid; place-items: center; font-size: 1.1rem; color: var(--navy-800);
}
.icon-btn:hover { background: var(--bg-soft); }
.menu-toggle { display: none; font-size: 1.6rem; }

.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-panel form { display: flex; gap: .5rem; padding: 14px 0; }
.search-panel input { flex: 1; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7, 29, 66, .55); z-index: 190; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 200;
    padding: 20px; display: flex; flex-direction: column; gap: .3rem; overflow-y: auto;
    animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer a.nav-link { padding: .75rem .9rem; border-radius: 8px; font-weight: 500; display: flex; gap: .7rem; align-items: center; }
.drawer a.nav-link.active { background: var(--navy-700); color: #fff; }
.drawer .btn { margin-top: .6rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(90deg, rgba(7, 29, 66, .92) 0%, rgba(11, 42, 91, .72) 42%, rgba(11, 42, 91, .15) 75%),
                var(--hero-img, none) center/cover no-repeat,
                linear-gradient(135deg, #0b2a5b 0%, #1b4d9b 55%, #5b8fd6 100%);
}
.hero .container { position: relative; min-height: 560px; display: flex; align-items: center; padding-top: 50px; padding-bottom: 110px; }
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .5); border-radius: 30px;
    font-size: .74rem; letter-spacing: 1.2px; text-transform: uppercase; background: rgba(255, 255, 255, .08); margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.12; margin-bottom: 1rem; }
.hero p.lead { font-size: 1.08rem; color: #e2eaf8; max-width: 440px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.play-btn { display: inline-flex; align-items: center; gap: .75rem; background: none; border: none; color: #fff; font-weight: 600; font-size: .9rem; text-align: left; line-height: 1.25; }
.play-btn .circle {
    width: 50px; height: 50px; border-radius: 50%; background: var(--gold); color: var(--navy-900);
    display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 0 0 8px rgba(245, 184, 46, .25);
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 184, 46, .5); } 50% { box-shadow: 0 0 0 12px rgba(245, 184, 46, 0); } }
.hero-note { position: absolute; right: 60px; top: 40px; max-width: 150px; text-align: center; font-family: "Caveat", cursive; font-size: 1.7rem; line-height: 1.1; transform: rotate(-4deg); color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.hero-note i { display: block; font-size: 1.6rem; margin: .3rem 0 0 2rem; transform: rotate(40deg); }

/* ---------- Feature strip ---------- */
.features { position: relative; margin-top: -70px; z-index: 5; }
.features-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
    background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-lg);
}
.feature-card {
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 14px;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: .86rem; margin: .7rem 0 .15rem; }
.feature-card p { font-size: .75rem; color: var(--muted); margin: 0; }

.chip-icon {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem;
}
.tone-blue { background: #e4eeff; color: #1b5fd6; }
.tone-orange { background: #fff0e0; color: #f07c14; }
.tone-purple { background: #eee8ff; color: #6a45e0; }
.tone-green { background: #e2f6ea; color: #1c9c55; }
.tone-red { background: #ffe6e6; color: #e23a3a; }
.tone-yellow { background: #fff5d6; color: #d99a00; }
.tone-pink { background: #ffe6f1; color: #e0407f; }
.tone-indigo { background: #e6e9ff; color: #3d4fd6; }

/* ---------- Stats band ---------- */
.stats {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    border-radius: var(--radius); color: #fff; padding: 26px 30px;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.stat { display: flex; align-items: center; gap: .9rem; }
.stat i { font-size: 2.2rem; color: var(--gold); }
.stat strong { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 700; }
.stat span { font-size: .82rem; color: #cfdcf1; }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.35rem; margin: 0; }
.section-head .eyebrow { font-size: .75rem; color: var(--gold-600); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; display: block; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(11, 42, 91, .04); }
.card-pad { padding: 22px; }

.two-col { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; }

.principal { display: grid; grid-template-columns: 170px 1fr; overflow: hidden; }
.principal .photo { min-height: 220px; }
.principal .body { padding: 22px 24px; }
.principal h3 { font-size: 1.1rem; }
.principal p { font-size: .88rem; color: #4a5670; }
.principal .sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.principal .sign strong { display: block; color: var(--navy-800); font-size: .9rem; }
.principal .sign small { color: var(--muted); }

.date-box {
    width: 50px; min-width: 50px; border-radius: 8px; background: #ffecec; color: var(--red);
    text-align: center; padding: 6px 0; line-height: 1;
}
.date-box b { display: block; font-size: 1.25rem; font-weight: 700; }
.date-box small { font-size: .7rem; font-weight: 600; }

.event-list { display: flex; flex-direction: column; gap: 10px; }
.event-item { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.event-item h4 { font-size: .92rem; margin: 0 0 2px; }
.event-item p { font-size: .78rem; color: var(--muted); margin: 0; display: flex; gap: .8rem; flex-wrap: wrap; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card {
    display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    border-left: 3px solid var(--red); background: #fff; transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card h4 { font-size: .92rem; margin: 0; }
.news-card p { font-size: .76rem; color: var(--muted); margin: 0; }

.facility-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.facility-card .photo { aspect-ratio: 4/3; border-radius: var(--radius-sm); }
.facility-card:hover .ph-img { transform: scale(1.06); }
.facility-card .label { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; margin-top: .6rem; color: var(--navy-800); }
.facility-card .label i { width: 26px; height: 26px; border-radius: 50%; background: #e4eeff; color: var(--navy-600); display: grid; place-items: center; font-size: .8rem; }

/* Tabs / pills */
.pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill {
    border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 6px;
    padding: .4rem .95rem; font-size: .8rem; font-weight: 500; transition: all .2s;
}
.pill:hover { border-color: var(--navy-600); color: var(--navy-600); }
.pill.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* Gallery carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 6 * 14px) / 7); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .photo { aspect-ratio: 4/3; border-radius: var(--radius-sm); scroll-snap-align: start; cursor: pointer; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
    border: none; background: #fff; box-shadow: var(--shadow); color: var(--navy-800); z-index: 2; display: grid; place-items: center;
}
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d4ea; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; gap: 32px; padding-top: 50px; padding-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: #9fb3d6; }
.site-footer p { font-size: .85rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; font-size: .85rem; white-space: nowrap; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: .55rem; font-size: .85rem; }
.footer-contact span, .footer-contact a { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); }
.social-row { display: flex; gap: .5rem; margin-top: .9rem; }
.social-row a {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .95rem;
    transition: transform .2s;
}
.social-row a:hover { transform: translateY(-3px); }
.s-fb { background: #1877f2; } .s-yt { background: #ff0000; } .s-ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .s-x { background: #1d9bf0; }
.newsletter { display: flex; background: #fff; border-radius: 8px; overflow: hidden; }
.newsletter input { flex: 1; border: none; padding: .75rem .9rem; font-family: inherit; font-size: .85rem; min-width: 0; }
.newsletter input:focus { outline: none; }
.newsletter button { border: none; background: var(--navy-600); color: #fff; padding: 0 1rem; font-size: 1.1rem; }
.newsletter-msg { font-size: .8rem; margin-top: .5rem; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 16px 20px; font-size: .78rem; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom a:hover { color: var(--gold); }

/* Mobile bottom nav */
.bottom-nav { display: none; }

/* ---------- Inner pages ---------- */
.page-banner {
    position: relative; color: #fff; padding: 70px 0 60px;
    background: linear-gradient(90deg, rgba(7, 29, 66, .94) 0%, rgba(11, 42, 91, .78) 45%, rgba(11, 42, 91, .25) 100%),
                var(--banner-img, none) center/cover no-repeat,
                linear-gradient(135deg, #0b2a5b 0%, #1b4d9b 60%, #5b8fd6 100%);
}
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: #d5e0f3; align-items: center; }
.breadcrumb a:hover { color: var(--gold); }

.page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 10px; }
.side-nav button {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem;
    text-align: left; border: none; background: none; padding: .7rem .85rem; border-radius: 8px;
    font-size: .86rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line);
}
.side-nav button:last-child { border-bottom: none; }
.side-nav button:hover { background: var(--bg-soft); color: var(--navy-600); }
.side-nav button.active { background: var(--navy-700); color: #fff; }
.side-nav button i { font-size: .75rem; opacity: .6; }

.content h2 { font-size: 1.55rem; }
.content h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.content p, .content li { color: #4a5670; }
.content ul.check { list-style: none; padding: 0; display: grid; gap: .5rem; }
.content ul.check li { display: flex; gap: .6rem; }
.content ul.check li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: #1c9c55; }

.intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: center; }
.intro .photo { aspect-ratio: 4/3; border-radius: var(--radius); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.stat-card { text-align: center; padding: 18px 10px; }
.stat-card .chip-icon { margin: 0 auto .6rem; }
.stat-card strong { display: block; font-size: 1.35rem; color: var(--navy-800); }
.stat-card span { font-size: .8rem; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.program-card { padding: 20px 14px; text-align: center; border-radius: var(--radius); transition: transform .2s; }
.program-card:hover { transform: translateY(-4px); }
.program-card .chip-icon { width: 54px; height: 54px; font-size: 1.5rem; margin: 0 auto .7rem; border-radius: 14px; }
.program-card h4 { font-size: .98rem; margin-bottom: .1rem; }
.program-card .classes { font-size: .78rem; font-weight: 600; color: var(--navy-600); }
.program-card small { display: block; font-size: .72rem; color: var(--muted); margin-top: .25rem; }

.value-card { padding: 22px; }
.value-card .chip-icon { margin-bottom: .8rem; }
.value-card h4 { font-size: 1rem; }
.value-card p { font-size: .86rem; margin: 0; }

.timeline { position: relative; padding-left: 26px; border-left: 2px dashed #c8d5ea; display: grid; gap: 18px; }
.timeline div { position: relative; }
.timeline div::before { content: ""; position: absolute; left: -34px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.timeline b { color: var(--navy-800); display: block; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; margin: 24px 0; }
.steps::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, #9fb3d6 0 8px, transparent 8px 14px); }
.step { text-align: center; position: relative; }
.step .num {
    width: 46px; height: 46px; border-radius: 50%; background: var(--navy-700); color: #fff; font-weight: 700;
    display: grid; place-items: center; margin: 0 auto .6rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--navy-700);
}
.step b { display: block; font-size: .88rem; color: var(--navy-800); }
.step small { color: var(--muted); font-size: .76rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { background: var(--navy-700); color: #fff; text-align: left; padding: .75rem 1rem; font-weight: 600; }
.tbl td { padding: .7rem 1rem; border-top: 1px solid var(--line); }
.tbl tr:nth-child(even) td { background: var(--bg-soft); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; color: var(--navy-800); }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: .72rem .9rem; border: 1px solid #d5deeb; border-radius: 8px; font-family: inherit; font-size: .9rem;
    background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(27, 77, 155, .12); }
.field textarea { min-height: 120px; resize: vertical; }
.field .invalid, .field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--red); }
.validation-message { color: var(--red); font-size: .76rem; margin-top: .25rem; }
.alert { padding: .9rem 1rem; border-radius: 8px; font-size: .88rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: #e2f6ea; color: #13703d; }
.alert-error { background: #ffe6e6; color: #b3261e; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; gap: 22px; }
.info-list { display: grid; gap: 16px; }
.info-list .item { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .item b { display: block; color: var(--navy-800); font-size: .9rem; }
.info-list .item span { font-size: .85rem; color: var(--muted); }
.map { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius); }

/* Gallery page */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { border: none; padding: 0; background: none; text-align: left; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.gallery-item .photo { aspect-ratio: 4/3; }
.gallery-item:hover .ph-img { transform: scale(1.07); }
.gallery-item .cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: .82rem; font-weight: 600;
    background: linear-gradient(transparent, rgba(7, 29, 66, .85));
}
.gallery-item .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; text-shadow: 0 4px 12px rgba(0, 0, 0, .4); }

/* Modal / lightbox */
.modal-backdrop { position: fixed; inset: 0; background: rgba(4, 14, 33, .85); z-index: 300; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(900px, 100%); position: relative; }
.modal-box .photo { aspect-ratio: 16/10; border-radius: var(--radius); }
.modal-box iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); background: #000; }
.modal-close { position: absolute; top: -46px; right: 0; background: none; border: none; color: #fff; font-size: 2rem; }
.modal-caption { color: #fff; margin-top: .8rem; display: flex; justify-content: space-between; align-items: center; }
.modal-nav { display: flex; gap: .5rem; }
.modal-nav button { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.1rem; }
.modal-empty { background: var(--navy-800); color: #cfdcf1; aspect-ratio: 16/9; border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 20px; }

.not-found { text-align: center; padding: 100px 20px; }

.cta-band {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; border-radius: var(--radius);
    padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.cta-band h3 { color: #fff; font-size: 1.3rem; margin: 0 0 .2rem; }
.cta-band p { margin: 0; color: #cfdcf1; }

/* Quick access (mobile home) */
.quick-grid { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1440px) {
    .header-actions .btn-primary { display: none; }
}

@media (max-width: 1260px) {
    .main-nav, .header-actions .btn { display: none; }
    .menu-toggle { display: grid; }
    .header-actions { margin-left: auto; }
}

@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .facility-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
    .contact-layout { grid-template-columns: 1fr 1fr; }
    .contact-layout .map-col { grid-column: 1 / -1; }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
    .topbar-links { display: none; }
    .stats { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
    .two-col, .intro { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-layout { grid-template-columns: 1fr; }
    .side-nav { position: static; display: flex; overflow-x: auto; gap: .4rem; padding: 8px; scrollbar-width: none; }
    .side-nav button { width: auto; white-space: nowrap; border-bottom: none; }
    .side-nav button i { display: none; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-note { display: none; }
}

@media (max-width: 680px) {
    body { font-size: 14px; padding-bottom: 64px; }
    :root { --header-h: 64px; }
    .section { padding: 36px 0; }
    .container { padding: 0 16px; }
    .topbar { display: none; }
    .brand img { width: 42px; height: 48px; }
    .brand-name { font-size: .98rem; }
    .brand-tag { font-size: .55rem; letter-spacing: 1.5px; }

    .hero { background: linear-gradient(180deg, rgba(11, 42, 91, .1) 0%, rgba(11, 42, 91, .55) 45%, rgba(7, 29, 66, .96) 75%),
                var(--hero-img, none) 70% top/cover no-repeat,
                linear-gradient(135deg, #0b2a5b 0%, #1b4d9b 55%, #5b8fd6 100%); }
    .hero .container { min-height: 540px; align-items: flex-end; padding-top: 180px; padding-bottom: 36px; }
    .hero-badge { display: none; }
    .hero p.lead { font-size: .95rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .play-btn { justify-content: center; }

    .features { display: none; }
    .quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; padding: 26px 0 6px; }
    .quick-grid a { display: flex; flex-direction: column; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 500; text-align: center; }
    .quick-grid .chip-icon { width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem; box-shadow: 0 6px 14px rgba(11, 42, 91, .1); }

    .stats { grid-template-columns: repeat(2, 1fr); padding: 22px; }
    .stat i { font-size: 1.7rem; }
    .stat strong { font-size: 1.3rem; }
    .principal { grid-template-columns: 1fr; }
    .principal .photo { min-height: 200px; }
    .news-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .facility-grid, .gallery-grid, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .carousel-track { grid-auto-columns: 70%; }
    .carousel-btn { display: none; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 0; padding-top: 32px; padding-bottom: 8px; }
    .footer-grid > div { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .footer-grid > div:last-child { border-bottom: none; }
    .site-footer h4 { font-size: .95rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .5rem; }
    .site-footer h4::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--gold); }

    .f-brand { text-align: center; padding-top: 0 !important; }
    .f-brand .brand { justify-content: center; }
    .f-brand .brand img { width: 52px; height: 60px; }
    .f-brand .brand-name { font-size: 1.05rem; text-align: left; }
    .f-brand p { margin: .9rem auto 0 !important; max-width: 300px; font-size: .8rem; line-height: 1.6; color: #aebfdc; }

    .footer-links { gap: 8px; }
    .footer-links a {
        background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px;
        padding: .55rem .75rem; font-size: .8rem; display: flex; align-items: center; justify-content: space-between;
    }
    .footer-links a::after { content: "\F285"; font-family: "bootstrap-icons"; font-size: .7rem; opacity: .5; }

    .footer-contact { gap: 10px; }
    .footer-contact span, .footer-contact a {
        background: rgba(255, 255, 255, .06); border-radius: 10px; padding: .7rem .8rem; align-items: center; font-size: .8rem; line-height: 1.45;
    }
    .footer-contact i {
        width: 32px; min-width: 32px; height: 32px; border-radius: 50%; background: rgba(245, 184, 46, .15);
        display: grid; place-items: center; font-size: .85rem;
    }
    .f-contact .social-row { justify-content: center; margin-top: 1.1rem; gap: .7rem; }
    .f-contact .social-row a { width: 40px; height: 40px; font-size: 1.05rem; }

    .f-news p { font-size: .8rem; margin-bottom: .7rem; }
    .newsletter input { padding: .8rem .9rem; }

    .footer-bottom .container { flex-direction: column; justify-content: center; text-align: center; gap: .5rem; padding: 18px 16px 20px; font-size: .72rem; }
    .footer-bottom nav { gap: .9rem; }
    .footer-bottom span:last-child { opacity: .75; }
    .contact-layout, .form-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
    .steps::before { display: none; }
    .page-banner { padding: 44px 0 38px; }
    .cta-band { padding: 22px; }

    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
        background: var(--navy-800); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav a, .bottom-nav button {
        display: flex; flex-direction: column; align-items: center; gap: 2px; color: #b9c8e2; font-size: .66rem;
        background: none; border: none; padding: 4px 0;
    }
    .bottom-nav i { font-size: 1.2rem; }
    .bottom-nav .active { color: #fff; }
    .bottom-nav .active i { color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CBSE Enclosed */
.disclosure-head { text-align: center; margin-bottom: 1.4rem; }
.disclosure-head h2 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .2rem; }
.disclosure-head p { margin: 0; color: var(--muted); }
.tbl.disclosure td:first-child, .tbl.disclosure th:first-child { width: 80px; text-align: center; }
.tbl.disclosure td:last-child, .tbl.disclosure th:last-child { width: 200px; text-align: center; }
.tbl.disclosure td:nth-child(2) { text-transform: uppercase; font-weight: 500; }
.doc-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--navy-600); font-weight: 600; text-decoration: underline; }
.doc-link:hover { color: var(--red); }
.doc-link.disabled { color: #9aa5b8; text-decoration: none; cursor: default; font-weight: 500; }
