/* =====================================================
   AIDB Lab — Main Stylesheet
   Edit variables in :root to rebrand
   ===================================================== */

:root {
  --primary:        #2c5f7c;
  --primary-dark:   #1f4458;
  --primary-light:  #4a8fb5;
  --accent:         #C9A84C;
  --accent-light:   #e8c97e;

  --text-primary:   #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted:     #777;

  --bg-white:       #ffffff;
  --bg-light:       #f8f5f0;
  --bg-dark:        #111111;

  --border:         #e2ddd8;
  --border-light:   #f0ece6;

  --shadow-sm:      0 1px 4px rgba(0,0,0,.06);
  --shadow-md:      0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:      0 8px 24px rgba(0,0,0,.10);
  --shadow-hover:   0 8px 28px rgba(44,95,124,.15);

  --font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:     'Playfair Display', Georgia, serif;
  --mono:           'JetBrains Mono', 'Fira Code', monospace;

  --nav-h:          68px;
  --max-w:          1200px;
  --r:              10px;

  --transition:     0.2s ease;
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.section-header h2 { color: var(--primary); }
.view-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .02em;
}
.view-all:hover { text-decoration: underline; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ── Tags / Badges ──────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-primary { background: rgba(44,95,124,.08); color: var(--primary); border-color: rgba(44,95,124,.2); }
.tag-accent  { background: rgba(201,168,76,.12); color: #8a6d1a; border-color: rgba(201,168,76,.3); }
.tag-green   { background: rgba(20,90,50,.08);  color: #145a32; border-color: rgba(20,90,50,.2); }
.tag-purple  { background: rgba(110,47,130,.08); color: #6e2f82; border-color: rgba(110,47,130,.2); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-award  { background: #fff3cd; color: #856404; }
.badge-active { background: #d1eddc; color: #145a32; }
.badge-done   { background: #e9ecef; color: #495057; }

/* ══════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.nav-logo {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-brand-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
}
.nav-brand-inst {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(44,95,124,.06);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%; transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Mobile Nav ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; }
  .nav-mobile-btn { display: flex; }
}

/* ══════════════════════════════════════════════════════
   PAGE WRAPPER
   ══════════════════════════════════════════════════════ */
.page-content { padding-top: var(--nav-h); min-height: 100vh; }

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #4a8fb5 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p  { opacity: .82; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════
   HOME HERO
   ══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(145deg, #070a0d 0%, var(--primary-dark) 40%, var(--primary) 100%);
  padding: 96px 0 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.35);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-title span { color: var(--accent-light); }

.hero-desc {
  font-size: 1.05rem;
  opacity: .85;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: .8rem;
  opacity: .7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: flex; justify-content: space-around; }
}

/* ══════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  gap: 16px;
  transition: all var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-1px); }
.news-date-badge {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}
.news-date-badge .day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.news-date-badge .mon {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.news-date-badge .yr {
  font-size: .68rem;
  color: var(--text-muted);
  opacity: .75;
}
.news-body h4 { font-size: .95rem; margin-bottom: 6px; }
.news-body h4 a { color: var(--text-primary); }
.news-body h4 a:hover { color: var(--primary); }
.news-body p { font-size: .83rem; color: var(--text-secondary); line-height: 1.5; }
.news-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 4px;
}

/* Seminars list */
.seminar-list { display: flex; flex-direction: column; gap: 16px; }
.seminar-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}
.seminar-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.seminar-date-col {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  min-width: 56px;
}
.seminar-date-col .s-day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.seminar-date-col .s-mon { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.seminar-body { flex: 1; }
.seminar-body h4 { font-size: .95rem; margin-bottom: 4px; }
.seminar-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.seminar-meta strong { color: var(--text-secondary); }
.seminar-abstract { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ══════════════════════════════════════════════════════
   PEOPLE
   ══════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .pi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .pi-grid { grid-template-columns: 1fr; } }

.pi-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.pi-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--primary); }
.pi-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  background: var(--bg-light);
}
.pi-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}
.pi-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pi-name a { color: var(--text-primary); }
.pi-name a:hover { color: var(--primary); }
.pi-title { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.pi-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 14px;
}
.pi-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.pi-link-btn {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-light);
  transition: all var(--transition);
}
.pi-link-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(44,95,124,.04); }

.pi-card.status-retired { opacity: .85; }
.pi-card.status-former  { opacity: .8; }

.status-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.status-chip.active   { background: #d1eddc; color: #145a32; }
.status-chip.retired  { background: #fff3cd; color: #856404; }
.status-chip.former   { background: #e9ecef; color: #495057; }

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.student-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all var(--transition);
}
.student-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.student-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-light);
  border: 2px solid var(--border);
}
.student-photo-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4a6fa5, #2c4b7a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.student-info { flex: 1; min-width: 0; }
.student-name { font-weight: 700; font-size: .92rem; margin-bottom: 2px; }
.student-name a { color: var(--text-primary); }
.student-name a:hover { color: var(--primary); }
.student-meta { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.student-topic { font-size: .8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.degree-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.degree-phd { background: rgba(44,95,124,.1); color: var(--primary); }
.degree-ms  { background: rgba(20,90,50,.1); color: #145a32; }
.degree-ug  { background: rgba(14,102,85,.1); color: #0e6655; }

.alumni-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.alumni-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.alumni-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.alumni-table tr:last-child td { border-bottom: none; }
.alumni-table tr:hover td { background: var(--bg-light); }

/* ══════════════════════════════════════════════════════
   RESEARCH GROUPS
   ══════════════════════════════════════════════════════ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.group-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.group-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--group-color, var(--primary));
  border-radius: var(--r) var(--r) 0 0;
}
.group-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.group-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.group-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.group-pis  { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.group-pis strong { color: var(--text-secondary); }
.group-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px,1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.project-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-light), #e8e0d8);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0ece6, #e8e0d8);
}
.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.project-title { font-size: 1rem; font-weight: 700; flex: 1; }
.project-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; flex: 1; margin-bottom: 14px; }
.project-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ══════════════════════════════════════════════════════
   PUBLICATIONS
   ══════════════════════════════════════════════════════ */
.pub-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.pub-filters label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.pub-select {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: .85rem;
  color: var(--text-primary);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition);
}
.pub-select:focus { outline: none; border-color: var(--primary); }
.pub-search {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  font-size: .85rem;
  font-family: var(--font);
  transition: border-color var(--transition);
}
.pub-search:focus { outline: none; border-color: var(--primary); }
.pub-search::placeholder { color: var(--text-muted); }

.pub-year-group { margin-bottom: 36px; }
.pub-year-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.pub-list { display: flex; flex-direction: column; gap: 12px; }

.pub-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  transition: all var(--transition);
  position: relative;
}
.pub-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.pub-item.has-award { border-left: 4px solid var(--accent); }
.pub-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.pub-title a { color: inherit; }
.pub-title a:hover { color: var(--primary); }
.pub-authors { font-size: .83rem; color: var(--text-secondary); margin-bottom: 5px; }
.pub-venue { font-size: .83rem; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.pub-venue strong { font-style: normal; font-weight: 600; color: var(--primary); }
.pub-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pub-btn {
  padding: 4px 11px;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-light);
  transition: all var(--transition);
}
.pub-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(44,95,124,.04); }
.pub-btn-pdf { background: rgba(44,95,124,.06); color: var(--primary); border-color: rgba(44,95,124,.2); }

/* ══════════════════════════════════════════════════════
   NEWS PAGE
   ══════════════════════════════════════════════════════ */
.news-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}
@media (max-width: 800px) { .news-page-grid { grid-template-columns: 1fr; } }

.news-items { display: flex; flex-direction: column; gap: 20px; }
.news-full-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  transition: all var(--transition);
}
.news-full-card:hover { box-shadow: var(--shadow-md); }
.news-full-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.news-full-title { font-size: 1rem; font-weight: 700; flex: 1; }
.news-full-date { font-size: .78rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.news-full-body { font-size: .88rem; color: var(--text-secondary); line-height: 1.65; }

.news-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
}
.sidebar-widget h3 { font-size: .95rem; margin-bottom: 14px; color: var(--primary); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: .87rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.cat-item:hover { color: var(--primary); }
.cat-count {
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-section { margin-bottom: 40px; }
.about-section h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 14px; }
.about-section p { font-size: .92rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 12px; }
.about-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 20px;
}
.contact-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .9rem; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.contact-label { font-weight: 600; color: var(--text-secondary); min-width: 70px; }
.contact-val { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { }
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
}
.footer-banner-img { height: 36px; width: auto; object-fit: contain; display: block; }
.footer-brand p {
  font-size: .85rem;
  line-height: 1.65;
  max-width: 260px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.footer-partner-logos { display: flex; gap: 10px; margin-top: 16px; }
.footer-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  height: 40px;
}
.footer-partner-logo img { height: 100%; width: auto; object-fit: contain; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: 7px;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ══════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════ */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.hidden { display: none !important; }
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}
.error-msg {
  text-align: center;
  padding: 40px;
  color: #c0392b;
  background: #fdf2f2;
  border-radius: var(--r);
  border: 1px solid #f5c6cb;
}
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  background: var(--bg-light);
  border-radius: var(--r);
  border: 1px dashed var(--border);
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .4s ease both; }

/* ══════════════════════════════════════════════════════
   GLOBAL SEARCH OVERLAY
   ══════════════════════════════════════════════════════ */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  margin-left: 4px;
}
.nav-search-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(44,95,124,.05); }

#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
#search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.search-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 20px;
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  overflow: hidden;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.search-input-row svg { flex-shrink: 0; color: var(--text-muted); }
#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: transparent;
}
#search-input::placeholder { color: var(--text-muted); }
#search-close-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  font-size: .8rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
#search-close-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
#search-results {
  overflow-y: auto;
  padding: 12px 0 16px;
  flex: 1;
}
.search-hint {
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
.search-section-label {
  padding: 8px 20px 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover { background: var(--bg-light); }
.search-result-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.sri-people  { background: rgba(44,95,124,.1); }
.sri-pub     { background: rgba(20,82,46,.1); }
.sri-project { background: rgba(14,102,85,.1); }
.sri-news    { background: rgba(110,47,130,.1); }
.search-result-body { flex: 1; min-width: 0; }
.search-result-title { font-size: .9rem; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-sub   { font-size: .78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-no-results { padding: 32px 20px; text-align: center; color: var(--text-muted); font-size: .9rem; }
.search-divider { border: none; border-top: 1px solid var(--border-light); margin: 8px 0; }

/* ══════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════ */
.profile-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 56px 0 48px;
  color: #fff;
}
.profile-hero-inner {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
@media(max-width:640px){ .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; } }
.profile-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
}
.profile-photo-placeholder {
  width: 140px; height: 140px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.15);
  border: 4px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 700; color: #fff;
}
.profile-info { flex: 1; }
.profile-name { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.profile-title { font-size: 1rem; opacity: .85; margin-bottom: 16px; }
.profile-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-meta-item { display: flex; align-items: center; gap: 6px; font-size: .85rem; opacity: .8; }
.profile-meta-item a { color: rgba(255,255,255,.85); }
.profile-meta-item a:hover { color: #fff; }
.profile-action-links { display: flex; gap: 10px; flex-wrap: wrap; }

.profile-body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 0; }
@media(max-width:860px){ .profile-body { grid-template-columns: 1fr; } }
.profile-main { }
.profile-section { margin-bottom: 40px; }
.profile-section h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border); text-transform: uppercase; letter-spacing: .04em; }
.profile-bio { font-size: .95rem; color: var(--text-secondary); line-height: 1.8; }
.edu-list { display: flex; flex-direction: column; gap: 10px; }
.edu-item { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; }
.edu-year { flex-shrink: 0; color: var(--primary); font-weight: 700; width: 48px; }
.edu-detail { color: var(--text-secondary); }
.edu-degree { font-weight: 600; color: var(--text-primary); }
.award-list { display: flex; flex-direction: column; gap: 8px; }
.award-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-secondary); }
.award-item::before { content: '🏆'; flex-shrink: 0; }
.career-subhead { font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 10px; }
.career-subhead:first-child { margin-top: 0; }
.career-list { display: flex; flex-direction: column; gap: 10px; }
.career-item { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; }
.career-period { flex-shrink: 0; color: var(--primary); font-weight: 700; width: 140px; font-size: .82rem; }
.career-detail { color: var(--text-secondary); }
.career-role { font-weight: 600; color: var(--text-primary); }

.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.sidebar-card h4 { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-interests { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-student-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-student { font-size: .85rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 6px; }
.sidebar-student::before { content: '→'; color: var(--primary); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   SOFTWARE / DATASETS PAGE
   ══════════════════════════════════════════════════════ */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 20px;
}
.sw-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.sw-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--primary); }
.sw-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sw-name { font-size: 1rem; font-weight: 700; }
.sw-name a { color: var(--text-primary); }
.sw-name a:hover { color: var(--primary); }
.sw-desc { font-size: .87rem; color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.sw-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.sw-meta span { display: flex; align-items: center; gap: 4px; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.sw-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.sw-type-badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.sw-type-system    { background: rgba(44,95,124,.1); color: var(--primary); }
.sw-type-library   { background: rgba(20,82,46,.1); color: #145a32; }
.sw-type-dataset   { background: rgba(14,102,85,.1); color: #0e6655; }
.sw-type-benchmark { background: rgba(110,47,130,.1); color: #6e2f82; }
.sw-type-tool      { background: rgba(52,73,94,.1); color: #34495e; }

.sw-stats-bar {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sw-stat { text-align: center; }
.sw-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.sw-stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ══════════════════════════════════════════════════════
   PUBLICATIONS — abstract toggle & author filter
   ══════════════════════════════════════════════════════ */
.pub-abstract {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 8px 0 10px;
  display: none;
  border-left: 3px solid var(--border);
  padding-left: 12px;
}
.pub-abstract.open { display: block; }
.pub-toggle-abstract {
  background: none;
  border: none;
  font-size: .78rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-family: var(--font);
  font-weight: 600;
  transition: opacity var(--transition);
}
.pub-toggle-abstract:hover { opacity: .7; }

/* ── iCal button ────────────────────────────────────── */
.ical-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.ical-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(44,95,124,.04); }
.ical-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: rgba(44,95,124,.05);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  margin-bottom: 28px;
}
.ical-subscribe:hover { background: var(--primary); color: #fff; }
