@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&family=Source+Serif+4:ital,opsz,wght@1,8..60,500&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #F1F2EB;
  --paper-dim: #E7E8DF;
  --navy: #1C2568;
  --navy-soft: #454C82;
  --crimson: #A31E2E;
  --gold: #BE8B2C;
  --gold-tint: #EBD9A8;
  --forest: #2B6B46;
  --ink: #1C2568;
  --ink-soft: #454C82;
  --rule: rgba(28, 37, 104, 0.15);
  --paper-shadow: rgba(28, 37, 104, 0.10);

  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  flex: none;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- Mobile menu toggle ---------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  flex: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 16px 28px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

.mobile-nav a:hover { color: var(--ink); background: var(--paper-dim); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--paper);
  padding: 88px 0 72px;
}

.hero::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border: 2px solid rgba(190, 139, 44, 0.24);
  border-radius: 50%;
  right: -220px;
  top: -260px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(190, 139, 44, 0.16);
  border-radius: 50%;
  right: -70px;
  top: -110px;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-photo {
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(155deg, var(--crimson) 0%, var(--navy) 130%);
  border: 2px solid var(--gold);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px;
  color: var(--paper);
}

.hero-photo-fallback .fallback-icon {
  font-family: var(--font-display);
  font-size: 2.2rem;
  opacity: 0.7;
}

.hero-photo-fallback p {
  font-size: 0.82rem;
  color: rgba(241, 242, 235, 0.75);
  max-width: 22ch;
  margin: 0;
}

.hero-photo-fallback code {
  background: rgba(241, 242, 235, 0.16);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.78rem;
}


.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 15ch;
  color: var(--paper);
}

.hero-lede {
  font-size: 1.08rem;
  color: rgba(241, 242, 235, 0.78);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.hero-photo-caption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Fees (home page cards) ---------- */

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.fee-card {
  background: var(--paper-dim);
  border-radius: 2px;
  padding: 24px;
  box-shadow: 0 6px 20px var(--paper-shadow);
}

.fee-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 2px;
}

.fee-card-grades {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.fee-card .fee-table {
  margin-bottom: 12px;
}

.fee-card-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--crimson);
  text-decoration: none;
}

.fee-card-link:hover { text-decoration: underline; }

/* ---------- Notices ---------- */

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.notice-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--paper-dim);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}

.notice-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: var(--paper);
  border-radius: 2px;
  padding: 10px 0;
  height: fit-content;
}

.notice-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.notice-month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.notice-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.tag-notice { background: var(--gold-tint); color: var(--gold); }
.tag-event { background: rgba(28, 37, 104, 0.12); color: var(--navy); }
.tag-topper { background: rgba(43, 107, 70, 0.14); color: var(--forest); }
.tag-result { background: rgba(43, 107, 70, 0.14); color: var(--forest); }
.tag-holiday { background: rgba(163, 30, 46, 0.12); color: var(--crimson); }

.notice-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
}

.notice-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 640px) {
  .notice-item {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 16px;
  }
  .notice-day { font-size: 1.2rem; }
}

/* ---------- Toppers showcase ---------- */

.toppers-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 44px;
}

.topper-block {
  background: var(--paper-dim);
  border-radius: 4px;
  padding: 24px;
}

.topper-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.topper-block-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.topper-exam-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.topper-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.topper-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 14px 16px;
  text-align: center;
}

.topper-card.topper-first {
  border-color: var(--gold);
  box-shadow: 0 2px 0 var(--gold) inset;
}

.topper-rank {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
}

.topper-first .topper-rank {
  background: var(--gold);
  color: var(--navy);
}

.topper-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin: 10px auto 12px;
  background: var(--navy);
  color: var(--paper);
  position: relative;
}

.topper-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topper-photo-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.topper-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.3;
}

.topper-score {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--forest);
  font-weight: 700;
}

@media (max-width: 720px) {
  .topper-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .topper-cards { grid-template-columns: 1fr; }
}

/* ---------- Hero banner (home page, auto-rotating slideshow) ---------- */

.hero-banner {
  position: relative;
  height: 100vh;
  min-height: 460px;
  max-height: 840px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink) 0%, var(--forest) 130%);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 45%);
}

@media (max-width: 640px) {
  .hero-banner { height: 55vh; min-height: 340px; }
}

/* ---------- Leadership (home page) ---------- */

.leadership {
  padding: 72px 0;
  background: var(--paper);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 48px;
  justify-content: center;
  margin-top: 40px;
}

.leader-card {
  text-align: center;
}

.leader-photo {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  background: linear-gradient(155deg, var(--crimson) 0%, var(--navy) 130%);
  box-shadow: 0 10px 30px var(--paper-shadow);
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-photo-fallback span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--paper);
  opacity: 0.85;
}

.leader-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}

.leader-role {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  margin: 0;
}

@media (max-width: 640px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--crimson);
  color: var(--paper);
}
.btn-primary:hover { background: #8c1a28; }

.btn-ghost {
  background: transparent;
  border-color: rgba(241, 242, 235, 0.6);
  color: var(--paper);
}
.btn-ghost:hover { background: rgba(241, 242, 235, 0.12); border-color: var(--paper); }

/* ---------- Stats strip ---------- */

.stats-strip {
  border-bottom: 1px solid var(--rule);
}

.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 0;
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.stat:first-child { border-left: none; padding-left: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Section shell ---------- */

.section {
  padding: 84px 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 48px;
  margin-bottom: 44px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 60ch;
}

.section-desc p + p { margin-top: 14px; }

/* ---------- Institutions (asymmetric wings, not identical cards) ---------- */

.wings {
  display: flex;
  flex-direction: column;
}

.wing {
  display: grid;
  grid-template-columns: 6px 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  padding-left: 20px;
  border-top: 1px solid var(--rule);
  transition: padding-left 0.18s ease, background 0.18s ease;
}

.wing:last-child { border-bottom: 1px solid var(--rule); }

.wing:hover {
  background: var(--paper-dim);
  padding-left: 28px;
}

.wing-bar {
  align-self: stretch;
  width: 5px;
  border-radius: 2px;
}

.wing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.wing-meta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper-dim);
  padding: 4px 10px;
  border-radius: 2px;
}

.wing-established {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 10px;
}

.wing-tagline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 46ch;
}

/* ---------- Vision & Mission ---------- */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.vm-card {
  padding: 40px;
  background: var(--paper);
  border-top: 3px solid var(--navy);
}

.vm-card.vm-mission {
  border-top-color: var(--crimson);
}

.vm-dropcap {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 6px;
}

.vm-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.vm-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Infrastructure (home) ---------- */

.infra-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.infra-card {
  background: var(--paper);
  padding: 30px 28px;
  border-left: 3px solid var(--navy);
}

.infra-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--ink);
}

.infra-card-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 32px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.site-footer h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 14px;
}

.site-footer p, .site-footer a {
  color: rgba(247, 242, 231, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer a:hover { color: var(--paper); }

.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid rgba(247, 242, 231, 0.16);
  font-size: 0.82rem;
  color: rgba(247, 242, 231, 0.5);
}

/* ================================================================
   INSTITUTION PAGE
   ================================================================ */

.inst-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--rule);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.back-link:hover { color: var(--ink); }

.inst-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.page-splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

.page-splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

.page-splash::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  border: 2px solid rgba(190, 139, 44, 0.24);
  border-radius: 50%;
  right: -220px;
  top: -260px;
  pointer-events: none;
  animation: ringSpin 30s linear infinite;
}

.page-splash::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(190, 139, 44, 0.18);
  border-radius: 50%;
  left: -140px;
  bottom: -180px;
  pointer-events: none;
  animation: ringSpin 22s linear infinite reverse;
}

@keyframes ringSpin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(1); }
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 22px;
  flex: none;
  position: relative;
  z-index: 1;
  animation: splashIn 0.6s ease both;
}

.page-splash-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-splash-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--paper);
  margin: 0;
  max-width: 26ch;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  animation: splashIn 0.6s ease 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .page-splash-logo, .page-splash-name, .page-splash::before, .page-splash::after { animation: none; }
  .page-splash { transition: none; }
}

.inst-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.inst-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}

.inst-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inst-hero-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}

.inst-grade-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
  background: rgba(62, 107, 82, 0.1);
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.inst-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 14px;
  line-height: 1.08;
}

.inst-hero-tagline {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
}

.inst-quick {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: grid;
  gap: 10px;
}

.inst-quick strong { color: var(--ink); }

/* Sub-nav (sticky) */

.subnav {
  position: sticky;
  top: 76px;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.subnav .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav .wrap::-webkit-scrollbar { display: none; }

.subnav a {
  flex: none;
  padding: 16px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subnav a:hover { color: var(--ink); }

.subnav a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* Institution sections */

.inst-section {
  padding: 64px 0;
  scroll-margin-top: 128px;
}

.inst-section + .inst-section {
  border-top: 1px solid var(--rule);
}

.inst-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0 0 28px;
}

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

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.highlight-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

/* Fees table */

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.fee-table th, .fee-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.94rem;
}

.fee-table th {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.fee-table td:last-child, .fee-table th:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
}

.fee-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
}

/* Gallery */

.gallery-caption {
  color: var(--ink-soft);
  margin: -12px 0 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-group {
  margin-bottom: 40px;
}

.gallery-group:last-child {
  margin-bottom: 0;
}

.gallery-group-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.gallery-item {
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--ink) 0%, var(--forest) 130%);
  border-radius: 3px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.gallery-item-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(247,242,231,0.14), transparent 60%),
    linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
}

.gallery-item-tag {
  font-size: 0.72rem;
  text-transform: none;
  color: var(--gold-tint);
  margin-bottom: 4px;
  position: relative;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  position: relative;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 18px;
}

.contact-list dt {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.contact-list dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
}

.map-box {
  background: var(--paper-dim);
  border: 1px solid var(--rule);
  border-radius: 3px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 3px;
}

/* Results */

.results-note {
  color: var(--ink-soft);
  margin: -12px 0 24px;
}

/* Infrastructure */

.infra-grid {
  columns: 2;
  column-gap: 40px;
}

.infra-grid .highlight-list li {
  break-inside: avoid;
  margin-bottom: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero .wrap,
  .inst-hero-grid,
  .section-head,
  .inst-two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .inst-quick {
    border-left: none;
    padding-left: 0;
  }
  .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .wing { grid-template-columns: 6px 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .infra-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-grid { columns: 1; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
