/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e9ecef;
  z-index: 1000;
}

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

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.nav-brand:hover {
  color: #0066cc;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0066cc;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 20px;
  height: 2px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

/* Profile Header */
.profile-header {
  margin-bottom: 40px;
}

.profile-layout {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.profile-info {
  display: table-cell;
  vertical-align: top;
  padding-right: 40px;
  width: 70%;
}

.profile-image {
  display: table-cell;
  vertical-align: top;
  width: 30%;
  text-align: right;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 4px;
  object-fit: cover;
}

.name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.bio {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #333;
}

.links {
  margin-top: 16px;
  font-size: 16px;
}

.links a {
  color: #0066cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.links a i {
  font-size: 18px;
  min-width: 18px;
}

.links a:hover {
  text-decoration: underline;
}

/* Research Overview */
.research-overview {
  margin-bottom: 40px;
}

.research-overview h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.research-overview p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #333;
}

.research-image {
  text-align: center;
  margin-top: 20px;
}

.research-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

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

.section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.publications-note {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.publications-note a {
  color: #0066cc;
  text-decoration: none;
}

.publications-note a:hover {
  text-decoration: underline;
}

/* News */
.news-list {
  list-style: none;
  margin-bottom: 30px;
}

.news-list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.news-list .date {
  color: #666;
  font-weight: 600;
}

.news-list strong {
  color: #333;
}

.news-list .links a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

.news-list .links a:hover {
  text-decoration: underline;
}

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.input, .select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
  color: #333;
}

.input:focus, .select:focus {
  outline: none;
  border-color: #0066cc;
}

/* Publications */
.pub-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pub-category {
  margin-bottom: 30px;
}

.pub-category h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.pub-subsection {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.pub-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pub-card.highlighted {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  transition: border-left-color 0.3s ease;
}

.pub-card.highlighted:hover {
  border-left-color: #40916c;
}

.pub-card.minimal {
  padding: 4px 0;
  border-top: 1px solid #eee;
}

.pub-card.minimal:first-child {
  border-top: none;
}

/* Make Other Publications section more compact */
#otherPubs {
  margin-top: 5px;
}

#otherPubs .pub-card.minimal {
  padding: 3px 0;
}

#otherPubs .pub-card.minimal .title {
  font-size: 13px;
  margin-bottom: 1px;
}

#otherPubs .pub-card.minimal .meta {
  font-size: 10px;
  margin-bottom: 0px;
  line-height: 1.1;
}

#otherPubs .pub-card.minimal .venue-links {
  margin-top: 1px;
}

.pub-card .thumb-link {
  display: block;
  line-height: 0;
}

.pub-card .thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f0f0f0;
  transition: opacity 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
}

.pub-card.highlighted .thumb {
  cursor: pointer;
}

.pub-card.highlighted:hover .thumb {
  border-color: #40916c;
}

.pub-content {
  flex: 1;
}

.pub-card .title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.pub-card .title-link {
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.pub-card.highlighted:hover .title,
.pub-card.highlighted:hover .title-link {
  color: #40916c;
}

.pub-card.minimal .title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.2;
}

.pub-card .title a {
  color: #333;
  text-decoration: none;
}

.pub-card .title a:hover {
  color: #0066cc;
}

.pub-card .highlight {
  font-size: 14px;
  color: #666;
  margin-bottom: 0px;
  font-style: italic;
}

.pub-card .meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.pub-card.highlighted .meta {
  display: none;
}

.pub-card.minimal .meta {
  font-size: 11px;
  margin-bottom: 1px;
  line-height: 1.2;
}

.pub-card .venue-links {
  margin-top: 0px;
  display: inline-block;
}

.pub-card.minimal .venue-links {
  margin-top: 2px;
}

.pub-card .venue {
  font-size: 14px;
  color: #666;
  font-style: italic;
  display: inline;
  margin-right: 12px;
}

.pub-card.minimal .venue {
  font-size: 11px;
  margin-right: 6px;
}

.pub-card .links {
  font-size: 14px;
  display: inline;
}

.pub-card.minimal .links {
  font-size: 10px;
}

.pub-card .links a {
  color: #0066cc;
  text-decoration: none;
}

.pub-card .links a:hover {
  text-decoration: underline;
}

.pub-card .tags {
  margin-top: 6px;
}

.tag {
  display: inline-block;
  background: #e9ecef;
  color: #666;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-right: 4px;
  margin-top: 2px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 15px 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .container {
    padding: 80px 15px 20px;
  }
  
  .profile-layout {
    display: block;
  }
  
  .profile-info {
    display: block;
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .profile-image {
    display: block;
    width: 100%;
    text-align: center;
  }
  
  .profile-image img {
    width: 120px;
    height: 120px;
  }
  
  .name {
    font-size: 24px;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .pub-card {
    flex-direction: column;
    gap: 12px;
  }
  
  .pub-card .thumb {
    width: 100%;
    height: 100px;
  }
}

/* Additional Sections */
.teaching-section,
.service-section,
.awards-section {
  margin-bottom: 40px;
}

.teaching-section h2,
.service-section h2,
.awards-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}

.teaching-section p,
.service-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.awards-list li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #333;
}

.awards-list strong {
  color: #333;
}