﻿/* ============================================================
   MARIA POLYTECHNIC COLLEGE — Stylesheet
   Design DNA: dense, colourful, image-heavy, trust-and-legacy.
   Signature shape: HEXAGON. Palette: indigo navy + amber + teal + saffron CTA.
   ============================================================ */

:root {
  --base:        #0e1b3d;   /* deep indigo navy */
  --base-2:      #16306b;   /* royal blue */
  --base-3:      #1d4e9e;   /* bright blue */
  --accent:      #f5a623;   /* amber / gold */
  --accent-2:    #16b8a6;   /* teal */
  --cta:         #ff6b1a;   /* saffron orange */
  --cta-dark:    #e4550a;
  --cream:       #fbf4e9;   /* warm sand background */
  --cream-2:     #f4e7d3;
  --ink:         #16203a;
  --muted:       #5d6678;
  --line:        #e6dcc8;
  --white:       #ffffff;
  --color-sweep: linear-gradient(110deg, var(--accent), var(--cta), #ff4f81, var(--accent-2), var(--base-3));

  --shadow-sm: 0 4px 14px rgba(14,27,61,.10);
  --shadow:    0 14px 34px rgba(14,27,61,.14);
  --shadow-lg: 0 26px 60px rgba(14,27,61,.22);

  --radius: 16px;
  --radius-sm: 10px;

  --ff-head: "Oswald", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
  --ff-script: "Caveat", cursive;

  --container: 1200px;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: currentColor; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- shared ---------- */
.section { padding: 42px 0; position: relative; }
.section--dark { background: var(--base); color: #dfe6f5; }
.section--dark a { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-head);
  font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  font-size: .82rem; color: var(--base-3);
  margin-bottom: 16px;
}
.eyebrow span { width: 30px; height: 2px; background: var(--accent); display: inline-block; }
.eyebrow--light { color: var(--accent); }
.eyebrow--light span { background: var(--accent); }

.h2 {
  font-family: var(--ff-head);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.08; color: var(--base); letter-spacing: .01em;
}
.h2--light { color: #fff; }
.section--dark .h2 { color: #fff; }
.accent { color: var(--accent); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-head__sub { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 26px; border-radius: 50px;
  font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 10px 24px rgba(255,107,26,.4); }
.btn--cta:hover { background: var(--cta-dark); transform: translateY(-3px); }
.btn--solid { background: var(--base); color: #fff; }
.btn--solid:hover { background: var(--base-2); transform: translateY(-3px); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--base); transform: translateY(-3px); }
.btn--block { width: 100%; justify-content: center; }

/* ===================== HEADER ===================== */
.site-header { position: relative; z-index: 1000; }
.topbar {
  background: #0a1530; color: #c6d2ec;
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--accent); }
.topbar__item a:hover { color: var(--accent); }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__pill {
  background: linear-gradient(90deg, var(--cta), var(--accent));
  color: #fff; font-family: var(--ff-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 14px; border-radius: 50px; font-size: .72rem;
}
.topbar__social { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s; }
.topbar__social:hover { background: var(--accent); color: var(--base); }
.topbar__social svg { width: 16px; height: 16px; }

.nav { background: #fff; box-shadow: var(--shadow-sm); }

/* Row A · centered brand */
.nav__brandrow {
  overflow: hidden;
  opacity: 1; visibility: visible;
}
.nav__brandrow-inner { display: flex; align-items: center; justify-content: center; position: relative; padding: 18px 0 16px; }

/* Row B · full-width menu bar */
.nav__bar { position: sticky; top: 0; border-top: 1px solid var(--line); background: #fff; z-index: 1000; }
.nav--scrolled .nav__bar { border-top-color: transparent; box-shadow: var(--shadow-sm); }
.nav__bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; position: relative; }
/* Removed space-between: .nav--scrolled .nav__bar-inner {...} */

/* mini brand that appears in the bar once the tall brand row collapses */
.nav__minibrand {
  display: none; align-items: center; gap: 11px;
  font-family: var(--ff-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.12rem; color: var(--base);
}
.nav__minibrand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(245,166,35,.55); }
/* Removed minibrand: .nav--scrolled .nav__minibrand {...} */

/* brand / logo */
.brand { display: flex; align-items: center; gap: 18px; }
.brand__logo {
  width: 58px; height: 58px; display: block; flex-shrink: 0; overflow: hidden;
  border-radius: 50%; background: #fff; border: 3px solid rgba(245,166,35,.6);
  box-shadow: 0 6px 18px rgba(14,27,61,.18);
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand__logo--header { width: 104px; height: 104px; }
.brand__logo--footer { width: 76px; height: 76px; border-color: rgba(245, 166, 35, 0.3); }
.brand__text { display: flex; flex-direction: column; line-height: 1.06; }
.brand__name { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; color: var(--base); font-size: 2.35rem; letter-spacing: .02em; }
.brand__sub { font-size: .92rem; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; margin-top: 5px; }

/* menu */
.menu { display: flex; align-items: center; gap: 30px; }
.menu > a, .menu__dd-trigger {
  font-family: var(--ff-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .07em; font-size: 1.06rem; color: var(--ink);
  padding: 8px 2px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px;
  position: relative; transition: color .2s;
}
.menu > a:hover, .menu__dd-trigger:hover { color: var(--cta); }
.menu__has-dd { position: relative; }
.caret { width: 14px; height: 14px; fill: currentColor; transition: transform .2s; }
.menu__has-dd:hover .caret { transform: rotate(180deg); }
.dd {
  position: absolute; top: 100%; left: 0;
  background: #fff; min-width: 230px; padding: 10px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
}
.menu__has-dd:hover .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.menu__has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.menu a[aria-current="page"] { color: var(--cta); }
.dd a { font-family: var(--ff-body); text-transform: none; font-size: .9rem; padding: 8px 12px; border-radius: 6px; color: var(--ink); }
.dd a:hover { background: var(--cream); color: var(--cta); }
.menu__cta {
  background: var(--cta); color: #fff !important; padding: 11px 20px !important;
  border-radius: 50px; box-shadow: 0 8px 18px rgba(255,107,26,.35);
}
.menu__cta:hover { background: var(--cta-dark); color: #fff !important; transform: translateY(-2px); }
/* keep menu labels on one line; tighten the collapsed (scrolled) bar so nothing wraps */
.menu > a, .menu__dd-trigger { white-space: nowrap; }
.nav--scrolled .menu { gap: 20px; }
.nav--scrolled .menu > a, .nav--scrolled .menu__dd-trigger { font-size: 1rem; letter-spacing: .05em; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 26px; height: 3px; background: var(--base); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== FOOTER ===================== */
.footer { background: #0a1530; color: #b9c5e0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding: 44px 22px 30px; }
.footer__col h4 { font-family: var(--ff-head); font-weight: 600; text-transform: uppercase; color: #fff; font-size: 1.05rem; margin-bottom: 18px; letter-spacing: .05em; position: relative; padding-bottom: 10px; }
.footer__col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--accent); }
.footer__col a { display: block; color: #aebbd6; font-size: .9rem; padding: 5px 0; transition: color .2s, padding .2s; }
.footer__col a:hover { color: var(--accent); padding-left: 6px; }
.footer__col--brand p { margin: 16px 0; font-size: .9rem; max-width: 360px; }
.footer__col a.brand--footer { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; max-width: 390px; padding: 0; }
.footer__col a.brand--footer:hover { padding-left: 0; }
.brand--footer .brand__text { min-width: 0; justify-content: center; }
.brand--footer .brand__name { color: #fff; white-space: nowrap; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.brand--footer .brand__sub { color: #8fa1c3; }
/* Approval badges — both PNGs are transparent, so they sit straight on the navy */
.footer__approvals { margin: 18px 0 20px; }
.footer__approvals-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: #8593b0; margin-bottom: 10px; }
.footer__approvals-logos { display: flex; align-items: center; gap: 16px; }
.footer__approvals-logos img { height: 54px; width: auto; display: block; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; padding: 0; transition: background .2s, color .2s, transform .2s; }
.footer__socials a:hover { background: var(--accent); color: var(--base); transform: translateY(-3px); padding-left: 0; }
.footer__socials svg { width: 19px; height: 19px; }
.social-icon--instagram { fill: none; stroke: currentColor; stroke-width: 1.9; }
.social-icon--instagram .social-icon__dot { fill: currentColor; stroke: none; }
.social-icon--facebook { fill: currentColor; }
.footer__addr { display: flex !important; gap: 8px; align-items: flex-start; font-size: .86rem !important; line-height: 1.5; padding: 6px 0 !important; }
.footer__addr svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 22px; font-size: .8rem; color: #8593b0; }
.footer__bar strong { color: var(--accent); }
/* Designer credit — logo sits on a white chip so its own white artwork blends in */
.footer__credit { display: inline-flex; align-items: center; gap: 10px; }
.footer__credit-label { white-space: nowrap; }
.footer__credit img { height: 30px; width: auto; display: block; background: #fff; border-radius: 6px; padding: 3px 7px; }

/* ===================== ZOHO FORM EMBEDS ===================== */
/* Zoho iframes cannot self-resize, so the height is fixed generously to
   avoid a scrollbar nested inside the page. */
.zoho-embed { width: 100%; }
.zoho-embed iframe {
  display: block; width: 100%; height: 820px; border: none;
  border-radius: 12px; background: #fff;
}
@media (max-width: 640px) { .zoho-embed iframe { height: 1000px; } }

/* ===================== INTERACTION & MOTION ===================== */
/* Shared motion keeps the whole page lively without changing its layout. */
a, button, .crest, .hchip, .wfeat, .stat, .course, .vm__card, .leader,
.facility-card, .life__card, .gtile, .hex, .recruiters__row span {
  transition-timing-function: cubic-bezier(.2,.8,.2,1);
}

/* Animated navigation underline */
.menu > a:not(.menu__cta) { position: relative; }
.menu > a:not(.menu__cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px;
  background: var(--color-sweep); background-size: 220% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.menu > a:not(.menu__cta):hover::after { transform: scaleX(1); animation: colorFlow 1.6s linear infinite; }

/* Buttons receive a moving highlight and colorful glow. */
.btn, .menu__cta { position: relative; overflow: hidden; isolation: isolate; }
.btn::after, .menu__cta::after {
  content: ""; position: absolute; top: -45%; bottom: -45%; left: -55%; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); pointer-events: none; transition: left .55s ease;
}
.btn:hover::after, .menu__cta:hover::after { left: 125%; }
.btn:hover, .menu__cta:hover { filter: saturate(1.18); box-shadow: 0 12px 28px rgba(255,107,26,.32); }

/* Color accents beneath section headings. */
.section-head .h2::after {
  content: ""; display: block; width: 76px; height: 4px; margin: 18px auto 0;
  border-radius: 50px; background: var(--color-sweep); background-size: 240% 100%;
  animation: colorFlow 4s linear infinite;
}

/* Logo, trust badges and feature rows. */
.brand__logo { transition: width .25s, height .25s, transform .35s cubic-bezier(.2,.8,.2,1), filter .35s, box-shadow .35s; }
.brand:hover .brand__logo { transform: rotate(5deg) scale(1.07); filter: saturate(1.08); box-shadow: 0 9px 20px rgba(245,166,35,.3); }
.crest { transition: transform .28s, filter .28s, box-shadow .28s; }
.crest:hover {
  transform: translateY(-7px); filter: saturate(1.16) brightness(1.04);
  box-shadow: 0 18px 34px color-mix(in srgb, var(--crest-a) 34%, transparent);
}
.crest:hover::after { transform: scale(1.35) translate(-8px, 8px); }
.crest__hex, .crest__logo, .wfeat__icon { transition: transform .35s, background .35s, color .35s; }
.crest__monogram {
  display: grid;
  place-items: center;
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--base);
  background: #fff;
}
.crest:hover .crest__hex { transform: rotate(-7deg) scale(1.1); background: rgba(255,255,255,.28); color: #fff; }
.crest:hover .crest__logo { transform: rotate(-4deg) scale(1.08); }
.wfeat:hover .wfeat__icon { transform: rotate(-7deg) scale(1.1); background: var(--cta); color: #fff; }
.wfeat { transition: transform .28s, background .28s, border-color .28s, box-shadow .28s; }
.wfeat:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 10px 25px rgba(14,27,61,.1); }
.hchip { transition: transform .28s, background .28s, border-color .28s; }
.hchip:hover { transform: translateY(-5px); background: rgba(245,166,35,.18); border-color: rgba(245,166,35,.65); }

/* Image and emblem motion. */
.about__frame img, .why__media img, .leader__photo img {
  transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .45s;
}
.about__frame:hover img, .why__media:hover img, .leader:hover .leader__photo img {
  transform: scale(1.045); filter: saturate(1.12) contrast(1.03);
}
.about__seal { animation: gentleFloat 3.8s ease-in-out infinite; }
.vm__icon, .course__hex { transition: transform .35s, filter .35s; }
.vm__card:hover .vm__icon, .course:hover .course__hex { transform: translateY(-5px) rotate(6deg); filter: brightness(1.12); }
.hex:hover { transform: translateY(-8px) scale(1.06); filter: hue-rotate(12deg) saturate(1.18); }

/* Cards and counters gain colorful depth on hover. */
.course:hover { box-shadow: 0 20px 42px rgba(29,78,158,.14), 0 10px 28px rgba(22,184,166,.13), 0 0 0 1px var(--c); }
.vm__card:hover { border-color: var(--accent); box-shadow: 0 20px 44px rgba(245,166,35,.16); }
.leader:hover { box-shadow: 0 18px 42px rgba(22,184,166,.13); }
.stat { transition: transform .3s, background .3s; border-radius: 14px; }
.stat:hover { transform: translateY(-7px); background: rgba(255,255,255,.055); }
.stat:hover .stat__num { text-shadow: 0 0 24px rgba(245,166,35,.55); }

/* Image tiles keep their bottom black overlays and receive a colorful edge glow. */
.gtile { transition: transform .35s, box-shadow .35s, filter .35s; }
.gtile:hover {
  transform: translateY(-6px) scale(1.015); filter: saturate(1.1);
  box-shadow: 0 16px 32px rgba(22,184,166,.2), 0 0 0 2px rgba(245,166,35,.65);
}
.life__card { transition: transform .35s, box-shadow .35s, filter .35s; }
.life__card:hover { filter: saturate(1.08); box-shadow: 0 18px 36px rgba(255,107,26,.2), 0 0 0 2px rgba(22,184,166,.55); }
.gtile:hover span, .life__card:hover h3 { color: #ffd166; }
.gtile span, .life__card h3 { transition: color .25s, transform .25s; }
.gtile:hover span { transform: translateX(4px); }

/* Recruiters, form fields and floating actions. */
.recruiter-logo:hover img { filter: saturate(1.08); }
.field input, .field select, .field textarea { transition: border-color .25s, box-shadow .25s, transform .25s; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(22,184,166,.14); transform: translateY(-2px); }
@keyframes colorFlow { to { background-position: 220% 0; } }
@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .gallery__carousel { -webkit-mask-image: none; mask-image: none; }
  .gallery__row { overflow-x: auto; scrollbar-width: thin; }
  .gallery__track { animation: none !important; }
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease, box-shadow .35s ease, filter .35s ease,
    background .3s ease, color .25s ease, border-color .25s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px) {
  .container { padding-inline: 20px; }
  .affil__crests { grid-template-columns: 1fr 1fr; gap: 18px; }
  .course-grid, .vm__trio { grid-template-columns: 1fr 1fr; }
  .vm__trio .vm__card:last-child { grid-column: span 2; }
  .life__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: span 2; }
  .recruiters__row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1080px) {
  .menu {
    position: fixed; top: 0; right: 0; width: min(82vw, 360px); height: 100dvh;
    background: var(--base); flex-direction: column; align-items: stretch; gap: 0;
    padding: 88px 20px 30px; transform: none; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s, visibility .25s; z-index: 999;
    overflow-y: auto; box-shadow: -20px 0 50px rgba(6,13,31,.34);
  }
  .menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .menu > a, .menu__dd-trigger { color: #fff; padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .menu > a:hover, .menu__dd-trigger:hover { color: var(--accent); }
  .menu > a::before, .menu__dd-trigger::before { display: none; }
  .menu__has-dd .caret { display: none; }
  .menu__has-dd .dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); margin: 0 0 8px; padding: 4px 0 4px 12px; }
  .menu__has-dd .dd a { color: #b9c5e0; }
  .menu__cta { text-align: center; margin-top: 12px; }
  .burger { display: flex; z-index: 1001; position: relative; }
  .burger.open span { background: #fff; }
  .topbar__item--hide-sm, .topbar__pill { display: none; }

  /* double-decker collapses to a single brand row on mobile; menu becomes a drawer */
  .nav__brandrow { max-height: none; opacity: 1; pointer-events: auto; }
  .nav__brandrow-inner { justify-content: space-between; padding: 14px 0; }
  .nav__bar { border-top: 0; }
  .nav--scrolled .nav__bar { box-shadow: none; }
  .nav__bar-inner { min-height: 0; }
  .nav__minibrand,
  .brand__logo--header { width: 72px; height: 72px; }
  .brand__name { font-size: 1.6rem; }
  .brand__sub { font-size: .78rem; letter-spacing: .14em; }

  .about__grid, .why__grid, .leaders__split, .admissions__inner, .contact__grid { grid-template-columns: 1fr; gap: 38px; }
  .about__grid, .why__grid { max-width: 820px; margin-inline: auto; }
  .why__media img { height: 380px; }
  .facility-card { flex-basis: calc((100% - 18px) / 2); }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stat:nth-child(2)::after { display: none; }
  .why__features { grid-template-columns: 1fr; }
  .leaders__split { max-width: 780px; margin-inline: auto; }
  .leader { padding: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 30px; }
  .hero__inner { padding-top: 56px; }
  .hero__content { max-width: 600px; }
  .hero__badges-inner { gap: 10px 20px; }
  .about__frame img { height: 380px; }
  .why__media img { height: 340px; }
  .course { padding: 28px 22px 24px; }
  .course h3 { font-size: 1.08rem; }
  .vm__card { padding: 32px 24px 26px; }
  .leaders__svg-bg { inset: -3%; }
  .life__card { height: 270px; }
  .footer__inner { gap: 30px; padding-top: 52px; }
  .footer__col--brand { grid-column: span 2; }
  .gallery__carousel { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
}

@media (max-width: 620px) {
  .container { padding-inline: 16px; }
  .section { padding: 30px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head__sub { font-size: .94rem; }
  .hero { min-height: calc(100svh - 64px); }
  .hero__inner { padding: 44px 16px 24px; }
  .hero__title { font-size: clamp(2.35rem, 13vw, 3.3rem); }
  .hero__script { font-size: 1.55rem; }
  .hero__lead { font-size: .96rem; }
  .hero__cta { gap: 10px; margin-bottom: 26px; }
  .hero__cta .btn { width: 100%; justify-content: center; padding: 13px 18px; }
  .hero__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hchip { padding: 9px 11px; }
  .hero__badges-inner { justify-content: flex-start; gap: 8px 16px; }
  .fbadge { font-size: .76rem; }
  .affil__crests { grid-template-columns: 1fr; }
  .course-grid, .vm__trio, .vm__trio .vm__card:last-child, .life__grid { grid-template-columns: 1fr; }
  .vm__trio .vm__card:last-child { grid-column: auto; }
  .life__card { height: 240px; }
  .facility-card { flex-basis: 100%; height: 285px; }
  .gtile, .gallery__row--bottom .gtile { width: 270px; flex-basis: 270px; height: 165px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat::after { display: none !important; }
  .stat { border-bottom: 1px solid rgba(245,166,35,.2); }
  .contact__cards { grid-template-columns: 1fr; }
  .cinfo--social { grid-column: auto; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__col--brand { grid-column: auto; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
  .lateral { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .hex { width: 110px; height: 126px; }
  .hex-grid { max-width: 280px; }
  .about__seal { width: 96px; height: 110px; }
  .about__seal-num { font-size: 1.5rem; }
  .about__media { padding: 0 0 24px; }
  .about__frame img { height: 310px; }
  .about__offset { top: 12px; left: 12px; width: calc(100% - 4px); }
  .about__bracket--br { right: 8px; }
  .why__media img { height: 300px; }
  .why__float { left: 10px; bottom: -16px; padding: 14px 18px; }
  .leader { flex-direction: column; padding: 24px 22px; gap: 16px; }
  .leader__photo { width: 96px; height: 108px; }
  .leader__mono { width: 76px; height: 86px; }
  .leaders__svg-bg { inset: 0; }
  .topbar__contact { gap: 12px; }
  .topbar__inner { min-height: 48px; }
  .topbar__contact .topbar__item:nth-child(2) { display: none; }
  .brand__logo--header { width: 60px; height: 60px; }
  .brand__logo--footer { width: 68px; height: 68px; }
  .brand { gap: 12px; }
  .brand__name { font-size: 1.28rem; }
  .brand__sub { font-size: .68rem; letter-spacing: .1em; }
  .nav__brandrow-inner { padding: 11px 0; }
  .menu { width: min(88vw, 340px); padding-top: 76px; }
  .recruiters__row { grid-template-columns: repeat(2, 1fr); }
  .recruiter-logo { height: 68px; }
  .recruiters { padding: 26px 16px; }
  .footer__inner { padding-inline: 16px; }
  .footer__col--brand { grid-column: auto; }
  .facility-carousel__controls { gap: 12px; }
  .facility-carousel__dots { min-width: 120px; gap: 5px; }
}

@media (max-width: 420px) {
  .topbar { display: none; }
  .brand__logo--header { width: 50px; height: 50px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { max-width: 175px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero__chips { grid-template-columns: 1fr; }
  .hero__badges { display: none; }
  .crest { min-height: 104px; padding: 16px; }
  .course__hex { width: 62px; height: 70px; flex-basis: 70px; }
  .facility-card { height: 260px; }
  .facility-card__label { font-size: .98rem; }
  .facility-carousel__arrow { width: 40px; height: 40px; }
  .facility-carousel__dots { min-width: 104px; }
  .gallery__track { gap: 10px; padding-left: 10px; }
  .gtile, .gallery__row--bottom .gtile { width: 245px; flex-basis: 245px; height: 155px; }
  .recruiter-logo { padding: 11px 8px; }
}

/* ===== Justified description / body copy ===== */
.about__body p,
.vm__card p,
.course p,
.lateral p,
.leader__quote,
.footer__col--brand p,
.life__card p { text-align: justify;
 -webkit-hyphens: auto;
 hyphens: auto; }/* ---------- Inner Page Hero / Header ---------- */
.inner-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 80px 22px 60px;
}
.inner-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.inner-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  z-index: 1;
}
.inner-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.inner-hero .eyebrow {
  justify-content: center;
}
.inner-hero h1 {
  font-family: var(--ff-head);
  font-weight: 700;
  text-transform: none;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 10px 0 20px;
}
.inner-hero p {
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .82rem;
  letter-spacing: .04em;
}
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--accent); }
.breadcrumb { text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8); }
.breadcrumb__current { color: rgba(255, 255, 255, 0.75); }
.cl-hero .breadcrumb,
.dept-hero .breadcrumb { position: relative; z-index: 2; }

.related-cta {
  margin-top: 34px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--cream-2), #fff);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.related-cta p { margin: 0; color: var(--ink); font-weight: 600; }

.campus-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.campus-gallery__grid--three { grid-template-columns: repeat(3, 1fr); }
.campus-gallery figure {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--base);
}
.campus-gallery img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; transition: transform .45s; }
.campus-gallery figure:hover img { transform: scale(1.04); }
.campus-gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 32px 18px 16px;
  color: #fff;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(10, 21, 48, 0.45));
}

.programme-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.programme-directory__grid > * {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border-top: 4px solid var(--accent-2);
  box-shadow: var(--shadow-sm);
}
.programme-directory__grid > a { border-top-color: var(--cta); }
.programme-directory__grid > a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.programme-directory__grid strong {
  font-family: var(--ff-head);
  color: var(--base);
  text-transform: uppercase;
  font-size: 1.18rem;
}
.programme-directory__grid span { margin-top: 8px; color: var(--muted); font-size: .92rem; }

@media (max-width: 900px) {
  .campus-gallery__grid,
  .campus-gallery__grid--three,
  .programme-directory__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .breadcrumb { font-size: .74rem; }
  .related-cta { align-items: stretch; flex-direction: column; }
  .related-cta .btn { justify-content: center; }
  .campus-gallery__grid,
  .campus-gallery__grid--three,
  .programme-directory__grid { grid-template-columns: 1fr; }
  .campus-gallery figure,
  .campus-gallery img { min-height: 220px; }
}


/* ================== OVERRIDE FOR STICKY NAV ================== */
.nav__bar-inner { justify-content: center !important; }
.nav--scrolled .nav__bar-inner { justify-content: center !important; }

/* ===================== GLOBAL INNER PAGE TYPOGRAPHY ===================== */
body.inner-page main h2,
body.inner-page main .h2,
body.inner-page main .section-head h2,
body.inner-page main .section-title h2,
body.inner-page main .placement-heading h2,
body.inner-page main .about-section-head h2,
body.inner-page main .plc-training-header h2,
body.inner-page main .plc-career-header h2 {
  font-family: var(--ff-head) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0.01em !important;
}

body.inner-page main h3,
body.inner-page main .h3,
body.inner-page main .card h3,
body.inner-page main article h3,
body.inner-page main .gtile h3,
body.inner-page main .programme-directory__grid strong {
  font-family: var(--ff-head) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 1.12rem !important;
  line-height: 1.3 !important;
}

body.inner-page main .kicker,
body.inner-page main .eyebrow,
body.inner-page main .section-head span,
body.inner-page main .placement-heading span,
body.inner-page main .about-section-head span,
body.inner-page main .admissions-kicker {
  font-family: var(--ff-head) !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
}

body.inner-page main p {
  font-size: clamp(1rem, calc(0.95rem + 0.35vw), 1.1rem) !important;
  line-height: 1.72 !important;
  text-align: justify !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
}

/* Section intros, timeline steps and other centred blocks are centred by
   design. The blanket justify above would stretch those short lines, so let
   them inherit whatever their container intends. */
body.inner-page main .section-head > p,
body.inner-page main .about-section-head > p,
body.inner-page main .grievance-heading > p,
body.inner-page main .achievement-heading > p,
body.inner-page main .about-recognition__intro > p,
body.inner-page main .achievement-process__timeline p,
body.inner-page main .about-roadmap-step p,
body.inner-page main .student-life-leadership__content > p,
body.inner-page main .student-life-leadership-row__content > p {
  text-align: inherit !important;
}

/* ===================== INNER PAGE BANNER TYPOGRAPHY ===================== */
body.inner-page [class*="-hero"] h1,
body.inner-page .inner-hero h1 {
  font-family: var(--ff-head) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: clamp(24px, 5vw, 40px) !important;
  line-height: 1.05 !important;
}




/* Fix for hero text visibility against lightened banners */
[class*="-hero__content"] h1,
[class*="-hero__content"] p,
.inner-hero__content h1,
.inner-hero__content p,
.hero__content h1,
.hero__content p {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8) !important;
  }

[class*="-hero"] [class*="__lead"],
[class*="-hero__content"] > p:last-child {
  color: #ffffff !important;
}




/* Global fix for all breadcrumbs across all pages */
[class$="breadcrumb"] {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.8) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
[class$="breadcrumb"] a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
[class$="breadcrumb"] a:hover {
  color: var(--accent) !important;
}
