/* ==========================================================================
   Faculty of Pharmacy & Pharmaceutical Sciences — University of Karachi
   Design system & layout
   ========================================================================== */

:root {
  --brand-950: #04211f;
  --brand-900: #062f2c;
  --brand-800: #0a423f;
  --brand-700: #0d5a56;
  --brand-600: #00807a;
  --brand-500: #009690;
  --brand-100: #e3f2f0;
  --brand-50:  #f1f8f7;
  --accent:    #d2652a;
  --accent-600:#b8531d;
  --accent-50: #fdf1ea;
  --gold:      #c8a04a;

  --ink:       #12201f;
  --ink-2:     #2c3d3b;
  --muted:     #5d6f6d;
  --line:      #e2e9e8;
  --line-2:    #cfdad8;
  --bg:        #ffffff;
  --bg-soft:   #f5f8f7;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Georgia", serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(6, 47, 44, .06), 0 1px 3px rgba(6, 47, 44, .08);
  --shadow:    0 10px 30px -12px rgba(6, 47, 44, .22);
  --shadow-lg: 0 30px 60px -20px rgba(6, 47, 44, .35);

  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--brand-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(210, 101, 42, .7); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-brand { background: var(--brand-700); color: #fff; }
.btn-brand:hover { background: var(--brand-800); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-600); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-950); color: rgba(255,255,255,.78); font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info, .topbar-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; opacity: .7; }
.topbar-badge { background: rgba(200,160,74,.18); color: #f0d79b; padding: 2px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(6,47,44,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-marks { display: flex; align-items: center; gap: 8px; padding-right: 12px; border-right: 1px solid var(--line-2); }
.brand-marks img { height: 50px; width: auto; }
.brand-marks img + img { height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.12rem; color: var(--brand-800); font-weight: 700; }
.brand-text span { font-size: .78rem; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: .92rem; background: none; border: 0;
}
.main-nav > a:hover, .nav-drop > button:hover, .main-nav > a.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop:hover > button svg, .nav-drop:focus-within > button svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-panel::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-panel a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.nav-panel a:hover { background: var(--brand-50); }
.nav-panel a b { display: block; font-weight: 600; font-size: .9rem; }
.nav-panel a small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--brand-600); color: var(--brand-700); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(4,33,31,.5); z-index: 199; opacity: 0; visibility: hidden; transition: .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 200; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer nav { padding: 12px; overflow-y: auto; }
.drawer nav a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.drawer nav a:hover { background: var(--brand-50); }
.drawer-foot { margin-top: auto; padding: 18px 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--brand-900); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s ease-out; }
.hero-media img.is-active { opacity: 1; transform: scale(1); }
.hero-dots { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s ease, background .3s ease; }
.hero-dots button[aria-selected="true"] { width: 28px; background: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(100deg, rgba(4,33,31,.96) 0%, rgba(6,47,44,.88) 38%, rgba(6,47,44,.55) 70%, rgba(6,47,44,.35) 100%),
  linear-gradient(0deg, rgba(4,33,31,.7), transparent 40%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; padding-top: 104px; padding-bottom: 150px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow { color: #f2b48f; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.06; margin-bottom: 22px; font-weight: 600; }
.hero h1 em { font-style: italic; color: #9fe0d9; font-weight: 500; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.84); max-width: 600px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: .82rem; color: rgba(255,255,255,.9); backdrop-filter: blur(6px); }
.hero-badge svg { width: 15px; height: 15px; color: #9fe0d9; }

.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 14px; backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.hero-card-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-img figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(4,33,31,.85)); font-size: .82rem; color: rgba(255,255,255,.9); }
.hero-card-rank { display: flex; align-items: center; gap: 14px; padding: 16px 8px 6px; }
.hero-card-rank strong { font-family: var(--font-serif); font-size: 2.1rem; line-height: 1; color: #fff; }
.hero-card-rank span { font-size: .85rem; color: rgba(255,255,255,.8); line-height: 1.35; }

/* Stats strip */
.stats-wrap { position: relative; z-index: 3; margin-top: -78px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--brand-700); line-height: 1; margin-bottom: 8px; }
.stat-num sup { font-size: .55em; color: var(--accent); margin-left: 2px; }
.stat-label { font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--brand-900); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.section-head p { font-size: 1.06rem; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; }

/* Quick links */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.quick-link { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.quick-link:hover { border-color: var(--brand-500); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.ql-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.ql-icon svg { width: 22px; height: 22px; }
.quick-link b { font-size: 1rem; font-weight: 600; }
.quick-link span { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.about-copy p { font-size: 1.04rem; }
.about-copy .lead { font-size: 1.2rem; color: var(--ink); font-family: var(--font-serif); line-height: 1.5; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; padding: 0; list-style: none; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.about-points svg { width: 22px; height: 22px; flex: none; color: var(--brand-600); margin-top: 1px; }
.about-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.about-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--brand-100); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-media .am-main { grid-row: span 2; aspect-ratio: 3 / 4.6; }
.about-media .am-a { aspect-ratio: 4 / 3; }
.about-media .am-b { aspect-ratio: 4 / 3.4; }
.about-tag { position: absolute; left: -26px; bottom: 34px; background: var(--accent); color: #fff; padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 220px; }
.about-tag strong { display: block; font-family: var(--font-serif); font-size: 2.2rem; line-height: 1; }
.about-tag span { font-size: .82rem; line-height: 1.35; display: block; margin-top: 6px; opacity: .92; }

/* Timeline */
.timeline { margin-top: 96px; position: relative; }
.timeline-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; }
.timeline-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--brand-500), var(--accent)); opacity: .5; }
.tl-item { position: relative; padding: 38px 16px 0 0; }
.tl-item::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-600); }
.tl-item:last-child::before { border-color: var(--accent); background: var(--accent); }
.tl-year { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--brand-700); line-height: 1; }
.tl-item h4 { font-family: var(--font-sans); font-size: .92rem; font-weight: 600; margin: 10px 0 4px; }
.tl-item p { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* Leadership */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.leader { display: grid; grid-template-columns: 210px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.leader-photo { position: relative; background: linear-gradient(160deg, var(--brand-100), #fff); padding: 28px 0 28px 28px; }
.leader-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); border: 4px solid #fff; box-shadow: var(--shadow-sm); }
.leader-body { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.leader-role { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.leader-body h3 { font-size: 1.45rem; margin: 6px 0 2px; }
.leader-title { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.leader-quote { position: relative; font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.6; color: var(--ink-2); padding-left: 18px; border-left: 3px solid var(--brand-500); margin: 0 0 18px; }
.leader-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.leader-meta span { display: inline-flex; align-items: center; gap: 6px; }
.leader-meta svg { width: 14px; height: 14px; color: var(--brand-600); }
.leader-actions { margin-bottom: 16px; }

/* Departments */
.dept-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.dept-tab { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: .2s; }
.dept-tab:hover { border-color: var(--brand-600); color: var(--brand-700); }
.dept-tab.is-active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.dept-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.dept-panel { display: grid; grid-template-columns: .95fr 1.05fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); animation: fadeUp .45s var(--ease); }
.dept-media { position: relative; min-height: 480px; background: var(--brand-800); }
.dept-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dept-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,33,31,0) 35%, rgba(4,33,31,.88) 100%); }
.dept-media-cap { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; color: #fff; }
.dept-media-cap small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #9fe0d9; font-weight: 600; }
.dept-media-cap h3 { color: #fff; font-size: 1.8rem; margin: 6px 0 0; }
.dept-chair { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px 10px 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; backdrop-filter: blur(6px); }
.dept-chair img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid rgba(255,255,255,.7); position: static; background: #fff; }
.dept-chair b { display: block; font-size: .92rem; }
.dept-chair span { font-size: .78rem; opacity: .8; }
.dept-body { padding: 38px 40px; }
.dept-tagline { font-family: var(--font-serif); font-size: 1.2rem; color: var(--brand-700); line-height: 1.45; margin-bottom: 16px; }
.dept-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.dept-vm div { background: var(--bg-soft); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.dept-vm h4 { font-family: var(--font-sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 700; }
.dept-vm p { font-size: .88rem; margin: 0; line-height: 1.6; }
.dept-labs h4 { font-family: var(--font-sans); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .8rem; padding: 6px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.dept-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.dept-foot .contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Program / curriculum */
.program-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px; }
.ph { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ph strong { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--brand-700); line-height: 1; margin-bottom: 6px; }
.ph span { font-size: .86rem; color: var(--muted); }
.curr-shell { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sem-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.sem-group-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 10px 4px 2px; }
.sem-btn { text-align: left; padding: 11px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-weight: 500; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; transition: .15s; }
.sem-btn small { color: var(--muted); font-size: .76rem; }
.sem-btn:hover { background: #fff; border-color: var(--line); }
.sem-btn.is-active { background: #fff; border-color: var(--brand-500); color: var(--brand-800); box-shadow: var(--shadow-sm); font-weight: 600; }
.curr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.curr-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.curr-card-head h3 { margin: 0; font-size: 1.3rem; }
.curr-card-head .pill { background: var(--accent-50); color: var(--accent-600); font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 26px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
table.data td { padding: 13px 26px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--brand-50); }
table.data .code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .82rem; color: var(--brand-700); white-space: nowrap; }
table.data .num { text-align: center; font-weight: 600; }
.cat { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--brand-50); color: var(--brand-700); }
.cat-gen { background: #f2eefb; color: #5b3fa0; }
.cat-elec, .cat-int { background: var(--accent-50); color: var(--accent-600); }
.curr-note { padding: 14px 26px; font-size: .8rem; color: var(--muted); background: var(--bg-soft); border-top: 1px solid var(--line); }

.program-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.extra-card { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.extra-card .ec-img { aspect-ratio: 16 / 7; overflow: hidden; }
.extra-card .ec-img img { width: 100%; height: 100%; object-fit: cover; }
.extra-card .ec-body { padding: 26px 28px; }
.extra-card h3 { font-size: 1.3rem; }
.extra-card p { font-size: .94rem; color: var(--muted); }
details.def { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
details.def summary { cursor: pointer; font-weight: 600; color: var(--brand-700); list-style: none; display: flex; align-items: center; gap: 6px; }
details.def summary::-webkit-details-marker { display: none; }
details.def summary svg { width: 16px; height: 16px; transition: transform .2s; }
details.def[open] summary svg { transform: rotate(90deg); }
.def-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.def-grid h5 { margin: 0 0 6px; font-size: .82rem; color: var(--ink); }
.def-grid ol { margin: 0; padding-left: 18px; font-size: .82rem; color: var(--ink-2); line-height: 1.7; }
.def-grid ol span { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: .74rem; }

/* Faculty directory */
.fac-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.fac-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fac-filter { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font-size: .86rem; font-weight: 500; transition: .15s; }
.fac-filter:hover { border-color: var(--brand-600); color: var(--brand-700); }
.fac-filter.is-active { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.fac-filter .count { opacity: .6; margin-left: 4px; font-size: .78rem; }
.search-field { position: relative; flex: 0 1 320px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-field input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line-2); border-radius: 999px; font: inherit; font-size: .92rem; background: #fff; color: var(--ink); }
.search-field input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.fac-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; padding: 0; color: inherit; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.fac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.fac-photo { position: relative; aspect-ratio: 4 / 4.6; background: linear-gradient(170deg, #eef4f3, #dfe9e7); overflow: hidden; }
.fac-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s var(--ease); }
.fac-card:hover .fac-photo img { transform: scale(1.04); }
.fac-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.fac-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.fac-info b { font-family: var(--font-serif); font-size: 1.04rem; color: var(--ink); line-height: 1.3; font-weight: 600; }
.fac-info .fac-desig { font-size: .84rem; color: var(--brand-700); font-weight: 500; }
.fac-info .fac-dept { font-size: .78rem; color: var(--muted); }
.fac-info .fac-more { margin-top: auto; padding-top: 10px; font-size: .8rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-serif); font-size: 2.6rem; color: var(--brand-700); background: linear-gradient(160deg, var(--brand-100), #fff); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }

/* Research facilities */
.fac-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.r-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.r-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.r-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-800); }
.r-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.r-card:hover .r-img img { transform: scale(1.05); }
.r-tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.94); color: var(--brand-800); font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.r-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.r-body h3 { font-size: 1.2rem; }
.r-body p { font-size: .9rem; color: var(--muted); }
.r-foot { margin-top: auto; font-size: .82rem; color: var(--brand-700); display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.r-foot svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Publications */
.pub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.pub-feature { background: linear-gradient(150deg, var(--brand-800), var(--brand-950)); border-radius: var(--radius-lg); padding: 40px; color: rgba(255,255,255,.82); position: relative; overflow: hidden; }
.pub-feature::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255,255,255,.04); }
.pub-feature h3 { color: #fff; font-size: 1.8rem; }
.pub-kpis { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0; }
.pub-kpis div strong { display: block; font-family: var(--font-serif); font-size: 1.9rem; color: #fff; line-height: 1; }
.pub-kpis div span { font-size: .8rem; color: rgba(255,255,255,.65); }
.index-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; padding: 0; list-style: none; }
.index-chips li { font-size: .76rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); }
.pub-list { display: flex; flex-direction: column; gap: 16px; }
.pub-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.pub-item .ql-icon { width: 48px; height: 48px; }
.pub-item h4 { font-size: 1.08rem; margin-bottom: 2px; }
.pub-item small { display: block; color: var(--accent-600); font-weight: 600; font-size: .78rem; margin-bottom: 6px; }
.pub-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Admissions & rules */
.tabs { display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 28px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tab:hover { color: var(--brand-700); }
.tab.is-active { background: var(--brand-800); color: #fff; }
.tab-panel { display: none; animation: fadeUp .4s var(--ease); }
.tab-panel.is-active { display: block; }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rule-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.rule-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 12px; }
.rule-card h3 .ql-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.rule-card h3 .ql-icon svg { width: 20px; height: 20px; }
.rule-card p, .rule-card li { font-size: .92rem; color: var(--ink-2); }
.rule-card ul { padding-left: 18px; margin: 0; }
.rule-card li { margin-bottom: 8px; }
.rule-card li::marker { color: var(--brand-500); }
.callout { background: var(--accent-50); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .86rem; color: var(--ink-2); margin-top: 12px; }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.medal { display: flex; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.medal-icon { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #f6dc93, var(--gold) 70%); color: #6b4c0e; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.medal-icon svg { width: 22px; height: 22px; }
.medal b { display: block; font-family: var(--font-serif); color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.medal p { font-size: .86rem; color: var(--muted); margin: 0; }
.convo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.convo-img { min-height: 340px; position: relative; }
.convo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.convo-body { padding: 34px 36px; }
.convo-body ul { padding-left: 18px; }
.convo-body li { margin-bottom: 10px; font-size: .92rem; }

/* Calendar */
.cal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-row-event { font-weight: 600; color: var(--ink); }
.term-chip { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.term-chip.t2 { background: var(--accent-50); color: var(--accent-600); }

/* Student life */
.life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.club { padding: 22px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.club .ql-icon { background: rgba(159,224,217,.12); color: #9fe0d9; margin-bottom: 14px; }
.club h3 { font-size: 1.1rem; margin-bottom: 6px; }
.club p { font-size: .86rem; margin-bottom: 10px; color: rgba(255,255,255,.72); }
.club small { display: block; font-size: .76rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.life-media { position: relative; }
.life-media .lm-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: var(--shadow-lg); }
.life-media img { width: 100%; height: 100%; object-fit: cover; }
.life-media .lm-float { position: absolute; right: -18px; bottom: -36px; width: 46%; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--brand-900); aspect-ratio: 3 / 4; box-shadow: var(--shadow-lg); background: #fff; }
.life-media .lm-float img { object-position: center top; }
.tour { margin-top: 30px; padding: 20px 22px; border-radius: var(--radius); background: rgba(210,101,42,.12); border: 1px solid rgba(210,101,42,.3); }
.tour b { color: #fff; display: block; margin-bottom: 4px; }
.tour p { margin: 0; font-size: .88rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; padding: 0; border: 0; background: var(--brand-100); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(4,33,31,.85)); color: #fff; font-size: .82rem; text-align: left; line-height: 1.35; }
.g-item figcaption b { display: block; font-size: .9rem; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.ci { display: flex; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ci .ql-icon { flex: none; }
.ci b { display: block; color: var(--ink); font-size: .95rem; }
.ci span, .ci a { font-size: .9rem; }
.ci span { color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 230px; background: var(--brand-50); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: .94rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px var(--brand-100); }
.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-feedback { margin-top: 14px; font-size: .88rem; padding: 12px 14px; border-radius: 10px; display: none; }
.form-feedback.ok { display: block; background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.form-feedback.err { display: block; background: #fdeeee; color: #9b2c2c; border: 1px solid #f5c9c9; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-800); color: #fff; padding: 54px 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,47,44,.97), rgba(6,47,44,.75)); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner page header */
.page-hero { position: relative; overflow: hidden; background: var(--brand-950); color: #fff; padding: 84px 0 76px; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0 0 12px; }
.page-hero p { max-width: 620px; margin: 0; font-size: 1.08rem; color: rgba(255,255,255,.78); }
.crumbs { display: flex; gap: 10px; font-size: .84rem; color: rgba(255,255,255,.66); margin-bottom: 18px; }
.crumbs a { color: #f2b48f; }
.crumbs a:hover { color: #fff; }

/* Alumni */
.alumni-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.alumni-info { display: flex; flex-direction: column; gap: 14px; }
.choice-row { display: flex; gap: 10px; }
.choice { flex: 1; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 500 !important; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.choice input { accent-color: var(--brand-600); }
.field input[type="file"] { padding: 10px 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Footer */
.site-footer { background: var(--brand-950); color: rgba(255,255,255,.66); font-size: .9rem; padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 54px; }
.footer-brand .brand-marks { border-color: rgba(255,255,255,.18); }
.footer-brand .brand-text strong { color: #fff; line-height: 1.25; max-width: 240px; }
.footer-brand .brand-text small, .footer-brand .brand-text span { color: rgba(255,255,255,.6); }
.footer-brand p { margin: 20px 0 0; max-width: 360px; line-height: 1.7; }
.site-footer h4 { font-family: var(--font-sans); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(4,33,31,.62); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; animation: fade .2s; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: min(880px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); animation: fadeUp .3s var(--ease); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.profile { display: grid; grid-template-columns: 280px 1fr; }
.profile-photo { background: linear-gradient(170deg, #eef4f3, #dfe9e7); min-height: 100%; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; max-height: 520px; }
.profile-body { padding: 36px 36px 32px; }
.profile-body .leader-role { display: block; margin-bottom: 4px; }
.profile-body h3 { font-size: 1.7rem; margin-bottom: 4px; }
.profile-body .sub { color: var(--brand-700); font-weight: 500; margin-bottom: 18px; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.profile-facts div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.profile-facts small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.profile-facts span { font-size: .88rem; color: var(--ink); word-break: break-word; }
.profile-bio { font-size: .93rem; line-height: 1.75; }

.msg-box { width: min(760px, 100%); padding: 44px 46px 40px; }
.msg-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.msg-head img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 3px solid var(--brand-100); }
.msg-head h3 { margin: 0; font-size: 1.4rem; }
.msg-head span { color: var(--muted); font-size: .88rem; }
.msg-text p { font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }

.search-box { width: min(680px, 100%); align-self: flex-start; margin-top: 8vh; padding: 0; overflow: hidden; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-input-row svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.search-input-row input { flex: 1; border: 0; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent; }
.search-input-row input:focus { outline: none; }
.search-input-row kbd { font-size: .72rem; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); font-family: inherit; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.sr-item { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 10px 14px; border-radius: 10px; background: none; border: 0; color: var(--ink); }
.sr-item:hover, .sr-item:focus { background: var(--brand-50); outline: none; }
.sr-item img, .sr-item .sr-ico { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; object-position: center 15%; flex: none; background: var(--brand-50); display: grid; place-items: center; color: var(--brand-600); }
.sr-item .sr-ico svg { width: 18px; height: 18px; }
.sr-item b { display: block; font-size: .92rem; font-weight: 600; }
.sr-item small { color: var(--muted); font-size: .8rem; }
.sr-type { margin-left: auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.search-hint { padding: 26px; text-align: center; color: var(--muted); font-size: .9rem; }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4,20,19,.92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.is-open { display: flex; animation: fade .2s; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: .92rem; }
.lightbox .icon-btn { position: absolute; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

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

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
}
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 84px; padding-bottom: 140px; }
  .hero-card { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .life-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-tag { left: 16px; }
  .timeline-track { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .timeline-track::before { display: none; }
  .leaders { grid-template-columns: 1fr; }
  .dept-panel { grid-template-columns: 1fr; }
  .dept-media { min-height: 340px; }
  .program-highlights { grid-template-columns: repeat(2, 1fr); }
  .curr-shell { grid-template-columns: 1fr; }
  .sem-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .sem-group-label { display: none; }
  .sem-btn { flex: none; border-color: var(--line); background: #fff; }
  .sem-btn small { display: none; }
  .fac-cards { grid-template-columns: repeat(2, 1fr); }
  .pub-grid, .contact-grid, .alumni-grid, .program-extra { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .life-media .lm-float { right: 12px; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .container { padding: 0 16px; }
  .topbar-info .hide-sm, .topbar-links { display: none; }
  .brand-marks img { height: 40px; }
  .brand-marks img + img { height: 36px; }
  .brand-text strong { font-size: .98rem; }
  .brand-text span { display: none; }
  .section { padding: 76px 0; }
  .hero-inner { padding-top: 64px; padding-bottom: 120px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); padding: 20px 18px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:last-child { grid-column: span 2; border-right: 0 !important; }
  .stat-num { font-size: 1.8rem; }
  .quick-links { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .about-tag { position: static; margin-top: 16px; max-width: none; grid-column: 1 / -1; }
  .timeline-track { grid-template-columns: repeat(2, 1fr); }
  .leader { grid-template-columns: 1fr; }
  .leader-photo { padding: 0; }
  .leader-photo img { border: 0; border-radius: 0; box-shadow: none; }
  .dept-body { padding: 28px 22px; }
  .dept-vm { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .fac-info { padding: 12px 12px 14px; }
  .fac-info b { font-size: .94rem; }
  .search-field { flex: 1 1 100%; }
  .fac-cards, .rule-grid, .clubs, .def-grid, .form-grid { grid-template-columns: 1fr; }
  .convo { grid-template-columns: 1fr; }
  .convo-img { min-height: 220px; }
  .convo-body { padding: 26px 22px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g-wide { grid-column: span 2; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo img { max-height: 340px; }
  .profile-body { padding: 26px 22px; }
  .profile-facts { grid-template-columns: 1fr; }
  .msg-box { padding: 30px 22px; }
  .modal { padding: 12px; }
  table.data th, table.data td { padding: 11px 14px; }
  .life-media .lm-float { display: none; }
  .pub-feature { padding: 30px 24px; }
  .form-card { padding: 24px 20px; }
  .tabs { border-radius: 14px; }
}

/* ---------- Refinements ---------- */
.topbar-info, .topbar-links { flex-wrap: nowrap; white-space: nowrap; }
.main-nav > a, .nav-drop > button { white-space: nowrap; }
img[src*="pharmacy-building"], img[src*="uok-gate-2"] { object-position: center bottom !important; }
.hero-card-rank strong { white-space: nowrap; }
@media (max-width: 1320px) { .main-nav > a, .nav-drop > button { padding: 10px 9px; font-size: .88rem; } }
@media (max-width: 1100px) { .topbar-info .topbar-item:last-child { display: none; } }
@media (max-width: 760px) {
  table.data th:first-child, table.data td:first-child { display: none; }
  .hero h1 { font-size: 2.15rem; }
  .gallery .g-tall { grid-row: span 2; }
}
.curr-shell > *, .dept-panel > *, .pub-grid > *, .contact-grid > *, .alumni-grid > *, .life-grid > *, .about-grid > * { min-width: 0; }
