/* ==========================================================================
   Nimba University — public site styles
   Palette: refined NU forest green + harvest gold (from the university seal)
   ========================================================================== */
:root {
  --green-950: #04220f;
  --green-900: #073a1c;
  --green-800: #0a4b25;
  --green-700: #0b5d2e;
  --green-600: #12733b;
  --green-500: #1c8a4a;
  --green-100: #dff0e5;
  --green-50:  #f0f8f2;
  --gold-600:  #c99400;
  --gold-500:  #f2b705;
  --gold-400:  #f8c93a;
  --gold-100:  #fdf2cc;
  --cream:     #fbf8f1;
  --ink:       #12231a;
  --text:      #2c3a32;
  --muted:     #5e6e64;
  --line:      #e2e8e3;
  --white:     #ffffff;
  --red:       #b42318;
  --red-100:   #fde8e6;
  --blue:      #1d4ed8;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(7, 58, 28, .06), 0 1px 3px rgba(7, 58, 28, .08);
  --shadow: 0 10px 30px -12px rgba(7, 58, 28, .22);
  --shadow-lg: 0 24px 60px -20px rgba(7, 58, 28, .35);
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-500); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--green-50); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold-500); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-400); color: var(--green-950); box-shadow: 0 10px 24px -10px rgba(242, 183, 5, .7); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--green-800); }
.btn-ghost { background: var(--green-50); color: var(--green-700); }
.btn-ghost:hover { background: var(--green-100); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-sm { padding: .55em 1.05em; font-size: .85rem; }
.btn-xs { padding: .35em .75em; font-size: .78rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35em; }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--green-800); font-size: 1.1rem; }
.icon-btn:hover { background: var(--green-50); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-950); color: rgba(255,255,255,.78); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: var(--gold-400); }
.topbar i { color: var(--gold-500); margin-right: 3px; }
.topbar-contact, .topbar-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-cta { background: var(--gold-500); color: var(--green-950) !important; padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.topbar-cta i { color: var(--green-950); }
.topbar-cta:hover { background: var(--gold-400); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { width: 56px; height: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--green-800); letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-nav li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 8px;
  font-weight: 600; font-size: .92rem; color: var(--ink); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link i { font-size: .7rem; transition: transform .2s; }
.nav-link:hover, .has-menu:hover > .nav-link, .nav-link[aria-expanded="true"] { color: var(--green-700); background: var(--green-50); }
.nav-link.is-active { color: var(--green-700); box-shadow: inset 0 -3px 0 var(--gold-500); border-radius: 8px 8px 0 0; }
.has-menu:hover > .nav-link i { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 18px; display: flex; gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease);
}
.mega::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.mega-wide { min-width: 560px; }
.has-menu:hover > .mega, .has-menu.open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-col { display: flex; flex-direction: column; min-width: 220px; }
.mega h6 { font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); margin: 0 0 8px; padding: 0 10px; }
.mega a { padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mega a i { color: var(--green-600); }
.mega a:hover { background: var(--green-50); color: var(--green-700); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--green-800); margin: 5px 0; border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-panel form { display: flex; align-items: center; gap: 12px; }
.search-panel form > i { color: var(--green-700); font-size: 1.2rem; }
.search-panel input { flex: 1; border: 0; font-size: 1.15rem; padding: 10px 0; outline: none; background: transparent; }

/* ---------- Announcement bar ---------- */
.alert-bar { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); color: var(--green-950); font-size: .88rem; }
.alert-bar-inner { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.alert-bar-label { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; background: var(--green-900); color: var(--gold-400); padding: 4px 10px; border-radius: 6px; flex-shrink: 0; }
.alert-bar-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.alert-bar-items { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: ticker 40s linear infinite; }
.alert-bar-track:hover .alert-bar-items { animation-play-state: paused; }
.alert-bar-items a { color: var(--green-950); font-weight: 600; }
.alert-bar-items a:hover { text-decoration: underline; }
.alert-bar-items b { background: var(--red); color: #fff; font-size: .7rem; padding: 2px 6px; border-radius: 4px; margin-right: 4px; }
.alert-bar-all { color: var(--green-950); font-weight: 700; flex-shrink: 0; font-size: .82rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Flash / alerts ---------- */
.flash-stack { position: fixed; top: 140px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .92rem; margin-bottom: 12px; animation: slideIn .35s var(--ease); }
.alert i { font-size: 1.1rem; margin-top: 1px; }
.alert span { flex: 1; }
.alert-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.alert-success { border-left: 4px solid var(--green-600); } .alert-success i { color: var(--green-600); }
.alert-error { border-left: 4px solid var(--red); } .alert-error i { color: var(--red); }
.alert-warning { border-left: 4px solid var(--gold-500); } .alert-warning i { color: var(--gold-600); }
.alert-info { border-left: 4px solid var(--blue); } .alert-info i { color: var(--blue); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(82vh, 720px); min-height: 520px; overflow: hidden; background: var(--green-950); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(4,34,15,.92) 0%, rgba(7,58,28,.7) 45%, rgba(7,58,28,.15) 100%); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-text { max-width: 640px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(242,183,5,.15); border: 1px solid rgba(242,183,5,.45); color: var(--gold-400); padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.hero .hero-title { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); line-height: 1.05; margin-bottom: 18px; }
.hero .hero-title em { font-style: normal; color: var(--gold-400); }
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slide .hero-text > * { opacity: 0; transform: translateY(18px); transition: all .8s var(--ease); }
.hero-slide.is-active .hero-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-text > *:nth-child(2) { transition-delay: .15s; }
.hero-slide.is-active .hero-text > *:nth-child(3) { transition-delay: .3s; }
.hero-slide.is-active .hero-text > *:nth-child(4) { transition-delay: .45s; }
.hero-controls { position: absolute; z-index: 5; bottom: 110px; left: 0; right: 0; }
.hero-controls .container { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: .3s; }
.hero-dots button.is-active { background: var(--gold-500); width: 54px; }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-arrow:hover { background: var(--gold-500); color: var(--green-950); border-color: var(--gold-500); }

/* Quick links overlapping the hero */
.quick-links { position: relative; z-index: 10; margin-top: -72px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick-item { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; color: var(--text); border-right: 1px solid var(--line); transition: background .25s; position: relative; }
.quick-item:last-child { border-right: 0; }
.quick-item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-500); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
.quick-item:hover { background: var(--green-50); color: var(--text); }
.quick-item:hover::after { transform: scaleX(1); }
.quick-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--green-700); color: var(--gold-400); display: grid; place-items: center; font-size: 1.35rem; }
.quick-item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 2px; }
.quick-item p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-green { background: var(--green-900); color: rgba(255,255,255,.85); position: relative; overflow: hidden; }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center p { max-width: 640px; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-600); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold-500); }
.section-green .eyebrow { color: var(--gold-400); }
.pattern-bg { position: absolute; inset: 0; opacity: .06; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 24px 24px; pointer-events: none; }

/* About split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media .img-main { border-radius: 20px; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.split-media .img-badge { position: absolute; right: -24px; bottom: -28px; background: var(--gold-500); color: var(--green-950); padding: 22px 26px; border-radius: 18px; box-shadow: var(--shadow-lg); text-align: center; }
.split-media .img-badge strong { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; display: block; }
.split-media .img-badge span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.split-media .img-seal { position: absolute; left: -26px; top: -26px; width: 104px; background: #fff; border-radius: 50%; padding: 10px; box-shadow: var(--shadow); }
.lead { font-size: 1.12rem; color: var(--text); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checklist i { color: var(--green-600); background: var(--green-100); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; margin-top: 1px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.stat { text-align: center; padding: 18px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-400); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: rgba(255,255,255,.75); }

/* Colleges */
.college-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.college-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; color: var(--text); }
.college-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.college-card .cc-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.college-card .cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.college-card:hover .cc-img img { transform: scale(1.07); }
.college-card .cc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,34,15,.55)); }
.cc-icon { position: absolute; left: 20px; bottom: -24px; z-index: 2; width: 52px; height: 52px; border-radius: 14px; background: var(--gold-500); color: var(--green-950); display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow); }
.cc-body { padding: 36px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.cc-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cc-body p { font-size: .92rem; color: var(--muted); flex: 1; }
.cc-meta { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; padding-top: 14px; border-top: 1px dashed var(--line); }
.cc-meta span { color: var(--muted); }

/* Cards (news etc.) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--green-50); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--green-700); }
.card-body p { font-size: .92rem; color: var(--muted); flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.card-meta i { color: var(--gold-600); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
.tag-gold { background: var(--gold-100); color: #7a5a00; }
.tag-red { background: var(--red-100); color: var(--red); }

/* Featured news layout */
.news-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.news-feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; }
.news-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-feature:hover img { transform: scale(1.04); }
.news-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(4,34,15,.92)); }
.news-feature-body { position: relative; z-index: 2; padding: 32px; }
.news-feature h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.news-feature h3 a { color: #fff; }
.news-feature p { color: rgba(255,255,255,.82); }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-mini { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: .25s; color: var(--text); }
.news-mini:hover { border-color: var(--green-100); box-shadow: var(--shadow-sm); transform: translateX(4px); color: var(--text); }
.news-mini img { width: 120px; height: 86px; object-fit: cover; border-radius: 8px; }
.news-mini h4 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; margin: 4px 0 0; color: var(--ink); line-height: 1.35; }

/* Announcements & events lists */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.panel-head h3 i { color: var(--gold-600); }
.ann-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ann-item:last-child { border-bottom: 0; }
.ann-item:hover h4 { color: var(--green-700); }
.ann-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); margin-top: 8px; flex-shrink: 0; box-shadow: 0 0 0 4px var(--green-100); }
.ann-dot.important { background: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100); }
.ann-dot.urgent { background: var(--red); box-shadow: 0 0 0 4px var(--red-100); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(180,35,24,.08); } }
.ann-item h4 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; margin: 0 0 3px; color: var(--ink); transition: color .2s; }
.ann-item small { color: var(--muted); font-size: .8rem; }
.event-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; color: var(--text); }
.event-item:last-child { border-bottom: 0; }
.event-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--green-700); color: #fff; border-radius: 12px; padding: 8px 0; line-height: 1.1; }
.event-date strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--gold-400); }
.event-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.event-item.is-past .event-date { background: var(--muted); }
.event-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.event-item small { color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.event-item:hover h4 { color: var(--green-700); }

/* President quote */
.quote-block { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; position: relative; }
.quote-portrait { aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--green-600)); padding: 6px; }
.quote-portrait div { width: 100%; height: 100%; border-radius: 50%; background: var(--green-800); display: grid; place-items: center; overflow: hidden; }
.quote-portrait img { width: 70%; }
.quote-block blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.45; color: #fff; font-weight: 500; }
.quote-block blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--gold-500); margin-bottom: 10px; }
.quote-by { margin-top: 22px; display: flex; flex-direction: column; }
.quote-by strong { color: var(--gold-400); font-size: 1.05rem; }

/* Jobs */
.job-list { display: flex; flex-direction: column; gap: 14px; }
.job-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; transition: .25s; color: var(--text); }
.job-card:hover { border-color: var(--green-500); box-shadow: var(--shadow); color: var(--text); }
.job-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-size: 1.4rem; }
.job-card h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; margin: 0 0 4px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted); }
.job-meta i { color: var(--gold-600); }
.deadline { text-align: right; font-size: .82rem; color: var(--muted); }
.deadline strong { display: block; color: var(--ink); font-size: .95rem; }
.deadline.soon strong { color: var(--red); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery-grid a { position: relative; overflow: hidden; border-radius: 12px; display: block; }
.gallery-grid a:nth-child(6n+1) { grid-row: span 2; }
.gallery-grid a:nth-child(6n+4) { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a::after { content: '\F52A'; font-family: 'bootstrap-icons'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: rgba(7,58,28,.55); opacity: 0; transition: opacity .3s; }
.gallery-grid a:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(4,20,10,.94); z-index: 500; display: grid; place-items: center; padding: 40px; }
.lightbox img { max-height: 86vh; max-width: 92vw; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox button:hover { background: var(--gold-500); color: var(--green-950); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }
.lightbox figcaption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--green-900); color: #fff; padding: 64px 0 56px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0); background-size: 22px 22px; }
.page-hero.has-img::before { background: linear-gradient(100deg, rgba(4,34,15,.94), rgba(7,58,28,.72)), var(--hero-img) center/cover; }
.page-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(242,183,5,.12); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 680px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 16px; color: rgba(255,255,255,.6); }
.crumbs a { color: var(--gold-400); }
.crumbs i { font-size: .65rem; }

.layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.layout-sidebar.left { grid-template-columns: 280px 1fr; }
.sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.side-box { background: var(--cream); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.side-box h4 { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold-500); display: inline-block; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .93rem; display: flex; justify-content: space-between; align-items: center; }
.side-nav a:hover { background: #fff; color: var(--green-700); }
.side-nav a.is-active { background: var(--green-700); color: #fff; }
.side-nav a i { font-size: .75rem; opacity: .6; }

.prose { font-size: 1.04rem; color: var(--text); }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; color: var(--green-800); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--gold-600); }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--gold-500); background: var(--cream); border-radius: 0 12px 12px 0; font-style: italic; }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--green-50); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.article-cover { border-radius: 18px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .9rem; margin-bottom: 24px; align-items: center; }
.article-meta i { color: var(--gold-600); }
.share { display: flex; gap: 8px; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; flex-wrap: wrap; }
.share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.share a:hover { background: var(--green-700); color: #fff; }
.attachment { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px dashed var(--green-500); border-radius: 12px; background: var(--green-50); margin: 24px 0; }
.attachment i { font-size: 1.8rem; color: var(--red); }

/* Mission/Vision cards */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 32px 0; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.mv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--green-600), var(--gold-500)); }
.mv-card i { font-size: 1.8rem; color: var(--gold-600); }
.mv-card h3 { margin: 12px 0 10px; }
.mv-card .prose { font-size: .95rem; }

/* College detail */
.college-hero { position: relative; min-height: 380px; display: flex; align-items: flex-end; color: #fff; background: var(--green-900); overflow: hidden; }
.college-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.college-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,34,15,.2), rgba(4,34,15,.92)); }
.college-hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 48px; }
.college-hero h1 { color: #fff; max-width: 800px; }
.college-hero p { max-width: 720px; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.college-hero .crumbs { color: rgba(255,255,255,.7); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 18px; font-weight: 600; color: var(--muted); border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; }
.tabs .is-active { color: var(--green-700); border-bottom-color: var(--gold-500); }
.tab-panel[hidden] { display: none; }
.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dept { padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: flex; gap: 14px; }
.dept i { font-size: 1.3rem; color: var(--green-600); background: var(--green-50); width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.dept h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.dept p { font-size: .88rem; color: var(--muted); margin: 0; }
.dean-card { display: flex; gap: 18px; align-items: center; }
.dean-card .avatar { width: 80px; height: 80px; font-size: 1.6rem; }

/* People */
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: var(--gold-400); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); flex-shrink: 0; object-fit: cover; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 36px; height: 36px; font-size: .8rem; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: .3s; display: flex; flex-direction: column; align-items: center; }
.staff-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.staff-card .avatar { width: 96px; height: 96px; font-size: 1.8rem; margin-bottom: 14px; border: 4px solid var(--gold-100); }
.staff-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.staff-card .role { color: var(--green-700); font-weight: 600; font-size: .9rem; }
.staff-card .dept-name { color: var(--muted); font-size: .84rem; margin-bottom: 14px; }
.staff-contact { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; width: 100%; padding-top: 14px; border-top: 1px dashed var(--line); margin-top: auto; }
.staff-contact a, .staff-contact span { color: var(--text); display: flex; gap: 8px; align-items: center; justify-content: center; word-break: break-all; }
.staff-contact i { color: var(--gold-600); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: #fff; border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.filter-bar .search-input { flex: 1; min-width: 200px; position: relative; }
.filter-bar .search-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-bar .search-input input { padding-left: 40px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; font-weight: 600; color: var(--text); }
.chip:hover { border-color: var(--green-600); color: var(--green-700); }
.chip.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font-size: .95rem; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(18,115,59,.12); }
textarea { min-height: 140px; resize: vertical; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-700); }
.field-hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }

/* Auth pages */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--green-900); position: relative; }
.auth-body::before { content: ''; position: fixed; inset: 0; background: linear-gradient(140deg, rgba(4,34,15,.94), rgba(11,93,46,.86)), url('../img/site/hero1.jpg') center/cover; }
.auth-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-lg); }
.auth-logo { width: 84px; margin: 0 auto 14px; }
.auth-card h1 { text-align: center; font-size: 1.7rem; margin-bottom: 6px; }
.auth-card > p { text-align: center; }
.auth-foot { text-align: center; margin-top: 20px; font-size: .9rem; }
.auth-back { position: relative; color: rgba(255,255,255,.8); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.auth-back:hover { color: var(--gold-400); }
.auth-wrap { width: 100%; max-width: 440px; position: relative; }
.auth-wrap.wide { max-width: 560px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 20px; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-700); color: var(--gold-400); font-size: 1.2rem; flex-shrink: 0; }
.contact-card h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 2px; }
.contact-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 14px; }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Forum ---------- */
.forum-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.forum-cats { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.forum-cat { display: grid; grid-template-columns: 56px 1fr 110px 240px; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); color: var(--text); transition: background .2s; }
.forum-cat:last-child { border-bottom: 0; }
.forum-cat:hover { background: var(--green-50); color: var(--text); }
.forum-cat .fc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-700); color: var(--gold-400); display: grid; place-items: center; font-size: 1.35rem; }
.forum-cat h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 2px; }
.forum-cat p { margin: 0; font-size: .88rem; color: var(--muted); }
.fc-count { text-align: center; font-size: .8rem; color: var(--muted); }
.fc-count strong { display: block; font-size: 1.2rem; color: var(--ink); }
.fc-last { font-size: .82rem; color: var(--muted); overflow: hidden; }
.fc-last a { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-list { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.thread-row { display: grid; grid-template-columns: 44px 1fr 90px 160px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--cream); }
.thread-row.pinned { background: var(--gold-100); }
.thread-row h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 3px; }
.thread-row h3 a { color: var(--ink); }
.thread-row h3 a:hover { color: var(--green-700); }
.thread-row .t-meta { font-size: .8rem; color: var(--muted); }
.thread-row .t-meta i { color: var(--gold-600); }
.t-stats { text-align: center; font-size: .78rem; color: var(--muted); }
.t-stats strong { display: block; color: var(--ink); font-size: 1.05rem; }
.t-last { font-size: .8rem; color: var(--muted); }
.post-box { display: grid; grid-template-columns: 180px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin-bottom: 18px; }
.post-box.is-op { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-50); }
.post-author { background: var(--cream); padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.post-author .avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.post-author strong { font-size: .92rem; color: var(--ink); line-height: 1.3; }
.role-pill { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--green-100); color: var(--green-800); }
.role-pill.staff { background: var(--gold-100); color: #7a5a00; }
.post-content { padding: 22px 26px; display: flex; flex-direction: column; min-width: 0; }
.post-content .post-meta { font-size: .8rem; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.post-content .prose { flex: 1; word-wrap: break-word; }
.post-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.post-actions form { display: inline; }
.hidden-note { background: var(--red-100); color: var(--red); padding: 6px 12px; border-radius: 8px; font-size: .82rem; margin-bottom: 10px; }
.locked-note { text-align: center; padding: 24px; background: var(--cream); border-radius: var(--radius); color: var(--muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-draft { background: #eef0f2; color: #4b5563; }
.badge-pending { background: var(--gold-100); color: #7a5a00; }
.badge-published, .badge-approved, .badge-active { background: var(--green-100); color: var(--green-800); }
.badge-rejected, .badge-suspended { background: var(--red-100); color: var(--red); }

/* Empty state & pager */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty i { font-size: 2.6rem; color: var(--green-500); display: block; margin-bottom: 10px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; padding: 0 10px; }
.pager a { color: var(--text); background: #fff; }
.pager a:hover { border-color: var(--green-600); color: var(--green-700); }
.pager .current { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pager .gap { border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255,255,255,.72); font-size: .93rem; margin-top: 0; }
.footer-cta { background: linear-gradient(110deg, var(--green-700), var(--green-800)); position: relative; overflow: hidden; }
.footer-cta::after { content: ''; position: absolute; right: 5%; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(242,183,5,.14); }
.footer-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.footer-cta p { margin: 0; color: rgba(255,255,255,.8); }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr; gap: 40px; padding: 64px 20px 48px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.footer-grid > div > a { display: block; color: rgba(255,255,255,.72); padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-grid p { margin-bottom: 10px; }
.footer-grid p a { color: rgba(255,255,255,.72); }
.footer-grid i { color: var(--gold-500); margin-right: 6px; }
.footer-brand img { margin-bottom: 14px; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.2rem; }
.footer-brand .muted { color: rgba(255,255,255,.55); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.socials a i { color: inherit; margin: 0; }
.socials a:hover { background: var(--gold-500); color: var(--green-950); }
.footer-login { margin-top: 12px; display: inline-flex !important; align-items: center; gap: 4px; border: 1px solid rgba(255,255,255,.2); padding: 8px 14px !important; border-radius: 999px; font-size: .85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; padding: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.72); }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--green-950); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(20px); transition: .3s; z-index: 90; font-size: 1.1rem; }
.to-top.show { opacity: 1; transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .topbar-contact span { display: none; }
  .nav-link { padding: 10px 9px; font-size: .88rem; }
  .brand-text small { display: none; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  /* backdrop-filter would trap the fixed drawer inside the header box */
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; flex-direction: column; align-items: stretch; padding: 90px 20px 30px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; z-index: 150; }
  .main-nav.open { transform: none; }
  .nav-toggle { position: relative; z-index: 160; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link.is-active { box-shadow: inset 3px 0 0 var(--gold-500); }
  .mega, .mega-wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 4px 0 10px 10px; display: none; flex-direction: column; gap: 6px; }
  .has-menu.open > .mega { display: flex; }
  .has-menu:hover > .mega { display: none; }
  .has-menu.open:hover > .mega { display: flex; }
  .mega-col { min-width: 0; }
  .nav-actions { margin-top: 18px; justify-content: space-between; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(4,20,10,.5); z-index: 99; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .college-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .split, .news-layout, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-media { max-width: 620px; }
  .layout-sidebar, .layout-sidebar.left { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .forum-cat { grid-template-columns: 52px 1fr 90px; }
  .fc-last { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-block { grid-template-columns: 200px 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .topbar-contact { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-links { gap: 12px; font-size: .75rem; }
  .topbar-links a:nth-child(2), .topbar-links a:nth-child(4) { display: none; }
  .header-inner { min-height: 70px; }
  .brand img { width: 46px; }
  .brand-text strong { font-size: 1.15rem; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero-controls { bottom: 96px; }
  .quick-grid, .college-grid, .card-grid, .two-col, .mv-grid, .dept-grid, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .quick-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .checklist { grid-template-columns: 1fr; }
  .split-media .img-badge { right: 10px; bottom: -20px; padding: 14px 18px; }
  .split-media .img-badge strong { font-size: 2rem; }
  .split-media .img-seal { left: 10px; top: -20px; width: 80px; }
  .job-card { grid-template-columns: 1fr; gap: 12px; }
  .job-icon { display: none; }
  .deadline { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-grid a:nth-child(6n+4) { grid-column: span 1; }
  .quote-block { grid-template-columns: 1fr; text-align: center; }
  .quote-portrait { width: 160px; margin: 0 auto; }
  .news-feature { min-height: 360px; }
  .news-mini { grid-template-columns: 90px 1fr; }
  .news-mini img { width: 90px; height: 70px; }
  .forum-cat { grid-template-columns: 44px 1fr; }
  .forum-cat .fc-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .fc-count { display: none; }
  .thread-row { grid-template-columns: 36px 1fr; }
  .t-stats, .t-last { display: none; }
  .post-box { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; }
  .post-author .avatar { width: 40px; height: 40px; font-size: .85rem; }
  .flash-stack { left: 16px; right: 16px; top: 90px; max-width: none; }
  .auth-card { padding: 32px 22px; }
  .alert-bar-all { display: none; }
}

/* Grid children must be allowed to shrink, or wide content (tab rows, tables) stretches the page */
.layout-sidebar > *, .split > *, .two-col > *, .news-layout > *, .contact-grid > * { min-width: 0; }
.mv-grid-2 { grid-template-columns: 1fr 1fr; margin-top: 0; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .mv-grid-2, .card-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Research & publications ---------- */
.pub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pub-stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-align: center; }
.pub-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--green-700); line-height: 1.1; }
.pub-stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-item { display: grid; grid-template-columns: 48px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: var(--radius); padding: 20px 22px; transition: box-shadow .25s, border-color .25s; }
.pub-item:hover { box-shadow: var(--shadow); border-left-color: var(--gold-500); }
.pub-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-size: 1.3rem; }
.pub-body { min-width: 0; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pub-college { font-size: .78rem; color: var(--muted); font-weight: 600; }
.pub-item h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.pub-item h3 a { color: var(--ink); }
.pub-item h3 a:hover { color: var(--green-700); }
.pub-authors { margin: 0 0 2px; font-size: .92rem; font-weight: 500; color: var(--text); }
.pub-venue { margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.pub-year { display: inline-block; margin-left: 8px; font-weight: 700; color: var(--gold-600); }
.pub-abstract { font-size: .9rem; color: var(--text); margin: 0 0 10px; line-height: 1.6; }
.pub-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .86rem; font-weight: 600; }
.pub-links i { margin-right: 2px; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.pub-meta { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
.pub-meta dt { color: var(--muted); font-weight: 600; }
.pub-meta dd { margin: 0; min-width: 0; }
.cite-box { margin-top: 32px; background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: 12px; padding: 16px 20px; }
.cite-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.cite-box p { margin: 0; font-size: .92rem; word-break: break-word; }
@media (max-width: 720px) {
  .pub-stats { grid-template-columns: 1fr 1fr; }
  .pub-item { grid-template-columns: 1fr; gap: 10px; }
  .pub-icon { display: none; }
}

/* Eight top-level menu items: tighten the header on laptop widths before the mobile menu takes over */
@media (max-width: 1480px) and (min-width: 1025px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 4px; }
  .main-nav > ul { gap: 0; }
  .nav-link { padding: 10px 8px; font-size: .88rem; }
  .nav-actions .btn-gold { display: none; }
  .mega-col a { white-space: nowrap; }
}
@media (max-width: 1240px) and (min-width: 1025px) {
  .brand img { width: 46px; }
  .brand-text strong { font-size: 1.15rem; }
  .nav-link { padding: 10px 6px; font-size: .84rem; }
  .nav-link i { display: none; }
}
.quote-portrait.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.president-figure { float: right; width: 220px; margin: 0 0 18px 28px; text-align: center; font-size: .88rem; color: var(--muted); }
.president-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; border: 4px solid var(--gold-100); margin-bottom: 8px; }
.president-figure strong { color: var(--ink); }
@media (max-width: 720px) { .president-figure { float: none; margin: 0 auto 20px; } }

/* Staff cards and profile popup */
.staff-open { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; width: 100%; font: inherit; color: inherit; }
.staff-open .avatar { transition: transform .25s var(--ease), border-color .25s; }
.staff-open:hover .avatar { transform: scale(1.05); border-color: var(--gold-400); }
.staff-open:hover h3 { color: var(--green-700); }
.staff-card .staff-view { margin-top: 14px; }
.staff-modal { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); background: #fff; color: var(--text); overflow: hidden; }
.staff-modal::backdrop { background: rgba(4, 20, 10, .72); }
body:has(.staff-modal[open]) { overflow: hidden; }
.sp-wrap { position: relative; max-height: calc(100vh - 48px); overflow-y: auto; }
.sp-content { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.sp-photo { background: var(--green-900); min-height: 100%; }
.sp-photo img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; object-position: top; }
.sp-initials { display: grid; place-items: center; height: 100%; min-height: 380px; font-family: var(--font-head); font-size: 5rem; color: var(--gold-400); }
.sp-body { padding: 32px 36px; min-width: 0; }
.sp-body h2 { font-size: 1.7rem; margin: 10px 0 4px; padding-right: 36px; }
.sp-role { color: var(--green-700); font-weight: 600; margin: 0 0 2px; }
.sp-dept { color: var(--muted); font-size: .92rem; margin: 0; }
.sp-body h3 { font-family: var(--font-body); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-600); margin: 22px 0 8px; }
.sp-body .prose { font-size: .97rem; }
.sp-body .prose p:last-child { margin-bottom: 0; }
.sp-body ul { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips .tag { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.sp-body ul.sp-contact { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; word-break: break-word; }
.sp-contact i { color: var(--gold-600); margin-right: 6px; }
.sp-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--green-50); color: var(--green-800); cursor: pointer; box-shadow: var(--shadow-sm); }
.sp-close:hover { background: var(--gold-500); color: var(--green-950); }
@media (max-width: 720px) {
  .sp-content { grid-template-columns: 1fr; }
  .sp-photo img { min-height: 0; height: auto; max-height: 340px; aspect-ratio: 4/3.4; }
  .sp-initials { min-height: 160px; font-size: 3.4rem; }
  .sp-body { padding: 22px 20px 26px; }
}
