/* =========================================================================
   PMIT — Sidebar Shell Theme (v3)
   Left sidebar navigation + light content canvas, matching the approved
   reference UI. Loaded globally (see includes/header.php) so every page
   inherits the same chrome automatically.
   ========================================================================= */

:root {
    --sidebar-w: 264px;
    --topbar-h: 69px;
    --pmit-maroon-dark: #2A0A0E;
    --pmit-maroon-black: #0C0303;
}

/* ---- Dashboard nested layout (student/faculty/parent/admin) — the old
   .dash grid assumed a fixed full-width top nav (--nav-height). Our new
   shell already handles the outer sidebar/topbar, so re-anchor the
   dashboard's own inner sidebar to the new topbar height instead. ------- */
.dash { min-height: calc(100vh - var(--topbar-h)); }
.dash__sidebar { top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); }
.dash__main { min-height: calc(100vh - var(--topbar-h)); }


/* ---- Icon baseline fix (global) — inline <svg> defaults to inline-block
   with text baseline alignment, which is the #1 cause of icons looking
   "off" next to labels. Force block + flex participation everywhere. ---- */
.sidebar svg, .topbar svg, .hero-v3 svg, .float-card svg, .impact-band svg,
.campuslife-caps svg, .schools-grid-v3 svg, .news-list-v3 svg,
.sidebar__apply svg, .partners-band__nav svg, .footer-social-v3 svg {
    display: block; flex-shrink: 0;
}

/* ---- Shell skeleton ---------------------------------------------------- */
.shell { display: flex; align-items: flex-start; min-height: 100vh; background: var(--pmit-white); max-width: 100vw; }
.shell__main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; position: relative; }
main.shell__content { flex: 1; }

/* ---- Sidebar ------------------------------------------------------------ */
.sidebar {
    width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh;
    overflow-y: auto; z-index: 50; color: #fff; padding: 26px 18px 20px;
    background: linear-gradient(190deg, var(--pmit-maroon-dark) 0%, #17060A 55%, var(--pmit-maroon-black) 100%);
    display: flex; flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.sidebar__logo { display: block; padding: 4px 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.sidebar__logo-mark { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; color: #fff; line-height: 1; }
.sidebar__logo-sub { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 8px; line-height: 1.55; max-width: 165px; }

.sidebar__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar__link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px;
    color: rgba(255,255,255,.72); font-size: 14px; font-weight: 500; position: relative; transition: background .15s, color .15s;
}
/* Fixed-size icon slot: every icon sits centred in the same 20x20 box, so
   labels all start at the exact same x-position regardless of how much
   visual "ink" each individual icon's path uses. */
.sidebar__icon { width: 20px; height: 20px; flex: none; display: flex; align-items: center; justify-content: center; }
.sidebar__link svg { width: 18px; height: 18px; flex: none; opacity: .8; display: block; }
.sidebar__label { line-height: 1.3; }
.sidebar__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar__link.is-active { background: var(--pmit-red); color: #fff; box-shadow: 0 6px 16px rgba(179,27,27,.35); }
.sidebar__link.is-active svg { opacity: 1; }

.sidebar__apply {
    margin-top: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px; padding: 13px 15px; display: flex; align-items: center; gap: 11px; color: #fff;
}
.sidebar__apply svg { width: 20px; height: 20px; color: var(--pmit-red-bright); flex: none; }
.sidebar__apply strong { display: block; font-size: 13px; font-weight: 600; }
.sidebar__apply span { display: block; font-size: 10.5px; color: rgba(255,255,255,.55); }

.sidebar__toggle { display: none; }

/* ---- Top utility bar ---------------------------------------------------- */
.topbar {
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 16px;
    padding: 0 40px; height: var(--topbar-h); background: transparent; border-bottom: 1px solid transparent;
    position: absolute; top: 0; left: 0; right: 0; z-index: 40; color: #fff;
}
/* Solid fallback for logged-in dashboards, which don't open on a dark hero */
.topbar--solid {
    position: sticky; background: #fff; border-bottom: 1px solid var(--pmit-grey-mid); color: var(--pmit-charcoal-soft);
}
.topbar--solid .topbar__lang-pill { color: var(--pmit-charcoal-soft); border-left-color: var(--pmit-grey-mid); }
.topbar--solid .topbar__lang-pill.is-active { color: var(--pmit-red); }
.topbar--solid .topbar__icon-btn { border-color: var(--pmit-grey-mid); background: #fff; color: var(--pmit-charcoal-soft); }
.topbar--solid .topbar__account { color: var(--pmit-charcoal); }

.topbar__langs { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; margin-right: 4px; }
.topbar__lang-pill {
    display: flex; align-items: center; height: 34px; padding: 0 11px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
    color: rgba(255,255,255,.7); border-left: 1px solid rgba(255,255,255,.22); line-height: 1; white-space: nowrap;
}
.topbar__langs .topbar__lang-pill:first-child { border-left: none; padding-left: 2px; }
.topbar__lang-pill:hover { color: #fff; }
.topbar__lang-pill.is-active { color: #fff; font-weight: 700; text-transform: uppercase; font-size: 12px; }

.topbar__icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center; color: #fff; flex: none; padding: 0;
}
.topbar__icon-btn svg { width: 17px; height: 17px; }
.topbar__enquiry {
    display: flex; align-items: center; gap: 8px; background: var(--pmit-red); color: #fff; padding: 0 20px; height: 40px;
    border-radius: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; flex: none;
}
.topbar__enquiry svg { width: 15px; height: 15px; }
.topbar__enquiry:hover { background: var(--pmit-red-deep); }
.topbar__account { font-size: 13px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__account .badge--dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pmit-emerald); flex: none; }

/* Give the overlaying topbar room at the top of every hero so it never
   visually collides with the headline / breadcrumb underneath it. */
.page-hero { padding-top: calc(var(--topbar-h) + 34px); }

/* ---- Hero v3 -------------------------------------------------------------- */
.hero-v3 { position: relative; min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.hero-v3__bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: 72% center;
}
.hero-v3__scrim {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(8,3,3,.92) 0%, rgba(8,3,3,.62) 42%, rgba(8,3,3,.12) 74%),
                linear-gradient(0deg, rgba(0,0,0,.4) 0%, transparent 45%);
}
.hero-v3__inner { position: relative; z-index: 2; padding: calc(var(--topbar-h) + 20px) 44px 0; max-width: 620px; }
.hero-v3__eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); font-weight: 600; line-height: 1.7; margin-bottom: 18px; }
.hero-v3 h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 18px; }
.hero-v3 h1 .accent { color: var(--pmit-red-bright); }
.hero-v3__desc { color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 26px; font-size: 1rem; }
.hero-v3__actions { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; position: relative; z-index: 3; }
.hero-v3__actions .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-v3__actions .btn--ghost:hover { background: rgba(255,255,255,.1); }

.hero-v3__features { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.16); padding-bottom: 10px; }
.hero-v3__feature { display: flex; align-items: center; gap: 11px; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.12); }
.hero-v3__feature:last-child { border-right: none; }
.hero-v3__feature svg { width: 24px; height: 24px; color: var(--pmit-red-bright); flex: none; }
.hero-v3__feature strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.hero-v3__feature span { display: block; font-size: 11px; color: rgba(255,255,255,.58); }

.hero-v3__dots { position: absolute; right: 30px; top: 42%; display: flex; flex-direction: column; gap: 15px; z-index: 2; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.45); }
.hero-v3__dots span { transition: color .2s; }
.hero-v3__dots span.is-active { color: var(--pmit-red-bright); font-weight: 700; }

@media (max-width: 900px) {
    .hero-v3 { min-height: 620px; }
    .hero-v3__scrim {
        background: linear-gradient(0deg, rgba(8,3,3,.94) 0%, rgba(8,3,3,.58) 55%, rgba(8,3,3,.32) 100%);
    }
    .hero-v3__features { grid-template-columns: repeat(2,1fr); }
    .hero-v3__dots { display: none; }
}

/* ---- Floating quick-links card ------------------------------------------- */
.float-card { background: #fff; border-radius: 18px; box-shadow: 0 26px 60px rgba(10,4,4,.16); margin: 0 40px; margin-top: -26px; position: relative; z-index: 6; display: flex; padding: 6px; flex-wrap: wrap; }
.float-card__item { flex: 1; min-width: 190px; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-right: 1px solid var(--pmit-grey-mid); }
.float-card__item:last-child { border-right: none; }
.float-card__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--pmit-red-mist); display: flex; align-items: center; justify-content: center; color: var(--pmit-red); flex: none; }
.float-card__icon svg { width: 20px; height: 20px; stroke: var(--pmit-red); }
.float-card__item strong { display: block; font-size: 13.5px; font-weight: 600; }
.float-card__item span { display: block; font-size: 11px; color: var(--pmit-charcoal-soft); }
.float-card__arrow { margin-left: auto; color: var(--pmit-charcoal-soft); flex: none; }

/* ---- Schools grid v3 ------------------------------------------------------ */
.schools-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.schools-grid-v3 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.schools-grid-v3__item img { width: 100%; height: 138px; object-fit: cover; border-radius: 12px; }
.schools-grid-v3__item h4 { font-size: 13px; font-weight: 600; margin: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.schools-grid-v3__item h4 svg { width: 13px; height: 13px; color: var(--pmit-red); }
@media (max-width: 1100px) { .schools-grid-v3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .schools-grid-v3 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Impact stats band ---------------------------------------------------- */
.impact-band { background: var(--pmit-black); color: #fff; border-radius: 20px; padding: 42px 44px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.impact-band__text { flex: 1; min-width: 230px; }
.impact-band__text .eyebrow { color: var(--pmit-red-bright); }
.impact-band__text .eyebrow::before { background: var(--pmit-red-bright); }
.impact-band__text p { color: rgba(255,255,255,.6); font-size: 13.5px; max-width: 32ch; }
.impact-band__stats { display: flex; gap: 34px; flex-wrap: wrap; flex: 2; }
.impact-band__stat { text-align: left; }
.impact-band__stat svg { width: 24px; height: 24px; color: var(--pmit-red-bright); margin-bottom: 10px; }
.impact-band__stat strong { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.impact-band__stat span { display: block; margin-top: 6px; font-size: 10.5px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Campus life + news row ------------------------------------------------ */
.campuslife-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; }
.campuslife-video { position: relative; border-radius: 16px; overflow: hidden; height: 320px; }
.campuslife-video__bg {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; object-position: 18% center;
}
.campuslife-video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: var(--pmit-red); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.campuslife-video__play svg { width: 22px; height: 22px; margin-left: 3px; }
.campuslife-caps { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 16px; }
.campuslife-caps div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pmit-charcoal-soft); }
.campuslife-caps svg { width: 16px; height: 16px; color: var(--pmit-red); flex: none; }

.news-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 8px; }
.news-list-v3 .news-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--pmit-grey-mid); }
.news-list-v3 .news-item:first-child { padding-top: 8px; }
.news-list-v3 .news-item__date { width: 46px; flex: none; text-align: center; }
.news-list-v3 .news-item__date strong { display: block; font-size: 1.3rem; font-weight: 700; color: var(--pmit-charcoal); line-height: 1; }
.news-list-v3 .news-item__date span { font-size: 10.5px; text-transform: uppercase; color: var(--pmit-charcoal-soft); letter-spacing: .03em; }
.news-list-v3 .news-item__img { width: 66px; height: 50px; object-fit: cover; border-radius: 8px; flex: none; }
.news-list-v3 .news-item__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 5px; }
.news-list-v3 .news-item__title a:hover { color: var(--pmit-red); }
.news-list-v3 .news-item__link { font-size: 11.5px; color: var(--pmit-red); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* ---- Industry partners marquee -------------------------------------------- */
.partners-band { background: var(--pmit-black); padding: 22px 40px; display: flex; align-items: center; gap: 36px; }
.partners-band__label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); flex: none; white-space: nowrap; }
.partners-band__logos { display: flex; gap: 40px; flex: 1; min-width: 0; overflow-x: auto; color: rgba(255,255,255,.82); font-weight: 700; letter-spacing: .02em; font-size: 15px; scrollbar-width: none; }
.partners-band__logos::-webkit-scrollbar { display: none; }
.partners-band__logos span { flex: none; opacity: .85; }
.partners-band__nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.partners-band__nav svg { width: 15px; height: 15px; }

/* ---- Footer v3 columns ----------------------------------------------------- */
.footer-grid-v3 { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 28px; padding: 56px 0 36px; }
.footer-grid-v3 h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.footer-grid-v3 ul { display: flex; flex-direction: column; gap: 9px; }
.footer-grid-v3 a { color: #9A9CA3; font-size: 13px; }
.footer-grid-v3 a:hover { color: #fff; }
.footer-social-v3 { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-v3 a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social-v3 a:hover { background: var(--pmit-red); border-color: var(--pmit-red); }
.footer-social-v3 svg { width: 15px; height: 15px; }
@media (max-width: 1200px) { .footer-grid-v3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-grid-v3 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Inner-page hero banner (v3 theme) — overrides style.css .page-hero,
   cascades to every inner page automatically (about, academics, research,
   admissions, alumni, news, legal, contact, etc. all share this class) --- */
.page-hero {
    background: var(--pmit-black); color: #fff; padding: 88px 0 54px; position: relative; overflow: hidden; border-bottom: none;
}
.page-hero__bg img { opacity: .55; }
.page-hero::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0;
    background: linear-gradient(100deg, rgba(8,3,3,.94) 0%, rgba(8,3,3,.72) 45%, rgba(8,3,3,.35) 100%);
    pointer-events: none;
}
.page-hero h1, .page-hero h2, .page-hero h3 { color: #fff; }
.page-hero p, .page-hero .lede { color: rgba(255,255,255,.78) !important; }
.page-hero .eyebrow { color: var(--pmit-red-bright); }
.page-hero .eyebrow::before { background: var(--pmit-red-bright); }
.page-hero .breadcrumb { color: rgba(255,255,255,.55); position: relative; z-index: 1; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.72); }
.page-hero .breadcrumb a:hover { color: #fff; }
@media (max-width: 640px) { .page-hero { padding: 60px 0 40px; } }

@media (max-width: 960px) {
    .shell { flex-direction: column; overflow-x: hidden; }
    .sidebar {
        position: fixed; left: 0; top: 0; height: 100vh; width: min(82vw, 280px);
        transform: translateX(-100%); transition: transform .25s ease; box-shadow: 24px 0 60px rgba(0,0,0,.3);
    }
    .sidebar.is-open { transform: translateX(0); }

    .sidebar__backdrop { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(8,3,3,.5); z-index: 45; }
    .sidebar__backdrop.is-open { display: block; }

    .sidebar__toggle {
        display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px;
        border: 1px solid rgba(255,255,255,.4); background: rgba(20,8,8,.35); color: #fff; flex: none; position: relative; z-index: 5;
        margin-right: auto;
    }
    .topbar--solid .sidebar__toggle { border-color: var(--pmit-grey-mid); background: #fff; color: var(--pmit-charcoal); }

    .topbar { padding: 0 14px; gap: 10px; }
    /* Language pills move into the sidebar drawer on mobile — the topbar
       only needs to fit the hamburger, search and enquiry icons. */
    .topbar__langs { display: none; }
    .topbar__enquiry span { display: none; }
    .topbar__enquiry { padding: 0; width: 40px; justify-content: center; }
    .topbar__account span:last-child { display: none; }

    .hero-v3__inner { padding: calc(var(--topbar-h) + 24px) 20px 0; max-width: 100%; }
    .hero-v3 h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
    .float-card { margin: 0 16px; flex-direction: column; }
    .float-card__item { border-right: none; border-bottom: 1px solid var(--pmit-grey-mid); min-width: 0; }
    .impact-band { flex-direction: column; align-items: flex-start; margin: 0 16px; padding: 30px 24px; max-width: calc(100vw - 32px); }
    .impact-band__text { min-width: 0; width: 100%; }
    .impact-band__stats { gap: 24px; }
    .campuslife-row { grid-template-columns: 1fr; }
    section.section { padding-left: 16px; padding-right: 16px; }
    .partners-band { padding: 16px 16px; gap: 14px; }
    .partners-band__label { display: none; }
    .partners-band__nav { display: none; }
    .partners-band__logos { gap: 26px; font-size: 13px; }
}
@media (max-width: 420px) {
    .impact-band__stats { justify-content: space-between; gap: 16px 18px; }
    .campuslife-caps { grid-template-columns: repeat(2,1fr); }
}

/* ---- Hours-breakdown bar (used on Academics pages: School / Competitive /
   Skill Development) — a segmented bar plus a legend, no pricing shown. --- */
.hours-card { background: #fff; border: 1px solid var(--pmit-grey-mid); border-radius: 14px; padding: 22px 24px; }
.hours-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hours-card__head h4 { margin: 0; font-size: 15px; font-weight: 700; flex: 1; min-width: 160px; }
.hours-card__total { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--pmit-red); background: var(--pmit-red-mist); padding: 4px 10px; border-radius: 100px; white-space: nowrap; flex: none; }
.hours-bar { display: flex; width: 100%; height: 14px; border-radius: 100px; overflow: hidden; background: var(--pmit-grey-light); }
.hours-bar__seg { height: 100%; }
.hours-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.hours-legend__item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--pmit-charcoal-soft); }
.hours-legend__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.hours-legend__item strong { color: var(--pmit-charcoal); font-weight: 700; }

/* ---- CTA band with a subdued background image (e.g. "Partner with PMIT") */
.cta-band { position: relative; overflow: hidden; }
.cta-band__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .22; }
.cta-band::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(20,8,8,.55) 0%, rgba(20,8,8,.88) 100%);
}
.cta-band > .container { position: relative; z-index: 2; }

/* ---- Footer visit counter -------------------------------------------- */
.footer-stats { display: flex; align-items: center; gap: 8px; padding: 0 0 18px; font-size: 12.5px; color: #9A9CA3; }
.footer-stats svg { flex: none; opacity: .7; display: block; }
