/* =========================================================================
   PMIT — Design System v2
   Inspiration: generous academic whitespace, restrained grid discipline,
   confident typography (in the spirit of leading university sites) —
   built entirely with PMIT's own palette, logo and content.
   ========================================================================= */

:root {
    /* ---- Brand palette v2 (mirrors config/constants.php) --------------- */
    --pmit-red: #A6192E;            /* Primary — PMIT Crimson */
    --pmit-red-deep: #A6192E;
    --pmit-red-bright: #8A1426;     /* Glow / hover accent on dark surfaces */
    --pmit-red-mist: #F5F3EF;
    --pmit-midnight: #111827;       /* Secondary */
    --pmit-royal-blue: #A6192E;     /* Accent */
    --pmit-emerald: #16A34A;        /* Success */
    --pmit-amber: #F59E0B;          /* Warning */
    --pmit-white: #FFFFFF;          /* Background / Card */
    --pmit-grey-light: #F5F3EF;     /* Section background */
    --pmit-grey-mid: #E5E7EB;       /* Border */
    --pmit-footer-grey: #0B0C10;    /* Footer / dark panels — true near-black */
    --pmit-black: #0B0C10;
    --pmit-black-soft: #15171C;     /* Elevated card surface on black */
    --pmit-black-line: rgba(255,255,255,.09);
    --pmit-charcoal: #111827;       /* Heading — Rich Black */
    --pmit-charcoal-soft: #4B5563;  /* Body text — Slate Gray */
    --pmit-gold: #A6192E;           /* Legacy alias -> Royal Blue accent */
    --pmit-gold-soft: #EFF6FF;
    --nav-red-line: 3px;
    --shadow-glow: 0 0 0 1px rgba(166,25,46,.35), 0 24px 60px rgba(0,0,0,.55);

    /* ---- Type ------------------------------------------------------- */
    --font-body: 'Inter', 'Noto Sans', 'Noto Sans Telugu', 'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif;
    --font-display: 'Inter', 'Noto Sans', 'Noto Sans Telugu', 'Noto Sans Tamil', 'Noto Sans Devanagari', sans-serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;

    /* ---- Layout ------------------------------------------------------ */
    --container-max: 1440px;
    --container-narrow: 860px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --nav-height: 88px;
    --shadow-sm: 0 1px 3px rgba(17,24,39,0.06);
    --shadow-md: 0 8px 24px rgba(17,24,39,0.08);
    --shadow-lg: 0 24px 56px rgba(17,24,39,0.16)}

/* Indic script rendering — ensure Noto Sans variants take over cleanly */
:lang(te) { font-family: 'Noto Sans Telugu', var(--font-body)}
:lang(ta) { font-family: 'Noto Sans Tamil', var(--font-body)}
:lang(hi) { font-family: 'Noto Sans Devanagari', var(--font-body)}

*, *::before, *::after { box-sizing: border-box}
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto}
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important}
}
body {
    margin: 0; font-family: var(--font-body); color: var(--pmit-charcoal);
    background: var(--pmit-white); line-height: 1.65; -webkit-font-smoothing: antialiased;
    font-size: 16px; overflow-x: hidden; width: 100%; max-width: 100vw}
img { max-width: 100%; display: block}
a { color: inherit; text-decoration: none}
ul { list-style: none; margin: 0; padding: 0}
button { font-family: inherit; cursor: pointer}
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--pmit-charcoal); letter-spacing: -0.015em}
p { margin: 0 0 1em; color: var(--pmit-charcoal-soft)}
:focus-visible { outline: 3px solid var(--pmit-red); outline-offset: 2px}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px}
.container--narrow { max-width: var(--container-narrow)}
.section { padding: 96px 0}
.section--tight { padding: 56px 0}
.section--grey { background: var(--pmit-grey-light)}
.section--dark { background: var(--pmit-footer-grey); color: #C7C8CC}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5 { color: var(--pmit-white)}
.section--dark p { color: var(--b-slate,#73777C)}
.text-center { text-align: center}

/* ---- Type scale ------------------------------------------------------- */
.eyebrow {
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--pmit-red);
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--pmit-gold)}
.section--dark .eyebrow { color: #E5808C}
.section--dark .eyebrow::before { background: var(--pmit-gold)}

h1.display, .h1 { font-size: clamp(2.4rem, 4.2vw, 3.4rem); font-weight: 400}
h2.display, .h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 400}
h3.display, .h3 { font-size: 1.3rem; font-weight: 500}
.lede { font-size: 1.15rem; color: var(--pmit-charcoal-soft); max-width: 64ch; font-weight: 300}
.section--dark .lede { color: #B8B9BE}

/* ---- Thin red rule divider (restrained, MIT-style) --------------------- */
.rule { width: 100%; height: 1px; background: var(--pmit-grey-mid); margin: 44px 0; position: relative}
.rule::before { content: ''; position: absolute; left: 0; top: -1px; width: 64px; height: 3px; background: var(--pmit-red)}
.rule--dark { background: rgba(255,255,255,.12)}

/* ---- Buttons ------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    padding: 13px 28px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    transition: all .18s ease; white-space: nowrap}
.btn:hover { transform: translateY(-1px)}
.btn--primary { background: var(--pmit-red); color: var(--pmit-white)}
.btn--primary:hover { background: var(--pmit-red-deep); box-shadow: var(--shadow-md)}
.btn--outline { background: transparent; border-color: var(--pmit-charcoal); color: var(--pmit-charcoal)}
.btn--outline:hover { background: var(--pmit-charcoal); color: var(--pmit-white)}
.btn--gold { background: var(--pmit-gold); color: #fff}
.btn--gold:hover { background: #B99A65}
.btn--on-dark { border-color: rgba(255,255,255,.4); color: var(--pmit-white)}
.btn--on-dark:hover { background: var(--pmit-white); color: var(--pmit-charcoal)}
.btn--ghost { background: transparent; color: var(--pmit-red); padding-left: 2px; padding-right: 2px}
.btn--ghost::after { content: '→'; transition: transform .15s ease}
.btn--ghost:hover::after { transform: translateX(4px)}
.btn--block { width: 100%; justify-content: center}
.btn--sm { padding: 8px 16px; font-size: 12.5px}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px}

/* ---- Diamond/rule list marker ------------------------------------------ */
.node-list li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--pmit-charcoal-soft)}
.node-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--pmit-red)}
.section--dark .node-list li { color: #B8B9BE}

/* ---- Cards ------------------------------------------------------------ */
.card { background: var(--pmit-white); border: 1px solid var(--pmit-grey-mid); border-radius: var(--radius-md); padding: 30px; transition: box-shadow .2s ease, transform .2s ease}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px)}
.card__icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--pmit-red-mist); color: var(--pmit-red); border-radius: var(--radius-sm); font-family: var(--font-mono); font-weight: 600; font-size: 13px; margin-bottom: 18px}
.card__eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pmit-charcoal-soft)}

.grid { display: grid; gap: 28px}
.grid--2 { grid-template-columns: repeat(2, 1fr)}

/* Any photo that's a direct grid item (campus photos, tech-grid thumbnails,
   leadership/faculty shots, schools template, etc.) gets cropped cleanly to
   its box instead of being stretched out of proportion — this was the
   source of most of the "distorted image" cases across the site. */
.grid > img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center; display: block}
@media (max-width: 767px) { .grid > img { min-height: 260px} }

/* ---- Photo/text split sections (Competitive Excellence, Technology
   Education, Research & Innovation, Virtual School, About, Schools,
   Student Life, Admissions, etc.) ----------------------------------------
   These pair a photo with `.container.grid.grid--2 > img` (or a nested
   thumbnail sub-grid) against a text column, almost always with an inline
   `align-items:center`. That override makes each column size to its own
   natural height instead of the row's height, so `.grid > img`'s
   `height:100%` above has nothing definite to resolve against — the
   image falls back to its raw intrinsic aspect ratio and object-fit:cover
   never actually crops anything. Depending on the source photo's aspect
   ratio this made the image column noticeably taller OR shorter than the
   text beside it (e.g. a wide banner photo left a big gap; a tall photo
   overran the text by 100px+) — inconsistent from section to section.
   trying to match the image's height to the text column exactly turns
   out to be a losing game — the text ranges from ~250px to ~510px
   depending on how many list items a section has, so no fixed number
   works everywhere, and CSS can't measure a sibling's rendered height
   to match it live. Fighting that is also what produced the original
   bug in the first place. The reliable, designer-standard fix is to
   stop trying to match text height and instead give every media column
   a fixed, predictable aspect ratio — same idea as `.hero__media`
   elsewhere in this file — so a photo always looks intentionally
   cropped instead of stretched or shrunk to whatever the text happens
   to need. `align-self: start` opts the media column out of the
   parent's `align-items:center` entirely, since the aspect ratio (not
   the row) now governs its size. */
.container.grid.grid--2 > img,
.container.grid.grid--2 > .grid.grid--2:has(img) {
    align-self: start;
    width: 100%;
    aspect-ratio: 4 / 3}
/* The nested thumbnail sub-grid (one wide photo + two smaller ones)
   keeps the same overall 4:3 footprint, split into proportional rows so
   the two lower photos read as a matched pair under the wider one.
   Scoped with :has(img) — some pages reuse this same `.grid.grid--2`
   sub-grid shape for a pair of text/icon cards instead of photos (e.g.
   Admissions > Assistantships), and those must keep sizing to their own
   content, not a photo aspect ratio. */
.container.grid.grid--2 > .grid.grid--2:has(img) { grid-template-rows: 2fr 1fr}
.container.grid.grid--2 > .grid.grid--2:has(img) > img { aspect-ratio: auto; height: 100%; min-height: 0}
@media (max-width: 620px) {
    .container.grid.grid--2 > img,
    .container.grid.grid--2 > .grid.grid--2:has(img) { aspect-ratio: 16 / 10}
}
.grid--3 { grid-template-columns: repeat(3, 1fr)}
.grid--4 { grid-template-columns: repeat(4, 1fr)}
.grid--6 { grid-template-columns: repeat(6, 1fr)}
@media (max-width: 980px) { .grid--3, .grid--4, .grid--6 { grid-template-columns: repeat(2, 1fr)} }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr} }

/* ---- Stats -------------------------------------------------------------- */
.stat-strip { display: flex; flex-wrap: wrap; gap: 32px}
.stat-strip__item { flex: 1 1 140px}
.stat-strip__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: var(--pmit-white)}
.stat-strip__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--b-slate,#73777C)}

/* =========================================================================
   NAVBAR — clean white band, crimson wordmark, dark text links. Matches
   the lighter "editorial" reference direction (nav stays legible and
   calm; the red accent is reserved for the logo, active-state underline
   and the Apply Now button only).
   ========================================================================= */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--pmit-white); border-bottom: 1px solid var(--pmit-grey-mid); box-shadow: 0 1px 2px rgba(17,24,39,.03)}
.nav { max-width: var(--container-max); margin: 0 auto; padding: 0 28px; height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: nowrap}

/* ---- Text wordmark logo: PMIT | Premier Miryalan | Institute of Technology */
.nav__logo { display: flex; align-items: baseline; flex: none; white-space: nowrap; font-family: var(--font-display); color: var(--pmit-charcoal)}
.nav__logo-mark { font-size: 23px; font-weight: 800; letter-spacing: .03em; color: var(--pmit-red)}
.nav__logo-sep { color: var(--pmit-grey-mid); font-weight: 300; font-size: 16px}
.nav__logo-full { font-size: 12.5px; font-weight: 400; letter-spacing: .01em; color: var(--pmit-charcoal); line-height: 1.2}

.nav__menu { display: flex; align-items: center; gap: 0; flex: 1; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; margin-left: 48px}
.nav__item { position: relative; flex: none}
.nav__link { display: flex; align-items: center; gap: 5px; padding: 9px 11px; font-size: 13.5px; font-weight: 500; color: var(--pmit-charcoal-soft); border-radius: var(--radius-sm); white-space: nowrap; transition: color .15s ease, background .15s ease}
.nav__link:hover, .nav__item.is-open > .nav__link, .nav__link.is-active { color: var(--pmit-charcoal); background: var(--pmit-grey-light)}
.nav__link.is-active { box-shadow: inset 0 -2px 0 var(--pmit-red); color: var(--pmit-charcoal); font-weight: 600}
.nav__caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .8}

/* Apply Now — last item styled as a distinct pill CTA */
.nav__item--cta { margin-left: 4px}
.nav__item--cta > .nav__link { background: var(--pmit-red); color: var(--pmit-white); padding: 9px 16px; border-radius: 100px; font-weight: 600}
.nav__item--cta > .nav__link:hover, .nav__item--cta.is-open > .nav__link { background: var(--pmit-red-deep); color: var(--pmit-white)}

.mega { position: absolute; top: calc(100% + 12px); left: 0; min-width: 300px; background: var(--pmit-white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--pmit-grey-mid); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease}
.nav__item--cta .mega { left: auto; right: 0}
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0)}
.mega__link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--pmit-charcoal)}
.mega__link:hover { background: var(--pmit-grey-light)}
.mega__link strong { font-size: 14.5px; font-weight: 500}
.mega__link span { font-size: 12.5px; color: var(--pmit-charcoal-soft)}

.nav__tools { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 10px}
.nav__search-toggle, .nav__lang-toggle { background: none; border: none; padding: 8px; color: var(--pmit-charcoal-soft); font-size: 14px; display: flex; align-items: center; gap: 4px; border-radius: var(--radius-sm)}
.nav__search-toggle:hover, .nav__lang-toggle:hover { background: var(--pmit-grey-light); color: var(--pmit-charcoal)}
.nav__lang-menu { position: absolute; top: calc(100% + 12px); right: 0; background: var(--pmit-white); border: 1px solid var(--pmit-grey-mid); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 1001}
.nav__lang-wrap { position: relative}
.nav__lang-wrap.is-open .nav__lang-menu { opacity: 1; visibility: visible; transform: translateY(0)}
.nav__lang-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--pmit-charcoal)}
.nav__lang-menu a:hover { background: var(--pmit-grey-light)}
.nav__lang-menu a.is-active { color: var(--pmit-red); font-weight: 500}

.nav__search-panel { position: absolute; top: var(--topbar-h, 88px); left: 0; right: 0; background: var(--pmit-white); border-bottom: 1px solid var(--pmit-grey-mid); box-shadow: var(--shadow-md); padding: 20px 0; display: none; z-index: 41}
.nav__search-panel.is-active { display: block}
.nav__search-panel input { width: 100%; padding: 14px 18px; border: 1.5px solid var(--pmit-grey-mid); border-radius: var(--radius-sm); font-size: 16px; color: var(--pmit-charcoal); background: var(--pmit-white)}

.nav__toggle { display: none; flex: none; background: none; border: none; padding: 8px}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after { content: ''; display: block; width: 22px; height: 2px; background: var(--pmit-charcoal); margin: 5px 0; transition: transform .2s ease, opacity .2s ease}

/* ---- Tighten one notch earlier (1280px) so the fewer/shorter labels
   still read as one clean line right up to the point the hamburger
   takes over — avoids the awkward wrap that used to happen at 1140px */
@media (min-width: 1141px) and (max-width: 1300px) {
    .nav { padding: 0 20px; gap: 12px}
    .nav__link { padding: 8px 8px; font-size: 12.8px}
    .nav__item--cta > .nav__link { padding: 8px 13px}
}

@media (max-width: 1140px) {
    .nav__menu { position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height)); background: var(--pmit-white); flex-direction: column; align-items: stretch; padding: 10px 16px 32px; margin-left: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: translateX(100%); transition: transform .25s ease; gap: 0; justify-content: flex-start; z-index: 999}
    .nav__menu.is-active { transform: translateX(0)}
    body.nav-open { overflow: hidden}
    .nav__item { width: 100%}
    .nav__item--cta { margin-left: 0; margin-top: 10px}
    .nav__link { width: 100%; justify-content: space-between; padding: 17px 12px; border-bottom: 1px solid var(--pmit-grey-mid); color: var(--pmit-charcoal); border-radius: 0; font-size: 15.5px; white-space: normal}
    .nav__link:hover, .nav__item.is-open > .nav__link, .nav__link.is-active { background: var(--pmit-grey-light); color: var(--pmit-red); box-shadow: none}
    .nav__item--cta > .nav__link { background: var(--pmit-red); color: var(--pmit-white); border-radius: var(--radius-sm); border-bottom: none; justify-content: center; padding: 15px 12px}
    .nav__item--cta > .nav__link:hover { background: var(--pmit-red-deep); color: var(--pmit-white)}
    .mega { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; border: none; background: var(--pmit-grey-light); margin: 0 0 6px}
    .nav__item.is-open .mega { display: flex; flex-direction: column}
    .nav__toggle { display: block}
}

/* =========================================================================
   HERO — light, split layout (copy left / real campus photo right).
   Simpler than a full-bleed dark slideshow: one clear reading path, no
   overlapping elements, and it reflows to a single column early so it
   never feels cramped on a phone.
   ========================================================================= */
.hero { position: relative; background: var(--pmit-grey-light); padding-top: 8px; overflow: hidden}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 48px 0 60px}
.hero__tagline { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pmit-red); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px}
.hero__tagline::after { content: ''; flex: 1 1 40px; height: 1px; background: var(--pmit-grey-mid); max-width: 40px}
.hero h1 { color: var(--pmit-charcoal); font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em}
.hero h1 .accent { color: var(--pmit-red); display: block}
.hero__desc { max-width: 56ch; color: var(--pmit-charcoal-soft); font-size: 1.05rem; margin-top: 18px}
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.1}
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block}
.hero .stat-strip { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--pmit-grey-mid)}
.hero .stat-strip__num { color: var(--pmit-charcoal); font-weight: 600}
.hero .stat-strip__label { color: var(--pmit-charcoal-soft)}
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 40px}
    .hero__media { order: -1; aspect-ratio: 16 / 10}
}

/* ---- Numbered quick-access rail — removed by request in favour of a
   simpler, single-focus hero (kept out to avoid a cluttered first
   impression on smaller/mid-size screens). Standard in-page nav via the
   navbar itself is enough. -------------------------------------------- */

/* =========================================================================
   ICON STRIP — plain topic-area cards (Schools row), single light panel
   ========================================================================= */
.icon-strip { display: flex; background: var(--pmit-white); border: 1px solid var(--pmit-grey-mid); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; flex-wrap: wrap}
.icon-strip__item { flex: 1 1 220px; display: flex; align-items: flex-start; gap: 14px; padding: 26px 22px; border-right: 1px solid var(--pmit-grey-mid); border-bottom: 1px solid var(--pmit-grey-mid); transition: background .15s ease}
.icon-strip__item:hover { background: var(--pmit-grey-light)}
.icon-strip__icon { flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--pmit-red-mist); color: var(--pmit-red); display: flex; align-items: center; justify-content: center; font-size: 18px}
.icon-strip__title { font-family: var(--font-display); font-size: .98rem; font-weight: 600; color: var(--pmit-charcoal); margin: 0 0 3px}
.icon-strip__summary { font-size: 12.5px; color: var(--pmit-charcoal-soft); line-height: 1.5}
.icon-strip__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--pmit-red)}
.icon-strip__link::after { content: '→'; transition: transform .15s ease}
.icon-strip__item:hover .icon-strip__link::after { transform: translateX(3px)}

/* =========================================================================
   DISCOVER PANEL — dark video card + real stat row, side by side
   ========================================================================= */
.discover-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch}
.discover-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md)}
.discover-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover}
.discover-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,14,.05) 30%, rgba(8,9,12,.86) 100%)}
.discover-card__body { position: relative; z-index: 1; padding: 24px; color: #fff}
.discover-card__body h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem}
.discover-card__body p { color: rgba(255,255,255,.78); font-size: 13.5px; margin: 0}
.discover-card__body a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: #fff}
.discover-stats { background: var(--pmit-white); border: 1px solid var(--pmit-grey-mid); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 28px; align-content: center}
.discover-stats .stat-strip__item { flex: none}
.discover-stats .stat-strip__num { color: var(--pmit-charcoal)}
@media (max-width: 860px) { .discover-row { grid-template-columns: 1fr} .discover-stats { grid-template-columns: repeat(2, 1fr)} }

/* =========================================================================
   NEWS ROW — light image cards with a red date badge (News & Announcements)
   ========================================================================= */
.news-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px}
.news-card { display: flex; gap: 16px; background: var(--pmit-white); border: 1px solid var(--pmit-grey-mid); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); align-items: flex-start}
.news-card__date { flex: none; width: 54px; text-align: center}
.news-card__date-day { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--pmit-red); line-height: 1}
.news-card__date-month { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--pmit-charcoal-soft); margin-top: 3px}
.news-card__title { font-size: .95rem; font-weight: 600; color: var(--pmit-charcoal); margin: 0 0 6px; line-height: 1.35}
.news-card__title a { color: inherit}
.news-card a.btn--ghost { font-size: 12.5px}

/* =========================================================================
   CATEGORY STRIP — image-backed cards for the Schools row on the homepage
   ========================================================================= */
.category-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px}
.category-card { position: relative; border-radius: var(--radius-md); overflow: hidden; min-height: 230px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md)}
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease}
.category-card:hover img { transform: scale(1.06)}
.category-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,14,0) 35%, rgba(8,9,12,.92) 100%)}
.category-card__body { position: relative; z-index: 1; padding: 20px; color: #fff}
.category-card__num { font-family: var(--font-mono); font-size: 11px; color: var(--pmit-red-bright); letter-spacing: .06em}
.category-card__title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; margin: 6px 0 4px; color: #fff}
.category-card__summary { font-size: 12.5px; color: rgba(255,255,255,.72); line-height: 1.5}
.category-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: #fff}
.category-card__link::after { content: '→'; transition: transform .15s ease}
.category-card:hover .category-card__link::after { transform: translateX(4px)}

/* =========================================================================
   DARK PANEL GRID — Research Highlights / Life at PMIT / Student Voices,
   used on section--dark blocks that need distinct bordered sub-panels.
   ========================================================================= */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px}
.dark-panel { background: var(--pmit-black-soft); border: 1px solid var(--pmit-black-line); border-radius: var(--radius-md); padding: 24px}
.dark-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px}
.dark-panel__head h3 { color: #fff; font-size: 1rem; margin: 0}
.dark-panel__head a { font-size: 12px; color: var(--pmit-red-bright); font-weight: 600}
.dark-panel { color: #C7C8CC}
.dark-panel .card__eyebrow { color: rgba(255,255,255,.5)}
.dark-panel p, .dark-panel .form-hint { color: #C7C8CC}

/* =========================================================================
   FLOATING SOCIAL BAR (desktop only, minimal)
   ========================================================================= */
.social-float { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column}
.social-float a { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--pmit-footer-grey); color: #fff; font-size: 15px; transition: background .15s ease, width .15s ease}
.social-float a:hover { background: var(--pmit-red); width: 48px}
@media (max-width: 1140px) { .social-float { display: none} }

/* =========================================================================
   COOKIE CONSENT
   ========================================================================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: var(--pmit-footer-grey); color: #E5E7EB; padding: 20px 0; box-shadow: 0 -10px 30px rgba(0,0,0,.2); transform: translateY(100%); transition: transform .3s ease}
.cookie-banner.is-visible { transform: translateY(0)}
.cookie-banner__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap}
.cookie-banner p { color: #C7C8CC; margin: 0; max-width: 62ch; font-size: 14px}
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap}

/* =========================================================================
   FOOTER — solid black, with a red rule separating it from the white body
   ========================================================================= */
.site-footer { background: var(--pmit-black); color: var(--b-slate,#73777C); padding: 76px 0 0; border-top: var(--nav-red-line) solid transparent; border-image: linear-gradient(90deg, var(--pmit-red) 0%, var(--pmit-red-bright) 40%, rgba(179,27,27,.15) 100%) 1}
.footer-legal-name { color: #6B6D72}
.footer-legal-name strong { color: #C7C8CC; font-weight: 600}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08)}
.footer-grid h4 { color: var(--pmit-white); font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500}
.footer-grid ul li { margin-bottom: 10px}
.footer-grid a:hover { color: var(--pmit-white)}
.footer-brand__logo { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-family: var(--font-display)}
.footer-brand__logo .nav__logo-mark { font-size: 20px}
.footer-brand__logo .nav__logo-full { font-size: 12px}
.footer-brand p { color: var(--b-slate,#73777C); max-width: 34ch; font-size: 14px}
.footer-social { display: flex; gap: 10px; margin-top: 18px}
.footer-social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; color: #fff; font-size: 13px; transition: all .15s ease}
.footer-social a:hover { background: var(--pmit-red); border-color: var(--pmit-red); transform: translateY(-2px)}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; font-size: 13px; line-height: 1.8}
.footer-bottom a { color: var(--b-slate,#73777C)}
.footer-bottom a:hover { color: var(--pmit-white)}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap}
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2,1fr)} }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr} }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-field { margin-bottom: 20px}
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--pmit-charcoal); margin-bottom: 8px}
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--pmit-grey-mid); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px; color: var(--pmit-charcoal); background: var(--pmit-white); transition: border-color .15s ease}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--pmit-red); outline: none}
.form-field textarea { resize: vertical; min-height: 120px}

/* ---- Password field: show/hide toggle (injected by main.js) ---------- */
.password-field { position: relative}
.password-field input[type="password"],
.password-field input[type="text"] { padding-right: 46px}
.password-field__toggle {
    position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; padding: 0; margin: 0; cursor: pointer;
    color: var(--pmit-charcoal-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0}
.password-field__toggle:hover { color: var(--pmit-charcoal)}
.password-field__toggle:focus-visible { outline: 2px solid var(--pmit-red); outline-offset: -2px}
.password-field__toggle svg { width: 20px; height: 20px; pointer-events: none}
.password-field__toggle .icon-eye-off { display: none}
.password-field__toggle.is-visible .icon-eye { display: none}
.password-field__toggle.is-visible .icon-eye-off { display: block}
.form-hint { font-size: 12.5px; color: var(--pmit-charcoal-soft); margin-top: 6px}
.form-error { font-size: 12.5px; color: var(--pmit-red); margin-top: 6px}
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14.5px}
.alert--success { background: #E8F6EC; color: #1E6B37; border: 1px solid #BFE6C9}
.alert--error { background: var(--pmit-red-mist); color: var(--pmit-red-deep); border: 1px solid #E3D6C8}

/* ---- Interior page header (kept in sync with the light homepage theme) */
.page-hero { background: var(--pmit-grey-light); color: var(--pmit-charcoal); padding: 68px 0 60px; position: relative; overflow: hidden; border-bottom: 1px solid var(--pmit-grey-mid)}
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--pmit-charcoal)}
.page-hero p { color: var(--pmit-charcoal-soft)}
.page-hero__bg { position: absolute; inset: 0; z-index: 0}
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .12}
.page-hero__inner { position: relative; z-index: 1}
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--pmit-charcoal-soft); margin-bottom: 22px}
.breadcrumb a { color: var(--pmit-charcoal-soft)}
.breadcrumb a:hover { color: var(--pmit-red)}

/* ---- Tabs / Accordion ------------------------------------------------- */
.tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--pmit-grey-mid); margin-bottom: 32px; flex-wrap: wrap}
.tabs__btn { padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--pmit-charcoal-soft); border-bottom: 2px solid transparent; background: none; border-top:none;border-left:none;border-right:none}
.tabs__btn.is-active { color: var(--pmit-red); border-bottom-color: var(--pmit-red)}
.tabs__panel { display: none}
.tabs__panel.is-active { display: block}

.accordion__item { border-bottom: 1px solid var(--pmit-grey-mid)}
.accordion__trigger { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; font-weight: 500; color: var(--pmit-charcoal)}
.accordion__trigger::after { content: '+'; font-size: 20px; color: var(--pmit-red); transition: transform .2s ease}
.accordion__item.is-open .accordion__trigger::after { transform: rotate(45deg)}
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .25s ease}
.accordion__item.is-open .accordion__panel { max-height: 600px}
.accordion__panel-inner { padding: 0 4px 20px; color: var(--pmit-charcoal-soft)}

/* ---- Testimonial card --------------------------------------------------- */
.testimonial { background: var(--pmit-grey-light); border-radius: var(--radius-lg); padding: 32px}
.testimonial__quote { font-size: 1.05rem; color: var(--pmit-charcoal); font-weight: 300; font-style: italic}
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 20px}
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--pmit-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500}

/* ---- Table -------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px}
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--pmit-grey-mid)}
.table th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--pmit-charcoal-soft)}
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 100px; font-size: 11.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em}
.badge--success { background: #E8F6EC; color: #1E6B37}
.badge--warning { background: #FFF3E0; color: #A65C00}
.badge--danger { background: var(--pmit-red-mist); color: var(--pmit-red-deep)}
.badge--info { background: #E7F1FC; color: var(--b-red,#A6192E)}
.badge--gold { background: var(--pmit-gold-soft); color: #8A7248}

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease}
[data-reveal].is-visible { opacity: 1; transform: translateY(0)}

/* =========================================================================
   RESPONSIVE SYSTEM — mobile → tablet → laptop → desktop → TV/big screen
   Mobile-first assumptions are already baked into the base rules above
   (single-column grids, stacked nav, etc.) via the max-width queries in
   each component block. This section adds the breakpoints those blocks
   were still missing: a proper tablet tier, fluid container padding, and
   upper bounds for very large displays so content never stretches into
   unreadably long line lengths on a TV or ultra-wide monitor.
   ========================================================================= */

/* ---- Fluid container padding (scales down before content feels cramped) */
@media (max-width: 480px) {
    :root { --nav-height: 64px}
    .container, .nav, .cookie-banner__inner { padding-left: 16px; padding-right: 16px}
    .section { padding: 44px 0}
    .section--tight { padding: 30px 0}
    .hero__content { padding: 32px 0 40px}
    .btn { padding: 13px 20px; font-size: 14px}
    .card { padding: 20px}
    .footer-grid { padding-bottom: 32px; gap: 30px}
    .site-footer { padding-top: 40px}
    .page-hero { padding: 36px 0 32px}
    .nav__logo-mark { font-size: 17px}
    .nav__tools { gap: 2px; margin-left: 4px}
    .nav__search-toggle, .nav__lang-toggle { padding: 8px 6px; font-size: 13px}
    .nav__toggle { padding: 8px 4px}
    h1.display, .h1 { font-size: clamp(1.7rem, 7vw, 2.2rem)}
    h2.display, .h2 { font-size: clamp(1.4rem, 6vw, 1.7rem)}
    .lede { font-size: 1rem}
    .eyebrow { font-size: 11px; margin-bottom: 12px}
    .section { overflow-x: hidden}
    .testimonial { padding: 22px}
    .btn--block, .form-field input, .form-field select, .form-field textarea { font-size: 16px} /* prevents iOS auto-zoom on focus */
}
@media (min-width: 481px) and (max-width: 767px) {
    :root { --nav-height: 68px}
    .container, .nav, .cookie-banner__inner { padding-left: 22px; padding-right: 22px}
    .section { padding: 56px 0}
    .page-hero { padding: 44px 0 40px}
}

/* ---- Small phones: landscape stacking + tap target sizing -------------- */
@media (max-width: 600px) {
    .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; gap: 18px}
    .hero { min-height: 88vh}
    .hero h1 { max-width: none}
    .btn-row { gap: 10px}
    .btn-row .btn { flex: 1 1 auto; justify-content: center}
    .stat-strip { gap: 20px}
    .stat-strip__item { flex: 1 1 45%}
    .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center}
    .footer-bottom { flex-direction: column; text-align: center}
    table.table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch}
    .nav__link { min-height: 48px} /* comfortable tap target in the mobile menu */
    .mega__link { min-height: 44px; justify-content: center}
    .breadcrumb { font-size: 11px; margin-bottom: 16px}
    .footer-grid { grid-template-columns: 1fr; text-align: left}
    .footer-social a { width: 42px; height: 42px}
}

/* ---- Tablet portrait (dedicated tier — previously jumped straight from
   desktop-nav-collapse at 1140px to a 980px 2-col rule with nothing
   tuned specifically for 768–1024px iPad-class devices) ------------------ */
@media (min-width: 768px) and (max-width: 1023px) {
    .container { padding: 0 28px}
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr)}
    .grid--6 { grid-template-columns: repeat(3, 1fr)}
    .hero-v3 h1 { font-size: clamp(2rem, 5vw, 3rem)}
    .footer-grid { grid-template-columns: repeat(3, 1fr)}
    .page-hero { padding: 56px 0 48px}
}

/* ---- Small laptops (nav already tightened by the 1141-1300px rule above;
   this tier only needs to keep the container gutters comfortable — it must
   NOT touch .nav__link, since below 1140px that's the mobile panel) ------- */
@media (min-width: 1141px) and (max-width: 1279px) {
    .container { padding: 0 28px}
}

/* ---- Large desktop ------------------------------------------------- */
@media (min-width: 1440px) {
    .container { max-width: 1360px}
    :root { --nav-height: 92px}
}

/* ---- TV / big-screen displays (4K monitors, smart TVs, kiosk displays).
   Two things matter here: (1) don't let the container stretch edge-to-edge
   into unreadable 3000px-wide paragraphs, and (2) nudge base font size up
   slightly since these are typically viewed from further away. ----------- */
@media (min-width: 1920px) {
    body { font-size: 17px}
    .container { max-width: 1480px}
    .hero-v3 h1 { font-size: clamp(3.2rem, 4vw, 4.6rem)}
    .lede { font-size: 1.25rem}
    :root { --topbar-h: 88px}
}
@media (min-width: 2560px) {
    body { font-size: 18px}
    .container { max-width: 1680px}
    .hero-v3 { min-height: 76vh}
    .hero-v3 h1 { font-size: clamp(3.6rem, 3.6vw, 5.2rem)}
    :root { --topbar-h: 96px}
    .topnav__link { font-size: 15px; padding: 11px 18px}
    .topnav__logo-mark { font-size: 1.8rem}
}

/* ---- Landscape phones (short viewport height — hero shouldn't force
   the visitor to scroll before seeing the CTA buttons) -------------------- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-v3 { min-height: 100vh}
    .hero-v3__inner { padding-top: calc(var(--topbar-h) + 16px); padding-bottom: 12px}
    .hero-v3__features { display: none}
    :root { --topbar-h: 56px}
}

/* ---- Print stylesheet (policies/legal pages, downloadable forms) ------- */
@media print {
    .site-header, .site-footer, .social-float, .cookie-banner, .hero__dots, .btn-row { display: none !important}
    body { color: var(--b-char,#252525)}
    a { text-decoration: underline}
}

