/* =========================================================
   26 CYBER COMMUNITY — Main Stylesheet
   QUEST Nawabshah | Cyber Security | Batch 2026
   ---------------------------------------------------------
   To change colours, edit the variables in :root below.
   ========================================================= */

:root {
  /* Brand colours */
  --navy-950: #050d22;
  --navy-900: #081634;
  --navy-800: #0b1f4b;
  --navy-700: #12306b;
  --quest-blue: #1fa6e0;      /* QUEST-inspired blue */
  --quest-blue-600: #1689c0;
  --cyan-300: #7fe3f5;        /* light cyan */
  --cyan-100: #e3f8fd;
  --white: #ffffff;

  /* Neutrals */
  --ink: #0e1a33;
  --ink-soft: #46546f;
  --line: #dbe4f0;
  --surface: #f5f8fc;
  --surface-2: #eef4fb;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8, 22, 52, .06), 0 2px 8px rgba(8, 22, 52, .05);
  --shadow: 0 10px 30px -12px rgba(8, 22, 52, .22);
  --shadow-lg: 0 24px 60px -20px rgba(8, 22, 52, .35);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--quest-blue-600); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--quest-blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy-900); color: #fff;
  padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); min-width: 0; }
.brand:hover { color: var(--navy-900); }
.brand-quest { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.brand-quest img { width: 100%; height: 100%; object-fit: contain; }
.brand-divider { width: 1px; height: 36px; background: var(--line); flex: 0 0 auto; }
.brand-community { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-community img { width: 40px; height: 40px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; letter-spacing: .02em; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: block; white-space: nowrap; padding: 8px 11px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--navy-800); }
.main-nav a[aria-current="page"] { color: var(--quest-blue-600); background: var(--cyan-100); }
.nav-more { position: relative; }
.nav-more > button {
  display: flex; align-items: center; gap: 4px; border: 0; background: none; padding: 8px 11px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
}
.nav-more > button:hover, .nav-more.open > button { background: var(--surface-2); }
.nav-more > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-more.open > button svg { transform: rotate(180deg); }
.nav-more .dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; align-items: stretch;
}
.nav-more.open .dropdown { display: flex; }
.nav-cta { margin-left: 8px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: #fff; overflow-y: auto;
  padding: 18px 20px 40px; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-nav.open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav ul { list-style: none; display: grid; gap: 4px; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 12px;
  font-weight: 600; color: var(--navy-900); border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--cyan-100); border-color: #c8eef8; }
.mobile-nav .mobile-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
  line-height: 1.2; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { background: linear-gradient(135deg, var(--quest-blue), var(--quest-blue-600)); color: #fff; box-shadow: 0 8px 20px -8px rgba(31, 166, 224, .7); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(31, 166, 224, .8); }
.btn-outline { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--navy-900); background: #fff; }
.btn-ghost:hover { border-color: var(--quest-blue); color: var(--quest-blue-600); transform: translateY(-2px); }
.btn-fb { background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f63d1; color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(31, 166, 224, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(127, 227, 245, .12), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d2a62 100%);
}
.hero::before { /* circuit pattern */
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: url("../assets/images/circuit-pattern.svg"); background-size: 520px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 84px 0 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(127, 227, 245, .1); color: var(--cyan-300);
  border: 1px solid rgba(127, 227, 245, .25);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 0 4px rgba(127,227,245,.18); }
.hero-brand { font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; font-size: clamp(.95rem, 1.6vw, 1.1rem); color: var(--cyan-300); margin: 22px 0 8px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { background: linear-gradient(90deg, #fff, var(--cyan-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; font-size: .85rem; color: rgba(255,255,255,.7); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan-300); }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hv-ring { transform-origin: 240px 240px; animation: spin 60s linear infinite; }
.hv-ring.rev { animation-direction: reverse; animation-duration: 80s; }
.hv-node { animation: pulse 3.2s ease-in-out infinite; }
.hv-node:nth-of-type(2n) { animation-delay: .8s; }
.hv-node:nth-of-type(3n) { animation-delay: 1.6s; }
.hv-shield { animation: float 6s ease-in-out infinite; transform-origin: 240px 240px; }
.hv-line { stroke-dasharray: 4 6; animation: dash 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes dash { to { stroke-dashoffset: -100; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 56px;
  background: radial-gradient(700px 360px at 90% 0%, rgba(31,166,224,.35), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 460px;
  mask-image: linear-gradient(to left, #000, transparent 80%); -webkit-mask-image: linear-gradient(to left, #000, transparent 80%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin: 14px 0 10px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 680px; font-size: 1.08rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); list-style: none; flex-wrap: wrap; }
.breadcrumb a { color: var(--cyan-300); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--quest-blue-600); margin-bottom: 10px; }
.section-dark .kicker { color: var(--cyan-300); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card.hover:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe6f6; }
a.card { color: inherit; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .96rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--quest-blue-600); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .more svg { transform: translateX(4px); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--cyan-100), #d4f1fb); color: var(--quest-blue-600); border: 1px solid #c8eef8;
}
.icon-badge svg { width: 26px; height: 26px; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.section-dark .card p { color: rgba(255,255,255,.72); }
.section-dark .icon-badge { background: rgba(127,227,245,.1); border-color: rgba(127,227,245,.25); color: var(--cyan-300); }

.highlight-card { overflow: hidden; }
.highlight-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,166,224,.12), transparent 70%); transition: transform .4s var(--ease);
}
.highlight-card:hover::after { transform: scale(1.6); }
.card-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-weight: 700; color: #d5e2f1; font-size: 1.4rem; }

/* Placeholder / empty state */
.placeholder-card {
  border: 2px dashed #c7d6ea; background: repeating-linear-gradient(135deg, #fbfdff, #fbfdff 12px, #f4f8fd 12px, #f4f8fd 24px);
  border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-soft);
}
.placeholder-card h3 { color: var(--navy-700); }
.placeholder-card .icon-badge { margin-inline: auto; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px; background: var(--cyan-100); color: var(--quest-blue-600); border: 1px solid #c8eef8;
}
.tag.navy { background: #e7ecf7; color: var(--navy-700); border-color: #d4dcee; }
.tag.muted { background: #f1f4f9; color: var(--ink-soft); border-color: var(--line); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

.empty-state {
  text-align: center; padding: 56px 24px; border-radius: var(--radius); background: linear-gradient(160deg, #f7fbff, #eef6fd);
  border: 1px solid var(--line);
}
.empty-state .icon-badge { margin: 0 auto 18px; width: 64px; height: 64px; }
.empty-state h3 { font-size: 1.4rem; }
.empty-state p { color: var(--ink-soft); max-width: 520px; margin: 0 auto; }

/* ---------- Welcome / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.welcome-visual {
  position: relative; border-radius: 24px; padding: 34px; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow-lg);
}
.welcome-visual::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 380px; opacity: .14; }
.welcome-visual > * { position: relative; }
.welcome-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.welcome-logos .logo-disc { width: 76px; height: 76px; border-radius: 50%; background: #fff; padding: 3px; }
.welcome-logos .logo-disc img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.welcome-logos .x { color: rgba(255,255,255,.4); font-size: 1.4rem; }
.welcome-logos img.community { width: 76px; height: 76px; }
.terminal {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88rem; background: rgba(5,13,34,.7);
  border: 1px solid rgba(127,227,245,.18); border-radius: 12px; padding: 16px 18px; line-height: 1.8;
}
.terminal .bar { display: flex; gap: 6px; margin-bottom: 10px; }
.terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3c63; display: block; }
.terminal .p { color: var(--cyan-300); }
.terminal .c { color: rgba(255,255,255,.5); }
.terminal .ok { color: #7ee2a8; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 20px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--quest-blue); flex: 0 0 auto; margin-top: 2px; }

/* Stats strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-800); }
.stat span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Learning hub ---------- */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.platform {
  display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.platform:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bfe6f6; color: var(--ink); }
.platform strong { font-family: var(--font-head); color: var(--navy-900); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.platform strong svg { width: 15px; height: 15px; color: var(--quest-blue); }
.platform span { font-size: .84rem; color: var(--ink-soft); }

.hub { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.hub > * { min-width: 0; }
.hub-nav { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.hub-nav [role="tablist"] { display: grid; gap: 2px; }
.hub-tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 11px 12px;
  border-radius: 10px; font-weight: 500; color: var(--ink); font-size: .94rem; transition: background .2s, color .2s;
}
.hub-tab svg { width: 20px; height: 20px; color: var(--ink-soft); flex: 0 0 auto; }
.hub-tab:hover { background: var(--surface-2); }
.hub-tab[aria-selected="true"] { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; }
.hub-tab[aria-selected="true"] svg { color: var(--cyan-300); }
.hub-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hub-panel[hidden] { display: none; }
.hub-panel-head { padding: 30px 32px; background: linear-gradient(150deg, var(--navy-900), var(--navy-800)); color: #fff; position: relative; overflow: hidden; }
.hub-panel-head::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 320px; opacity: .12; }
.hub-panel-head > * { position: relative; }
.hub-panel-head h2 { color: #fff; font-size: 1.8rem; display: flex; align-items: center; gap: 12px; }
.hub-panel-head h2 svg { width: 32px; height: 32px; color: var(--cyan-300); }
.hub-panel-head p { color: rgba(255,255,255,.8); margin: 0; max-width: 720px; }
.hub-body { padding: 30px 32px; display: grid; gap: 34px; }
.hub-body h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.hub-body h3::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--quest-blue); }

.roadmap { list-style: none; counter-reset: step; display: grid; gap: 0; position: relative; }
.roadmap li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.roadmap li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; background: var(--cyan-100); color: var(--quest-blue-600); border: 1px solid #c8eef8;
}
.roadmap li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.roadmap li:last-child::after { display: none; }
.roadmap li:last-child { padding-bottom: 0; }
.roadmap strong { display: block; color: var(--navy-900); }
.roadmap span { color: var(--ink-soft); font-size: .93rem; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.level { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.level h4 { font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.level ul { list-style: none; display: grid; gap: 7px; font-size: .9rem; color: var(--ink-soft); }
.level li { padding-left: 16px; position: relative; }
.level li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--quest-blue); }
.level.beginner h4 .tag { background: #e6f7ee; color: #1d7a4a; border-color: #c9ecd8; }
.level.intermediate h4 .tag { background: #fff5e0; color: #9a6400; border-color: #f4e1b6; }
.level.advanced h4 .tag { background: #fde8ec; color: #a8324a; border-color: #f6cfd7; }

.practice-list { list-style: none; display: grid; gap: 8px; }
.practice-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; }
.practice-list svg { width: 18px; height: 18px; color: var(--quest-blue); flex: 0 0 auto; margin-top: 3px; }

.link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ext-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); background: #fff; transition: border-color .2s, background .2s, transform .2s;
}
.ext-link:hover { border-color: var(--quest-blue); background: var(--cyan-100); color: var(--navy-900); transform: translateY(-1px); }
.ext-link strong { display: block; font-size: .95rem; color: var(--navy-900); }
.ext-link small { color: var(--ink-soft); font-size: .8rem; }
.ext-link svg { width: 18px; height: 18px; color: var(--quest-blue); flex: 0 0 auto; }

/* ---------- Events / announcements ---------- */
.event-card { display: flex; flex-direction: column; gap: 12px; }
.event-date {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px;
  background: var(--navy-800); color: #fff; font-family: var(--font-head); line-height: 1;
}
.event-date b { font-size: 1.35rem; }
.event-date small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.event-top { display: flex; gap: 14px; align-items: center; }
.event-meta { list-style: none; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-soft); }
.event-meta li { display: flex; gap: 8px; align-items: center; }
.event-meta svg { width: 16px; height: 16px; color: var(--quest-blue); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--quest-blue); color: var(--quest-blue-600); }
.filter-btn[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.announce-list { display: grid; gap: 14px; }
.announce {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.announce.important { border-left: 4px solid #e0a51f; }
.announce h3 { margin: 6px 0 6px; font-size: 1.08rem; }
.announce p { color: var(--ink-soft); margin: 0; }
.announce time { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--navy-800); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
tbody th { background: var(--surface); color: var(--navy-900); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.tba { color: #98a6bd; font-style: italic; }

/* ---------- Projects / gallery / team ---------- */
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project-card .thumb { aspect-ratio: 16/9; background: linear-gradient(150deg, var(--navy-800), var(--navy-700)); display: grid; place-items: center; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .thumb svg { width: 56px; height: 56px; color: var(--cyan-300); opacity: .7; }
.project-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card .contributors { font-size: .86rem; color: var(--ink-soft); }
.project-card .actions { margin-top: auto; padding-top: 6px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); border: 0; padding: 0; text-align: left; width: 100%;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 14px; color: #fff; font-size: .88rem; font-weight: 600;
  background: linear-gradient(to top, rgba(5,13,34,.85), transparent);
}
.gallery-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px;
  color: #7a8cab; background: linear-gradient(150deg, #f3f8fd, #e6eff9);
}
.gallery-ph::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern-light.svg"); background-size: 300px; opacity: .6; }
.gallery-ph > * { position: relative; }
.gallery-ph svg { width: 36px; height: 36px; color: #9fb5d3; }
.gallery-ph strong { color: var(--navy-700); font-size: .95rem; }
.gallery-ph small { font-size: .78rem; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,13,34,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-size: 1.4rem; }

.member-card { text-align: center; }
.member-card .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--cyan-100); background: var(--surface-2); }
.member-card .role { color: var(--quest-blue-600); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.member-card .tag-row { justify-content: center; margin: 10px 0; }
.social-row { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.social-row a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy-800); }
.social-row a:hover { background: var(--cyan-100); border-color: var(--quest-blue); }
.social-row svg { width: 17px; height: 17px; }

.forming {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 32px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 50% 0%, rgba(31,166,224,.35), transparent 70%), linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.forming::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 420px; opacity: .14; }
.forming > * { position: relative; }
.forming h2 { color: #fff; max-width: 680px; margin: 18px auto 12px; }
.forming p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 26px; }
.avatar-stack { display: flex; justify-content: center; }
.avatar-stack span {
  width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--navy-800); margin-left: -12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1b3a78, #12306b); color: var(--cyan-300);
}
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack svg { width: 24px; height: 24px; }

/* Faculty */
.faculty-card { text-align: center; }
.faculty-card .avatar-ph { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--surface-2); color: #9fb5d3; border: 2px dashed #c7d6ea; }
.faculty-card .avatar-ph svg { width: 44px; height: 44px; }
.faculty-card img.avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.dept-box { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; }
.dept-box .logo-disc { width: 160px; height: 160px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); padding: 4px; }
.dept-box .logo-disc img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* Notice / info banner */
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; background: #f0f8ff;
  border: 1px solid #cfe5f7; color: var(--navy-700); font-size: .93rem;
}
.notice svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--quest-blue-600); margin-top: 1px; }
.notice p { margin: 0; }
.notice.warn { background: #fffaf0; border-color: #f3e2bd; color: #6b4b00; }
.notice.warn svg { color: #c48a00; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(31,166,224,.4), transparent 70%), linear-gradient(140deg, var(--navy-800), var(--navy-900));
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 400px; opacity: .12; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.fb-card { background: linear-gradient(150deg, #1877f2, #0b4fb0); color: #fff; border: 0; }
.fb-card h3, .fb-card p { color: #fff; }
.fb-card p { opacity: .88; }
.fb-card .icon-badge { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.fb-card .btn { background: #fff; color: #0b4fb0; }
.fb-card .btn:hover { background: #eaf2ff; color: #0b4fb0; }

/* Accordion (details) */
details.acc { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
details.acc + details.acc { margin-top: 10px; }
details.acc summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--navy-900); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--quest-blue); transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding: 72px 0 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 480px; opacity: .06; }
.site-footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logos { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .logos .q { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 2px; }
.footer-brand .logos .q img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.footer-brand .logos .c { width: 50px; height: 50px; }
.footer-brand .logos .sep { width: 1px; height: 40px; background: rgba(255,255,255,.18); }
.footer-brand h2 { color: #fff; font-size: 1.3rem; letter-spacing: .04em; margin-bottom: 6px; }
.footer-brand .addr { font-size: .9rem; line-height: 1.7; margin-bottom: 14px; }
.footer-brand .tagline { color: var(--cyan-300); font-weight: 600; font-family: var(--font-head); }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .93rem; }
.site-footer a:hover { color: var(--cyan-300); }
.footer-fb { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 14px; border-radius: 10px; background: rgba(24,119,242,.18); border: 1px solid rgba(24,119,242,.4); color: #fff !important; font-weight: 600; }
.footer-fb svg { width: 18px; height: 18px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.disclaimer p { margin: 0; }
.disclaimer strong { color: #fff; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 12px; border: 0;
  background: var(--navy-800); color: #fff; box-shadow: var(--shadow); display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) { .brand-sub { display: none; } }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 72px; text-align: left; }
  .hero-visual { max-width: 340px; order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hub { grid-template-columns: 1fr; }
  .hub-nav { position: static; }
  .hub-nav [role="tablist"] { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .hub-tab { width: auto; white-space: nowrap; }
  .levels { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .dept-box { grid-template-columns: 1fr; text-align: center; }
  .dept-box .logo-disc { margin: 0 auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .brand-quest { width: 42px; height: 42px; }
  .brand-community img { width: 34px; height: 34px; }
  .brand-name { font-size: .92rem; }
  .brand-sub { display: none; }
  .brand-divider { height: 30px; }
  .hub-panel-head, .hub-body { padding: 22px 20px; }
  .announce { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .btn { white-space: normal; }
}
@media (max-width: 380px) {
  .brand-community img { display: none; }
  .platforms { grid-template-columns: 1fr; }
}

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

@media print {
  .site-header, .mobile-nav, .site-footer, .to-top { display: none !important; }
}

/* fixes */
.main-nav a.btn { display: inline-flex; color: #fff; }
.main-nav a.btn:hover { background: #0f63d1; color: #fff; }
.mobile-nav a svg { width: 18px; height: 18px; color: var(--quest-blue); flex: 0 0 auto; }


/* ===== Chairman feature ===== */
.chair-card { display: grid; grid-template-columns: 280px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.chair-photo { position: relative; background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); display: grid; place-items: center; min-height: 300px; }
.chair-photo::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 300px; opacity: .14; }
.chair-photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.chair-initials { position: relative; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--cyan-300); background: rgba(127,227,245,.08); border: 2px solid rgba(127,227,245,.35); }
.chair-body { padding: 32px 36px; }
.chair-body h3 { font-size: 1.7rem; margin: 4px 0 6px; }
.chair-role { color: var(--quest-blue-600); font-weight: 600; margin-bottom: 18px; line-height: 1.5; }
.chair-block { margin-top: 16px; }
.chair-block h4 { font-size: .95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.chair-block h4 svg { width: 18px; height: 18px; color: var(--quest-blue); }
.chair-block ul { list-style: none; display: grid; gap: 6px; }
.chair-block li { position: relative; padding-left: 16px; color: var(--ink-soft); font-size: .94rem; }
.chair-block li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--quest-blue); }

.dept-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fact strong { display: block; font-family: var(--font-head); color: var(--navy-800); font-size: 1.15rem; }
.fact span { color: var(--ink-soft); font-size: .88rem; }

/* ===== Class corner ===== */
.class-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.class-info > div { background: #fff; padding: 16px 20px; }
.ci-label { display: block; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.class-info strong { color: var(--navy-900); font-family: var(--font-head); }
table.tt { min-width: 860px; }
table.tt th, table.tt td { text-align: center; vertical-align: middle; }
table.tt thead th { font-size: .8rem; }
table.tt tbody th { text-align: left; }
.slot-no { display: block; font-size: 1rem; color: var(--cyan-300); }
table.tt td { font-weight: 700; font-family: var(--font-head); color: var(--navy-900); border-left: 1px solid var(--line); }
table.tt abbr { text-decoration: none; cursor: help; }
.tt-class { background: #eef7fd; }
.tt-lab { background: #fff6df; }
.tt-cbp { background: #eef1fb; color: var(--navy-700) !important; }
.tt-free { background: #fff; }
tr.alt-times td { font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--ink-soft); background: var(--surface); }
.tt-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .86rem; color: var(--ink-soft); }
.tt-legend span { display: inline-flex; align-items: center; gap: 8px; }
.tt-legend .lg { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.subj-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subj-abbr { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--quest-blue-600)); padding: 6px 12px; border-radius: 10px; }
.subj-teacher { display: flex; gap: 8px; align-items: flex-start; color: var(--ink) !important; font-size: .92rem !important; }
.subj-teacher svg { width: 17px; height: 17px; color: var(--quest-blue); flex: 0 0 auto; margin-top: 3px; }

@media (max-width: 900px) {
  .chair-card { grid-template-columns: 1fr; }
  .chair-photo { min-height: 220px; }
  .dept-facts { grid-template-columns: repeat(2, 1fr); }
  .chair-body { padding: 24px 22px; }
}
@media (max-width: 640px) {
  .class-info { grid-template-columns: 1fr; }
  .dept-facts { grid-template-columns: 1fr; }
}

/* =========================================================
   HOME v2 — refined layout
   ========================================================= */
.section { padding: 80px 0; }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; max-width: none; }
.split-head h2 { margin-bottom: 0; }
.split-head p { margin: 0; }

/* Hero */
.hero-v2 .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 56px; padding: 72px 0 64px; }
.hero-v2 h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -.02em; max-width: 640px; text-wrap: balance; }
.hero-v2 h1 .accent { display: inline-block; }
.hero-v2 .hero-brand { margin-top: 26px; }
.hero-emblems { display: inline-flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(127,227,245,.22); }
.emblem { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 2px; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(127,227,245,.12); }
.emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.emblem.lg { width: 84px; height: 84px; }
.emblem-26 { width: 52px; height: 52px; }
.emblem-text { font-size: .8rem; line-height: 1.35; color: rgba(255,255,255,.7); }
.emblem-text b { color: #fff; font-weight: 600; }

.today-card {
  position: relative; background: rgba(255,255,255,.97); color: var(--ink); border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(127,227,245,.25);
}
.today-card::before { content: ""; position: absolute; inset: -1px; border-radius: 23px; padding: 1px; background: linear-gradient(140deg, var(--cyan-300), transparent 40%, transparent 70%, var(--quest-blue)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.today-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.today-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--quest-blue-600); }
.today-head h2 { font-size: 1.35rem; margin: 2px 0 0; color: var(--navy-900); }
.today-day { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: #fff; background: var(--navy-800); padding: 6px 12px; border-radius: 999px; }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.today-list li { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.today-list li.done { opacity: .5; }
.today-list li.live { background: linear-gradient(135deg, #e3f8fd, #d4f1fb); border-color: #8fdcf2; box-shadow: 0 6px 18px -10px rgba(31,166,224,.8); }
.today-list .t { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: .95rem; line-height: 1.1; }
.today-list .t small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-soft); margin-top: 3px; }
.today-list .s { font-size: .86rem; color: var(--ink-soft); line-height: 1.3; }
.today-list .s b { display: block; color: var(--navy-900); font-family: var(--font-head); font-size: .98rem; }
.badge-now, .badge-lab { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: .04em; }
.badge-now { background: #16a34a; color: #fff; animation: pulse 2s ease-in-out infinite; }
.badge-lab { background: #fff3d6; color: #8a5a00; border: 1px solid #f2dfaa; }
.today-empty { grid-template-columns: 1fr !important; color: var(--ink-soft); font-size: .9rem; }
.today-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .85rem; }
.today-foot span { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-soft); }
.today-foot svg { width: 16px; height: 16px; color: var(--quest-blue); }
.today-foot a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }

.hero-stats { position: relative; border-top: 1px solid rgba(255,255,255,.08); background: rgba(5,13,34,.35); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-row > div { padding: 20px 18px; border-left: 1px solid rgba(255,255,255,.08); }
.stats-row > div:first-child { border-left: 0; padding-left: 0; }
.stats-row strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: #fff; }
.stats-row span { font-size: .82rem; color: rgba(255,255,255,.62); }

/* Bento */
.bento { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 20px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfe6f6; color: var(--ink); }
.tile h3 { margin: 4px 0 2px; }
.tile p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.tile .more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--quest-blue-600); }
.tile .more svg { width: 16px; height: 16px; transition: transform .2s; }
.tile:hover .more svg { transform: translateX(4px); }
.tile .icon-badge { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: var(--cyan-300); border: 0; margin-bottom: 10px; }
.tile-hero { grid-row: span 2; color: #fff; border: 0; background: radial-gradient(420px 260px at 100% 0%, rgba(31,166,224,.45), transparent 70%), linear-gradient(160deg, var(--navy-900), var(--navy-800)); }
.tile-hero::before { content: ""; position: absolute; inset: 0; background-image: url("../assets/images/circuit-pattern.svg"); background-size: 340px; opacity: .14; }
.tile-hero > * { position: relative; }
.tile-hero:hover { color: #fff; border: 0; }
.tile-hero h3 { color: #fff; font-size: 1.7rem; }
.tile-hero p { color: rgba(255,255,255,.78); font-size: 1rem; max-width: 440px; }
.tile-hero .icon-badge { background: rgba(127,227,245,.12); border: 1px solid rgba(127,227,245,.3); }
.tile-hero .more { color: var(--cyan-300); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #e8f7fc; }

/* Department */
.dept-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: stretch; }
.chair-compact, .dept-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); height: 100%; }
.cc-top { display: flex; gap: 20px; align-items: center; }
.cc-photo { width: 104px; height: 104px; border-radius: 22px; object-fit: cover; flex: 0 0 auto; }
.cc-initials { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 2.1rem; color: var(--cyan-300); background: radial-gradient(circle at 30% 20%, #1b3a78, var(--navy-900)); box-shadow: inset 0 0 0 1px rgba(127,227,245,.3); }
.chair-compact h3 { font-size: 1.45rem; margin: 2px 0 4px; }
.chair-compact .chair-role { margin: 0; font-size: .95rem; }
.cc-quals { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 18px; }
.cc-quals li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cc-quals b { display: block; font-family: var(--font-head); color: var(--navy-800); }
.cc-quals span { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; display: block; }
.dept-panel { display: flex; flex-direction: column; gap: 18px; }
.dept-panel-top { display: flex; gap: 16px; align-items: center; }
.dept-panel-top strong { display: block; font-family: var(--font-head); color: var(--navy-900); font-size: 1.15rem; }
.dept-panel-top span { color: var(--ink-soft); font-size: .88rem; }
.dept-list { list-style: none; display: grid; gap: 14px; }
.dept-list li { display: flex; gap: 12px; align-items: flex-start; }
.dept-list svg { width: 22px; height: 22px; color: var(--quest-blue); flex: 0 0 auto; margin-top: 2px; }
.dept-list b { display: block; color: var(--navy-900); }
.dept-list span { color: var(--ink-soft); font-size: .9rem; }
.dept-panel .btn { align-self: flex-start; margin-top: auto; }

/* Updates */
.updates-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: end; }
.empty-inline { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px dashed #c7d6ea; }
.empty-inline .icon-badge { margin: 0; flex: 0 0 auto; }
.empty-inline h3 { margin: 0 0 4px; font-size: 1.05rem; }
.empty-inline p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.fb-panel { position: relative; overflow: hidden; border-radius: 20px; padding: 28px; color: #fff; background: radial-gradient(300px 200px at 100% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(150deg, #1877f2, #0b4fb0); }
.fb-panel h3 { color: #fff; margin: 0 0 6px; }
.fb-panel p { color: rgba(255,255,255,.86); font-size: .95rem; }
.fb-panel .icon-badge { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.fb-panel .btn { background: #fff; color: #0b4fb0; }
.fb-panel .btn:hover { background: #eaf2ff; color: #0b4fb0; transform: translateY(-2px); }

.cursor { display: inline-block; width: 8px; height: 15px; background: var(--cyan-300); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Faculty page chairman: slimmer photo column */
.chair-card { grid-template-columns: 240px 1fr; }
.chair-initials { width: 120px; height: 120px; font-size: 2.4rem; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-hero { grid-column: span 2; grid-row: auto; }
  .dept-grid, .updates-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-v2 .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 48px; }
  .split-head { grid-template-columns: 1fr; gap: 10px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-row > div { border-top: 1px solid rgba(255,255,255,.08); }
  .stats-row > div:nth-child(-n+2) { border-top: 0; }
  .cc-quals { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-hero { grid-column: auto; }
  .tile-hero h3 { font-size: 1.4rem; }
  .emblem-text { display: none; }
  .hero-emblems { padding-right: 8px; }
  .today-card { padding: 18px; }
  .today-list li { grid-template-columns: 54px 1fr auto; gap: 10px; }
  .cc-top { flex-direction: row; gap: 14px; }
  .cc-photo { width: 76px; height: 76px; border-radius: 18px; }
  .cc-initials { font-size: 1.6rem; }
  .chair-compact, .dept-panel, .fb-panel { padding: 22px; }
  .chair-card { grid-template-columns: 1fr; }
}

.platform-line { margin-top: 18px !important; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem !important; color: rgba(255,255,255,.7) !important; }
.platform-line b { color: var(--cyan-300); font-weight: 600; }

.cc-photo { object-position: center top; background: var(--surface-2); }
.chair-photo img { object-position: center top; }
.chair-photo { align-content: start; padding: 32px 24px; }
.chair-photo img { width: 180px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); }
@media (max-width: 900px) { .chair-photo { align-content: center; min-height: 0; } }

/* =========================================================
   v3 — utility bar, search, footer, progress, glossary, policies
   ========================================================= */
.utility-bar { background: var(--navy-950); color: rgba(255,255,255,.72); font-size: .8rem; position: relative; z-index: 101; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility-bar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.utility-bar p svg { width: 15px; height: 15px; color: var(--cyan-300); flex: 0 0 auto; }
.utility-bar ul { list-style: none; display: flex; gap: 18px; }
.utility-bar a { color: rgba(255,255,255,.82); display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--cyan-300); }
.utility-bar a svg { width: 14px; height: 14px; }

.search-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--navy-900); flex: 0 0 auto; margin-left: 8px; }
.search-btn:hover { border-color: var(--quest-blue); color: var(--quest-blue-600); }
.search-btn svg { width: 20px; height: 20px; }
.header-inner .main-nav { margin-left: auto; }
@media (max-width: 1080px) { .search-btn { margin-left: auto; } .menu-toggle { margin-left: 8px; } }

.search-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(5,13,34,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.search-overlay.open { display: flex; }
.search-panel { width: min(680px, 100%); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 22px; height: 22px; color: var(--quest-blue); flex: 0 0 auto; }
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; min-width: 0; }
.search-field kbd, .search-foot kbd { font-family: inherit; font-size: .72rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; color: var(--ink-soft); background: var(--surface); }
.search-close { border: 0; background: none; color: var(--ink-soft); font-size: .85rem; padding: 6px 8px; border-radius: 8px; }
.search-close:hover { background: var(--surface-2); }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results li a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; color: var(--ink); }
.search-results li a:hover, .search-results li a.active { background: var(--cyan-100); }
.search-results .sr-type { flex: 0 0 auto; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--quest-blue-600); background: #fff; border: 1px solid #c8eef8; padding: 3px 8px; border-radius: 999px; margin-top: 2px; min-width: 82px; text-align: center; }
.search-results strong { display: block; color: var(--navy-900); font-size: .97rem; }
.search-results small { display: block; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }
.search-results mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.search-empty { padding: 28px 18px; text-align: center; color: var(--ink-soft); }
.search-group { padding: 10px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.search-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); background: var(--surface); }

.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 32px; }
.footer-ms { background: rgba(127,227,245,.1) !important; border-color: rgba(127,227,245,.35) !important; }
.disclaimer a { color: var(--cyan-300); }

/* Progress tracker */
.progress-wrap { margin-top: 18px; max-width: 520px; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 6px; }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan-300), var(--quest-blue)); border-radius: 999px; transition: width .4s var(--ease); }
.roadmap li label { display: block; cursor: pointer; }
.roadmap li label > span { display: block; }
.roadmap li input { position: absolute; left: 0; top: 0; width: 32px; height: 32px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.roadmap li:hover::before { border-color: var(--quest-blue); }
.roadmap li:has(input:focus-visible)::before { outline: 3px solid var(--quest-blue); outline-offset: 2px; }
.roadmap li.done strong { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(31,166,224,.6); }
.roadmap li.done::before { content: "✓"; background: var(--quest-blue); color: #fff; border-color: var(--quest-blue); }
.hub-tab .pct { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.hub-tab[aria-selected="true"] .pct { background: rgba(127,227,245,.18); color: var(--cyan-300); }
.hub-tab .pct.full { background: #dcfce7; color: #166534; }
.progress-note { font-size: .82rem; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-btn { border: 0; background: none; color: var(--quest-blue-600); font-weight: 600; font-size: .82rem; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }

/* Glossary */
.glossary-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.input { flex: 1 1 280px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.input:focus { outline: 3px solid rgba(31,166,224,.35); border-color: var(--quest-blue); }
.glossary-count { color: var(--ink-soft); font-size: .88rem; }
.glossary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.term dt { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.term dt span { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--quest-blue-600); background: var(--cyan-100); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.term dd { margin: 6px 0 0; color: var(--ink-soft); font-size: .92rem; }
.term[hidden] { display: none; }

/* Steps (How to join) */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; }
.steps li::before { content: counter(s); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--quest-blue-600)); color: #fff; font-family: var(--font-head); font-weight: 700; }
.steps h3 { font-size: 1.05rem; margin-top: 6px; }
.steps p { color: var(--ink-soft); font-size: .93rem; margin: 0 0 10px; }

/* Policy pages */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 38px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33405a; }
.prose ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.updated { display: inline-block; font-size: .85rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; margin-bottom: 26px; }

/* Misc */
.badge-new { font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: #16a34a; color: #fff; }
.tt-actions { display: flex; justify-content: flex-end; gap: 10px; margin: -8px 0 14px; }
.btn-ms { background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff; }
.btn-ms:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .glossary { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .utility-bar p span { font-size: .74rem; }
  .utility-inner { gap: 10px; }
  .glossary, .steps { grid-template-columns: 1fr; }
  .search-overlay { padding-top: 12px; }
  .search-foot { display: none; }
}


@media print {
  .utility-bar, .search-overlay, .tt-actions { display: none !important; }
  body.print-tt main section:not(.tt-section), body.print-tt main .page-hero { display: none !important; }
  body.print-tt .table-wrap { overflow: visible; border: 0; }
  body.print-tt table.tt { min-width: 0; font-size: 11px; }
  body.print-tt .tt-section { padding: 0; }
}
.fb-card .btn-ms { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.fb-card .btn-ms:hover { background: rgba(255,255,255,.24); color: #fff; }

/* v3 fixes */
.steps { padding: 0; margin: 0; }
.brand { flex: 1 1 auto; min-width: 0; }
.brand-community, .brand-text { min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .utility-bar p { display: none; }
  .utility-inner { justify-content: center; min-height: 32px; }
  .brand-community img { display: none; }
  .brand-divider { display: none; }
  .search-btn, .menu-toggle { width: 42px; height: 42px; }
}
@media (max-width: 640px) { .brand-name { font-size: .84rem; letter-spacing: 0; } }

/* QUEST resources */
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.q-link { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.q-link:hover { transform: translateY(-3px); border-color: var(--quest-blue); box-shadow: var(--shadow); color: var(--ink); }
.q-link strong { display: block; color: var(--navy-900); font-family: var(--font-head); margin-bottom: 4px; }
.q-link small { display: block; color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.q-link > svg { width: 18px; height: 18px; color: var(--quest-blue); flex: 0 0 auto; margin-top: 3px; }
.q-note { display: inline-block; margin-top: 8px; font-style: normal; font-size: .72rem; font-weight: 700; color: #8a5a00; background: #fff3d6; border: 1px solid #f2dfaa; padding: 2px 8px; border-radius: 999px; }
.q-link[hidden], .res-group[hidden] { display: none; }
.res-group + .res-group { margin-top: 36px; }
.res-title { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.res-title svg { width: 24px; height: 24px; color: var(--quest-blue); }
.qc-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.qc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.qc-list .btn { grid-column: 1 / -1; justify-self: start; }
.qc-item { display: flex; gap: 10px; align-items: flex-start; }
.qc-item svg { width: 20px; height: 20px; color: var(--quest-blue); flex: 0 0 auto; margin-top: 2px; }
.qc-item b { display: block; color: var(--navy-900); font-size: .85rem; }
.qc-item span { color: var(--ink-soft); font-size: .92rem; overflow-wrap: anywhere; }
@media (max-width: 1024px) { .q-grid { grid-template-columns: repeat(2, 1fr); } .qc-card { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .q-grid, .qc-list { grid-template-columns: 1fr; } }

/* =========================================================
   v4 — UNIVERSITY STYLE (photo hero, blue bar, dropdowns)
   ========================================================= */
:root { --uni-blue: #0d4a94; --uni-blue-2: #0a3d7c; --orange: #f39314; --orange-2: #e07d00; }

/* Top bar */
.utility-bar { background: var(--uni-blue); color: #fff; font-size: .85rem; }
.utility-inner { min-height: 42px; }
.utility-bar ul { list-style: none; display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; }
.utility-bar a { color: #fff; opacity: .95; }
.utility-bar a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.utility-bar a svg { width: 15px; height: 15px; }
.u-note { color: rgba(255,255,255,.75); font-size: .8rem; border-left: 1px solid rgba(255,255,255,.25); padding-left: 16px; }
.u-right { align-self: stretch; }
.u-cta { display: flex !important; align-items: center; align-self: stretch; height: 100%; min-height: 42px; padding: 0 22px; background: var(--orange); font-weight: 700; letter-spacing: .06em; opacity: 1 !important; text-decoration: none !important; }
.u-cta:hover { background: var(--orange-2); }

/* Header lockup */
.site-header { height: 88px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 2px 10px rgba(8,22,52,.06); }
:root { --header-h: 88px; }
.lockup { gap: 12px; }
.lockup .brand-dept { width: 62px; height: 62px; box-shadow: none; }
.lockup .brand-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 700; color: var(--uni-blue); letter-spacing: .02em; line-height: 1.05; }
.lockup .brand-sub { display: block; font-size: .7rem; font-weight: 600; color: var(--navy-900); text-transform: uppercase; letter-spacing: .04em; line-height: 1.35; margin-top: 3px; white-space: normal; }
.lockup .brand-26 { width: 38px; height: 38px; margin-left: 4px; }
.main-nav ul { gap: 0; }
.main-nav > ul > li > a, .nav-drop > button {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; border: 0; background: none;
  font-size: .97rem; font-weight: 600; color: var(--uni-blue); white-space: nowrap; font-family: var(--font-body);
}
.main-nav > ul > li > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: #eef4fc; color: var(--uni-blue-2); }
.main-nav > ul > li > a[aria-current="page"], .nav-drop.active > button { color: var(--orange-2); background: none; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 15px; height: 15px; transition: transform .2s; }
.nav-drop.open > button svg { transform: rotate(180deg); }
.nav-drop .dropdown {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; list-style: none; z-index: 120;
}
.nav-drop .dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop.open .dropdown { display: flex; }
.nav-drop .dropdown a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--navy-900); font-weight: 500; font-size: .93rem; }
.nav-drop .dropdown a:hover { background: #eef4fc; color: var(--uni-blue); }
.nav-drop .dropdown a[aria-current="page"] { color: var(--orange-2); background: #fff7ec; }

.mobile-nav .m-group { margin-top: 6px; }
.mobile-nav .m-head { display: block; padding: 10px 14px 4px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-2); }
.mobile-nav .m-group ul { display: grid; gap: 2px; }
.mobile-nav .m-group a { padding: 11px 14px; font-weight: 500; }

/* Buttons */
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(243,147,20,.8); }
.btn-orange:hover { background: var(--orange-2); color: #fff; transform: translateY(-2px); }

/* Photo hero slider */
.hero-slider { position: relative; height: clamp(460px, 74vh, 660px); overflow: hidden; background: var(--navy-900); color: #fff; }
.hero-slider .slides, .hero-slider .slide { position: absolute; inset: 0; margin: 0; }
.hero-slider .slide { opacity: 0; transition: opacity 1.1s ease; }
.hero-slider .slide.on { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.04); transition: transform 7s ease; }
.hero-slider .slide.on img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,52,.88) 0%, rgba(8,28,70,.7) 38%, rgba(8,28,70,.15) 70%, rgba(8,28,70,0) 100%), linear-gradient(0deg, rgba(6,20,52,.65), transparent 40%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
.hero-kicker { display: inline-block; align-self: flex-start; font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(243,147,20,.95); color: #fff; padding: 6px 12px; border-radius: 6px; margin: 0 0 18px; }
.hero-content h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: .01em; margin: 0 0 6px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero-motto { font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; color: var(--cyan-300); margin: 0 0 14px; }
.hero-content .hero-lead { max-width: 560px; color: rgba(255,255,255,.88); font-size: 1.08rem; margin-bottom: 26px; }
.slider-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 74px; }
.slider-ui { display: flex; justify-content: space-between; align-items: center; width: min(100% - 40px, var(--container)); margin: 0 auto; }
.slide-cap { font-size: .82rem; color: rgba(255,255,255,.85); display: inline-flex; gap: 8px; align-items: center; }
.slide-cap::before { content: ""; width: 18px; height: 2px; background: var(--orange); }
.slide-ctrl { display: flex; align-items: center; gap: 8px; }
.slide-ctrl button { border: 0; cursor: pointer; }
.slide-ctrl .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.45); padding: 0; transition: width .3s, background .3s; }
.slide-ctrl .dot.on { width: 28px; background: var(--orange); }
.sl-prev, .sl-next { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14) !important; color: #fff; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3) !important; }
.sl-prev:hover, .sl-next:hover { background: rgba(255,255,255,.28) !important; }
.sl-prev svg, .sl-next svg { width: 18px; height: 18px; }
.sl-prev svg { transform: rotate(180deg); }

/* Quick tiles overlapping hero */
.quick-tiles { position: relative; z-index: 5; margin-top: -46px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(8,22,52,.35); overflow: hidden; }
.qt { display: flex; gap: 14px; align-items: center; padding: 22px 22px; color: var(--navy-900); border-right: 1px solid var(--line); border-bottom: 4px solid transparent; transition: background .2s, border-color .2s; }
.qt:last-child { border-right: 0; }
.qt:hover { background: #f5f9ff; border-bottom-color: var(--orange); color: var(--navy-900); }
.qt svg { width: 34px; height: 34px; color: var(--uni-blue); flex: 0 0 auto; }
.qt b { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--uni-blue); }
.qt span { font-size: .84rem; color: var(--ink-soft); }

/* News & updates */
.news-section { padding-top: 72px; }
.news-section h2 { color: var(--uni-blue); }
.news-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; }
.news-tabs { justify-content: flex-start; margin-bottom: 16px; }
.news-list { display: grid; gap: 12px; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.news-item:hover { border-color: #bcd3f0; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.ni-img { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #eef4fc; display: grid; place-items: center; }
.ni-img img { width: 100%; height: 100%; object-fit: cover; }
.ni-ph svg { width: 36px; height: 36px; color: #9fb5d3; }
.ni-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--ink-soft); }
.ni-body strong { display: block; margin: 6px 0 4px; font-family: var(--font-head); font-size: 1.08rem; color: var(--uni-blue); line-height: 1.25; }
.ni-body small { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.news-grid .today-card { box-shadow: var(--shadow); border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 16px); }
.news-grid .today-card::before { display: none; }
.news-grid .today-card { border-top: 4px solid var(--orange); }

/* Spotlight */
.spotlight { background: linear-gradient(160deg, var(--uni-blue-2), var(--navy-900)); }
.spot-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.spot-photos { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 420px; }
.spot-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.spot-photos .sp0 { grid-row: span 2; }
.spot-text h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.spot-text p { color: rgba(255,255,255,.82); }
.spot-text .kicker { color: var(--orange); }

/* Event cards with poster */
.event-card.has-img { padding-top: 0; overflow: hidden; }
.event-img { margin: 0 -26px 6px; height: 220px; background: #eef4fc; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.event-date svg { width: 26px; height: 26px; color: var(--cyan-300); }
.event-card .btn-row { margin-top: auto; }

/* Inner page heroes with campus photo */
.page-hero { background: linear-gradient(90deg, rgba(10,40,90,.95), rgba(13,74,148,.82) 55%, rgba(13,74,148,.55)), url("../assets/images/campus-strip.webp") center 55% / cover no-repeat; }
.page-hero::before { opacity: .08; }
.breadcrumb a { color: #ffd08a; }

/* Section titles in university blue */
.section-head h2, .split-head h2 { color: var(--uni-blue); }
.kicker { color: var(--orange-2); }
.section-dark .kicker, .tile-hero .kicker { color: var(--orange); }

@media (max-width: 1240px) {
  .lockup .brand-26 { display: none; }
  .main-nav > ul > li > a, .nav-drop > button { padding: 10px 9px; font-size: .92rem; }
}
@media (max-width: 1080px) {
  .lockup .brand-26 { display: inline-block; }
}
@media (max-width: 900px) {
  .quick-tiles { grid-template-columns: repeat(2, 1fr); }
  .qt:nth-child(2) { border-right: 0; }
  .qt:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .news-grid, .spot-grid { grid-template-columns: 1fr; }
  .news-grid .today-card { position: static; }
  .spot-photos { height: 320px; }
  .hide-md { display: none !important; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .site-header { height: 72px; }
  .lockup .brand-dept { width: 48px; height: 48px; }
  .lockup .brand-name { font-size: 1.02rem; }
  .lockup .brand-sub { font-size: .6rem; }
  .lockup .brand-26 { display: none; }
  .utility-inner { justify-content: space-between; }
  .u-cta { padding: 0 14px; font-size: .78rem; }
  .hero-slider { height: 560px; }
  .hero-shade { background: linear-gradient(0deg, rgba(6,20,52,.92) 10%, rgba(8,28,70,.55) 60%, rgba(8,28,70,.3)); }
  .hero-content { justify-content: flex-end; padding-bottom: 110px; }
  .hero-kicker { font-size: .7rem; }
  .slider-ui { bottom: 64px; }
  .slide-cap { display: none; }
  .quick-tiles { margin-top: -40px; grid-template-columns: 1fr 1fr; }
  .qt { padding: 16px 14px; gap: 10px; }
  .qt svg { width: 26px; height: 26px; }
  .qt span { display: none; }
  .news-item { grid-template-columns: 96px 1fr; gap: 12px; }
  .spot-photos { height: 260px; }
  .event-img { margin: 0 -22px 6px; }
}
/* v4 fixes */
.nav-drop > button svg { flex: 0 0 auto; width: 16px; height: 16px; }
.nav-drop .dropdown { align-items: stretch; }
.nav-drop .dropdown li { width: 100%; }
.nav-drop .dropdown a { text-align: left; white-space: nowrap; }
.utility-bar a, .utility-bar li { white-space: nowrap; }
.lockup { flex: 0 0 auto; }
.lockup .brand-name { overflow: visible; text-overflow: clip; white-space: nowrap; }
@media (max-width: 1360px) { .u-note { display: none !important; } }
@media (max-width: 1240px) { .lockup .brand-sub { font-size: .64rem; } }
@media (max-width: 1520px) { .lockup .brand-26 { display: none; } }
@media (max-width: 1400px) { .main-nav > ul > li > a, .nav-drop > button { padding: 10px 9px; font-size: .94rem; } }
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 8px; }
  .search-btn { margin-left: auto; }
}
@media (max-width: 900px) {
  .lockup { flex: 1 1 auto; min-width: 0; }
  .lockup .brand-text { min-width: 0; }
  .lockup .brand-name { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  .lockup { gap: 8px; }
  .lockup .brand-name { font-size: .95rem; }
  .lockup .brand-sub { font-size: .56rem; }
  .search-btn, .menu-toggle { width: 40px; height: 40px; }
  .qt span { display: block; font-size: 0; }
  .qt b { font-size: .88rem; line-height: 1.2; }
}
@media (max-width: 1024px) { .u-right .hide-sm { display: none !important; } .u-right { gap: 0; } }

.avatar-ini { display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--uni-blue); background: #eef4fc; }
