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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

a {
  color: #1a5276;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
  background: #1b2a4a;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.nav-brand {
  color: #fff;
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 16px 0;
  text-decoration: none;
}

.nav-brand:hover {
  color: #e0e0e0;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-link {
  color: #ccc;
  padding: 18px 16px;
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* ===== Home Page ===== */
.home-wrapper {
  padding: 48px 0 60px;
}

.home-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.home-photo {
  text-align: center;
}

.headshot {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1b2a4a;
  margin-bottom: 20px;
}

.contact-card {
  text-align: center;
}

.contact-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.2rem;
  color: #1b2a4a;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 2px;
}

.contact-address {
  margin-top: 10px;
  color: #666;
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.5;
}

.contact-links {
  list-style: none;
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-links li {
  margin: 0;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
  text-align: left;
}

.contact-links a:hover {
  background: #f2f5f8;
  text-decoration: none;
}

.contact-links svg {
  width: 16px;
  height: 16px;
  color: #1b2a4a;
  flex-shrink: 0;
}

.home-content h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  color: #1b2a4a;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e8e8;
}

.home-content h2:first-child {
  margin-top: 0;
}

.home-content p {
  margin-bottom: 14px;
  text-align: justify;
}

.home-content h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  color: #1b2a4a;
  margin-top: 28px;
  margin-bottom: 10px;
}

.news-list {
  list-style: none;
  margin-top: 4px;
  padding-left: 0;
}

.news-list li {
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 12px 0 12px 18px;
  border-left: 2px solid #dce5ec;
  line-height: 1.6;
}

.news-list li::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1a5276;
  box-shadow: 0 0 0 1px #1a5276;
}

.news-date {
  color: #1b2a4a;
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-list span {
  font-size: 0.94rem;
}

.education-list {
  list-style: none;
  margin-top: 0;
  padding-left: 0;
}

.education-list li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e8e8e8;
}

.education-list li:first-child {
  padding-top: 2px;
}

.education-period {
  padding-top: 2px;
  color: #777;
  font-size: 0.85rem;
  font-weight: 600;
}

.education-details span,
.education-school {
  display: block;
}

.education-school {
  color: #1b2a4a;
  font-family: 'Roboto Slab', serif;
  font-size: 1rem;
  line-height: 1.4;
}

.education-degree {
  margin-top: 2px;
  font-size: 0.92rem;
  font-weight: 600;
}

.education-meta {
  margin-top: 3px;
  color: #666;
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ===== Page Layout ===== */
.page-wrapper {
  padding: 48px 0 60px;
}

.page-title {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  color: #1b2a4a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #1b2a4a;
}

.page-content h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.4rem;
  color: #1b2a4a;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8e8e8;
}

.page-content h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  color: #333;
  margin-top: 24px;
  margin-bottom: 10px;
}

.page-content p {
  margin-bottom: 14px;
  text-align: justify;
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.page-content strong {
  color: #1b2a4a;
}

/* ===== Publication award highlight ===== */
.pub-award {
  color: #b5651d;
  font-style: italic;
  font-weight: 600;
}

/* ===== Publication / Talk year-grouped style ===== */
.page-content h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.25rem;
  color: #1b2a4a;
  margin-top: 12px;
  margin-bottom: 18px;
}

.page-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 28px 0;
}

/* Honors table-like styling */
.honor-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.honor-item:last-child {
  border-bottom: none;
}

.honor-name {
  flex: 1;
  padding-right: 24px;
}

.honor-year {
  font-weight: 600;
  color: #1b2a4a;
  white-space: nowrap;
}

/* ===== Research Projects ===== */
.research-project {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: stretch;
  margin: 8px 0;
}

.research-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-text h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  color: #1b2a4a;
  margin-bottom: 12px;
}

.research-text p {
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: justify;
  margin-bottom: 10px;
}

.research-ref {
  font-size: 0.88rem !important;
  color: #555;
  margin-bottom: 0 !important;
}

.research-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

/* ===== Footer ===== */
.site-footer {
  background: #f5f5f5;
  padding: 24px 0;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.site-footer a {
  color: #555;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1b2a4a;
    padding: 8px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 12px 24px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-photo {
    margin-bottom: 0;
  }

  .headshot {
    width: 180px;
    height: 180px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .education-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .research-project {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .research-img {
    order: -1;
  }
}
