/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #10233f;
  --navy-light: #1c3a63;
  --teal: #1d7874;
  --teal-light: #2aa198;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1e2530;
  --text-muted: #5a6472;
  --border: #e3e6ea;
  --max-width: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.2px;
}
.brand span { color: var(--teal-light); }

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav.site-nav a {
  color: #dfe6ee;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.site-nav a:hover,
nav.site-nav a.active {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid var(--teal-light);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 0 56px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--teal);
  border: 4px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.hero-photo:has(img) { background: #e9eef3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-text { flex: 1; min-width: 260px; }
.hero-text h1 { font-size: 2.1rem; font-weight: 700; margin-bottom: 6px; }
.hero-text .title-line { color: #cfe3e0; font-size: 1.05rem; margin-bottom: 3px; }
.hero-text .affil-line { color: #b7c4d6; font-size: 0.95rem; margin-bottom: 16px; }

.hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-links a {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}
.hero-links a:hover {
  background: var(--teal);
  border-color: var(--teal);
  text-decoration: none;
}

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section.alt { background: #eef1f4; }

h2.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.98rem;
}

/* About */
.about-text p { margin-bottom: 14px; max-width: 760px; }

/* Timeline */
.timeline {
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin-top: 24px;
}
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline .role { font-weight: 600; color: var(--navy); }
.timeline .role .period { font-weight: 500; color: var(--text-muted); font-size: 0.88rem; }
.timeline .org { color: var(--text-muted); font-size: 0.93rem; }

/* Research interest cards */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.interest-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.interest-card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.interest-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Publications */
.pub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.pub-count { color: var(--text-muted); font-size: 0.92rem; }

.year-heading {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 700;
  margin: 34px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
.year-heading:first-of-type { margin-top: 0; }

.pub-list { list-style: none; }
.pub-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.pub-item .pub-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pub-item .pub-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.pub-item .pub-authors .me { color: var(--text); font-weight: 700; }
.pub-item .pub-venue {
  font-size: 0.86rem;
  color: var(--teal);
  font-style: italic;
}
.pub-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
  background: #e6f2f1;
  color: var(--teal);
  vertical-align: middle;
}

/* Badges, legend, sub-sections */
.pub-badge { margin-left: 4px; }
.pub-venue .pub-badge:first-of-type { margin-left: 8px; }
.pub-badge.badge-award { background: #fbe3e8; color: #a3123a; }
.pub-badge.badge-top { background: #fdecd2; color: #a35a00; }
.pub-legend { font-size: 0.86rem; color: var(--text-muted); margin: -6px 0 24px; }
.pub-legend .me { color: var(--text); font-weight: 700; }
h2.sub-section-title { font-size: 1.25rem; margin: 44px 0 4px; padding-bottom: 6px; border-bottom: 2px solid #e6f2f1; }

/* Home page recent publication preview */
.pub-preview-list .pub-item { }
.view-all-link { margin-top: 18px; display: inline-block; font-weight: 600; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.contact-card .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-card .value { font-weight: 600; color: var(--navy); font-size: 0.98rem; }

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #b7c4d6;
  padding: 26px 0;
  text-align: center;
  font-size: 0.85rem;
}
footer.site-footer a { color: #cfe3e0; }

/* Responsive */
@media (max-width: 560px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-links { justify-content: center; }
  nav.site-nav ul { gap: 14px; justify-content: center; }
  .nav-wrap { flex-direction: column; align-items: flex-start; }
}
