@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

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

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.7;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 60px;
  color: #1a1a1a;
  background: #ffffff;
  font-size: 15px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 36px;
  text-align: center;
  z-index: 100;
}

.navbar a {
  margin: 0 4px;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.navbar a:hover {
  background: #f0f4ff;
  color: #1a5ccf;
}

.navbar a.active {
  background: #eef2fd;
  color: #1a5ccf;
}

/* ── Profile header ── */
.header-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: #f7f8fc;
  border: 1px solid #e8eaf2;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 40px;
}

.header-card img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  background: #dde1ee;
}

.header-info h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #111;
}

.header-info .role {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.6;
}

.photo-credit {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  text-align: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #444;
  background: #ffffff;
  border: 1px solid #dde1ee;
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: #a0aacc;
  color: #1a5ccf;
}

/* ── Section headings ── */
h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 44px 0 16px;
  padding-left: 12px;
  border-left: 3px solid #3d7de8;
  color: #111;
}

h1.page-title {
  font-size: 24px;
  font-weight: 600;
  margin: 8px 0 24px;
  color: #111;
}

/* ── Body text ── */
p {
  margin: 0 0 14px;
  color: #333;
  font-size: 15px;
}

a {
  color: #1a5ccf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Publication cards ── */
.pub-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 10px;
  padding: 16px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pub:hover {
  border-color: #b8c4e8;
  box-shadow: 0 2px 8px rgba(60,90,200,0.07);
}

.pub-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 0 0 5px;
  line-height: 1.5;
}

.pub-authors {
  font-size: 13px;
  color: #555;
  margin: 0 0 10px;
}

.pub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 12px;
  line-height: 1.4;
}

.badge-venue {
  background: #e8f0fd;
  color: #1a4fa0;
}

.badge-spotlight {
  background: #fef3e2;
  color: #8a5200;
}

.badge-rate {
  background: #f0f0f0;
  color: #555;
}

.pdf-link {
  font-size: 12px;
  font-weight: 500;
  color: #1a5ccf;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid #c5d3f0;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}

.pdf-link:hover {
  background: #eef2fd;
  text-decoration: none;
}

.eq-note {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

/* ── Teaching ── */
.teaching-semester {
  margin-bottom: 28px;
}

.semester-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a5ccf;
  margin: 0 0 8px;
}

.course-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-item {
  background: #f7f8fc;
  border: 1px solid #e8eaf2;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
}

/* ── Students ── */
.student-section {
  margin-bottom: 32px;
}

.student-type {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin: 0 0 10px;
}

.student-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-item {
  background: #f7f8fc;
  border: 1px solid #e8eaf2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  color: #333;
}

.student-item strong {
  color: #111;
}

.student-awards {
  font-size: 14px;
  color: #777;
  margin-top: 3px;
}

.alumni-dest {
  font-size: 14px;
  color: #555;
  margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .chips {
    justify-content: center;
  }
  .header-card img {
    width: 130px;
    height: 130px;
  }
}
