@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Source+Sans+Pro:wght@400;600&display=swap');

/* Basic styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
  margin: 0;
}

a {
  color: #1772d0;
  text-decoration: none;
}
a:hover {
  color: #f09228;
}

/* Accessible focus rings */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #1772d0;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #1772d0;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Layout */
.wrapper {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Sidebar */
.sidebar {
  width: 240px;
  padding-right: 40px;
  flex-shrink: 0;
}

.sidebar-content {
  position: sticky;
  top: 30px;
}

.profile-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  display: block;
}

.contact-info p {
  margin: 6px 0;
}

.contact-info a {
  text-decoration: none;
  color: #1772d0;
  font-weight: 600;
}
.contact-info a:hover {
  color: #f09228;
}

.contact-info i {
  margin-right: 7px;
  color: #888;
  width: 18px;
  text-align: center;
}

.contact-email {
  margin-bottom: 4px;
}

.contact-email span {
  display: block;
  font-size: 14px;
}

.contact-email span:first-child {
  color: #555;
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex-grow: 1;
  min-width: 0;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 12px;
}

.main-header h1 {
  margin: 0;
  font-family: 'Merriweather', serif;
  font-size: 28px;
  color: #222;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 6px;
}

.main-nav a {
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  color: #555;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: #f0f0f0;
  color: #1772d0;
}

.main-nav a.active {
  background: #1772d0;
  color: #fff;
}

/* Sections */
section {
  margin-bottom: 36px;
}

/* Section header with sort */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.section-header h2 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

section h2 {
  font-family: 'Merriweather', serif;
  font-size: 22px;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sort-btn:hover {
  border-color: #1772d0;
  color: #1772d0;
  background: #f0f6ff;
}

.sort-btn i {
  font-size: 14px;
}

section p {
  margin: 0 0 12px 0;
  line-height: 1.7;
}

/* Research interests list */
.research-list {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0;
}

.research-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Publication list */
.publication-list {
  margin-top: 10px;
}

.pub-year {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  color: #444;
  margin: 28px 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.publication-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.publication-item:hover {
  background: #f8f9fa;
}

.pub-img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid #eee;
  background: #f5f5f5;
}

.pub-details {
  flex: 1;
  min-width: 0;
}

.pub-title {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.4;
}

.pub-title a {
  color: #222;
  text-decoration: none;
}
.pub-title a:hover {
  color: #1772d0;
}

.pub-authors {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.5;
}

.pub-venue {
  font-size: 14px;
  margin-bottom: 6px;
}

.pub-venue em {
  font-weight: 600;
  color: #1772d0;
}

.pub-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pub-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #1772d0;
  border: none;
  cursor: default;
  font-family: inherit;
}

.pub-desc {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}

/* Experience section */
.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.6;
}

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

.exp-time {
  display: inline-block;
  font-size: 13px;
  color: #888;
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: #aaa;
  font-size: 13px;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
    padding: 20px 16px;
  }

  .sidebar {
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }

  .profile-image {
    margin: 0 auto 16px;
  }

  .sidebar-content {
    position: static;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .publication-item {
    flex-direction: column;
  }

  .pub-img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}
