/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.7;
  font-size: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
  color: #0f1e4a;
}
a { color: #1a4fa8; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 1rem; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f1e4a;
  box-shadow: 0 2px 12px rgba(15,30,74,0.18);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav-brand {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: Georgia, serif;
}
.nav-brand span { color: #93c5fd; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: #cbd5e1;
  font-size: 13.5px;
  font-family: -apple-system, sans-serif;
  padding: 6px 13px;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}
.nav-links a.survey-link {
  background: #1a4fa8;
  color: #fff;
  font-weight: 600;
}
.nav-links a.survey-link:hover { background: #2563eb; }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f1e4a 0%, #1a4fa8 60%, #1e6091 100%);
  padding: 72px 24px 60px;
  color: #fff;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 52px;
}
.hero-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.35);
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.hero-text h1 { color: #fff; font-size: 34px; margin-bottom: 6px; }
.hero-text .title { font-size: 16px; color: #bfdbfe; margin-bottom: 4px; font-family: -apple-system, sans-serif; }
.hero-text .inst { font-size: 15px; color: #93c5fd; margin-bottom: 18px; font-family: -apple-system, sans-serif; }
.hero-links { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #e0f2fe;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: -apple-system, sans-serif;
  transition: background 0.15s;
}
.hero-chip:hover { background: rgba(255,255,255,0.24); text-decoration: none; color: #fff; }
.hero-chip svg { width: 14px; height: 14px; }

/* ===== PAGE SECTIONS ===== */
.page-section { display: none; }
.page-section.active { display: block; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-block { padding: 52px 0 40px; border-bottom: 1px solid #e8ecf4; }
.section-block:last-child { border-bottom: none; }
.section-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a4fa8;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, sans-serif;
}
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dde4f0;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 1px solid #e2e8f4;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 18px rgba(15,30,74,0.08); }
.card-title { font-size: 16px; font-weight: 700; color: #0f1e4a; margin-bottom: 4px; }
.card-sub { font-size: 13.5px; color: #4a5568; font-family: -apple-system, sans-serif; }
.card-meta { font-size: 12.5px; color: #94a3b8; font-family: -apple-system, sans-serif; margin-top: 6px; }
.card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: -apple-system, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-press { background: #fee2e2; color: #991b1b; }

/* ===== ABOUT / PROFILE ===== */
.profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.profile-bio { font-size: 15.5px; line-height: 1.8; color: #2d3748; }
.info-box { background: #f8faff; border: 1px solid #dde4f4; border-radius: 10px; padding: 22px; }
.info-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0f7; font-size: 13.5px; font-family: -apple-system, sans-serif; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #94a3b8; min-width: 80px; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 1px; }
.info-val { color: #1a1a2e; }
.info-val a { color: #1a4fa8; }

/* research interests */
.interest-list { list-style: none; margin-top: 8px; }
.interest-list li {
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid #edf0f7;
  font-size: 14.5px;
  color: #2d3748;
  position: relative;
}
.interest-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: #1a4fa8;
  border-radius: 50%;
}

/* ===== PUBLICATIONS ===== */
.pub-entry { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #edf0f7; }
.pub-entry:last-child { border-bottom: none; margin-bottom: 0; }
.pub-title { font-size: 15px; font-weight: 600; color: #0f1e4a; margin-bottom: 4px; font-family: Georgia, serif; }
.pub-authors { font-size: 13px; color: #64748b; font-family: -apple-system, sans-serif; margin-bottom: 3px; }
.pub-journal { font-size: 13px; color: #374151; font-style: italic; font-family: -apple-system, sans-serif; }
.pub-doi { display: inline-block; margin-top: 5px; font-size: 12px; color: #1a4fa8; font-family: -apple-system, sans-serif; }
.pub-year-tag { font-size: 12px; font-weight: 700; color: #1a4fa8; background: #dbeafe; padding: 2px 8px; border-radius: 12px; font-family: -apple-system, sans-serif; }

/* ===== TABS (for sub-sections) ===== */
.tab-bar { display: flex; gap: 4px; margin-bottom: 28px; flex-wrap: wrap; border-bottom: 2px solid #e2e8f4; padding-bottom: 0; }
.tab-btn {
  background: none;
  border: none;
  padding: 9px 16px;
  font-size: 13.5px;
  font-family: -apple-system, sans-serif;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  font-weight: 500;
}
.tab-btn.active { color: #1a4fa8; border-bottom-color: #1a4fa8; font-weight: 700; }
.tab-btn:hover:not(.active) { color: #1a1a2e; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== GRANTS TABLE ===== */
.grant-table { width: 100%; border-collapse: collapse; font-family: -apple-system, sans-serif; font-size: 14px; }
.grant-table th {
  text-align: left;
  padding: 10px 14px;
  background: #f1f5fb;
  color: #374151;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid #dde4f0;
}
.grant-table td { padding: 12px 14px; border-bottom: 1px solid #edf0f7; vertical-align: top; color: #1a1a2e; }
.grant-table tr:hover td { background: #f8faff; }
.grant-amount { font-weight: 700; color: #166534; }

/* ===== TEACHING ===== */
.teach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.teach-card {
  background: #f8faff;
  border: 1px solid #dde4f4;
  border-radius: 8px;
  padding: 16px 18px;
}
.teach-course { font-size: 14px; font-weight: 600; color: #0f1e4a; margin-bottom: 4px; }
.teach-meta { font-size: 12.5px; color: #64748b; font-family: -apple-system, sans-serif; }

/* ===== TALKS ===== */
.talk-card { padding: 16px 0; border-bottom: 1px solid #edf0f7; }
.talk-card:last-child { border-bottom: none; }
.talk-title { font-size: 15px; font-weight: 600; color: #0f1e4a; margin-bottom: 4px; }
.talk-event { font-size: 13.5px; color: #4a5568; font-family: -apple-system, sans-serif; }
.talk-meta { font-size: 12.5px; color: #94a3b8; font-family: -apple-system, sans-serif; margin-top: 3px; }

/* ===== SURVEY PAGE ===== */
.survey-hero {
  background: linear-gradient(135deg, #0f1e4a 0%, #1a4fa8 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}
.survey-hero h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.survey-hero p { color: #bfdbfe; font-size: 15px; max-width: 620px; margin: 0 auto; font-family: -apple-system, sans-serif; }
.survey-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding: 44px 24px; max-width: 1100px; margin: 0 auto; }
.survey-card {
  background: #fff;
  border: 1px solid #e2e8f4;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.15s;
}
.survey-card:hover { box-shadow: 0 8px 28px rgba(15,30,74,0.12); transform: translateY(-2px); }
.survey-card-top {
  padding: 24px 22px 18px;
  flex: 1;
}
.survey-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.survey-card h3 { font-size: 17px; color: #0f1e4a; margin-bottom: 8px; }
.survey-card p { font-size: 13.5px; color: #4a5568; font-family: -apple-system, sans-serif; line-height: 1.6; margin: 0 0 12px; }
.survey-card-footer {
  padding: 14px 22px;
  background: #f8faff;
  border-top: 1px solid #e8ecf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.survey-meta { font-size: 12px; color: #94a3b8; font-family: -apple-system, sans-serif; }
.btn-survey {
  display: inline-block;
  background: #1a4fa8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: -apple-system, sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-survey:hover { background: #1e40af; text-decoration: none; color: #fff; }
.btn-survey.closed { background: #94a3b8; cursor: default; }

/* survey modal */
.survey-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,30,74,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.survey-modal-overlay.open { display: flex; }
.survey-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px 36px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #94a3b8;
  line-height: 1;
}
.modal-close:hover { color: #0f1e4a; }
.modal-title { font-size: 20px; color: #0f1e4a; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: #64748b; font-family: -apple-system, sans-serif; margin-bottom: 24px; border-bottom: 1px solid #edf0f7; padding-bottom: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: #374151; margin-bottom: 6px; font-family: -apple-system, sans-serif; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 14px;
  font-family: -apple-system, sans-serif;
  color: #1a1a2e;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #1a4fa8; outline: none; }
.form-group textarea { resize: vertical; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: -apple-system, sans-serif; font-size: 14px; color: #374151; }
.radio-option input[type=radio] { width: auto; margin: 0; accent-color: #1a4fa8; }
.likert-row { display: grid; grid-template-columns: 1fr repeat(5, 44px); gap: 6px; align-items: center; margin-bottom: 10px; }
.likert-row .q-text { font-size: 13.5px; font-family: -apple-system, sans-serif; color: #374151; }
.likert-cell { display: flex; align-items: center; justify-content: center; }
.likert-cell input[type=radio] { width: auto; accent-color: #1a4fa8; }
.likert-scale-header { display: grid; grid-template-columns: 1fr repeat(5, 44px); gap: 6px; margin-bottom: 8px; }
.likert-scale-header span:first-child {}
.likert-scale-header .scale-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-align: center; font-family: -apple-system, sans-serif; }
.consent-box { background: #f8faff; border: 1px solid #dde4f4; border-radius: 8px; padding: 14px 16px; font-size: 13px; color: #4a5568; font-family: -apple-system, sans-serif; line-height: 1.6; margin-bottom: 20px; }
.form-submit { background: #1a4fa8; color: #fff; border: none; padding: 11px 28px; font-size: 15px; font-weight: 600; border-radius: 7px; cursor: pointer; font-family: -apple-system, sans-serif; transition: background 0.15s; }
.form-submit:hover { background: #1e40af; }
.form-success { text-align: center; padding: 32px 0; }
.form-success .check { font-size: 48px; margin-bottom: 14px; }
.form-success h3 { color: #0f1e4a; margin-bottom: 8px; font-size: 20px; }
.form-success p { color: #4a5568; font-family: -apple-system, sans-serif; }

/* ===== FOOTER ===== */
footer {
  background: #0f1e4a;
  color: #94a3b8;
  padding: 36px 24px;
  text-align: center;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
}
footer a { color: #93c5fd; }
footer .footer-name { color: #fff; font-weight: 700; font-size: 15px; font-family: Georgia, serif; margin-bottom: 6px; }
footer .footer-divider { color: #334155; margin: 0 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: #0f1e4a; padding: 12px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { position: relative; }
  .hero-inner { flex-direction: column; gap: 24px; text-align: center; }
  .hero-links { justify-content: center; }
  .hero-avatar { width: 110px; height: 110px; font-size: 40px; }
  .hero-text h1 { font-size: 26px; }
  .profile-grid { grid-template-columns: 1fr; }
  .teach-grid { grid-template-columns: 1fr; }
  .likert-row { grid-template-columns: 1fr repeat(5, 32px); }
  .survey-modal { padding: 24px 20px; }
  .grant-table { font-size: 12px; }
  .grant-table th, .grant-table td { padding: 8px 10px; }
}
