/* =====================================================================
   SNU Portal design system — loaded LAST on every page.
   Modelled on the Boğaziçi University portal (royal navy palette, Poppins /
   Quicksand typography, Cinzel wordmark, Barlow Condensed hero display,
   photo-tile mega menus, quick-access panel, curved notch footer) and
   tailored to Somali National University: the sky blue of the Somali flag
   is the accent colour.

   Tokens            : section 1
   Typography        : section 2
   Buttons & base UI : section 3
   Header & mega menu: section 4
   Quick access panel: section 5
   Home page         : section 6
   Inner pages       : section 7
   Footer            : section 8
   Faculty portals   : section 9
   Responsive        : section 10
   ===================================================================== */

/* ---------- 1. tokens ---------- */
:root,
.faculty-site {
  --navy: #1c458b;
  --navy-900: #0f2a4d;
  --navy-800: #163a75;
  --navy-600: #2b5fae;
  --blue: #2b5fae;
  --blue-600: #1c458b;
  --blue-700: #14336a;
  --blue-50: #eef6fc;
  --blue-100: #def2fb;
  --sky: #7ccbee;
  --sky-700: #1f7fb5;
  --sky-50: #def2fb;
  --gold: #7ccbee;          /* legacy "gold" accents now use the sky accent */
  --gold-400: #9fdaf4;
  --gold-700: #14336a;
  --gold-50: #eef8fd;
  --surface: #f4f8fb;
  --ink: #1f2a37;
  --ink-2: #3d4a5c;
  --muted: #5d6673;
  --line: #dfe7ef;
  --line-2: #edf2f7;
  --white: #fff;
  --accent: #1c458b;

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ui: "Quicksand", "Poppins", system-ui, sans-serif;
  --font-serif: "Poppins", system-ui, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-quote: "Poppins", system-ui, sans-serif;
  --font-brand: "Cinzel", "Times New Roman", serif;
  --font-hero: "Barlow Condensed", "Poppins", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 77, .06), 0 2px 6px rgba(15, 42, 77, .06);
  --shadow: 0 10px 30px rgba(15, 42, 77, .10);
  --shadow-lg: 0 24px 60px rgba(15, 42, 77, .20);
  --header-full: 136px;
  --sticky-h: 76px;

  --fs-h1: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --fs-section: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  --fs-h2: clamp(1.5rem, 1.35rem + .6vw, 1.9rem);
  --fs-h3: clamp(1.25rem, 1.18rem + .3vw, 1.45rem);
  --fs-h4: clamp(1.1rem, 1.06rem + .2vw, 1.25rem);
  --fs-h5: clamp(1rem, .98rem + .1vw, 1.1rem);
  --fs-card: clamp(1.02rem, .98rem + .2vw, 1.15rem);
  --fs-news-title: clamp(1.4rem, 1.2rem + .8vw, 2rem);
  --fs-event: clamp(1.15rem, 1.08rem + .3vw, 1.35rem);
  --fs-quote: clamp(1.1rem, 1.02rem + .35vw, 1.35rem);
  --fs-body: clamp(.95rem, .93rem + .1vw, 1.02rem);
  --fs-intro: clamp(1.05rem, 1rem + .2vw, 1.2rem);
  --fs-hero-sub: clamp(1rem, .95rem + .3vw, 1.2rem);
}

/* ---------- 2. typography ---------- */
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.7; color: var(--ink); background: #fff; }
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 700; color: var(--navy); letter-spacing: 0; }
h6 { font-family: var(--font-sans); }
blockquote p, .quote, .rector-strip blockquote p { font-family: var(--font-sans); font-style: normal; }
.lead-text { font-size: var(--fs-intro); font-weight: 400; color: var(--ink-2); }
.eyebrow { font-family: var(--font-ui); font-weight: 700; font-size: .8rem; letter-spacing: .12em; color: var(--sky-700); }
.eyebrow::before { background: var(--sky); width: 26px; height: 3px; border-radius: 3px; }
.eyebrow-light { color: var(--sky); }
.section-title { font-family: var(--font-sans); font-weight: 900; font-size: var(--fs-section); text-transform: uppercase; line-height: 1.1; letter-spacing: -.005em; }
.section-lead { font-size: 1rem; color: var(--muted); }
.block-title { font-family: var(--font-sans); font-weight: 800; color: var(--navy); }
a { color: var(--navy-600); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.badge { background: var(--sky-50); color: var(--navy); font-family: var(--font-ui); font-weight: 700; border-radius: 8px; }
.badge-gold { background: var(--navy); color: #fff; }
.link-arrow { font-family: var(--font-ui); font-weight: 700; color: var(--navy-600); }
.meta { font-family: var(--font-ui); font-weight: 600; }

/* ---------- 3. buttons ---------- */
.btn {
  border-radius: 12px; border-width: 2px; font-family: var(--font-ui); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .03em; min-height: 46px; padding: .7rem 1.3rem;
}
.btn-sm { min-height: 38px; font-size: .75rem; padding: .45rem .95rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-gold { background: var(--sky); color: var(--navy-900); }
.btn-gold:hover { background: #fff; color: var(--navy); box-shadow: 0 8px 22px rgba(124, 203, 238, .45); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy-900); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-ghost { background: var(--sky-50); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.pill-link {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: 0 1.25rem; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .03em; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .2s;
}
.pill-link::after { content: "\2192"; transition: transform .2s; }
.pill-link:hover { background: var(--navy-900); color: #fff; transform: translateY(-1px); }
.pill-link:hover::after { transform: translateX(3px); }
.pill-link-light { background: #fff; color: var(--navy); }
.pill-link-light:hover { background: var(--sky); color: var(--navy-900); }
button.pill-link::after { content: "+"; }
.round-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; transition: background .2s, color .2s;
}
.round-btn:hover { background: #fff; color: var(--navy); }
.skip-link { background: var(--sky); color: var(--navy-900); }

/* ---------- 4. header ---------- */
.topbar { display: none; }
.site-header {
  position: relative; top: 0; z-index: 900; color: #fff; border: 0; backdrop-filter: none;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy) 100%);
  transition: background .25s, box-shadow .25s, color .25s;
}
.is-home .site-header { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(10, 28, 54, .88) 0%, rgba(10, 28, 54, .45) 60%, rgba(10, 28, 54, 0) 100%); }
.site-header.is-scrolled { box-shadow: none; }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-full); padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; flex-shrink: 0; color: #fff; }
.brand-emblem { width: 64px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); transition: width .25s; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name, .brand-uni {
  font-family: var(--font-brand); font-weight: 700; font-size: 1.45rem; color: #fff; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05;
}
.brand-sub { margin-top: .35rem; font-family: var(--font-ui); font-weight: 600; font-size: .78rem; letter-spacing: .02em; text-transform: none; color: rgba(255, 255, 255, .78); }
.header-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .85rem; min-width: 0; }
.header-utility { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.util-pill {
  display: inline-flex; align-items: center; gap: .45rem; height: 36px; padding: 0 .9rem; border: 1px solid rgba(255, 255, 255, .55); border-radius: 10px;
  color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .72rem; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.util-pill .bi { font-size: .95rem; }
.util-pill:hover { background: #fff; color: var(--navy); border-color: #fff; }
.util-pill.util-today { background: rgba(255, 255, 255, .16); border-color: transparent; text-transform: none; font-size: .78rem; }
.util-pill.util-today:hover { background: #fff; }
.site-header .lang-switch { background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 3px; }
.site-header .lang-switch button { color: #fff; font-family: var(--font-ui); border-radius: 8px; }
.site-header .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy); }

.header-nav { display: flex; align-items: center; gap: .35rem; border: 0; background: none; }
.main-nav { margin-left: 0; }
.nav-list { gap: .15rem; }
.nav-item, .nav-item.has-drop { position: static; }
.nav-link {
  min-height: 44px; padding: 0 1rem; border-radius: 12px; color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .01em; transition: background .2s, color .2s;
}
.nav-link::after { display: none; }
.nav-link .bi { display: none; }
.nav-link:hover, .nav-item.is-open > .nav-link { color: #fff; background: rgba(255, 255, 255, .14); }
.nav-item.is-active > .nav-link { color: #fff; box-shadow: inset 0 -3px 0 var(--sky); border-radius: 12px 12px 4px 4px; }
.header-tools { display: flex; align-items: center; gap: .35rem; margin-left: .35rem; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 44px; min-width: 44px; padding: 0 .8rem; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .14); color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.tool-btn .bi { font-size: 1.15rem; }
.tool-btn:hover, .tool-btn[aria-expanded="true"] { background: #fff; color: var(--navy); }
.header-mobile-actions { display: none; margin-left: auto; gap: .4rem; }
.header-actions { display: none; }

/* header turns white while a mega panel is open, and in its compact sticky state */
.site-header.mega-open, .site-header.is-stuck { background: #fff; color: var(--navy); }
.site-header.mega-open .brand-name, .site-header.mega-open .brand-uni, .site-header.is-stuck .brand-name, .site-header.is-stuck .brand-uni { color: var(--navy); }
.site-header.mega-open .brand-sub, .site-header.is-stuck .brand-sub { color: var(--muted); }
.site-header.mega-open .util-pill { color: var(--navy); border-color: var(--line); }
.site-header.mega-open .util-pill.util-today { background: var(--sky-50); }
.site-header.mega-open .util-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.site-header.mega-open .lang-switch, .site-header.is-stuck .lang-switch { background: var(--surface); }
.site-header.mega-open .lang-switch button, .site-header.is-stuck .lang-switch button { color: var(--navy); }
.site-header.mega-open .lang-switch button[aria-pressed="true"], .site-header.is-stuck .lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.site-header.mega-open .nav-link, .site-header.is-stuck .nav-link { color: var(--navy); }
.site-header.mega-open .nav-link:hover, .site-header.is-stuck .nav-link:hover { background: var(--sky-50); color: var(--navy); }
.site-header.mega-open .nav-item.is-open > .nav-link, .site-header.is-stuck .nav-item.is-open > .nav-link { background: var(--navy); color: #fff; }
.site-header.mega-open .nav-item.is-active > .nav-link, .site-header.is-stuck .nav-item.is-active > .nav-link { color: var(--navy); }
.site-header.mega-open .tool-btn, .site-header.is-stuck .tool-btn { background: var(--sky-50); color: var(--navy); }
.site-header.mega-open .tool-btn:hover, .site-header.is-stuck .tool-btn:hover { background: var(--navy); color: #fff; }
.site-header.is-stuck {
  position: fixed; left: 0; right: 0; top: 0; box-shadow: 0 10px 30px rgba(15, 42, 77, .12); animation: headerDown .35s cubic-bezier(.2, .7, .2, 1);
}
.site-header.is-stuck .header-inner { min-height: var(--sticky-h); padding-top: .45rem; padding-bottom: .45rem; }
.site-header.is-stuck .header-utility { display: none; }
.site-header.is-stuck .brand-emblem { width: 46px; filter: none; }
.site-header.is-stuck .brand-name, .site-header.is-stuck .brand-uni { font-size: 1.05rem; }
.site-header.is-stuck .brand-sub { display: none; }
@keyframes headerDown { from { transform: translateY(-100%); } to { transform: none; } }

/* mega panel */
.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 950; padding: 1.6rem 0 2.2rem; background: #fff; border-top: 1px solid var(--line-2);
  box-shadow: 0 40px 60px -20px rgba(15, 42, 77, .25); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s, transform .22s cubic-bezier(.2, .7, .2, 1), visibility .22s;
}
.nav-item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.75rem; padding-top: 0; padding-bottom: 0; align-items: stretch; }
.mega-inner.mega-no-tiles { grid-template-columns: minmax(0, 1fr); }
.mega-tiles { display: grid; gap: .75rem; min-height: 330px; }
.mega-tiles-2 { grid-template-columns: 1fr 1fr; }
.mega-tiles-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mega-tiles-3 > :first-child { grid-row: span 2; }
.mega-tiles-4 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mega-tiles-4 > :nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.mega-tiles-4 > :nth-child(2) { grid-column: 2; grid-row: 1; }
.mega-tiles-4 > :nth-child(3) { grid-column: 2; grid-row: 2; }
.mega-tiles-4 > :nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
.mega-tile {
  position: relative; display: block; min-height: 150px; overflow: hidden; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; isolation: isolate;
}
.mega-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.mega-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15, 42, 77, .85) 0%, rgba(28, 69, 139, .45) 55%, rgba(28, 69, 139, .25) 100%); transition: background .3s; }
.mega-tile-title { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; font-family: var(--font-sans); font-weight: 800; font-size: 1.3rem; line-height: 1.15; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.mega-tile:hover .mega-tile-img, .mega-tile:focus-visible .mega-tile-img { transform: scale(1.07); }
.mega-tile:hover::after { background: linear-gradient(0deg, rgba(15, 42, 77, .92) 0%, rgba(28, 69, 139, .6) 100%); }
.mega-tile:hover { color: #fff; }
.mega-card { align-self: stretch; padding: 1.3rem 1.6rem 1.4rem; border-radius: 14px; background: #fff; box-shadow: 0 12px 40px rgba(15, 42, 77, .12); max-height: calc(100vh - 190px); overflow-y: auto; }
.mega-overview {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; margin-bottom: .2rem; border-bottom: 2px solid var(--sky-50);
  color: var(--navy); text-decoration: none; font-family: var(--font-sans); font-weight: 900; font-size: 1.1rem;
}
.mega-overview .bi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .85rem; transition: transform .2s; }
.mega-overview:hover .bi { transform: translateX(3px); }
.mega-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1.75rem; }
.mega-title { margin: .9rem 0 .15rem; font-family: var(--font-sans); font-weight: 800; font-size: .88rem; letter-spacing: 0; text-transform: none; color: var(--navy); }
.mega li a {
  position: relative; display: flex; align-items: flex-start; gap: .6rem; margin: 0; padding: .45rem 0; border-radius: 0; border-bottom: 1px solid var(--line-2);
  color: var(--navy); font-family: var(--font-sans); font-weight: 400; font-size: .9rem; line-height: 1.35; text-decoration: none; transition: color .2s, padding .2s;
}
.mega li a::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: .45rem; border-radius: 50%; background: #9db3d6; transition: background .2s; }
.mega li a:hover, .mega li a[aria-current] { background: none; color: var(--sky-700); padding-left: .25rem; }
.mega li a:hover::before, .mega li a[aria-current]::before { background: var(--sky); }
.mega li:last-child a { border-bottom: 0; }

/* search overlay */
.search-overlay { background: rgba(10, 28, 54, .86); }
.search-form-big { border-radius: 20px; }
.search-label { font-family: var(--font-sans); font-weight: 900; text-transform: uppercase; color: var(--navy); }
.search-field { border-radius: 14px; }
.search-field:focus-within { border-color: var(--navy); }

/* mobile drawer */
.mobile-nav-panel { background: #fff; }
.mobile-nav-head { background: linear-gradient(135deg, var(--navy-900), var(--navy)); border: 0; }
.mobile-nav-head .brand-mini { color: #fff; font-family: var(--font-brand); text-transform: uppercase; font-size: 1rem; }
.mobile-nav-head .icon-btn { background: rgba(255, 255, 255, .15); color: #fff; border: 0; }
.m-link { font-family: var(--font-ui); font-weight: 700; text-transform: uppercase; font-size: .92rem; color: var(--navy); }
.m-sub a { font-family: var(--font-sans); font-size: .9rem; }
.mobile-search { flex-shrink: 0; min-height: 48px; border-radius: 12px; }
.mobile-search input { min-height: 46px; }
.mobile-search button { background: var(--navy); }
.m-portals a { border-radius: 10px; font-family: var(--font-ui); font-weight: 700; background: var(--sky-50); }
.m-lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- 5. quick access panel ---------- */
.quick-access-panel { position: fixed; inset: 0; z-index: 1250; overflow-y: auto; background: rgba(8, 22, 43, .55); }
.qa-dialog {
  position: relative; min-height: 100%; padding: 4.5rem 0 3.5rem; color: #fff; animation: qaIn .3s cubic-bezier(.2, .7, .2, 1);
  background: radial-gradient(900px 600px at 85% 10%, rgba(124, 203, 238, .25), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy) 60%, var(--navy-600));
}
@keyframes qaIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.qa-inner { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 3rem; }
.qa-heading { margin: 0 0 1.4rem; line-height: 1.05; }
.qa-thin { display: block; font-weight: 300; font-size: 1.35rem; color: rgba(255, 255, 255, .8); }
.qa-bold { display: block; font-weight: 900; font-size: 2.2rem; text-transform: uppercase; }
.qa-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.qa-link {
  padding: .6rem .85rem; border-radius: 10px; background: #fff; color: var(--navy); text-decoration: none;
  font-weight: 700; font-size: .72rem; letter-spacing: .02em; text-transform: uppercase; transition: background .2s, color .2s;
}
.qa-link:hover { background: var(--sky); color: var(--navy-900); }
.qa-contact { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.qa-contact a { display: block; color: #fff; text-decoration: none; }
.qa-email { font-weight: 700; font-size: .85rem; color: var(--sky) !important; }
.qa-tel { font-weight: 800; font-size: 1.6rem; }
.qa-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.qa-tab {
  border: 0; border-radius: 12px; padding: .8rem 1.3rem; background: rgba(255, 255, 255, .12); color: #fff;
  font-family: var(--font-ui); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
}
.qa-tab[aria-selected="true"] { background: #fff; color: var(--navy); }
.qa-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.qa-tile {
  display: flex; align-items: center; gap: .85rem; height: 100%; min-height: 78px; padding: .9rem 1.1rem; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none;
  font-family: var(--font-ui); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.3;
  transition: background .2s, color .2s, transform .2s;
}
.qa-tile .bi { flex-shrink: 0; font-size: 1.45rem; color: var(--sky); transition: color .2s; }
.qa-tile:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.qa-tile:hover .bi { color: var(--navy); }
.qa-close {
  position: absolute; top: 1.2rem; right: 1.4rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 1.1rem;
}
.qa-close:hover { background: #fff; color: var(--navy); }

/* ---------- 6. home page ---------- */
.portal-hero, .fac-hero { height: clamp(640px, 100vh, 900px); background: var(--navy-900); }
.fac-hero { height: clamp(600px, 88vh, 800px); }
.hero-shade { background: linear-gradient(0deg, rgba(10, 28, 54, .92) 0%, rgba(10, 28, 54, .45) 45%, rgba(10, 28, 54, .2) 70%, rgba(10, 28, 54, .55) 100%), linear-gradient(90deg, rgba(10, 28, 54, .55), transparent 65%); }
.is-home .hero-content { justify-content: flex-end; padding-top: var(--header-full); padding-bottom: 190px; }
.hero-content > * { max-width: 780px; }
.hero-kicker { margin: 0; font-family: var(--font-hero); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.9rem); line-height: 1; text-transform: uppercase; color: var(--sky); letter-spacing: .01em; }
.hero-title { margin: .1rem 0 1rem; font-family: var(--font-hero); font-weight: 900; font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5rem); line-height: .95; text-transform: uppercase; letter-spacing: .005em; color: #fff; }
.fac-hero .hero-title { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); }
.hero-text { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-hero-sub); color: rgba(255, 255, 255, .9); max-width: 620px; }
.hero-controls { bottom: 1.6rem; }
.hero-controls-inner { justify-content: space-between; align-items: flex-end; }
.hero-explore { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; color: #fff; text-decoration: none; font-family: var(--font-ui); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-explore .bi { font-size: 1.2rem; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.hero-nav { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.hero-btn { border-radius: 12px; background: rgba(255, 255, 255, .14); border: 0; }
.hero-btn:hover { background: #fff; color: var(--navy); }
.hero-dots.hero-thumbs { gap: .6rem; padding: 0; }
.hero-thumbs button {
  position: relative; width: 150px; height: 92px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: var(--navy-900); opacity: .7;
  transition: opacity .25s, border-color .25s, transform .25s;
}
.hero-thumbs button::before { display: none; }
.hero-thumbs button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 28, 54, .85), transparent 70%); }
.hero-thumbs .hero-thumb-img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumbs span { position: absolute; left: .6rem; right: .6rem; bottom: .45rem; z-index: 2; color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .68rem; text-transform: uppercase; text-align: left; line-height: 1.2; }
.hero-thumbs button[aria-selected="true"] { opacity: 1; border-color: #fff; transform: translateY(-4px); }
.hero-thumbs button:hover { opacity: 1; }
.hero-dots:not(.hero-thumbs) button[aria-selected="true"] { background: var(--sky); }

.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.8rem; }
.band-head > div { max-width: 820px; }
.band-kicker { margin: 0 0 .3rem; font-family: var(--font-ui); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.band-kicker-dark, .today .band-kicker { color: var(--sky-700); }
.band-title { margin: 0; font-family: var(--font-sans); font-weight: 900; font-size: var(--fs-section); line-height: 1.08; text-transform: uppercase; color: var(--navy); }
.band-sub { margin: .5rem 0 0; color: var(--muted); font-size: 1rem; }
.band-head-light .band-title, .section-dark .band-title { color: #fff; }
.section-dark .band-sub { color: rgba(255, 255, 255, .75); }
.band-head-left { display: flex; align-items: center; gap: .6rem; }
.band-head-left .band-title { margin-right: .6rem; }

/* today rail */
.today { padding: 4.5rem 0 2.5rem; }
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.1rem) / 4); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .3rem .1rem 1rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.rail-card { scroll-snap-align: start; }
.rail-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.rail-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rail-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.rail-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.rail-card a:hover .rail-img { transform: scale(1.06); }
.rail-date { position: absolute; left: .75rem; top: .75rem; padding: .4rem .65rem; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--navy); text-align: center; font-family: var(--font-ui); font-weight: 700; font-size: .66rem; text-transform: uppercase; line-height: 1.2; }
.rail-date strong { display: block; font-family: var(--font-sans); font-weight: 900; font-size: 1.5rem; line-height: 1; }
.rail-body { display: flex; flex-direction: column; gap: .35rem; padding: .9rem 1rem 1.15rem; }
.rail-title { font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--navy); }
.rail-meta { font-family: var(--font-ui); font-weight: 600; font-size: .78rem; color: var(--muted); }
.rail-btn { position: absolute; top: 34%; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.rail-btn:first-child { left: -22px; }
.rail-btn:last-child { right: -22px; }
.rail-btn:hover { background: var(--navy); color: #fff; }

/* quick access strip */
.quick-strip { padding: 1rem 0 4rem; }
.quick-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 1.4rem 1.6rem; border-radius: 20px; color: #fff; background: radial-gradient(600px 200px at 90% 0%, rgba(124, 203, 238, .3), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy)); }
.quick-strip-title { margin: 0; font-weight: 900; font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; }
.quick-strip-title span { display: block; font-weight: 300; font-size: 1rem; color: rgba(255, 255, 255, .8); text-transform: none; }
.quick-strip ul { flex: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.quick-strip li a { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .85rem; border-radius: 10px; background: #fff; color: var(--navy); text-decoration: none; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; transition: background .2s; }
.quick-strip li a .bi { font-size: .95rem; color: var(--sky-700); }
.quick-strip li a:hover { background: var(--sky); }

/* story */
.story { padding: 4.5rem 0 5rem; background: linear-gradient(180deg, #fff 0%, #f3f9fd 100%); }
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; }
.story-media { position: relative; min-height: 540px; }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px 0 0 24px; }
.story-emblem { position: absolute; right: -52px; top: 2.2rem; z-index: 3; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(15, 42, 77, .18); }
.story-emblem img { width: 64px; height: auto; }
.story-panel { padding: 3.4rem 3.4rem 3rem 4.6rem; border-radius: 0 24px 24px 0; background: var(--sky-50); }
.story-kicker { margin: 0 0 .4rem; font-family: var(--font-ui); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-700); }
.story-title { margin: 0; font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.05; text-transform: uppercase; color: var(--navy); }
.story-sub { margin: .4rem 0 1.2rem; font-weight: 300; font-size: 1.25rem; text-transform: uppercase; color: var(--navy); }
.story-panel > p { color: var(--ink-2); }
.story .vm-card { background: #fff; border-top: 0; border-radius: 14px; box-shadow: var(--shadow-sm); }
.story .vm-card .bi { color: var(--sky-700); }
.story-stats { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 3rem 0 0; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-stats li { display: flex; flex-direction: column; align-items: center; gap: .2rem; text-align: center; padding: 0 .5rem; border-left: 1px solid var(--line); }
.story-stats li:first-child { border-left: 0; }
.story-stats .stat-value { font-family: var(--font-sans); font-weight: 900; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); line-height: 1.05; color: var(--navy); font-variant-numeric: tabular-nums; }
.story-stats .stat-label { font-family: var(--font-ui); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stats-source { color: var(--muted); }
.rector-strip { margin-top: 3rem; border-radius: 20px; background: radial-gradient(700px 300px at 90% 0%, rgba(124, 203, 238, .25), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy)); }
.rector-strip footer strong { color: var(--sky); }
.avatar { background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); }
.avatar::before { font-family: var(--font-sans); }
.avatar-xl { border-color: rgba(124, 203, 238, .85); }

/* announcements band */
.ann-band { position: relative; padding: 4.5rem 0 5rem; color: #fff; background: radial-gradient(1100px 500px at 15% 0%, rgba(43, 95, 174, .9), transparent 60%), var(--navy); }
.ann-band::after { content: ""; position: absolute; left: 8%; bottom: -24px; border-left: 28px solid transparent; border-right: 28px solid transparent; border-top: 24px solid var(--navy); }
.ann-band .band-head { margin-bottom: 0; }
.band-head > .ann-track { max-width: none; }
.ann-track { flex: 1 0 100%; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 2 * 1.1rem) / 3)); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 1.4rem; padding-bottom: .6rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.ann-card { scroll-snap-align: start; }
.ann-card a { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.1rem; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
.ann-card a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); color: #fff; }
.ann-date { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 88px; border-radius: 12px; background: rgba(255, 255, 255, .16); font-family: var(--font-ui); font-weight: 600; font-size: .7rem; line-height: 1.3; text-align: center; }
.ann-date strong { font-family: var(--font-sans); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.ann-date small { opacity: .7; }
.ann-title { flex: 1; font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ann-card .bi { flex-shrink: 0; font-size: 1.25rem; opacity: .7; }

/* news board */
.news-section { padding-top: 5.5rem; }
.news-board { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.5rem; }
.news-hero-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--navy); color: #fff; }
.news-hero-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.news-hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-hero-card:hover .news-hero-img { transform: scale(1.04); }
.news-hero-body { padding: 1.5rem 1.8rem 1.8rem; }
.news-hero-body .meta { color: rgba(255, 255, 255, .75); }
.news-hero-body .badge { background: rgba(255, 255, 255, .16); color: #fff; }
.news-hero-title { margin: 0 0 .6rem; font-size: var(--fs-h3); line-height: 1.35; }
.news-hero-title a { color: #fff; text-decoration: none; }
.news-hero-title a:hover { text-decoration: underline; color: #fff; }
.news-hero-body p { margin: 0; color: rgba(255, 255, 255, .8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-side { display: flex; flex-direction: column; gap: .9rem; }
.news-mini { flex: 1; display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .75rem; border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(15, 42, 77, .08); transition: transform .2s, box-shadow .2s; }
.news-mini:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-mini-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--surface); }
.news-mini-img { width: 100%; height: 100%; object-fit: cover; }
.news-mini time { font-family: var(--font-ui); font-weight: 700; font-size: .75rem; color: var(--sky-700); }
.news-mini-title { margin: .2rem 0 0; font-weight: 600; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-mini-title a { color: var(--navy); text-decoration: none; }
.news-mini-title a:hover { color: var(--sky-700); }

/* faculty tiles */
.fac-tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.fac-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 1.3rem; overflow: hidden; border-radius: 16px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s;
}
.fac-tile:nth-child(4n+2), .fac-tile:nth-child(4n+4) { background: linear-gradient(150deg, var(--navy-600) 0%, var(--navy) 100%); }
.fac-tile-icon { position: absolute; right: -.4rem; top: -.6rem; font-size: 6.5rem; line-height: 1; opacity: .12; transition: transform .4s, opacity .3s; }
.fac-tile-est { font-family: var(--font-ui); font-weight: 700; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.fac-tile-name { margin: .35rem 0 .9rem; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.fac-tile-go { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-ui); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .85); }
.fac-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: #fff; }
.fac-tile:hover .fac-tile-icon { transform: scale(1.12) rotate(-6deg); opacity: .2; }
.grad-banner { border-radius: 16px; background: radial-gradient(600px 200px at 90% 0%, rgba(124, 203, 238, .3), transparent 60%), linear-gradient(110deg, var(--navy-900), var(--navy)); }
.grad-banner strong { font-family: var(--font-sans); font-weight: 800; }
.grad-banner .link-arrow, .grad-banner .faculty-icon { color: var(--sky); }

/* research, life, campuses, international */
.section-dark { background: radial-gradient(1200px 600px at 85% -10%, rgba(124, 203, 238, .22), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy)); }
.research-grid { border-radius: 20px; background: rgba(255, 255, 255, .12); }
.research-item { background: rgba(15, 42, 77, .55); }
.research-item:hover { background: rgba(15, 42, 77, .3); }
.research-item .bi, .centre-strip a .bi, .centre-strip-title { color: var(--sky); }
.research-item h3 { color: #fff; font-size: var(--fs-h4); }
.centre-strip a { border-radius: 14px; }
.centre-strip a:hover { border-color: var(--sky); }
.life-mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 230px 230px; gap: .75rem; }
.life-mosaic > :first-child { grid-row: span 2; }
.life-tile .mega-tile-title { font-size: 1.4rem; }
.campus-card { border-radius: 16px; }
.campus-body strong { font-weight: 700; }
.intl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.country-chips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; }
.country-chips li { display: flex; flex-direction: column; padding: .9rem 1rem; border-radius: 14px; background: var(--sky-50); }
.country-chips strong { font-weight: 900; font-size: 1.6rem; line-height: 1.1; color: var(--navy); }
.country-chips span { font-family: var(--font-ui); font-weight: 700; font-size: .8rem; color: var(--muted); }
.section-alt { background: var(--surface); }

/* ---------- 7. inner pages ---------- */
.page-hero { margin-bottom: 0; padding: 2.4rem 0 3.6rem; border-radius: 0 0 36px 36px; background: radial-gradient(900px 400px at 88% 0%, rgba(124, 203, 238, .28), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%); color: rgba(255, 255, 255, .85); }
.page-hero::after { border-color: rgba(124, 203, 238, .1); }
.page-hero.has-image .page-hero-bg::after { background: linear-gradient(90deg, rgba(15, 42, 77, .95), rgba(28, 69, 139, .78) 55%, rgba(28, 69, 139, .45)); }
.page-hero-bg { border-radius: 0 0 36px 36px; overflow: hidden; }
.page-title { font-family: var(--font-sans); font-weight: 900; font-size: var(--fs-h1); text-transform: uppercase; line-height: 1.08; letter-spacing: -.005em; }
.page-lead { font-family: var(--font-ui); font-weight: 600; color: rgba(255, 255, 255, .85); }
.breadcrumb ol { font-family: var(--font-ui); font-weight: 600; }
.breadcrumb [aria-current], .breadcrumb a:hover { color: var(--sky); }
.side-nav { border-radius: 16px; border-color: var(--line); }
.side-nav-title { background: var(--navy); font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.side-nav a { font-size: .9rem; }
.side-nav a[aria-current] { background: var(--sky-50); border-left-color: var(--sky); color: var(--navy); }
.side-card { border-radius: 16px; }
.side-card-accent { border-top-color: var(--sky); }
.faculty-card, .news-card, .event-card, .program-card, .leader-card, .info-card, .contact-card { border-radius: 16px; }
.faculty-card:hover .faculty-icon { background: var(--navy); color: var(--sky); }
.faculty-icon { background: var(--sky-50); color: var(--navy); }
.date-badge { background: var(--navy); border-radius: 12px; }
.date-badge .d { font-family: var(--font-sans); font-weight: 900; }
.date-badge .m { color: var(--sky); }
.news-card-title, .event-card-title { font-family: var(--font-sans); font-weight: 600; }
.news-feature-title { font-family: var(--font-sans); font-weight: 700; }
.annc-strip { background: var(--sky-50); border-color: #c9e8f7; }
.annc-strip time { color: var(--navy); }
.stats-band { background: linear-gradient(110deg, var(--navy-900), var(--navy) 70%); }
.stat-value { font-family: var(--font-sans); font-weight: 900; color: var(--sky); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-list [aria-selected="true"] { color: var(--navy); border-color: var(--navy); }
.placeholder-box { border-radius: 14px; }
.member-grid li .bi { color: var(--sky-700); }
.agreement-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.agreement-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
.agreement-list strong { color: var(--navy); }
.agreement-list span { grid-column: 1; color: var(--muted); font-size: .9rem; }
.agreement-list time { grid-row: 1; grid-column: 2; font-family: var(--font-ui); font-weight: 700; font-size: .8rem; color: var(--sky-700); white-space: nowrap; }
.intl-tiles { min-height: 300px; margin-bottom: 2rem; }

/* memberships strip */
.member-strip { padding: 3rem 0 4.5rem; background: #fff; }
.member-strip-title { margin: 0 0 1rem; text-align: center; font-family: var(--font-ui); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.member-strip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; padding: 0; }
.member-strip-list li { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 600; font-size: .8rem; color: var(--navy); text-align: center; }
/* Logos (Settings › Memberships): one height for all, the name as alt text and on hover; a name where there is no logo yet */
.member-strip-list li.has-logo, .member-strip-list li.no-logo { display: flex; align-items: center; justify-content: center; min-height: 84px; transition: border-color .15s, box-shadow .15s; }
.member-strip-list li.has-logo { padding: .6rem 1rem; }
.member-strip-list li.no-logo { max-width: 230px; line-height: 1.35; }
.member-strip-list li.has-logo img { display: block; height: 60px; width: auto; max-width: 190px; object-fit: contain; }
.member-strip-list a { display: flex; align-items: center; justify-content: center; color: inherit; text-decoration: none; border-radius: 8px; }
.member-strip-list a:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; }
.member-strip-list li:has(a:hover) { border-color: var(--navy); box-shadow: var(--shadow-md, 0 6px 18px rgba(6, 40, 64, .12)); }
@media (max-width: 640px) { .member-strip-list li.has-logo img { height: 48px; max-width: 150px; } .member-strip-list li.has-logo, .member-strip-list li.no-logo { min-height: 70px; } }
@media (prefers-reduced-motion: reduce) { .member-strip-list li.has-logo, .member-strip-list li.no-logo { transition: none; } }

/* ---------- 8. footer ---------- */
.cta-band { display: none; }
.site-footer { position: relative; margin-top: 3.5rem; border-radius: 40px 40px 0 0; background: radial-gradient(1000px 400px at 50% 0%, rgba(43, 95, 174, .7), transparent 70%), var(--navy); color: rgba(255, 255, 255, .78); font-size: .9rem; }
.footer-notch { position: absolute; left: 50%; top: -62px; transform: translateX(-50%); display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; background: #fff; border: 8px solid var(--navy); box-shadow: 0 -6px 20px rgba(15, 42, 77, .15); }
.footer-notch img { width: 66px; height: auto; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; padding: 5rem 0 1.8rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-wordmark { display: flex; flex-direction: column; color: #fff; text-decoration: none; font-family: var(--font-brand); line-height: 1.05; text-transform: uppercase; }
.footer-wordmark:hover { color: #fff; text-decoration: none; }
.fw-thin { font-weight: 600; font-size: .95rem; letter-spacing: .04em; }
.fw-bold { font-weight: 700; font-size: 1.6rem; }
.site-footer .footer-social { margin: 0; gap: .4rem; }
.site-footer .footer-social a { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; }
.site-footer .footer-social a:hover { background: #fff; color: var(--navy); }
.footer-quick { display: flex; flex-wrap: wrap; gap: .45rem; margin-left: auto; }
.footer-quick a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; }
.footer-quick a:hover { background: #fff; color: var(--navy); text-decoration: none; border-color: #fff; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 2rem; padding: 2.5rem 0 3rem; }
/* a faculty website: the faculty's own name beside the University's logo */
.footer-site { display: grid; gap: .15rem; margin: 0; padding-left: 1.2rem; border-left: 1px solid rgba(255, 255, 255, .22); line-height: 1.25; }
.footer-site b { color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: 1.02rem; }
.footer-site span { color: rgba(255, 255, 255, .7); font-size: .82rem; }
/* the admissions band (Admissions > intake): open or closed, with what to do next */
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem 2rem; margin-top: 1.8rem; padding: 1.2rem 1.5rem; border-radius: 20px;
  background: linear-gradient(120deg, rgba(124, 203, 238, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .16); }
.footer-cta-text { display: grid; gap: .25rem; flex: 1 1 22rem; max-width: 36rem; }
.footer-cta-k { display: inline-flex; align-items: center; gap: .5rem; margin: 0; color: var(--sky); font-family: var(--font-ui); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-cta.is-open .footer-cta-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.footer-cta-title { margin: 0; color: #fff; font-family: var(--font-sans); font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.footer-cta-text p:last-child { margin: 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.footer-cta-acts { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 1 auto; justify-content: flex-end; }
.site-footer .footer-cta-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; white-space: nowrap; }
.site-footer .footer-cta-btn .bi { font-size: .8rem; transition: transform .15s ease; }
.site-footer .footer-cta-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.site-footer .footer-cta-btn:hover .bi { transform: translateX(2px); }
.site-footer .footer-cta-btn.is-primary { background: #fff; border-color: #fff; color: var(--navy); }
.site-footer .footer-cta-btn.is-primary:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.site-footer .footer-cta-btn:focus-visible, .footer-sum:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
/* link groups: a heading on wide screens, a tap-to-open section on phones */
.footer-sum { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: default; }
.footer-sum::-webkit-details-marker { display: none; }
.footer-sum .bi { display: none; }
.site-footer .footer-title { margin-bottom: .9rem; font-family: var(--font-sans); font-weight: 800; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.footer-col ul { gap: .1rem; }
.footer-col li a { display: flex; align-items: flex-start; gap: .55rem; padding: .3rem 0; color: rgba(255, 255, 255, .78); font-size: .88rem; }
.footer-col li a::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; margin-top: .55rem; border-radius: 50%; background: var(--sky); opacity: .8; }
.footer-col li a:hover { color: #fff; text-decoration: none; }
.fc-tel { display: block; color: #fff !important; font-weight: 800; font-size: 1.5rem; line-height: 1.2; }
.fc-mail { display: block; margin: .2rem 0 1rem; color: var(--sky) !important; font-weight: 700; }
.fc-line { display: flex; gap: .65rem; margin: 0 0 .6rem; color: rgba(255, 255, 255, .75); }
.fc-line .bi { color: var(--sky); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(10, 28, 54, .35); }
.footer-bottom-inner { color: rgba(255, 255, 255, .6); font-family: var(--font-ui); font-weight: 600; }
.back-to-top { background: var(--navy); color: #fff; border-radius: 14px; }
.back-to-top:hover { background: var(--sky); color: var(--navy-900); }
.lang-notice { background: var(--navy-900); }

/* ---------- 9. faculty portals ---------- */
.faculty-site .site-header { border-top: 4px solid var(--accent); }
.faculty-site .header-nav { background: none; border: 0; }
.faculty-site .main-nav { margin-left: 0; }
.faculty-site .nav-link { color: #fff; font-size: .88rem; padding: 0 .8rem; }
.faculty-site .nav-link:hover, .faculty-site .nav-item.is-open > .nav-link, .faculty-site .nav-item.is-active > .nav-link { color: #fff; }
.faculty-site .site-header.mega-open .nav-link, .faculty-site .site-header.is-stuck .nav-link { color: var(--navy); }
.faculty-site .site-header.mega-open .nav-item.is-open > .nav-link, .faculty-site .site-header.is-stuck .nav-item.is-open > .nav-link { color: #fff; }
.faculty-site .search-toggle { display: inline-flex; }
.fac-brand { gap: .9rem; }
.fac-brand .brand-text { padding-left: 0; border: 0; }
.fac-brand .brand-uni { font-size: .82rem; letter-spacing: .06em; opacity: .9; }
.fac-brand .fac-name { margin-top: .2rem; font-family: var(--font-sans); font-weight: 800; font-size: 1.2rem; line-height: 1.15; text-transform: none; letter-spacing: 0; max-width: 360px; color: #fff; }
.site-header.mega-open .fac-name, .site-header.is-stuck .fac-name { color: var(--navy); }
.site-header.is-stuck .fac-brand .brand-uni { display: none; }
.site-header.is-stuck .fac-brand .fac-name { font-size: 1rem; }
.fac-crumbs { background: #fff; border-bottom: 1px solid var(--line-2); }
.fac-crumbs .breadcrumb li, .fac-crumbs .breadcrumb a { color: var(--muted); }
.fac-crumbs .breadcrumb [aria-current] { color: var(--navy); }
.fac-tag { background: var(--sky); color: var(--navy-900); }
.fac-quick { margin-top: 2rem; }
.fac-quick-card { border-left: 0; border-radius: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.fac-quick-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.fac-quick-icon { border-radius: 12px; background: var(--navy); color: #fff; }
.fac-quick-card:hover .fac-quick-icon { background: var(--accent); }
.faculty-site .eyebrow::before { background: var(--accent); }
.fac-dean-band { background: radial-gradient(900px 400px at 90% 0%, rgba(124, 203, 238, .25), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy)); }
.fac-dean-role { color: var(--sky); }
.fac-dean-photo .avatar-xxl { border-color: var(--sky); border-radius: 20px; }
.fac-dept-card { border-radius: 16px; }
.fac-dept-card:hover { border-color: var(--navy); }
.fac-widget { border-radius: 16px; }
.fac-widget-head::after { background: var(--accent); }
.fac-widget-head h3 { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; font-size: .95rem; }
.fac-widget-head h3 .bi { color: var(--sky-700); }
.fac-item-title { font-family: var(--font-sans); font-weight: 600; }
.fac-date { background: var(--navy); border-radius: 12px; border-bottom: 0; }
.fac-date .d { font-family: var(--font-sans); font-weight: 900; }
.fac-date .m { color: var(--sky); }
.fac-empty { margin: 0; font-size: .9rem; }
.fac-res-card { border-radius: 16px; }
.fac-res-card .bi { color: var(--sky); }
.fac-res-card strong { font-family: var(--font-sans); font-weight: 800; }
.fac-res-card:hover { border-color: var(--sky); }
.link-card-fac strong { font-family: var(--font-sans); font-weight: 700; }
.fac-partner { border-radius: 12px; font-family: var(--font-ui); font-weight: 700; }
.fac-partner:hover { background: var(--navy); border-color: var(--navy); }
.fac-partners-title { font-family: var(--font-ui); }
.fac-back-mobile { background: var(--sky-50); border-radius: 12px; font-family: var(--font-ui); font-weight: 700; }
.faculty-site .site-footer { border-top: 0; }

/* ---------- 10. responsive ---------- */
@media (min-width: 1440px) {
  .container { max-width: 1380px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .nav-link { padding: 0 .7rem; font-size: .85rem; }
  .faculty-site .nav-link { padding: 0 .55rem; font-size: .8rem; }
  .brand-name, .brand-uni { font-size: 1.2rem; }
  .fac-brand .fac-name { font-size: 1.02rem; max-width: 280px; }
  .util-pill { padding: 0 .65rem; font-size: .66rem; }
  .tool-btn span { display: none; }
  .header-inner { gap: 1.2rem; }
  .mega-tiles { min-height: 290px; }
}
@media (max-width: 1199.98px) {
  :root, .faculty-site { --header-full: 84px; --sticky-h: 68px; }
  .header-right { display: none; }
  .header-mobile-actions { display: flex; }
  .header-mobile-actions .tool-btn { display: inline-flex; }
  .header-inner { min-height: var(--header-full); padding-top: .6rem; padding-bottom: .6rem; }
  .brand-emblem { width: 48px; }
  .brand-name, .brand-uni { font-size: 1.05rem; }
  .brand-sub { font-size: .72rem; }
  .fac-brand .fac-name { font-size: .98rem; max-width: 420px; }
  .site-header.is-stuck .brand-emblem { width: 40px; }
  .site-header.is-stuck .tool-btn, .site-header.mega-open .tool-btn { background: var(--sky-50); color: var(--navy); }
  .is-home .hero-content { padding-bottom: 170px; }
  .fac-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-track { grid-auto-columns: calc((100% - 2 * 1.1rem) / 3); }
  .story-stats { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
  .story-stats li:nth-child(4) { border-left: 0; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-inner { grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; }
  .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .hero-thumbs button { width: 110px; height: 72px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-media { min-height: 320px; }
  .story-img { border-radius: 24px 24px 0 0; }
  .story-emblem { right: 1.2rem; top: auto; bottom: -52px; }
  .story-panel { padding: 3.6rem 1.6rem 2rem; border-radius: 0 0 24px 24px; }
  .ann-track { grid-auto-columns: calc((100% - 1.1rem) / 2); }
  .news-board { grid-template-columns: minmax(0, 1fr); }
  .intl-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .life-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .life-mosaic > :first-child { grid-column: span 2; grid-row: auto; }
  .qa-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-quick { margin-left: 0; }
  .page-hero, .page-hero-bg { border-radius: 0 0 24px 24px; }
}
@media (max-width: 767.98px) {
  .portal-hero, .fac-hero { height: clamp(580px, 92vh, 720px); min-height: 0; }
  .portal-hero .hero-slides, .fac-hero .hero-slides { position: absolute; inset: 0; min-height: 0; }
  .brand { min-width: 0; flex-shrink: 1; }
  .header-mobile-actions { flex-shrink: 0; }
  .hero-thumbs button { width: 34px; height: 6px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .45); transform: none !important; }
  .hero-thumbs button[aria-selected="true"] { background: var(--sky); }
  .hero-thumbs button::after, .hero-thumbs img, .hero-thumbs span { display: none; }
  .hero-explore { display: none; }
  .hero-nav { margin: 0 auto; }
  .is-home .hero-content { padding-bottom: 120px; }
  .fac-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fac-tile { min-height: 170px; padding: 1rem; }
  .fac-tile-name { font-size: 1rem; }
  .rail-track { grid-auto-columns: 78%; }
  .rail-btn { display: none; }
  .ann-track { grid-auto-columns: 86%; }
  .story-stats { grid-template-columns: repeat(2, 1fr); }
  .story-stats li:nth-child(odd) { border-left: 0; }
  .story-stats li:nth-child(4) { border-left: 1px solid var(--line); }
  .quick-strip-inner { padding: 1.2rem; }
  .news-mini { grid-template-columns: 104px minmax(0, 1fr); }
  .country-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-tiles.intl-tiles { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 160px; }
  .mega-tiles.intl-tiles > :first-child { grid-row: auto; }
  .site-footer { border-radius: 28px 28px 0 0; }
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 1.6rem; }
  .site-footer .footer-comm { order: -1; padding-bottom: 1.4rem; margin-bottom: .4rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }   /* how to reach SNU, first */
  .site-footer details.footer-col { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .footer-sum { cursor: pointer; padding: 1rem 0; }
  .site-footer .footer-sum .footer-title { margin: 0; }
  .footer-sum .bi { display: block; color: rgba(255, 255, 255, .7); transition: transform .2s ease; }
  details.footer-col[open] .footer-sum .bi { transform: rotate(180deg); }
  details.footer-col ul { padding-bottom: 1rem; }
  .footer-cta { padding: 1.2rem; border-radius: 18px; }
  .footer-cta-title { font-size: 1.15rem; }
  .footer-cta-acts { width: 100%; }
  .site-footer .footer-cta-btn { flex: 1 1 auto; justify-content: center; }
  .footer-site { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .footer-bottom-inner { flex-direction: column; }
  .qa-dialog { padding-top: 4rem; }
  .qa-bold { font-size: 1.7rem; }
  .brand-sub { display: none; }
  .fac-brand .brand-uni { font-size: .66rem; }
  .fac-brand .fac-name { font-size: .88rem; max-width: 220px; }
}
@media (max-width: 479.98px) {
  .brand-name { font-size: .92rem; }
  .brand-emblem { width: 42px; }
  .fac-tile-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .life-mosaic { grid-template-columns: 1fr; }
  .life-mosaic > :first-child { grid-column: auto; }
  .band-head-left .band-title { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.is-stuck, .qa-dialog, .hero-explore .bi { animation: none; }
}

/* quick access: portal map under the service tabs */
.qa-sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.4rem 1.6rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.qa-col-title { display: block; margin-bottom: .5rem; color: #fff; text-decoration: none; font-weight: 800; font-size: .85rem; text-transform: uppercase; }
.qa-col-title:hover { color: var(--sky); }
.qa-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.qa-col li a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .82rem; line-height: 1.35; }
.qa-col li a:hover { color: #fff; text-decoration: underline; }
