@charset "UTF-8";
/* ==========================================================================
   Government Science College (Autonomous), Jabalpur
   Website redesign demo — core stylesheet
   Design: institutional navy + gold, serif masthead, card-based academic layout
   Static site: HTML5 + CSS3 + vanilla JS only
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root {
  --navy-900: #071f38;
  --navy-800: #0a2b4a;
  --navy-700: #0f3a60;
  --navy-600: #14507f;
  --blue-600: #1a6aa8;
  --blue-100: #e8f0f8;
  --gold-700: #9a7a20;
  --gold-600: #b8902a;
  --gold-500: #c9a349;
  --gold-100: #f6efdc;
  --saffron: #d9661f;
  --ink: #14212e;
  --ink-soft: #33475c;
  --muted: #5c6f82;
  --line: #dfe6ee;
  --line-soft: #eef2f7;
  --bg: #f5f8fb;
  --white: #ffffff;
  --green: #1d7a4d;
  --red: #a8342a;

  --sans: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari",
          "Nirmala UI", "Mangal", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman",
           "Noto Serif Devanagari", serif;

  --wrap: 1240px;
  --wrap-narrow: 960px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 43, 74, .06), 0 1px 3px rgba(10, 43, 74, .08);
  --shadow-md: 0 4px 14px rgba(10, 43, 74, .10);
  --shadow-lg: 0 18px 40px rgba(7, 31, 56, .16);
  --speed: .18s;
}

/* --------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { border: 0; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.28; color: var(--navy-800); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote {
  margin: 1.4rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--gold-500);
  background: var(--gold-100); color: var(--ink-soft); font-style: italic;
}
code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 3px; }

/* --------------------------------------------------------------- helpers */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: var(--wrap-narrow); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--gold-500);
  color: var(--navy-900); padding: 10px 18px; font-weight: 700; border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--speed);
}
.skip-link:focus { top: 0; color: var(--navy-900); text-decoration: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------- top bar */
.topbar {
  background: var(--navy-900); color: #cfe0f0; font-size: .79rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; }
.topbar a { color: #d8e6f4; }
.topbar a:hover { color: var(--gold-500); text-decoration: none; }
.topbar-contacts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-contacts span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-contacts svg { width: 13px; height: 13px; fill: currentColor; opacity: .85; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-links { display: flex; gap: 14px; }
.topbar-links a { font-weight: 600; letter-spacing: .01em; }
.topbar .divider { width: 1px; height: 16px; background: rgba(255,255,255,.18); }
.social-links { display: flex; gap: 8px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,.1); transition: background var(--speed);
}
.social-links a:hover { background: var(--gold-500); }
.social-links svg { width: 13px; height: 13px; fill: #fff; }
.a11y-controls { display: flex; align-items: center; gap: 4px; }
.a11y-controls button {
  font: inherit; font-size: .74rem; font-weight: 700; color: #d8e6f4; background: transparent;
  border: 1px solid rgba(255,255,255,.28); border-radius: 3px; padding: 1px 7px; cursor: pointer;
  line-height: 1.5;
}
.a11y-controls button:hover { background: rgba(255,255,255,.14); color: #fff; }

/* --------------------------------------------------------------- masthead */
.masthead { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.masthead .container {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 22px; padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo {
  width: 84px; height: 84px; object-fit: contain; flex: 0 0 auto;
  max-width: none; min-width: 0;
}
.brand-text { min-width: 0; }
.brand-mark {
  width: 76px; height: 76px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  border: 2px solid var(--gold-500); letter-spacing: .02em; line-height: 1;
}
.brand-mark span { display: block; font-family: var(--sans); font-size: .52rem; letter-spacing: .12em; margin-top: 2px; color: var(--gold-500); }
.footer-brand .brand-mark { width: 58px; height: 58px; font-size: .82rem; }
.footer-brand .brand-mark span { font-size: .44rem; }
.brand-name {
  font-family: var(--serif); font-size: clamp(1.28rem, 1rem + .9vw, 1.72rem); font-weight: 700;
  color: var(--navy-800); line-height: 1.2; margin: 0;
}
.brand-name a { color: inherit; }
.brand-name a:hover { text-decoration: none; color: var(--navy-600); }
.brand-hindi { font-size: .95rem; color: var(--navy-600); font-weight: 600; margin-top: 3px; }
.brand-tagline {
  font-size: .755rem; color: var(--muted); margin-top: 5px; max-width: 62ch; line-height: 1.45;
  text-transform: none; letter-spacing: .01em;
}
/* NAAC Grade A accreditation badge — centred between the college name and the contact block */
.naac-slot { display: flex; justify-content: center; align-items: center; }
.naac-badge {
  display: flex; align-items: center; gap: 10px; padding: 7px 15px 7px 8px;
  border: 1px solid var(--gold-300, #e2cf94); border-radius: 999px;
  background: linear-gradient(180deg, #fffdf6, #fdf6e3);
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(10,43,74,.06);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.naac-badge:hover, .naac-badge:focus-visible {
  text-decoration: none; border-color: var(--gold-500); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10,43,74,.14);
}
.naac-seal {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(circle at 30% 25%, var(--navy-600, #12456f), var(--navy-800, #0a2b4a) 70%);
  border: 2px solid var(--gold-500); color: #fff;
}
.naac-seal-word { display: block; font-size: .44rem; letter-spacing: .12em; font-weight: 700; color: var(--gold-500); }
.naac-seal-grade {
  display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 700; line-height: 1.05;
}
.naac-text { text-align: left; line-height: 1.25; }
.naac-text strong { display: block; font-size: .78rem; font-weight: 800; color: var(--navy-800); letter-spacing: .01em; }
.naac-text span { display: block; font-size: .66rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.masthead-contact { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); }
.contact-item .ico {
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue-100); color: var(--navy-700);
  display: grid; place-items: center; flex: 0 0 auto;
}
.contact-item .ico svg { width: 15px; height: 15px; fill: currentColor; }
.contact-item strong { display: block; font-size: .82rem; color: var(--navy-800); font-weight: 700; }
.contact-item span, .contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--navy-700); }
.estd-badge {
  border: 1px solid var(--gold-500); color: var(--gold-700); border-radius: 999px;
  padding: 6px 14px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-100); white-space: nowrap;
}

/* --------------------------------------------------------------- navigation */
.navbar {
  background: var(--navy-800);
  border-top: 3px solid var(--gold-500);
  position: relative; z-index: 120;
}
/* the mega panel spans the whole navigation bar, not just its parent item */
.navbar .nav-inner, .navbar .container { position: static; }
.navbar-sticky { position: sticky; top: 0; box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: stretch; gap: 6px; }
.primary-nav { flex: 1 1 auto; }
.primary-nav > ul { display: flex; flex-wrap: wrap; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.primary-nav > ul > li { position: static; }
.primary-nav > ul > li > a,
.primary-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 13px 13px; color: #eaf2fa;
  font-size: .815rem; font-weight: 600; letter-spacing: .012em; background: none; border: 0;
  font-family: inherit; cursor: pointer; height: 100%; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > button:hover,
.primary-nav > ul > li.is-open > button,
.primary-nav > ul > li.is-open > a { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.primary-nav > ul > li > a.active,
.primary-nav > ul > li > button.active {
  border-bottom-color: var(--gold-500); color: #fff; background: rgba(255,255,255,.07);
}
.primary-nav .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .75; }

/* mega panel */
.mega {
  /* --mega-top is set by navigation.js to the bottom edge of the *hovered row*,
     so the panel opens directly under the row that was hovered and the pointer
     never has to travel across the other menu row to reach it (this is what
     previously caused the second row's submenu to open). */
  position: absolute; left: 0; right: 0; top: var(--mega-top, 100%);
  z-index: 40; /* above the chevron icons of the other menu row */
  background: var(--white); border-top: 3px solid var(--gold-500);
  box-shadow: var(--shadow-lg); padding: 26px 0 22px;
  display: none; max-height: min(74vh, 660px); overflow: auto;
}
.mega.is-open { display: block; }
.mega .container { display: block; }
.mega > .mega-grid { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.mega-col-wide { column-width: 210px; column-gap: 24px; }
.mega-col-wide > .mega-title { column-span: all; }
.mega-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px 30px; align-items: start;
}
.mega-col { min-width: 0; padding-bottom: 14px; }
.mega-col > .mega-title {
  display: block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: var(--navy-700); border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 9px;
}
.mega-col > .mega-title:hover { color: var(--gold-700); text-decoration: none; }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list li { margin: 0; }
.mega-list a {
  display: block; padding: 5px 0 5px 0; font-size: .845rem; color: var(--ink-soft);
  line-height: 1.42; border-radius: 3px;
}
.mega-list a:hover { color: var(--navy-700); text-decoration: none; padding-left: 6px; background: var(--blue-100); }
.mega-subgroup { margin: 9px 0 4px; }
.mega-subgroup > .mega-subtitle {
  font-size: .755rem; font-weight: 700; color: var(--navy-600); display: block; margin-bottom: 3px;
  padding-left: 0;
}
.mega-sublist { list-style: none; margin: 0; padding-left: 10px; border-left: 2px solid var(--line-soft); }
.mega-sublist a { font-size: .805rem; padding: 3px 0; color: var(--muted); }
.mega-note { font-size: .74rem; color: var(--muted); margin-top: 6px; }

/* mobile nav toggle */
.nav-toggle {
  display: none; align-items: center; gap: 10px; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 8px 14px;
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; margin: 9px 0;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after,
.nav-toggle .bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: 0; } .nav-toggle .bars span { top: 5px; } .nav-toggle .bars::after { bottom: 0; }
.search-toggle {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22); color: #eaf2fa; border-radius: var(--radius);
  padding: 8px 13px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  /* aligned with the first menu row so an open mega panel never covers it */
  align-self: flex-start; margin-top: 10px; position: relative; z-index: 6;
}
.search-toggle:hover { background: rgba(255,255,255,.18); }
.search-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* search panel */
.search-panel { display: none; background: var(--navy-700); border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; max-width: 720px; margin-inline: auto; }
.search-form input[type="search"] {
  flex: 1 1 auto; padding: 11px 15px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.25);
  background: #fff; font: inherit; font-size: .92rem; color: var(--ink);
}
.search-form button {
  padding: 11px 22px; border-radius: var(--radius); border: 0; background: var(--gold-500);
  color: var(--navy-900); font: inherit; font-weight: 700; cursor: pointer;
}
.search-form button:hover { background: #d8b25a; }
.search-hint { color: #cfe0f0; font-size: .76rem; text-align: center; margin: 8px 0 0; }

/* --------------------------------------------------------------- mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(400px, 92vw); background: #fff; z-index: 300;
  transform: translateX(102%); transition: transform .22s ease; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(7,31,56,.28);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--navy-800); color: #fff; padding: 14px 18px;
}
.drawer-head strong { font-size: .95rem; }
.drawer-close {
  background: rgba(255,255,255,.14); border: 0; color: #fff; width: 34px; height: 34px;
  border-radius: 50%; font-size: 1.15rem; line-height: 1; cursor: pointer;
}
.drawer-close:hover { background: rgba(255,255,255,.28); }
.drawer-body { overflow: auto; padding: 8px 0 40px; flex: 1 1 auto; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { margin: 0; }
.drawer a, .drawer button.acc {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 11px 20px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer;
}
.drawer a:hover, .drawer button.acc:hover { color: var(--navy-700); background: var(--blue-100); text-decoration: none; }
.drawer .acc[aria-expanded="true"] { color: var(--navy-700); background: var(--blue-100); }
.drawer .acc .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--speed); flex: 0 0 auto; }
.drawer .acc[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.drawer .sub { display: none; background: #fbfcfe; }
.drawer .sub.is-open { display: block; }
.drawer .sub a, .drawer .sub button.acc { padding-left: 34px; font-weight: 500; font-size: .86rem; }
.drawer .sub .sub a, .drawer .sub .sub button.acc { padding-left: 48px; font-size: .83rem; }
.drawer .sub .sub .sub a, .drawer .sub .sub .sub button.acc { padding-left: 62px; font-size: .8rem; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.drawer-foot a { display: inline; width: auto; padding: 0; border: 0; font-size: .8rem; font-weight: 600; color: var(--navy-700); }
.drawer-foot a:hover { background: none; text-decoration: underline; }
.scrim {
  position: fixed; inset: 0; background: rgba(7,31,56,.5); z-index: 250; opacity: 0;
  visibility: hidden; transition: opacity .2s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  /* graceful, photo-free backdrop used while a slide photograph is unavailable */
  background:
    radial-gradient(120% 140% at 88% 8%, rgba(201,163,73,.22) 0%, rgba(201,163,73,0) 46%),
    linear-gradient(118deg, #071f38 0%, #0a2b4a 46%, #123f66 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
}
.hero-slides { position: relative; height: clamp(330px, 41vw, 500px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none;
  display: flex; flex-direction: column;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
/* the photograph is shown whole — the caption sits in its own bar below the
   image, so no darkening scrim is laid over the picture */
.hero-slide img {
  flex: 1 1 auto; min-height: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 44%; display: block;
}
.hero-slide::after { content: none; }
.hero-caption {
  position: static; flex: 0 0 auto; z-index: 3;
  background: linear-gradient(90deg, var(--navy-900, #071f38) 0%, #10395c 62%, var(--navy-800, #0a2b4a) 100%);
  border-top: 3px solid var(--gold-500); padding-block: 14px 16px;
}
.hero-caption-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-right: 150px;
}
.hero-caption .container { position: relative; }
.hero-eyebrow {
  display: inline-block; background: var(--gold-500); color: var(--navy-900); font-size: .68rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 3px;
  white-space: nowrap;
}
.hero-title {
  color: #fff; font-family: var(--serif); font-size: clamp(1.12rem, .7rem + 1.1vw, 1.6rem);
  line-height: 1.2; margin: 0; max-width: 60ch;
}
.hero-title a { color: #fff; }
.hero-title a:hover { text-decoration: none; color: var(--gold-500); }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.44); color: #fff; padding: 9px 18px; border-radius: var(--radius);
  font-size: .85rem; font-weight: 700; backdrop-filter: blur(3px);
}
.hero-cta:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); text-decoration: none; }
.hero-nav {
  position: absolute; right: 20px; bottom: 18px; z-index: 5; display: flex; gap: 8px; align-items: center;
}
.hero-nav button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(7,31,56,.42); color: #fff; cursor: pointer; display: grid; place-items: center;
  font-size: .95rem; line-height: 1;
}
.hero-nav button:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.hero-dots { position: absolute; right: 108px; bottom: 26px; z-index: 5; display: flex; gap: 7px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: transparent;
  cursor: pointer; padding: 0;
}
.hero-dots button[aria-selected="true"] { background: var(--gold-500); border-color: var(--gold-500); }

/* text hero used when no slide photograph is bundled */
.hero-text { padding-block: clamp(38px, 5vw, 68px); }
.hero-text-inner { position: relative; z-index: 2; max-width: var(--wrap); }
.hero-headline {
  color: #fff; font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 2vw, 2.55rem);
  line-height: 1.18; margin: 4px 0 14px; max-width: 26ch;
}
.hero-lede { color: #c9daeb; font-size: clamp(.9rem, .85rem + .3vw, 1.04rem); max-width: 62ch; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-cta-solid { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.hero-cta-solid:hover { background: #dcb75f; border-color: #dcb75f; color: var(--navy-900); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hero-badges li {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #d9e6f2; border: 1px solid rgba(201,163,73,.55); border-radius: 999px; padding: 5px 13px;
  background: rgba(201,163,73,.10);
}

/* --------------------------------------------------------------- ticker */
.ticker { background: var(--navy-700); color: #fff; display: flex; align-items: stretch; overflow: hidden; }
.ticker-label {
  background: var(--gold-500); color: var(--navy-900); font-size: .76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; padding: 11px 18px; display: flex; align-items: center;
  gap: 8px; flex: 0 0 auto; white-space: nowrap;
}
.ticker-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ticker-viewport { flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; min-height: 42px; }
.ticker-track { display: flex; gap: 46px; white-space: nowrap; animation: ticker 55s linear infinite; padding-left: 20px; }
.ticker:hover .ticker-track, .ticker-track:focus-within { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { color: #eaf2fa; font-size: .84rem; display: inline-flex; align-items: center; gap: 9px; }
.ticker-item::before { content: ""; width: 5px; height: 5px; background: var(--gold-500); border-radius: 50%; flex: 0 0 auto; }
.ticker-item:hover { color: #fff; text-decoration: none; }
.ticker-item:hover span { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-slide { transition: none; }
}

/* --------------------------------------------------------------- sections */
.section { padding-block: clamp(34px, 4vw, 58px); }
.section-alt { background: var(--bg); }
.section-navy { background: var(--navy-800); color: #dbe8f4; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; position: relative; padding-bottom: 12px; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 52px; height: 3px;
  background: var(--gold-500); border-radius: 2px;
}
.section-head .eyebrow {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: 7px;
}
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; max-width: 68ch; }
.section-navy .section-head .eyebrow { color: var(--gold-500); }
.section-navy .section-head p { color: #b9cee2; }
.link-more { font-size: .82rem; font-weight: 700; color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px; }
.link-more::after { content: "→"; transition: transform var(--speed); }
.link-more:hover { color: var(--gold-700); text-decoration: none; }
.link-more:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------- cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-pad { padding: 20px 22px; }
.card-hover { transition: box-shadow var(--speed), transform var(--speed), border-color var(--speed); }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: #cddaea; transform: translateY(-2px); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* quick access */
.quick-access { background: var(--white); border-bottom: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
.quick-item {
  background: #fff; padding: 20px 16px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 9px; color: var(--navy-800); font-size: .83rem; font-weight: 700;
  transition: background var(--speed), color var(--speed);
}
.quick-item:hover { background: var(--blue-100); color: var(--navy-700); text-decoration: none; }
.quick-item .qi {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue-100); color: var(--navy-700);
  display: grid; place-items: center;
}
.quick-item:hover .qi { background: var(--navy-700); color: #fff; }
.quick-item svg { width: 19px; height: 19px; fill: currentColor; }

/* news & notices */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab {
  background: none; border: 0; border-bottom: 2.5px solid transparent; padding: 9px 14px; font: inherit;
  font-size: .83rem; font-weight: 700; color: var(--muted); cursor: pointer; margin-bottom: -1px;
}
.tab:hover { color: var(--navy-700); }
.tab[aria-selected="true"] { color: var(--navy-800); border-bottom-color: var(--gold-500); }
.tab-panel[hidden] { display: none; }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { margin: 0; border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-item { display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; }
.notice-item:hover { text-decoration: none; }
.notice-item:hover .notice-title { color: var(--navy-700); text-decoration: underline; }
.date-chip {
  flex: 0 0 auto; width: 52px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.date-chip .d { display: block; font-size: 1.08rem; font-weight: 800; color: var(--navy-800); line-height: 1.1; padding-top: 5px; }
.date-chip .m { display: block; font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #fff; background: var(--navy-700); padding: 2px 0 3px; margin-top: 4px; }
.notice-body { min-width: 0; }
.notice-title { display: block; font-size: .905rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.badge {
  display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 1px;
}
.badge-new { background: #fde8d8; color: #9c4a10; }
.badge-notice { background: var(--blue-100); color: var(--navy-700); }
.badge-event { background: #e4f3ea; color: var(--green); }
.badge-pdf { background: #fbe6e4; color: var(--red); }
.notice-meta { font-size: .74rem; color: var(--muted); margin-top: 3px; }

/* event cards */
.event-card { display: flex; flex-direction: column; height: 100%; }
.event-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); display: block; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.event-card:hover .event-thumb img { transform: scale(1.04); }
.event-date {
  position: absolute; left: 12px; bottom: 12px; background: rgba(7,31,56,.9); color: #fff;
  border-radius: var(--radius); padding: 5px 10px; font-size: .72rem; font-weight: 700; text-align: center;
  line-height: 1.2; border: 1px solid rgba(201,163,73,.6);
}
.event-date b { display: block; font-size: 1.05rem; }
.event-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.event-body h3 { font-size: .97rem; margin: 0; line-height: 1.42; }
.event-body h3 a { color: var(--navy-800); }
.event-body p { font-size: .845rem; color: var(--muted); margin: 0; }

/* about / principal */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; align-items: start; }
.about-figure { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.about-figure img { display: block; width: 100%; }
.about-figure figcaption { font-size: .78rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.principal-card { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; }
.principal-card img { width: 110px; height: 130px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.quote-mark { font-family: var(--serif); font-size: 2.6rem; line-height: .6; color: var(--gold-500); display: block; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fact-list li { display: flex; gap: 10px; font-size: .87rem; color: var(--ink-soft); margin: 0; }
.fact-list .k { color: var(--navy-700); font-weight: 700; flex: 0 0 auto; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: rgba(255,255,255,.14); }
.stat { background: var(--navy-800); padding: 22px 16px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 1.85rem; color: var(--gold-500); line-height: 1.1; }
.stat span { font-size: .78rem; color: #c4d7e8; letter-spacing: .02em; }

/* departments / quick-link tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tile {
  display: flex; gap: 12px; align-items: center; padding: 15px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: .875rem;
  font-weight: 600; transition: all var(--speed);
}
.tile:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); color: var(--navy-800);
  text-decoration: none; transform: translateY(-1px); }
.tile .n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700);
  display: grid; place-items: center; font-size: .74rem; font-weight: 800; flex: 0 0 auto;
}

/* gallery strip */
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.gallery-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--blue-100); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,31,56,.55));
  opacity: 0; transition: opacity var(--speed);
}
.gallery-thumb:hover::after { opacity: 1; }

/* links strip */
.link-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.link-strip a {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.link-strip a:hover { border-color: var(--navy-600); color: var(--navy-800); text-decoration: none; background: var(--blue-100); }

/* --------------------------------------------------------------- page shell */
.page-head {
  background: var(--navy-800); color: #fff; padding-block: clamp(26px, 3.4vw, 44px);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,163,73,.20), transparent 68%);
}
.page-head .eyebrow {
  font-size: .71rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; color: var(--gold-500);
  display: block; margin-bottom: 8px;
}
.page-head h1 { color: #fff; margin: 0; max-width: 32ch; }
.page-head p { color: #c3d6e6; margin: 10px 0 0; max-width: 70ch; font-size: .9rem; }
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--line); font-size: .78rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 9px 0; align-items: center; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; color: #9fb0c2; }
.breadcrumb a { color: var(--navy-700); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-700); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; padding-block: clamp(28px, 3.4vw, 46px); align-items: start; }
.layout-full { grid-template-columns: minmax(0, 1fr); }
.layout-full .content-wrap { max-width: 100%; }
.main-col { min-width: 0; }
.side-col { display: grid; gap: 20px; position: sticky; top: 84px; }

/* sidebar widget */
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.widget-title {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--navy-700);
  margin: 0; padding: 11px 16px; font-weight: 800; border-left: 4px solid var(--gold-500);
}
.widget-body { padding: 6px 0 12px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: flex; gap: 8px; align-items: center; padding: 9px 16px 9px 16px; font-size: .855rem;
  color: var(--ink-soft); font-weight: 500; line-height: 1.45;
}
.side-links a::before { content: "›"; color: var(--gold-600); font-weight: 800; flex: 0 0 auto; }
.side-links a:hover { background: var(--blue-100); color: var(--navy-700); text-decoration: none; }
.side-links a.active { background: var(--blue-100); color: var(--navy-800); font-weight: 700; }
.widget-contact { padding: 16px; font-size: .85rem; color: var(--ink-soft); }
.widget-contact p { margin: 0 0 8px; }
.widget-contact a { color: var(--navy-700); font-weight: 600; }

/* --------------------------------------------------------------- article content */
.content-wrap { min-width: 0; }
.page-article { background: #fff; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .78rem; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px;
}
.article-meta .pill { background: var(--blue-100); color: var(--navy-700); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

.entry { font-size: .965rem; color: var(--ink-soft); }
.entry > *:first-child { margin-top: 0; }
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 { color: var(--navy-800); margin-top: 1.6em; }
.entry h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.entry h3 { font-size: 1.1rem; }
.entry p, .entry li { line-height: 1.75; }
.entry a { text-decoration: underline; text-decoration-color: rgba(26,106,168,.35); text-underline-offset: 2px; }
.entry a:hover { text-decoration-color: currentColor; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry img { border-radius: var(--radius); height: auto; }
.entry .img-link { display: inline-block; }
.entry blockquote { background: var(--gold-100); border-left-color: var(--gold-600); }
.entry iframe { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.content-table { width: 100%; border-collapse: collapse; font-size: .875rem; background: #fff; min-width: 460px; }
table.content-table th, table.content-table td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
table.content-table thead th, table.content-table th { background: var(--navy-700); color: #fff; font-weight: 700; font-size: .82rem;
  text-transform: none; letter-spacing: .01em; }
table.content-table tbody tr:nth-child(even) { background: #f8fafc; }
table.content-table tbody tr:hover { background: var(--blue-100); }
table.content-table a { color: var(--navy-700); font-weight: 600; }

/* document rows */
.doc-row {
  display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 8px;
  flex-wrap: wrap;
}
.doc-row:hover { border-color: #c8d7e6; box-shadow: var(--shadow-sm); }
.doc-link { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 260px; color: var(--ink); font-size: .885rem; }
.doc-link .doc-name { display: block; }
.doc-link .doc-name .notice-meta { display: block; margin-top: 2px; }
.doc-link:hover { text-decoration: none; color: var(--navy-700); }
.doc-ext {
  flex: 0 0 auto; background: #fbe6e4; color: var(--red); font-size: .63rem; font-weight: 800;
  letter-spacing: .04em; padding: 3px 6px; border-radius: 3px;
  display: inline-grid; place-items: center; min-width: 34px;
}
.doc-name { font-weight: 600; line-height: 1.4; }
.doc-meta { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.doc-meta a { color: var(--navy-700); font-weight: 600; }
.pagination .info { min-width: 20px; }
.doc-offsite { font-size: .68rem; color: var(--muted); background: var(--line-soft); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.doc-dl {
  flex: 0 0 auto; background: var(--navy-700); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 6px 13px; border-radius: 4px;
}
.doc-dl:hover { background: var(--gold-600); color: #fff; text-decoration: none; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.4rem 0; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* section index (auto child links for hub pages) */
.child-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.child-index li { margin: 0; }
.child-index a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink-soft); font-size: .875rem; font-weight: 600;
}
.child-index a::before { content: "▸"; color: var(--gold-600); }
.child-index a:hover { border-color: var(--navy-600); color: var(--navy-800); text-decoration: none; background: var(--blue-100); }
.empty-note {
  background: var(--gold-100); border: 1px solid #e8dcbb; border-left: 4px solid var(--gold-500);
  border-radius: var(--radius); padding: 14px 18px; font-size: .87rem; color: #6b5720;
}
.empty-note strong { color: #5a4a17; }

/* pagination */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.pagination button, .pagination a {
  min-width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink-soft); font: inherit; font-size: .84rem;
  font-weight: 600; cursor: pointer; padding: 0 10px;
}
.pagination .is-current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.pagination button:hover:not(.is-current) { border-color: var(--navy-600); color: var(--navy-800); }
.pagination .info { border: 0; background: none; color: var(--muted); font-weight: 500; }

/* listing toolbar */
.listing-toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px;
}
.listing-toolbar .count { font-size: .82rem; color: var(--muted); }
.listing-toolbar input[type="search"], .listing-toolbar select {
  font: inherit; font-size: .85rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 220px; color: var(--ink);
}

/* gallery page */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.album-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.album-card .cover { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--blue-100); }
.album-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.album-card:hover .cover img { transform: scale(1.05); }
.album-card .meta { padding: 12px 14px; }
.album-card .meta h3 { font-size: .9rem; margin: 0 0 4px; line-height: 1.4; }
.album-card .meta span { font-size: .74rem; color: var(--muted); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(4,16,28,.94); z-index: 400; display: none;
  align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow-lg); }
.lightbox-cap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #dfe9f2;
  font-size: .83rem; text-align: center; max-width: 80vw; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: grid; place-items: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--gold-500); color: var(--navy-900); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* search page */
.search-hero { padding-block: 30px; }
.search-page-form { display: flex; gap: 10px; max-width: 760px; }
.search-page-form input[type="search"] {
  flex: 1 1 auto; padding: 13px 16px; font: inherit; font-size: .95rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.search-page-form button {
  padding: 13px 26px; border: 0; border-radius: var(--radius); background: var(--navy-700); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.search-page-form button:hover { background: var(--gold-600); }
.search-results { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.search-results li { margin: 0; }
.result-card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.result-card:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); text-decoration: none; }
.result-card h3 { font-size: .98rem; margin: 0 0 5px; color: var(--navy-800); }
.result-card p { margin: 0; font-size: .855rem; color: var(--muted); }
.result-card mark { background: #fff2c8; color: #6b4c00; padding: 0 2px; border-radius: 2px; }
.result-url { font-size: .72rem; color: var(--gold-700); font-weight: 700; letter-spacing: .02em; }
.search-status { font-size: .87rem; color: var(--muted); margin-top: 18px; }

/* back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: #fff; border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transition: opacity var(--speed), visibility var(--speed), background var(--speed); z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--gold-600); }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #c2d4e4; font-size: .865rem; }
.footer-main { padding-block: 44px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-title {
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800;
  margin: 0 0 14px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.14); position: relative;
}
.footer-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 38px; height: 2px; background: var(--gold-500); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(201,163,73,.5); object-fit: contain; background: #fff; padding: 2px; }
.footer-brand strong { color: #fff; font-family: var(--serif); font-size: 1.02rem; display: block; line-height: 1.3; }
.footer-brand span { font-size: .76rem; color: #9fb6cc; display: block; margin-top: 3px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 9px; }
.footer-list a { color: #c2d4e4; }
.footer-list a:hover { color: var(--gold-500); text-decoration: none; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 15px; height: 15px; fill: var(--gold-500); flex: 0 0 auto; margin-top: 3px; }
.footer-contact a { color: #dbe8f4; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 16px; font-size: .78rem; color: #9fb6cc;
  display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; align-items: center;
}
.footer-bottom a { color: #dbe8f4; }
.footer-bottom a:hover { color: var(--gold-500); text-decoration: none; }
.footer-disclaimer { font-size: .74rem; color: #8ba4bc; line-height: 1.6; }
.credit { font-weight: 600; color: #dfe9f2; }
.credit a { color: var(--gold-500); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .primary-nav > ul > li > a, .primary-nav > ul > li > button { padding: 12px 9px; font-size: .78rem; }
  .masthead-contact { gap: 18px; }
}
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  /* badge drops directly under the college name, keeps its centred position */
  .masthead .container { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand naac" "contact contact"; }
  .brand { grid-area: brand; }
  .naac-slot { grid-area: naac; }
  .masthead-contact { grid-area: contact; justify-content: flex-start; }
  .naac-text span { display: none; }
}
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .search-toggle { align-self: center; margin-top: 0; }
  .nav-inner { justify-content: space-between; }
  .masthead .container { gap: 14px; }
  .brand { flex: 1 1 100%; }
  .masthead-contact { flex: 1 1 100%; justify-content: space-between; }
  .topbar-links { display: none; }
  .hero-title { max-width: 100%; }
}
@media (max-width: 720px) {
  body { font-size: 15.6px; }
  /* emblem + name on top, accreditation badge centred underneath */
  .masthead .container { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "naac" "contact"; gap: 10px; padding-block: 14px; }
  .naac-slot { justify-content: center; }
  .naac-badge { padding: 5px 14px 5px 6px; }
  .topbar .container { flex-wrap: wrap; gap: 8px; justify-content: center; padding-block: 7px; }
  .topbar-address { display: none; }
  .brand-logo { width: 58px; height: 58px; }
  .brand-tagline { font-size: .7rem; }
  .naac-badge { padding: 5px 10px 5px 6px; gap: 8px; }
  .naac-seal { width: 38px; height: 38px; border-width: 1px; }
  .naac-seal-grade { font-size: 1.02rem; }
  .naac-seal-word { font-size: .38rem; }
  .naac-text strong { font-size: .7rem; }
  .masthead-contact { display: none; }
  .section { padding-block: 30px; }
  .section-head { margin-bottom: 18px; }
  .grid { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-slides { height: clamp(230px, 54vw, 330px); }
  .hero-caption-inner { padding-right: 0; gap: 10px; }
  .hero-caption { padding-block: 12px 14px; }
  .hero-dots { right: 50%; transform: translateX(50%); bottom: 48px; }
  .hero-nav { display: none; }
  .ticker-label { font-size: .68rem; padding: 9px 12px; }
  .ticker-item { font-size: .78rem; }
  .card-pad { padding: 16px; }
  .layout { padding-block: 24px; }
  .doc-row { flex-direction: column; align-items: stretch; }
  .doc-dl { text-align: center; }
  .principal-card { grid-template-columns: 84px 1fr; }
  .principal-card img { width: 84px; height: 100px; }
  .to-top { right: 12px; bottom: 12px; }
}
@media (max-width: 420px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .date-chip { width: 46px; }
}

/* --------------------------------------------------------------- print */
@media print {
  .topbar, .navbar, .masthead-contact, .search-panel, .drawer, .scrim, .site-footer, .to-top,
  .breadcrumb, .side-col, .hero-nav, .ticker, .nav-toggle, .listing-toolbar, .pagination { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .page-head { background: #fff !important; color: #000; border-bottom: 2px solid #000; padding: 0 0 8pt; }
  .page-head h1 { color: #000; }
  .page-head::after { display: none; }
  .layout { display: block; padding: 0; }
  a { color: #000; text-decoration: underline; }
  .entry a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  .doc-dl { display: none; }
  table.content-table { font-size: 9.5pt; }
  .masthead .container { padding-block: 6pt; }
  .brand-logo { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------- accessibility modes */
body.text-large { font-size: 18.5px; }
body.text-larger { font-size: 21px; }
body.high-contrast { --muted: #333; --ink-soft: #111; --line: #999; --bg: #fff; }
body.high-contrast a { text-decoration: underline; }
body.high-contrast .navbar, body.high-contrast .page-head { background: #000; }


/* --------------------------------------------------------------- image fallback */
.img-unavailable { display: none !important; }
.img-unavailable-note {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 120px; width: 100%; padding: 18px 14px; box-sizing: border-box;
  background: repeating-linear-gradient(135deg, #eef3f8, #eef3f8 10px, #e6edf5 10px, #e6edf5 20px);
  border: 1px dashed #c3d2e0; border-radius: var(--radius);
  color: #5c6f82; font-size: .78rem; line-height: 1.45; font-weight: 600;
}
.hero-slide .img-unavailable-note { display: none; }

/* ==========================================================================
   Forms — the alumni registration form (college's own form, redesigned)
   ========================================================================== */
.alumni-form { margin-top: 8px; }
.photo-field {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: var(--blue-50, #f4f8fc); border: 1px dashed var(--line); border-radius: var(--radius-lg, 10px);
  padding: 18px 20px; margin-bottom: 22px;
}
.photo-preview {
  width: 108px; height: 108px; flex: 0 0 auto; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold-100); display: grid; place-items: center; overflow: hidden;
}
.photo-preview svg { width: 54px; height: 54px; fill: var(--navy-300, #b6c9da); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-input { min-width: 220px; flex: 1 1 260px; }
.photo-input label { display: block; font-weight: 700; color: var(--navy-800); font-size: .86rem; margin-bottom: 8px; }
.photo-input input[type="file"] {
  width: 100%; font-size: .84rem; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink-soft);
}
.photo-input input[type="file"]::file-selector-button {
  border: 0; background: var(--navy-700); color: #fff; font: inherit; font-weight: 600;
  padding: 6px 12px; border-radius: 4px; margin-right: 12px; cursor: pointer;
}

.form-section { border: 1px solid var(--line); border-radius: var(--radius-lg, 10px); padding: 6px 22px 22px; margin: 0 0 22px; background: #fff; }
.form-section > legend {
  font-family: var(--serif); font-size: 1.06rem; font-weight: 700; color: var(--navy-800);
  padding: 0 10px; margin-left: -6px;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .field-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: .82rem; font-weight: 700; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .88rem; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid transparent; border-color: var(--navy-500, #2b6ea8);
  box-shadow: 0 0 0 3px rgba(43,110,168,.16);
}
.field input[readonly] { background: var(--blue-50, #f1f5f9); color: var(--navy-800); font-weight: 700; }
.field-hint { font-size: .74rem; color: var(--muted); line-height: 1.45; }
.field input:invalid:not(:placeholder-shown) { border-color: #c0574b; }

.verify-row {
  display: grid; grid-template-columns: auto minmax(150px, 220px) minmax(0, 1fr);
  gap: 14px; align-items: end; margin-top: 18px;
  background: var(--blue-50, #f4f8fc); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.verify-sum { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--navy-800); }
.verify-sum input {
  width: 46px; text-align: center; font: inherit; font-weight: 700; padding: 7px 4px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--navy-800);
}
.verify-out { font-size: .8rem; font-weight: 700; align-self: center; }
.verify-out.is-error { color: #b3261e; }
.verify-out.is-ok { color: #1c6b3f; }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .88rem; font-weight: 700; padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.1;
}
.btn-primary { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn-primary:hover { background: var(--navy-800); color: #fff; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-500, #2b6ea8); color: var(--navy-800); text-decoration: none; }
.btn-block { width: 100%; }
.form-note { font-size: .76rem; color: var(--muted); line-height: 1.55; margin: 14px 0 0; }
.form-note code { background: var(--blue-50, #f1f5f9); padding: 1px 5px; border-radius: 3px; font-size: .74rem; }

/* sidebar cards used by the alumni page */
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg, 10px); padding: 16px 18px; margin-bottom: 18px; }
.side-card-title { font-family: var(--serif); font-size: .98rem; color: var(--navy-800); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold-500); }
.fee-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.fee-table th, .fee-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.fee-table th { font-weight: 700; color: var(--navy-800); }
.fee-table td { text-align: right; font-weight: 700; color: var(--navy-700); }
.detail-list { margin: 0; font-size: .82rem; }
.detail-list dt { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 9px; }
.detail-list dt:first-child { margin-top: 0; }
.detail-list dd { margin: 2px 0 0; font-weight: 600; color: var(--navy-800); word-break: break-word; }
.side-card-note { font-size: .78rem; font-weight: 700; color: var(--navy-800); margin: 14px 0 8px; }
.side-card-foot { font-size: .72rem; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .verify-row { grid-template-columns: minmax(0, 1fr); }
  .form-section { padding: 4px 14px 16px; }
  .photo-field { gap: 14px; padding: 14px; }
}

/* wide banner text carried over from the official page markup (was a marquee) */
.source-banner {
  background: var(--blue-50, #eef4fa); border-left: 4px solid var(--gold-500);
  color: var(--navy-800); font-family: var(--serif); font-size: 1.02rem; font-weight: 700;
  padding: 12px 16px; margin: 0 0 18px; border-radius: 0 var(--radius) var(--radius) 0;
}

/* --------------------------------------------------------------------------
   Stand-in for photographs that exist only on the college server. Nothing is
   invented: the note is labelled and keeps the original alt text.
   -------------------------------------------------------------------------- */
.img-unavailable-note {
  display: grid; place-content: center; gap: 8px; text-align: center;
  min-height: 96px; padding: 16px 14px; border-radius: var(--radius);
  border: 1px dashed var(--line); background:
    repeating-linear-gradient(45deg, #f7fafc 0 8px, #eef4fa 8px 16px);
  color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.img-unavailable-note > span { display: block; max-width: 26ch; margin-inline: auto; line-height: 1.4; }
.entry > .img-unavailable-note { margin: 10px 0; max-width: 340px; }
.event-thumb .img-unavailable-note, .gallery-thumb .img-unavailable-note { min-height: 100%; border: 0; border-radius: 0; }
.entry a.img-link, .entry .img-unavailable-note { display: block; }

/* embedded viewer that pointed at the college server: shown as a download row */
.doc-embed { border: 1px solid var(--line); border-radius: var(--radius-lg, 10px); padding: 14px 16px; background: var(--blue-50, #f7fafc); margin: 14px 0; }
.doc-embed-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.video-embed { background: #fff; }

/* stand-in inside album covers / thumbnails fills the frame */
.album-card .cover .img-unavailable-note,
.gallery-thumb .img-unavailable-note,
.event-thumb .img-unavailable-note {
  width: 100%; height: 100%; min-height: 100%; border: 0; border-radius: 0;
}
