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

:root {
  --color-text: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-heading: #1a252f;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb;
  --color-border: #e2e8f0;
  --color-nav: #1a252f;
  --max-width: 820px;
  --font-main: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3 {
  color: var(--color-heading);
  line-height: 1.3;
}

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

/* ===== Navigation ===== */
nav {
  background: var(--color-nav);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.nav-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.nav-name:hover {
  color: #e2e8f0;
  text-decoration: none;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  margin-left: 28px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Hero / About ===== */
.hero {
  padding: 60px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.hero-photo {
  width: 380px;
  height: 380px;
  margin-left: -40px;
  margin-top: -20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-text h1 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.social-links {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.social-links a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--color-text-light);
  transition: all 0.2s;
}
.social-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.hero-text p {
  margin-bottom: 12px;
}

/* ===== Sections ===== */
.section {
  padding: 48px 0;
}

.alt-bg {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.section h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.section-note {
  margin-top: -16px;
  margin-bottom: 24px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Research Interests ===== */
.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.interest {
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.interest h3 {
  font-size: 1rem;
  margin: 0 0 6px 0;
  color: var(--color-accent);
}

.interest p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.5;
}

/* ===== News ===== */
.news-list {
  list-style: none;
}

.news-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.news-list li:last-child {
  border-bottom: none;
}

.date {
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.88rem;
}

/* ===== Publications ===== */
.pub-list {
  list-style: none;
  counter-reset: pub-counter;
}

.pub-list li {
  counter-increment: pub-counter;
}

.pub {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.pub:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-heading);
}

.pub-authors {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

.pub-venue {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: 2px;
}

.pub-links {
  margin-top: 4px;
}

.pub-links a {
  font-size: 0.88rem;
  margin-right: 10px;
}

.pub-list-simple {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.pub-list-simple li {
  margin-bottom: 4px;
}

/* ===== Experience ===== */
.exp-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.exp-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.exp-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.exp-date {
  font-size: 0.9rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.exp-role {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.exp-item > p:last-child {
  font-size: 0.95rem;
}

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.edu-item h3 {
  font-size: 1rem;
  margin: 0 0 4px 0;
}

.edu-item p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin: 0;
}

.edu-detail {
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  background: var(--color-nav);
  color: #94a3b8;
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: #94a3b8;
  margin: 0 12px;
  font-size: 0.85rem;
}
.footer-links a:hover {
  color: #e2e8f0;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    display: flex;
    justify-content: center;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-photo img {
    width: 100%;
    height: 100%;
  }

  .social-links {
    justify-content: center;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-direction: column;
  }

  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 12px 24px;
    gap: 8px;
  }

  .nav-links a {
    margin-left: 16px;
  }

  .nav-links a:first-child {
    margin-left: 0;
  }
}

/* Hide News section (removed) */
#news { display: none !important; }
