/* =========================================================
   Vidyasagar Residential English School – Website styles
   Theme: crimson + golden yellow on white (see :root tokens)
   ========================================================= */
:root {
    /* Brand (names kept as "maroon" so every component follows the palette) */
    --maroon-900: #5a0714;
    --maroon-800: #86091f;
    --maroon-700: #a3122a;
    --maroon-600: #bf1d35;
    --maroon-500: #d23a4f;
    --gold: #f7b500;
    --gold-600: #dc9a00;
    --gold-soft: #ffe7a8;
    --ink: #1f2a56;          /* navy used for "RESIDENTIAL ENGLISH SCHOOL" */
    --cream: #fff8f0;
    --cream-2: #fcecd9;
    --red: #c8102e;

    /* Legacy names kept so older inline styles (var(--navy-800) etc.) follow the theme */
    --navy-900: var(--maroon-900);
    --navy-800: var(--maroon-800);
    --navy-700: var(--maroon-700);
    --navy-600: var(--maroon-600);

    --text: #2a2530;
    --muted: #6f6570;
    --line: #efe2d3;
    --bg: #ffffff;
    --bg-soft: var(--cream);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 24px rgba(90, 7, 20, .08);
    --shadow-lg: 0 16px 40px rgba(90, 7, 20, .14);
    --container: 1480px;
    --header-h: 48px;
    --brandbar-h: 124px;
    --ph: linear-gradient(135deg, #f6e9d8 0%, #ead3b4 100%);
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --display: "Cinzel", "Playfair Display", Georgia, serif;
    --script: "Great Vibes", "Brush Script MT", cursive;
}

*, *::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(--maroon-800); font-family: var(--serif); font-weight: 700; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
h1:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.bg-soft { background: var(--bg-soft); }
.text-gold { color: var(--gold); }
.muted { color: var(--muted); }
.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: 6px; border: 2px solid transparent;
    font-weight: 600; font-size: .9rem; 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(--maroon-900); box-shadow: 0 6px 16px rgba(247, 181, 0, .3); }
.btn-gold:hover { background: var(--gold-600); }
.btn-primary { background: var(--maroon-700); color: #fff; box-shadow: 0 6px 16px rgba(163, 18, 42, .22); }
.btn-primary:hover { background: var(--maroon-800); }
.btn-outline-light { border-color: rgba(255, 255, 255, .9); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--maroon-800); }
.btn-outline { border-color: var(--maroon-700); color: var(--maroon-800); background: #fff; }
.btn-outline:hover { background: var(--maroon-700); color: #fff; }
.btn-pill { border-radius: 30px; }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; }
.btn-xs { padding: .4rem .85rem; font-size: .75rem; border-radius: 5px; }
.btn-xs.btn-pill { border-radius: 30px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }

.link-arrow { color: var(--maroon-600); font-weight: 600; font-size: .86rem; display: inline-flex; gap: .35rem; align-items: center; }
.link-arrow:hover { color: var(--maroon-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(163, 18, 42, .25);
}
.photo > .ph-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }


/* ---------- Top bar (light) ---------- */
.topbar { background: #fff; color: #2b2330; font-size: .8rem; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 1.2rem; height: 36px; }
.topbar-info, .topbar-links, .topbar .socials { display: flex; align-items: center; white-space: nowrap; }
.topbar-info { gap: 1.4rem; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.topbar-info i { color: var(--maroon-700); font-size: .95rem; }
.topbar-info a:nth-child(2) i { color: var(--gold-600); }
.topbar-info .tb-mail i { color: #e08a00; }
.topbar-links { margin-left: auto; gap: .8rem; font-weight: 600; }
.topbar-links > a + a:not(.admin-link)::before { content: "|"; margin-right: .8rem; color: var(--maroon-700); font-weight: 400; }
.topbar a:hover { color: var(--maroon-700); }
.topbar .admin-link { background: #fdecee; color: var(--maroon-700); padding: 2px 9px; border-radius: 4px; }
.topbar .socials { gap: .45rem; }
.topbar .socials a { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .74rem; }
.topbar .socials a:hover { color: #fff; transform: translateY(-1px); }
.tb-search { border: none; background: none; font-size: 1rem; color: #2b2330; padding: 0 0 0 .3rem; }
.tb-search:hover { color: var(--maroon-700); }

/* ---------- Brand bar ---------- */
.brandbar { background: linear-gradient(90deg, #fff 0%, #fff 55%, #fff8ec 100%); position: relative; z-index: 105; }
.brandbar .container { display: flex; align-items: center; gap: 1.2rem; height: var(--brandbar-h); }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; min-width: 0; }
.brand img { width: 58px; height: 58px; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(90, 7, 20, .2)); }
.brand-name { white-space: nowrap; font-family: var(--display); font-weight: 800; color: var(--maroon-700); font-size: 1.35rem; line-height: 1; letter-spacing: .5px; }
.brand-sub { white-space: nowrap; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: .72rem; letter-spacing: .4px; margin-top: 3px; }
.brand-trust { white-space: nowrap; font-family: var(--script); color: var(--maroon-700); font-size: 1.05rem; line-height: 1.1; margin-top: 1px; padding-left: 2rem; }
.brand-addr { font-size: .78rem; color: var(--text); margin-top: 3px; display: flex; align-items: center; gap: .35rem; }
.brand-addr i { color: var(--gold-600); }
.brand-lg img { width: 96px; height: 96px; }
.brand-lg .brand-name { font-size: 2.6rem; }
.brand-lg .brand-sub { font-size: 1.15rem; }
.brand-lg .brand-addr { font-size: .98rem; }
.motto { margin-left: auto; color: var(--ink); position: relative; }
.motto span { display: block; font-family: var(--script); font-size: 1.85rem; line-height: 1.1; max-width: 290px; text-align: center; transform: rotate(-4deg); }
.motto::after { content: ""; position: absolute; left: 22%; right: 12%; bottom: -10px; height: 10px; border-bottom: 3px solid var(--gold); border-radius: 0 0 60% 60%; transform: rotate(-4deg); }
.apply-top { flex-shrink: 0; margin-left: 1.2rem; box-shadow: 0 6px 0 var(--gold-600), 0 10px 20px rgba(247, 181, 0, .3); border-radius: 6px; }
.apply-top:hover { transform: translateY(1px); box-shadow: 0 5px 0 var(--gold-600); }

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

/* ---------- Main menu (crimson, sticky, dropdowns) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: transparent; pointer-events: none; }
.site-header nav { pointer-events: auto; }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); opacity: 0; transition: opacity .2s; pointer-events: none; }
.site-header.is-stuck::before { opacity: 1; }
.site-header .container { position: relative; }
/* Bar sirf container ki width tak (full-page nahi) */
.site-header nav { background: linear-gradient(180deg, var(--maroon-700), var(--maroon-800)); border-radius: 0 0 10px 10px; box-shadow: 0 6px 16px rgba(90, 7, 20, .25); overflow: visible; }
.main-nav { display: flex; align-items: stretch; height: var(--header-h); list-style: none; margin: 0; padding: 0; }
/* Items poori bar mein barabar faile */
.main-nav > li { position: relative; display: flex; flex: 1 1 auto; }
.main-nav > li > a { flex: 1; justify-content: center; }
.main-nav > li:first-child > a { border-bottom-left-radius: 10px; }
.main-nav > li:last-child > a { border-bottom-right-radius: 10px; }
.main-nav > li > a {
    display: flex; align-items: center; gap: .3rem; padding: 0 .78rem; font-size: .86rem; font-weight: 500; color: #fff; white-space: nowrap;
    transition: background .2s, color .2s;
}
.main-nav > li > a .caret { font-size: .62rem; opacity: .85; transition: transform .2s; }
.main-nav > li:hover > a, .main-nav > li:focus-within > a { background: rgba(255, 255, 255, .1); }
.main-nav > li > a.active { background: var(--gold); color: var(--maroon-900); font-weight: 700; }
.main-nav > li.nav-hl > a { background: var(--gold); color: var(--maroon-900); font-weight: 700; }
.main-nav > li.nav-hl > a:hover { background: #ffc733; }
.main-nav > li:hover > a .caret { transform: rotate(180deg); }
.main-nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 36px rgba(40, 6, 12, .2); border-top: 3px solid var(--gold); z-index: 120;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.main-nav > li:last-child .sub, .main-nav > li:nth-last-child(2) .sub { left: auto; right: 0; }
.main-nav > li:hover > .sub, .main-nav > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { white-space: nowrap; display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 6px; font-size: .84rem; color: #2b2330; font-weight: 500; }
.main-nav .sub a i { color: var(--maroon-700); font-size: .8rem; }
.main-nav .sub a:hover { background: #fff5dc; color: var(--maroon-800); }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent;
    display: grid; place-items: center; font-size: 1.1rem; color: var(--maroon-700);
}
.icon-btn:hover { background: var(--cream-2); }
.menu-toggle { display: none; font-size: 1.9rem; margin-left: auto; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(40, 6, 12, .55); z-index: 190; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 90vw); background: #fff; z-index: 200;
    padding: 16px; display: flex; flex-direction: column; gap: .15rem; 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; gap: .5rem; margin-bottom: .6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.drawer-head .brand img { width: 44px; height: 44px; }
.drawer-head .brand-name { font-size: 1.05rem; }
.drawer-head .brand-sub { font-size: .55rem; }
.drawer-row { display: flex; align-items: center; }
.drawer a.nav-link { flex: 1; padding: .65rem .8rem; border-radius: 8px; font-weight: 500; display: flex; gap: .7rem; align-items: center; }
.drawer a.nav-link i { color: var(--maroon-600); }
.drawer a.nav-link.active { background: var(--maroon-700); color: #fff; }
.drawer a.nav-link.active i { color: var(--gold); }
.drawer-toggle { width: 38px; height: 38px; border: none; background: none; border-radius: 8px; color: var(--muted); }
.drawer-group.open .drawer-toggle { transform: rotate(180deg); color: var(--maroon-700); }
.drawer-sub { display: flex; flex-direction: column; margin: 0 0 .4rem 2.3rem; border-left: 2px solid var(--gold-soft); }
.drawer-sub a { padding: .42rem .8rem; font-size: .86rem; color: #3b3440; }
.drawer-sub a:hover { color: var(--maroon-700); }
.drawer .btn { margin-top: .8rem; }
.drawer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; font-size: .8rem; color: var(--maroon-700); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef6fd 0%, #fff 100%); }
.hero-photo {   /* photo sits inside the page width, aligned with the content below */
    position: absolute; z-index: 2; top: 26px; bottom: 34px;
    right: max(32px, calc((100% - var(--container)) / 2 + 32px));
    width: calc((min(100%, var(--container)) - 64px) * .56);
    background: var(--hero-img, none) center / cover no-repeat;
    border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(31, 42, 86, .18);
}
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.hero-people { position: absolute; left: 6%; bottom: 0; width: 55%; height: 82%; background: var(--hero-people, none) left bottom / contain no-repeat; z-index: 2; }
.hero .container { position: relative; z-index: 3; display: flex; align-items: center; min-height: 480px; padding-top: 30px; padding-bottom: 104px; }
.hero-content { max-width: 560px; }
.hero-badge { display: inline-block; padding: .3rem .9rem; border-radius: 30px; background: var(--cream-2); color: var(--maroon-700); font-size: .72rem; font-weight: 600; margin-bottom: .8rem; }
.eyebrow { display: flex; align-items: center; gap: .9rem; font-size: 1rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); }
.eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--gold); }
.hero h1 { margin: .35rem 0 .6rem; }
.hero .h-name { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: .95; color: var(--maroon-700); letter-spacing: 1px; white-space: nowrap; }
.hero .h-sub { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 2.3vw, 1.85rem); color: var(--ink); letter-spacing: .5px; margin-top: .3rem; white-space: nowrap; }
.hero .h-sub::after { content: ""; display: block; width: 70px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: .55rem; }
.values { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; font-size: 1.28rem; font-weight: 600; color: var(--maroon-700); margin: 0 0 .8rem; }
.values .sep { color: var(--maroon-700); font-weight: 400; }
.hero p.lead { font-size: 1rem; color: #3b3440; max-width: 480px; margin-bottom: 1.2rem; }
.hero-motto { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-actions .btn-gold { box-shadow: 0 5px 0 var(--gold-600), 0 10px 18px rgba(247, 181, 0, .3); }

/* ---------- Six feature cards ---------- */
.features { position: relative; z-index: 6; margin-top: -78px; }
.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(90, 7, 20, .12); border: 1px solid #f3e8dc; }
.feature-card { text-align: center; padding: 18px 12px 16px; position: relative; transition: transform .2s; }
.feature-card + .feature-card::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 { font-family: var(--serif); font-size: 1.02rem; margin: .65rem 0 .2rem; color: var(--maroon-800); }
.feature-card p { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.4; }
.hf-ic {
    width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 1.55rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .08), inset 0 0 0 4px rgba(255, 255, 255, .8);
}
.tone-ring-red { color: var(--maroon-700); background: #fde3e6; }
.tone-ring-orange { color: #ef7a12; background: #fff0de; }
.tone-ring-amber { color: #f29a0b; background: #fff4df; }
.tone-ring-gold { color: #e0a800; background: #fff8dc; }
.tone-ring-blue { color: #2f6fe0; background: #e5eeff; }
.tone-ring-green { color: #20a050; background: #e2f6e9; }
.tone-ring-purple { color: #7b4ad6; background: #efe6ff; }
.tone-ring-maroon { color: var(--maroon-700); background: #fde3e6; }

/* ---------- Highlight strip ---------- */
.strip-wrap { padding-top: 18px; }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff8ec; border: 1px solid #f6e3c4; border-radius: 12px; padding: 12px 6px; }
.strip-item { display: flex; align-items: center; gap: .7rem; padding: 4px 14px; }
.strip-item + .strip-item { border-left: 1px solid #efd9b6; }
.strip-item i { font-size: 1.85rem; color: var(--maroon-700); flex-shrink: 0; }
.strip-item:nth-child(2) i, .strip-item:nth-child(5) i { color: var(--gold-600); }
.strip-item strong { display: block; font-size: 1.02rem; color: #231c24; line-height: 1.15; }
.strip-item span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }

/* ---------- Careers row (home) ---------- */
.careers-band { padding-top: 26px; }
.careers-row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.recruit-card {
    position: relative; display: grid; grid-template-columns: 1.35fr 1fr; border-radius: 12px; overflow: hidden; min-height: 200px;
    background: linear-gradient(120deg, #fff 0%, #fff 45%, #fdeef0 100%); border: 1px solid #f3e0e2; box-shadow: 0 6px 18px rgba(90, 7, 20, .06);
}
.recruit-body { padding: 18px 0 18px 18px; position: relative; z-index: 2; }
.recruit-body .title { font-size: 1.5rem; margin-bottom: .6rem; white-space: nowrap; }
.recruit-join div { white-space: nowrap; }
.recruit-join { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.recruit-join > i { font-size: 2rem; color: #f2a60c; }
.recruit-join b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.recruit-join span { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.recruit-body p { font-size: .8rem; color: #3b3440; margin-bottom: .8rem; }
.recruit-img { background: var(--recruit-img, none) right bottom / contain no-repeat; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 6px 18px rgba(90, 7, 20, .06); display: flex; flex-direction: column; gap: .7rem; }
.c-card p { font-size: .82rem; color: #3b3440; margin: 0; }
.c-card .btn { align-self: flex-start; margin-top: auto; }
.c-head { display: flex; align-items: center; gap: .6rem; }
.c-head h3 { font-family: "Poppins", sans-serif; font-size: 1.02rem; font-weight: 700; margin: 0; color: #1f2340; }
.c-ic { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.c-ic.blue { background: #2f6fe0; } .c-ic.red { background: var(--maroon-700); } .c-ic.maroon { background: var(--ink); }
.upload-card { background: linear-gradient(160deg, #fff, #f2f7ff); }
.upload-card .btn-outline { border-color: #2f6fe0; color: #2f6fe0; }
.upload-card .btn-outline:hover { background: #2f6fe0; color: #fff; }
.openings-card { background: linear-gradient(160deg, #fff, #fff1f2); }
.openings-card h3 { color: var(--maroon-700); }
.open-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .8rem; }
.open-list a { display: flex; gap: .45rem; align-items: center; color: #2b2330; }
.open-list a::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .6rem; color: var(--maroon-700); }
.open-list a:hover { color: var(--maroon-700); }
.hostel-card .photo { aspect-ratio: 16/8; border-radius: 8px; }
.hostel-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .8rem; font-weight: 600; color: #2b2330; }
.hostel-points li { display: flex; gap: .55rem; align-items: center; line-height: 1.2; }
.hostel-points i { font-size: 1.2rem; color: var(--ink); }
.hostel-points li + li i { color: #20a050; }
.hostel-points small { font-weight: 500; color: var(--muted); }
.c-row { display: none; }

/* ---------- Careers page ---------- */
.job-list { display: grid; gap: 12px; }
.job-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.job-body { flex: 1; min-width: 0; }
.job-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.job-title h4 { margin: 0; font-size: 1.05rem; }
.job-tag { font-size: .68rem; font-weight: 600; padding: .15rem .55rem; border-radius: 20px; background: #f3eee8; color: #6b5c4c; }
.job-tag.t { background: #fdecee; color: var(--maroon-700); }
.job-tag.n { background: #fff3d6; color: #a86f00; }
.job-body p { font-size: .84rem; margin: .3rem 0 .2rem; }
.job-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .76rem; color: var(--muted); }
.job-meta li { display: flex; gap: .35rem; align-items: center; }
.job-meta i { color: var(--maroon-600); }
.file-drop { position: relative; display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border: 2px dashed #e0cfb2; border-radius: 8px; background: var(--cream); color: var(--muted); font-size: .88rem; }
.file-drop i { font-size: 1.5rem; color: var(--maroon-700); }
.file-drop.has-file { border-style: solid; border-color: #20a050; background: #eefaf2; color: #1c6b39; }
.file-drop.has-file i { color: #20a050; }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop:hover { border-color: var(--maroon-600); }
.form-note { font-size: .78rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.process-step { position: relative; padding: 20px 18px 16px; }
.process-step .num { position: absolute; top: 12px; right: 14px; font-family: var(--serif); font-size: 1.8rem; font-weight: 800; color: #f3e1c3; }
.process-step .chip-icon { margin-bottom: .7rem; }
.process-step h4 { font-size: 1rem; margin-bottom: .25rem; }
.process-step p { font-size: .83rem; margin: 0; }

/* ---------- Titles ---------- */
.title { font-family: var(--serif); font-size: 1.8rem; color: var(--maroon-800); margin: 0 0 .7rem; }
.title.with-bar { display: flex; align-items: center; gap: .7rem; margin: 0; }
.title.with-bar::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--gold); }
.bar { display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--gold); margin-bottom: .55rem; }
.title-center {
    display: flex; align-items: center; justify-content: center; gap: 1.2rem; text-align: center;
    font-size: 1.8rem; margin: 0 0 1.5rem; color: var(--maroon-900);
}
.title-center::before, .title-center::after { content: ""; flex: 0 1 140px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.title-center::after { background: linear-gradient(90deg, var(--gold), transparent); }

.chip-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.tone-maroon { background: #fdecee; color: var(--maroon-700); }
.tone-gold { background: #fff5d6; color: #b98100; }
.tone-blue { background: #e7f0ff; color: #2266d6; }
.tone-orange { background: #fff0e0; color: #e36d0c; }
.tone-purple { background: #f1e8ff; color: #7a45d6; }
.tone-green { background: #e3f5ea; color: #1f8f4e; }
.tone-red { background: #fde6e8; color: var(--red); }
.tone-yellow { background: #fff5d6; color: #c68d00; }
.tone-pink { background: #ffe6f1; color: #d83a7c; }
.tone-indigo { background: #e8eaff; color: #3f4fd0; }
.tone-amber { background: #fff4df; color: #e08a00; }


/* ---------- About / tour / principal ---------- */
.about-band { padding-top: 34px; }
.about-home { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 26px; align-items: center; }
.about-text .title { font-size: 2rem; }
.about-text p { font-size: .92rem; color: #3b3440; }
.video-thumb { position: relative; border: none; padding: 0; background: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-thumb .photo { aspect-ratio: 16/8.4; }
.video-thumb:hover .ph-img { transform: scale(1.04); }
.tour {
    position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: .6rem; text-align: left;
    background: #fff; border-radius: 30px; padding: 6px 16px 6px 6px; font-size: .78rem; font-weight: 600; color: #231c24; line-height: 1.2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.tour small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.tour .play { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--maroon-800); display: grid; place-items: center; font-size: 1.25rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(247, 181, 0, .55); } 50% { box-shadow: 0 0 0 10px rgba(247, 181, 0, 0); } }
.principal-home { display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: stretch; }
.principal-home .photo { border-radius: var(--radius-sm); min-height: 200px; box-shadow: var(--shadow); }
.principal-home h3 { font-size: 1.3rem; color: var(--maroon-700); }
.principal-home p { font-size: .82rem; color: #3b3440; margin-bottom: .8rem; }
.quote-inline { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--gold); background: var(--cream); font-family: var(--serif); font-size: 1.1rem; color: var(--maroon-700); border-radius: 0 8px 8px 0; }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; margin: 0; }
.section-head .eyebrow { font-size: .75rem; letter-spacing: 1.5px; }
.section-head .eyebrow::after { display: none; }

/* ---------- Facilities ---------- */
.facility-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.facility-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 4px 12px rgba(90, 7, 20, .05); transition: transform .2s, box-shadow .2s; }
.facility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.facility-card .photo { aspect-ratio: 16/10; }
.facility-card:hover .ph-img { transform: scale(1.06); }
.facility-card .label { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; padding: .6rem .6rem; color: #231c24; line-height: 1.25; }
.facility-card .label i { width: 26px; min-width: 26px; height: 26px; border-radius: 6px; color: #fff; display: grid; place-items: center; font-size: .8rem; background: var(--maroon-700); }
.fc-0 { background: #2f80ed !important; } .fc-1 { background: #f2994a !important; } .fc-2 { background: #eb5783 !important; }
.fc-3 { background: #e03a3a !important; } .fc-4 { background: #9b6bdb !important; } .fc-5 { background: #27ae60 !important; } .fc-6 { background: #d6336c !important; }

/* ---------- Residential / Academics panels ---------- */
.panels { padding: 6px 0 10px; }
.panels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel {
    display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    color: #fff; border-radius: var(--radius); overflow: hidden; min-height: 200px; transition: transform .2s, box-shadow .2s;
}
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.panel-body { padding: 22px 22px 20px; }
.panel h3 { color: #fff; font-size: 1.35rem; margin-bottom: .9rem; }
.panel .panel-photo { min-height: 200px; }
.panel .photo { background: linear-gradient(135deg, #b8243b, #d9566a); }
.panel .photo > .ph-icon { color: rgba(255, 255, 255, .4); }
.panel:hover .ph-img { transform: scale(1.05); }
ul.gold-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .86rem; color: #fde8ea; }
ul.gold-check li { display: flex; gap: .55rem; align-items: center; }
ul.gold-check li::before {
    content: "\F26E"; font-family: "bootstrap-icons"; width: 18px; height: 18px; min-width: 18px; border-radius: 50%;
    background: var(--gold); color: var(--maroon-800); font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}

/* ---------- News + gallery ---------- */
.news-gallery { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: start; }
.notice { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: none; }
.notice b { display: block; font-size: .86rem; color: #231c24; line-height: 1.3; }
.notice small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: .74rem; color: var(--muted); }
.notice:hover b { color: var(--maroon-700); }
.gallery-home .carousel-track { grid-auto-columns: calc((100% - 2 * 12px) / 3); }

.date-box {
    width: 48px; min-width: 48px; border-radius: 8px; background: var(--maroon-700); color: #fff;
    text-align: center; padding: 7px 0 6px; line-height: 1;
}
.date-box b { display: block; font-size: 1.15rem; font-weight: 700; }
.date-box small { font-size: .66rem; font-weight: 600; color: var(--gold-soft); text-transform: uppercase; }

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

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

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

.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); background: #fff; }
.event-item h4 { font-size: .95rem; margin: 0 0 2px; font-family: "Poppins", sans-serif; font-weight: 600; }
.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(--maroon-600); 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; }

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

/* Gallery carousel */
.carousel { position: relative; min-width: 0; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 12px) / 5); gap: 12px; 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-track .photo:hover .ph-img { transform: scale(1.05); }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
    border: none; background: var(--maroon-700); box-shadow: var(--shadow); color: #fff; z-index: 2; display: grid; place-items: center;
}
.carousel-btn:hover { background: var(--maroon-900); }
.carousel-btn.prev { left: -16px; }
.carousel-btn.next { right: -16px; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
    background: radial-gradient(ellipse at 80% 50%, rgba(244, 182, 47, .14), transparent 55%), linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
}
.cta-band.full { border-radius: 0; margin-top: 10px; }
.cta-inner { position: relative; display: flex; align-items: center; gap: 1.2rem; padding: 18px 26px; min-height: 96px; }
.cta-band.full .cta-inner { padding-top: 14px; padding-bottom: 14px; }
.cta-logo { width: 58px; height: 58px; flex-shrink: 0; }
.cta-text { flex: 1; min-width: 0; }
.cta-band h3 { color: #fff; font-size: 1.35rem; margin: 0 0 .15rem; font-weight: 600; }
.cta-band p { margin: 0; color: #f3dcd6; font-size: .86rem; }
.cta-band .btn { position: relative; z-index: 2; }
.cta-img { align-self: stretch; width: 240px; flex-shrink: 0; margin: -14px -26px -14px 0; background-size: contain; background-position: right bottom; background-repeat: no-repeat; }
.cta-band:not(.full) .cta-img { margin: -18px -26px -18px 0; }

/* ---------- Footer ---------- */
/* Footer bhi container ki width tak (full-page nahi) – rounded card */
.site-footer {
    width: min(calc(100% - 64px), calc(var(--container) - 64px)); margin: 10px auto 24px;
    background: var(--cream); color: var(--text); border: 1px solid var(--line); border-top: 3px solid var(--gold);
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(90, 7, 20, .08);
}
.site-footer .container { max-width: none; padding-left: 28px; padding-right: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1.35fr 1.15fr 1fr; gap: 28px; padding-top: 34px; padding-bottom: 28px; }
.footer-grid > div + div { border-left: 1px solid var(--line); padding-left: 26px; }
.site-footer h4 { font-family: "Poppins", sans-serif; color: var(--maroon-800); font-size: .92rem; font-weight: 600; margin-bottom: .8rem; }
.f-brand .brand img { width: 74px; height: 74px; }
.f-brand .brand-name { font-size: 1.55rem; }
.f-brand .brand-sub { font-size: .62rem; }
.f-brand .brand-addr { font-size: .74rem; }
.f-brand .brand-trust { font-size: .9rem; padding-left: .4rem; }
.f-affil { font-size: .76rem; color: var(--muted); margin: .9rem 0 0; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; font-size: .8rem; }
.footer-links a { white-space: nowrap; display: flex; align-items: center; gap: .4rem; color: #4a4250; }
.footer-links a::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-600); flex-shrink: 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--maroon-600); }
.footer-contact { display: flex; flex-direction: column; gap: .55rem; font-size: .8rem; color: #4a4250; }
.footer-contact span, .footer-contact a { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--maroon-600); }
.social-row { display: flex; gap: .5rem; }
.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: #111; }
.f-news-label { font-size: .76rem; color: var(--muted); margin: 1rem 0 .45rem; }
.newsletter { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.newsletter input { flex: 1; border: none; padding: .6rem .8rem; font-family: inherit; font-size: .8rem; min-width: 0; background: transparent; }
.newsletter input:focus { outline: none; }
.newsletter button { border: none; background: var(--maroon-700); color: var(--gold); padding: 0 .9rem; font-size: 1rem; }
.newsletter-msg { font-size: .76rem; margin-top: .45rem; color: var(--maroon-600); }
.footer-bottom { background: var(--maroon-800); color: #f3dcd6; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 12px; padding-bottom: 12px; font-size: .76rem; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 1rem; }
.footer-bottom a:hover { color: var(--gold); }
.f-values i { color: var(--gold); font-style: normal; margin: 0 .35rem; }

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

/* ---------- Inner pages ---------- */
.page-banner {
    position: relative; color: #fff; padding: 64px 0 56px;
    background: linear-gradient(90deg, rgba(40, 6, 12, .92) 0%, rgba(94, 12, 26, .78) 45%, rgba(94, 12, 26, .3) 100%),
                var(--banner-img, none) center/cover no-repeat,
                linear-gradient(135deg, var(--maroon-800) 0%, var(--maroon-600) 60%, #c2863a 100%);
}
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.breadcrumb { display: flex; gap: .5rem; font-size: .85rem; color: #f3dcd6; align-items: center; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .7rem; color: var(--gold); }

.page-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 16px); padding: 8px; border-top: 3px solid var(--maroon-700); }
.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: 6px;
    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(--cream); color: var(--maroon-600); }
.side-nav button.active { background: var(--maroon-700); color: #fff; }
.side-nav button.active i { color: var(--gold); opacity: 1; }
.side-nav button i { font-size: .75rem; opacity: .6; }

.content h2 { font-size: 1.7rem; }
.content h3 { font-size: 1.2rem; margin-top: 1.4rem; }
.content h4 { font-family: "Poppins", sans-serif; font-weight: 600; }
.content p, .content li { color: #4a4250; }
.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: var(--gold-600); font-weight: 700; }

.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.4rem; color: var(--maroon-800); font-family: var(--serif); }
.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(--maroon-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 #dcc59b; 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(--maroon-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, #d6b98a 0 8px, transparent 8px 14px); }
.step { text-align: center; position: relative; }
.step .num {
    width: 46px; height: 46px; border-radius: 50%; background: var(--maroon-700); color: var(--gold); font-weight: 700;
    display: grid; place-items: center; margin: 0 auto .6rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--maroon-700);
}
.step b { display: block; font-size: .88rem; color: var(--maroon-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; background: #fff; }
.tbl th { background: var(--maroon-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(--cream); }

/* 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(--maroon-800); }
.input, .field input, .field select, .field textarea {
    width: 100%; padding: .72rem .9rem; border: 1px solid #e0cfb2; border-radius: 6px; 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(--maroon-600); box-shadow: 0 0 0 3px rgba(138, 26, 44, .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: #e5f2e3; color: #1f6a2b; }
.alert-error { background: #fde2e2; color: #a3141f; }

.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(--maroon-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(63, 8, 17, .88));
}
.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(30, 6, 10, .88); 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(--maroon-800); color: #f3dcd6; 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; }

/* 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(--maroon-600); font-weight: 600; text-decoration: underline; }
.doc-link:hover { color: var(--red); }
.doc-link.disabled { color: #a99d92; text-decoration: none; cursor: default; font-weight: 500; }



/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
    .main-nav > li > a { padding: 0 .55rem; font-size: .8rem; }
    .brand-lg .brand-name { font-size: 2.2rem; }
    .brand-lg .brand-sub { font-size: .98rem; }
    .brand-lg img { width: 84px; height: 84px; }
    .motto span { font-size: 1.55rem; max-width: 240px; }
    .topbar-info .tb-mail { display: none; }
}

@media (max-width: 1180px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-card:nth-child(4)::before { display: none; }
    .strip { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
    .strip-item:nth-child(4) { border-left: none; }
    .careers-row { grid-template-columns: 1fr 1fr; }
    .facility-grid { grid-template-columns: repeat(4, 1fr); }
    .about-home { grid-template-columns: 1fr 1fr; }
    .principal-home { grid-column: 1 / -1; grid-template-columns: 150px 1fr; }
}

@media (max-width: 1100px) {
    /* menu moves into the drawer */
    .site-header { display: none; }
    .menu-toggle { display: grid; }
    .apply-top, .motto { display: none; }
    :root { --brandbar-h: 84px; --header-h: 84px; }
    .brandbar { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 12px rgba(90, 7, 20, .1); }
    .topbar-links { display: none; }
    .topbar .socials { margin-left: auto; }
    .brand-lg img { width: 64px; height: 64px; }
    .brand-lg .brand-name { font-size: 1.75rem; }
    .brand-lg .brand-sub { font-size: .76rem; }
    .brand-lg .brand-trust { font-size: .9rem; }
    .brand-lg .brand-addr { font-size: .74rem; }
}

@media (max-width: 1024px) {
    /* hero: photo on top, then the text (as in the phone design) */
    .hero { background: #fff; }
    .hero::before { display: none; }
    .hero-photo { position: relative; top: auto; bottom: auto; right: auto; width: 100%; aspect-ratio: 16/9.5; background-position: center; border-radius: 0; box-shadow: none; }
    .hero-people { left: 50%; transform: translateX(-50%); width: 80%; height: 88%; background-position: center bottom; }
    .hero .container { min-height: 0; padding-top: 20px; padding-bottom: 90px; }
    .hero-content { max-width: none; text-align: center; }
    .eyebrow, .hero h1, .values, .hero p.lead { display: none; }
    .hero-motto { display: block; font-family: var(--script); font-size: 2rem; color: var(--ink); line-height: 1.15; margin: 0 0 1rem; }
    .hero-actions { justify-content: center; }

    .panels-grid { grid-template-columns: 1fr; }
    .news-gallery { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr 1fr; }
    .contact-layout .map-col { grid-column: 1 / -1; }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div + div { border-left: none; padding-left: 0; }
    .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .two-col, .intro { grid-template-columns: 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); }
    .cta-img { display: none; }
}

@media (max-width: 680px) {
    body { font-size: 14px; padding-bottom: 62px; }
    .section { padding: 36px 0; }
    .section-sm { padding: 24px 0; }
    .container { padding: 0 14px; }

    .topbar { font-size: .7rem; }
    .topbar .container { height: auto; padding-top: 6px; padding-bottom: 6px; }
    .topbar-info { flex-direction: column; align-items: flex-start; gap: .15rem; }
    .topbar .socials a { width: 22px; height: 22px; }
    .tb-search { display: none; }
    :root { --brandbar-h: 72px; --header-h: 72px; }
    .brandbar .container { gap: .5rem; }
    .brand-lg { gap: .55rem; }
    .brand-lg img { width: 52px; height: 52px; }
    .brand-lg .brand-name { font-size: 1.3rem; }
    .brand-lg .brand-sub { font-size: .56rem; letter-spacing: .2px; }
    .brand-lg .brand-trust { font-size: .74rem; padding-left: 1.4rem; }
    .brand-lg .brand-addr { display: none; }

    .hero-photo { aspect-ratio: 4/3.3; }
    .hero .container { padding-top: 14px; padding-bottom: 78px; }
    .hero-motto { font-size: 1.7rem; }
    .hero-actions { gap: .5rem; flex-wrap: nowrap; }
    .hero-actions .btn { flex: 1; padding: .6rem .4rem; font-size: .76rem; }
    .hero-actions .btn .bi-mortarboard-fill { display: none; }

    .features { margin-top: -66px; }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; border: none; box-shadow: none; }
    .feature-card { background: #fff; border: 1px solid #f3e8dc; border-radius: 10px; padding: 12px 4px 10px; box-shadow: 0 6px 16px rgba(90, 7, 20, .08); }
    .feature-card + .feature-card::before { display: none; }
    .feature-card p { display: none; }
    .feature-card h3 { font-family: "Poppins", sans-serif; font-size: .7rem; font-weight: 600; margin-top: .45rem; }
    .hf-ic { width: 42px; height: 42px; font-size: 1.15rem; }

    .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 4px; }
    .strip::-webkit-scrollbar { display: none; }
    .strip-item { flex: 0 0 50%; scroll-snap-align: start; padding: 2px 10px; }
    .strip-item:nth-child(4) { border-left: 1px solid #efd9b6; }
    .strip-item i { font-size: 1.45rem; }
    .strip-item strong { font-size: .9rem; }

    .careers-row { grid-template-columns: 1fr; gap: 10px; }
    .upload-card, .openings-card, .hostel-card { display: none; }
    .recruit-card { grid-template-columns: 1.4fr 1fr; min-height: 170px; }
    .recruit-body { padding: 14px 0 14px 14px; }
    .recruit-body .title { font-size: 1.15rem; white-space: normal; }
    .recruit-join div { white-space: normal; }
    .recruit-body .title.with-bar::before { display: none; }
    .recruit-join > i { font-size: 1.5rem; }
    .recruit-join b, .recruit-join span { font-size: .92rem; }
    .recruit-body p { font-size: .7rem; }
    .c-row {
        display: flex; align-items: center; gap: .7rem; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
        font-weight: 700; color: var(--ink); box-shadow: 0 4px 12px rgba(90, 7, 20, .05);
    }
    .c-row i:first-child { font-size: 1.2rem; color: var(--maroon-700); }
    .c-row i:last-child { margin-left: auto; font-size: .8rem; color: var(--muted); }

    .title, .about-text .title { font-size: 1.4rem; }
    .section-head h2 { font-size: 1.3rem; }
    .about-home { grid-template-columns: 1fr; gap: 20px; }
    .about-text { order: 2; }
    .video-thumb { order: 1; }
    .principal-home { order: 3; grid-template-columns: 110px 1fr; }
    .principal-home .photo { min-height: 150px; }

    .panel { grid-template-columns: 1.2fr 1fr; min-height: 170px; }
    .panel-rev { grid-template-columns: 1fr 1.2fr; }
    .panel .panel-photo { min-height: 170px; }
    .panel-body { padding: 16px; }
    .panel h3 { font-size: 1.1rem; }
    ul.gold-check { font-size: .76rem; gap: .35rem; }

    .facility-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
    .facility-grid::-webkit-scrollbar { display: none; }
    .facility-card { scroll-snap-align: start; }
    .facility-card .label { font-size: .68rem; padding: .45rem; gap: .35rem; }
    .facility-card .label i { width: 20px; min-width: 20px; height: 20px; font-size: .65rem; }

    .carousel-track, .gallery-home .carousel-track { grid-auto-columns: 62%; }
    .carousel-btn { display: none; }

    .cta-inner { flex-direction: column; text-align: center; padding: 26px 20px; gap: .8rem; }
    .cta-logo { display: none; }
    .cta-band h3 { font-size: 1.2rem; }

    .principal { grid-template-columns: 1fr; }
    .principal .photo { min-height: 220px; }
    .news-grid, .grid-2, .grid-3, .process { grid-template-columns: 1fr; }
    .gallery-grid, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .job-card { flex-wrap: wrap; }
    .job-card .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
    .f-brand .brand img { width: 58px; height: 58px; }
    .f-brand .brand-name { font-size: 1.3rem; }
    .site-footer { width: calc(100% - 28px); margin-bottom: 14px; }
    .site-footer .container { padding-left: 16px; padding-right: 16px; }
    .footer-bottom .container { flex-direction: column; justify-content: center; text-align: center; gap: .4rem; padding: 14px 16px; font-size: .72rem; }
    .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: 40px 0 36px; }

    .bottom-nav {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
        background: #fff; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(90, 7, 20, .08);
    }
    .bottom-nav a, .bottom-nav button {
        display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .64rem;
        background: none; border: none; padding: 4px 0;
    }
    .bottom-nav i { font-size: 1.15rem; }
    .bottom-nav .active { color: var(--maroon-700); font-weight: 600; }
    .bottom-nav .active i { color: var(--maroon-700); }
}

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