/* ==========================================================================
   Mandya Para Medical College — Design System
   Tokens → Base → Layout → Components → Sections → Utilities → Responsive
   ========================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Colour */
  --ink:        #08182A;   /* deep clinical navy — headings, dark sections */
  --ink-2:      #10314C;   /* secondary navy */
  --ink-soft:   #4A6076;   /* body text on light */
  --teal:       #0C7C74;   /* clinical teal — primary brand */
  --teal-lit:   #17BFA6;   /* bright pulse teal — accents, ECG line */
  --gold:       #B98A21;   /* government seal gold — trust marks only */
  --paper:      #F5F8F8;   /* page background */
  --surface:    #FFFFFF;
  --line:       #E2EAEA;   /* hairlines */

  --grad-brand: linear-gradient(135deg, #0C7C74 0%, #17BFA6 100%);
  --grad-ink:   linear-gradient(160deg, #08182A 0%, #10314C 60%, #0C3B44 100%);
  --grad-veil:  linear-gradient(180deg, rgba(8,24,42,.25) 0%, rgba(8,24,42,.72) 55%, rgba(8,24,42,.94) 100%);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-kn:      "Noto Sans Kannada", var(--font-body);
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --step--1: clamp(.8rem, .78rem + .1vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .18vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + .8vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 1.7vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);

  /* Space & shape */
  --sp-section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(8,24,42,.05), 0 4px 14px rgba(8,24,42,.05);
  --shadow-md: 0 2px 6px rgba(8,24,42,.06), 0 18px 44px rgba(8,24,42,.09);
  --shadow-lg: 0 30px 80px rgba(8,24,42,.18);

  --glass-bg: rgba(255,255,255,.72);
  --glass-brd: rgba(255,255,255,.55);
  --ease: cubic-bezier(.22,.68,.28,1);
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
}

a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-lit); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--teal-lit);
  outline-offset: 3px;
  border-radius: 4px;
}

.kn { font-family: var(--font-kn); line-height: 1.75; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem;
  border-radius: var(--r-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. REUSABLE COMPONENTS ---------- */

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor;
}
.eyebrow--light { color: var(--teal-lit); }

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.section-head p  { font-size: var(--step-1); color: var(--ink-soft); margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--light h2 { color: #fff; }
.section-head--light p  { color: rgba(255,255,255,.72); }

/* Buttons */
.btn-brand, .btn-ghost, .btn-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--r-pill);
  padding: .82rem 1.75rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn-brand {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(12,124,116,.32);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(12,124,116,.42); }

.btn-ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.4);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }

.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* Card */
.card-x {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-x h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.card-x p  { font-size: .94rem; margin: 0; }

.card-x--glass {
  background: var(--glass-bg);
  border-color: var(--glass-brd);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px rgba(12,124,116,.28);
}

/* Signature element: ECG pulse line */
.pulse-line { display: block; width: 100%; max-width: 380px; height: 34px; overflow: visible; }
.pulse-line path {
  fill: none;
  stroke: var(--teal-lit);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: trace 3.4s var(--ease) infinite;
  filter: drop-shadow(0 0 6px rgba(23,191,166,.55));
}
@keyframes trace {
  0%   { stroke-dashoffset: 460; opacity: 0; }
  12%  { opacity: 1; }
  60%  { stroke-dashoffset: 0;   opacity: 1; }
  88%  { stroke-dashoffset: -460; opacity: 0; }
  100% { stroke-dashoffset: -460; opacity: 0; }
}
.pulse-divider { color: var(--teal); opacity: .35; margin: 0 auto; max-width: 200px; }
.pulse-divider path { animation: none; stroke-dashoffset: 0; filter: none; stroke: currentColor; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 4. HEADER ---------- */
.utility-bar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  padding: .5rem 0;
}
.utility-bar a { color: rgba(255,255,255,.9); }
.utility-bar a:hover { color: var(--teal-lit); }
.utility-bar strong { color: #fff; font-weight: 600; }

.site-nav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-nav.is-stuck { box-shadow: 0 6px 28px rgba(8,24,42,.09); background: rgba(255,255,255,.92); }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand__mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 14px;
  background: var(--grad-ink);
  color: var(--teal-lit);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: -.04em;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.navbar-nav .nav-link {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  padding: .5rem .85rem !important;
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--teal); background: rgba(12,124,116,.07); }

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  font-size: .92rem;
}
.dropdown-item { border-radius: var(--r-sm); padding: .55rem .8rem; color: var(--ink); }
.dropdown-item:hover { background: rgba(12,124,116,.08); color: var(--teal); }

.navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- 5. HERO ---------- */
.hero { position: relative; min-height: clamp(560px, 88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .carousel, .hero__media .carousel-inner, .hero__media .carousel-item { height: 100%; }
.hero__media .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .carousel-item { transition: opacity 1.4s var(--ease); }
.hero__veil { position: absolute; inset: 0; z-index: 1; background: var(--grad-veil); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 4rem 0 clamp(3rem, 6vw, 5.5rem); }

.hero h1 {
  color: #fff;
  font-size: var(--step-4);
  font-weight: 600;
  max-width: 15ch;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--teal-lit); }
.hero__lead { color: rgba(255,255,255,.82); font-size: var(--step-1); max-width: 52ch; margin-bottom: .4rem; }
.hero__kn { color: rgba(255,255,255,.62); font-size: .95rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.badge-glass {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: .78rem; font-weight: 500;
  padding: .42rem 1rem;
  border-radius: var(--r-pill);
}
.badge-glass i { color: var(--gold); }

.hero .carousel-indicators { margin-bottom: 1.2rem; z-index: 3; }
.hero .carousel-indicators [data-bs-target] {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.4); border: 0;
}
.hero .carousel-indicators .active { background: var(--teal-lit); }

/* ---------- 6. NOTICE TICKER ---------- */
.ticker {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker__tag {
  background: var(--grad-brand);
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .95rem 1.4rem;
  display: flex; align-items: center; gap: .5rem;
  white-space: nowrap; flex: 0 0 auto;
}
.ticker__track { display: flex; align-items: center; gap: 3.5rem; white-space: nowrap; animation: slide 38s linear infinite; padding-left: 2rem; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { font-size: .87rem; color: rgba(255,255,255,.85); }
.ticker__track span::before { content: "•"; color: var(--teal-lit); margin-right: .9rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 7. TRUST STRIP ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.2rem 0; }
.trust__item { display: flex; align-items: center; gap: .9rem; }
.trust__item i { font-size: 1.5rem; color: var(--teal); }
.trust__item strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.3; }
.trust__item span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- 8. SECTIONS ---------- */
.sec { padding: var(--sp-section) 0; }
.sec--tint { background: var(--surface); }
.sec--ink { background: var(--grad-ink); color: rgba(255,255,255,.72); }
.sec--ink h2, .sec--ink h3 { color: #fff; }

.figure-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.figure-frame img { width: 100%; display: block; transition: transform .8s var(--ease); }
.figure-frame:hover img { transform: scale(1.04); }

.stat-plate {
  position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--r-md);
  padding: 1rem 1.3rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.stat-plate div { text-align: center; flex: 1; }
.stat-plate b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.stat-plate small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* Course cards */
.course-card { display: flex; flex-direction: column; }
.course-card__code {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .14em;
  color: var(--teal);
  background: rgba(12,124,116,.08);
  padding: .3rem .7rem; border-radius: var(--r-pill);
  align-self: flex-start; margin-bottom: 1rem;
}
.course-card h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.course-card .kn { font-size: .86rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.course-card__meta {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft);
}
.course-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.course-card:hover::after { transform: scaleX(1); }

/* Notice list */
.notice-item {
  display: flex; gap: 1.1rem; padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.notice-item:last-child { border-bottom: 0; }
.notice-item__date {
  flex: 0 0 58px; text-align: center;
  background: rgba(12,124,116,.07); border-radius: var(--r-sm);
  padding: .45rem 0; height: fit-content;
}
.notice-item__date b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1; }
.notice-item__date small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.notice-item h4 { font-size: 1rem; margin-bottom: .25rem; }
.notice-item p { font-size: .85rem; margin: 0; }

/* Download rows */
.dl-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: .7rem;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dl-row:hover { border-color: var(--teal); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.dl-row i.file { color: var(--teal); font-size: 1.2rem; }
.dl-row span { flex: 1; font-size: .9rem; color: var(--ink); font-weight: 500; }
.dl-row small { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-soft); }

/* Video facade */
.video-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--ink);
  cursor: pointer; border: 1px solid rgba(255,255,255,.1);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .4s var(--ease), transform .6s var(--ease); }
.video-card:hover img { opacity: 1; transform: scale(1.05); }
.video-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 2.4rem; text-shadow: 0 4px 18px rgba(0,0,0,.5);
  pointer-events: none;
}
.video-card iframe { width: 100%; height: 100%; border: 0; }
.video-card__label {
  position: absolute; left: .8rem; bottom: .8rem; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  color: #fff; background: rgba(8,24,42,.6); padding: .25rem .6rem; border-radius: var(--r-sm);
  backdrop-filter: blur(8px); pointer-events: none;
}

/* Gallery strip */
.gal-tile { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; display: block; }
.gal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); filter: saturate(.85); }
.gal-tile:hover img { transform: scale(1.09); filter: saturate(1.1); }

/* Books band */
.band {
  background: var(--grad-brand);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.4rem);
  color: #fff;
  position: relative; overflow: hidden;
}
.band h2 { color: #fff; font-size: var(--step-2); }
.band p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.09);
}

/* Contact */
.contact-line { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.contact-line i { color: var(--teal-lit); font-size: 1.15rem; margin-top: .2rem; }
.contact-line strong { display: block; color: #fff; font-size: .95rem; margin-bottom: .15rem; }
.contact-line a, .contact-line span { color: rgba(255,255,255,.7); font-size: .9rem; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* ---------- 9. FOOTER ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: clamp(3rem,5vw,4.5rem) 0 0; }
.site-footer h5 { color: #fff; font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255,255,255,.6); font-size: .9rem; }
.site-footer a:hover { color: var(--teal-lit); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.social-row { display: flex; gap: .6rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff; font-size: 1rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.social-row a:hover { background: var(--grad-brand); transform: translateY(-3px); color: #fff; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.09);
  margin-top: 3rem; padding: 1.4rem 0;
  font-size: .8rem;
}

/* ---------- 10. FLOATING ACTIONS ---------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .6rem; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease);
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab--wa   { background: #25D366; }
.fab--call { background: var(--grad-brand); }
.fab--top  { background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .25s var(--ease); }
.fab--top.is-on { opacity: 1; pointer-events: auto; }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 1rem; margin-top: .8rem; box-shadow: var(--shadow-md);
  }
  .navbar-nav .nav-link { padding: .65rem .8rem !important; }
  .hero { min-height: 78vh; }
  .stat-plate { position: static; margin-top: 1rem; }
}

@media (max-width: 575.98px) {
  .hero__cta .btn-brand, .hero__cta .btn-ghost { width: 100%; justify-content: center; }
  .ticker__tag { padding: .8rem 1rem; font-size: .62rem; }
  .brand__name { font-size: .88rem; }
  .brand__sub { display: none; }
}

/* ---------- 12. MOTION PREFERENCE ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   13. INNER PAGE COMPONENTS  (about.html, courses.html and every page after)
   ========================================================================== */

/* ---- Page banner ---- */
.page-banner {
  position: relative;
  min-height: clamp(320px, 42vw, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--grad-veil);
}
.page-banner__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding: 3rem 0 clamp(2.2rem, 4vw, 3.4rem);
}
.page-banner h1 {
  color: #fff;
  font-size: var(--step-3);
  max-width: 18ch;
  margin: 0 0 .6rem;
  text-wrap: balance;
}
.page-banner p { color: rgba(255,255,255,.78); max-width: 56ch; margin: 0; }

/* ---- Breadcrumb ---- */
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.crumb li { color: rgba(255,255,255,.55); }
.crumb li + li::before { content: "/"; margin-right: .5rem; color: rgba(255,255,255,.3); }
.crumb a { color: rgba(255,255,255,.8); }
.crumb a:hover { color: var(--teal-lit); }

/* ---- Lead paragraph ---- */
.lead-x {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---- Portrait card (principal, faculty) ---- */
.portrait {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.portrait__body { padding: 1.3rem 1.5rem 1.6rem; }
.portrait__body h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.portrait__body span {
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}

/* ---- Timeline / milestone strip ---- */
.tl { position: relative; padding-left: 0; list-style: none; margin: 0; }
.tl__item { position: relative; padding: 0 0 2.2rem 2.4rem; }
.tl__item::before {
  content: ""; position: absolute; left: 7px; top: 26px; bottom: 0;
  width: 1px; background: var(--line);
}
.tl__item:last-child { padding-bottom: 0; }
.tl__item:last-child::before { display: none; }
.tl__dot {
  position: absolute; left: 0; top: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--teal);
}
.tl__item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.tl__item p { font-size: .92rem; margin: 0; }
.tl__year {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .14em; color: var(--teal); display: block; margin-bottom: .25rem;
}

/* ---- Logo strip ---- */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: clamp(2rem, 6vw, 5rem);
  padding: 2.2rem clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.logo-strip figure { margin: 0; text-align: center; }
.logo-strip img { width: 78px; height: 78px; object-fit: contain; }
.logo-strip figcaption {
  margin-top: .7rem; font-size: .78rem; color: var(--ink-soft);
  max-width: 20ch; line-height: 1.4;
}

/* ---- Course detail row (courses.html) ---- */
.course-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.course-row:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.course-row__media { position: relative; height: 100%; min-height: 240px; }
.course-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-row__body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.course-row__body h2 { font-size: var(--step-1); margin-bottom: .3rem; }
.course-row__body .kn { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.course-row__facts {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  padding-top: 1.2rem; margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.course-row__facts div { min-width: 110px; }
.course-row__facts small {
  display: block; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2rem;
}
.course-row__facts b { font-size: .92rem; color: var(--ink); font-weight: 600; }

/* ---- Chip list (subjects, career roles) ---- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: .8rem;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  background: var(--paper);
}
.chips--light li { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }

/* ---- Filter buttons ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn {
  font-size: .85rem; font-weight: 500;
  padding: .5rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Accordion ---- */
.acc-x .accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md) !important;
  margin-bottom: .8rem;
  overflow: hidden;
  background: var(--surface);
}
.acc-x .accordion-button {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  box-shadow: none;
}
.acc-x .accordion-button:not(.collapsed) { color: var(--teal); background: rgba(12,124,116,.05); }
.acc-x .accordion-button:focus { box-shadow: none; border-color: transparent; }
.acc-x .accordion-body { padding: 0 1.3rem 1.3rem; font-size: .93rem; }

@media (max-width: 767.98px) {
  .course-row__media { min-height: 200px; }
  .logo-strip img { width: 60px; height: 60px; }
}

/* ==========================================================================
   14. ADMISSION PAGE COMPONENTS
   ========================================================================== */

/* ---- Simple numbered steps ---- */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 1.1rem; padding-bottom: 1.9rem; position: relative; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: 0;
  width: 1px; background: var(--line);
}
.steps li:last-child::before { display: none; }
.steps__num {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .9rem; font-weight: 500;
  position: relative; z-index: 1;
  box-shadow: 0 6px 16px rgba(12,124,116,.25);
}
.steps h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.steps p { font-size: .92rem; margin: 0; }

/* ---- Document checklist ---- */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  color: var(--ink-soft);
}
.doc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-list li:first-child { padding-top: 0; }
.doc-list i { color: var(--teal); font-size: 1rem; margin-top: .2rem; flex: 0 0 auto; }
.doc-list strong { color: var(--ink); font-weight: 600; }

/* ---- Fee / info note box ---- */
.note-box {
  background: rgba(12,124,116,.06);
  border: 1px solid rgba(12,124,116,.18);
  border-radius: var(--r-md);
  padding: 1.2rem 1.4rem;
}
.note-box h3 { font-size: 1rem; margin-bottom: .5rem; }
.note-box p { font-size: .92rem; margin: 0; }


/* ==========================================================================
   15. LAYOUT FIXES
   ========================================================================== */

/* .card-x defaults to height:100% so card GRIDS line up. But in a two-column
   row Bootstrap stretches the column to the tallest sibling, which then
   stretches the card and pushes anything below it out of the section.
   Use .card-x--auto for a card that should keep its natural height. */
.card-x--auto { height: auto; }

/* A section must always contain its own background */
main > section { position: relative; }

/* Icons inside gradient tiles */
.card-icon i, .reach-tile__icon i, .steps__num { line-height: 1; }