@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary:     #1B3D6E;
  --primary-dark:#122d52;
  --accent:      #E07025;
  --accent-light:#f5a655;
  --blue-mid:    #2a5298;
  --bg:          #ffffff;
  --bg-light:    #F4F7FA;
  --text:        #2D2D2D;
  --text-light:  #666;
  --border:      #DDE3EC;
  --max-width:   1100px;
  --radius:      6px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--blue-mid); }
a:hover { color: var(--accent); }

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

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  background: var(--primary);
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 60px;
}

.nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-brand span { color: var(--accent-light); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.1rem;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SECTIONS ── */
section { padding: 3.5rem 0; }
section.bg-light { background: var(--bg-light); }

h1, h2, h3 { font-family: 'Merriweather', serif; color: var(--primary); }
h4, h5 { color: var(--primary); }

.section-title {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.hero .title-line {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.2rem;
}

.hero .affil-line {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.hero-bio {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.profile-wrap {
  text-align: center;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}

.profile-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.4);
  margin: 0 auto;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.18s;
}

.social-links a:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

/* ── RESEARCH CARDS ── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.research-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border-top: 4px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.research-card .icon { font-size: 1.9rem; margin-bottom: 0.85rem; }
.research-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.research-card p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

/* ── PUBLICATIONS ── */
.pub-year-group { margin-bottom: 2.5rem; }

.pub-year-label {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.pub-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }

.pub-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--primary);
}

.pub-item.highlight { border-left-color: var(--accent); }
.pub-item.nature    { border-left-color: #c0392b; }
.pub-item.preprint  { border-left-color: #8a8a8a; }

.pub-authors { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.2rem; }
.pub-title   { font-weight: 600; font-size: 0.95rem; color: var(--primary); margin-bottom: 0.2rem; }
.pub-title a { color: inherit; text-decoration: none; }
.pub-title a:hover { text-decoration: underline; }
.pub-venue   { font-size: 0.83rem; color: var(--text-light); font-style: italic; }

.pub-badges { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-nature  { background: #fdecea; color: #b71c1c; }
.badge-jgr     { background: #e8f0fe; color: #1a56db; }
.badge-top     { background: #fff3e0; color: #bf5000; }
.badge-cites   { background: #e8f5e9; color: #2e7d32; }
.badge-preprint{ background: #f3f3f3; color: #555; }

/* ── AWARDS ── */
.awards-list { display: flex; flex-direction: column; gap: 0.9rem; }

.award-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.award-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  min-width: 44px;
  padding-top: 0.15rem;
}

.award-body h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.award-body p  { font-size: 0.83rem; color: var(--text-light); }

/* ── STUDENTS ── */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.9rem;
}

.student-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--blue-mid);
}

.student-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.student-card .topic { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }
.student-card .since { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-top: 0.4rem; }

/* ── TEACHING ── */
.teaching-list { display: flex; flex-direction: column; gap: 0.7rem; }

.course-item {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.course-code { font-weight: 700; color: var(--accent); font-size: 0.85rem; }
.course-name { font-size: 0.9rem; }
.course-year { font-size: 0.8rem; color: var(--text-light); text-align: right; }

/* ── MEDIA ── */
.media-list { display: flex; flex-direction: column; gap: 0.9rem; }

.media-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: 1.25rem;
}

.media-source {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  min-width: 140px;
}

.media-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.55; }
.media-desc a { color: var(--blue-mid); }

/* ── METRICS ── */
.metrics-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.metric-box {
  background: var(--primary);
  color: #fff;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  min-width: 120px;
}

.metric-box .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.metric-box .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 0.3rem; }

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-header h1 { color: #fff; font-size: 2rem; margin-bottom: 0.4rem; }
.page-header p  { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ── NEWS ── */
.news-list { display: flex; flex-direction: column; gap: 0.85rem; }

.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.news-date { font-size: 0.8rem; color: var(--text-light); min-width: 70px; padding-top: 0.1rem; }
.news-text { font-size: 0.9rem; }
.news-text strong { color: var(--primary); }

/* ── GRANTS ── */
.grant-list { display: flex; flex-direction: column; gap: 0.85rem; }

.grant-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  border-left: 4px solid var(--blue-mid);
}

.grant-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.grant-item p  { font-size: 0.83rem; color: var(--text-light); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }

.contact-info li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.contact-info .ci-icon {
  color: var(--accent);
  font-size: 1.1rem;
  min-width: 22px;
  padding-top: 0.1rem;
}

/* ── FOOTER ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: #fff; }

footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
footer p  { margin-top: 0.4rem; }

.footer-copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ── NAV AVATAR ── */
.nav-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
  margin-left: 0.5rem;
}
.nav-avatar:hover {
  border-color: var(--accent-light);
  transform: scale(1.1);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lbFadeIn 0.18s ease;
}
.lightbox.open { display: flex; }
@keyframes lbFadeIn { from { opacity:0 } to { opacity:1 } }
.lightbox img {
  max-width: min(480px, 90vw);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: cover;
  cursor: default;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .profile-wrap { order: -1; }
  .profile-placeholder, .profile-photo { width: 150px; height: 150px; font-size: 3.5rem; }
  .hero h1 { font-size: 1.85rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .course-item { grid-template-columns: 1fr; }
  .media-item { flex-direction: column; gap: 0.4rem; }
  .media-source { min-width: unset; }
}
