* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#publications,
#education,
#experience,
#awards {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.65;
}

.container {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid #e5e5e5;
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.name a {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #444;
  text-decoration: none;
  font-size: 15px;
}

nav a:hover {
  color: #990000;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 55px;
  align-items: center;
  padding: 70px 0 45px;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 15px;
}

.subtitle {
  font-size: 19px;
  color: #555;
  margin-bottom: 25px;
}

.hero-photo img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.links {
  margin-top: 25px;
}

.links a {
  font-weight: 600;
}

.links span {
  color: #aaa;
  margin: 0 8px;
}

section {
  padding: 25px 0 35px;
}

h2 {
  font-size: 28px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

a {
  color: #990000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 7px;
}

.research-item,
.publication,
.education-item {
  margin-bottom: 25px;
}

footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 40px;
  padding: 25px 0;
  color: #777;
  font-size: 14px;
}

@media (max-width: 700px) {

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 45px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    width: 180px;
  }

  h1 {
    font-size: 36px;
  }
}

.subtitle {
  font-size: 19px;
  color: #555;
  margin-bottom: 6px;
}

.affiliation {
  font-size: 16px;
  color: #333;
  margin-top: 0;
  margin-bottom: 24px;
}

#education h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.education-item {
  margin-bottom: 28px;
}

.education-item h3 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  color: #111;
}

.education-item h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #222;
}

.edu-meta {
  margin: 0 0 6px;
  font-size: 15px;
  color: #555;
}

.edu-detail {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.45;
}

#experience h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 18px;
}

.experience-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid #ddd;
}

.experience-date {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  padding-top: 2px;
}

.experience-content h3 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  color: #111;
}

.experience-content h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.experience-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.experience-content li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

.experience-content li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.experience-content li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .experience-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-date {
    margin-bottom: 4px;
  }
}
