
/* Base Styles */
:root {
    --primary-color: #4a90e2;
    --primary-color-rgb: 74, 144, 226;
    --secondary-color: #2c3e50;
    --accent-color: #16a085;
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #fff;
    --grey-color-light: #f9f9f9;
    --grey-color-dark: #777;
    --border-color: #e9ecef;
    --link-color: #4a90e2;
    --link-hover-color: #2c3e50;
    --header-background: #f8f9fa;
    --spacing-unit: 20px;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
    --max-width: 1000px;
    --content-width: 700px;
    --font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  padding-top: 80px; /* Account for fixed header */
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 15px;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* 布局 */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.page-content {
  padding: var(--spacing-unit) 0;
}

/* 头部样式 */
.site-header {
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动时的透明效果 */
.site-header.scrolled {
  background-color: rgba(248, 249, 250, 0.9);
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
  color: var(--secondary-color);
}

.site-nav {
  float: right;
  line-height: 40px;
}

.site-nav .nav-trigger {
  display: none;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: var(--text-color);
  line-height: 1.5;
  margin-left: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.site-nav .page-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.site-nav .page-link.active {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.site-nav .page-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(var(--primary-color-rgb), 0.3);
}

/* Ensure all header elements use consistent styling */
header {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
}

/* Removed conflicting navbar styles - using .site-header consistently */

/* Mobile Navigation - using consistent .site-header approach */

/* 移动端导航 */
@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    text-align: right;
  }

  .site-nav label[for="nav-trigger"] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }

  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }

  .site-nav input ~ .trigger {
    clear: both;
    display: none;
  }

  .site-nav input:checked ~ .trigger {
    display: block;
    padding-bottom: 5px;
  }

  .site-nav .page-link {
    display: block;
    padding: 5px 10px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 5px;
  }

  .site-nav .page-link.active::after {
    display: none;
  }

  .site-nav .page-link.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 4px;
  }
}

/* 个人资料部分 */
.profile {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-unit);
  align-items: center;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  margin-bottom: 20px;
}

.profile-info {
  flex: 1;
  min-width: 300px;
}

.profile-info h1 {
  margin-bottom: 5px;
}

.profile-info h2 {
  font-size: 1.2em;
  font-weight: 400;
  color: var(--light-text-color);
  margin-bottom: 10px;
}

/* Title Position Styles */
.title-position {
  font-size: 1.3em;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.education-history {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--light-text-color);
  /* font-style: italic; */
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.contact-info {
  margin-top: 15px;
}

.contact-info a {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 5px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.contact-info a:hover {
  transform: translateY(-2px);
}

.contact-info i {
  margin-right: 5px;
}

/* 为每个联系方式设置特定的品牌颜色 */
.contact-gmail i {
  color: #EA4335;
}

.contact-gmail:hover {
  color: #EA4335;
}

.contact-university i {
  color: #115740;
}

.contact-university:hover {
  color: #115740;
}

.contact-github i {
  color: #333;
}

.contact-github:hover {
  color: #333;
}

.contact-scholar i {
  color: #4285F4;
}

.contact-scholar:hover {
  color: #4285F4;
}

.contact-cv i {
  color: #6B7280;
}

.contact-cv:hover {
  color: #6B7280;
}

.contact-zhihu i {
  color: #0084FF;
}

.contact-zhihu:hover {
  color: #0084FF;
}

/* 内容部分 */
section {
  margin-bottom: var(--spacing-unit);
  padding-bottom: var(--spacing-unit);
  border-bottom: 1px solid var(--border-color);
}

/* Page content stability and smooth transitions */
.page-content {
  min-height: 60vh; /* Ensure minimum page height */
  transition: opacity 0.3s ease;
}

section:last-child {
  border-bottom: none;
}

section h2 {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.8em;
}

/* News Section */
.news {
  margin-bottom: 20px;
}

.news-container {
  position: relative;
  background-color: var(--background-color);
  border-radius: 8px;
  overflow: hidden;
  overflow-x: hidden;
  min-height: 300px; /* Prevent layout shift */
}

.news-scroll {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox - hide scrollbar by default */
  -ms-overflow-style: none; /* IE and Edge - hide scrollbar by default */
}

/* Hide scrollbar by default for WebKit browsers */
.news-scroll::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* Show scrollbar only on hover */
.news-container:hover .news-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--background-color);
}

.news-container:hover .news-scroll::-webkit-scrollbar {
  width: 6px;
}

.news-container:hover .news-scroll::-webkit-scrollbar-track {
  background: var(--background-color);
}

.news-container:hover .news-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.news-container:hover .news-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 12px;
  transition: background-color var(--transition-speed) ease;
}

.news-item:hover {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.news-item .date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9em;
  white-space: nowrap;
  min-width: 70px;
}

.news-item .content {
  color: var(--secondary-color);
  font-size: 0.95em;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

/* Star items styling */
.news-item[style*="color: red"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  border-left: 3px solid #FFD700;
  border-radius: 6px;
  margin: 4px 0;
  position: relative;
}

.news-item[style*="color: red"]:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.08));
  transform: translateX(2px);
}

.news-item[style*="color: red"] .date {
  font-size: 1.2em;
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
  animation: starGlow 2s ease-in-out infinite alternate;
}

.news-item[style*="color: red"] .content {
  color: #B8860B;
  font-weight: 500;
}

@keyframes starGlow {
  from { text-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
  to { text-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
}

/* Experience Section */
.experience {
  margin-bottom: 40px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px; /* Prevent layout shift */
}

.experience-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  transition: color var(--transition-speed) ease;
}

.experience-item:hover {
  color: var(--primary-color);
}

.experience-item .period {
  font-size: 0.9em;
  color: var(--secondary-color);
  font-weight: 500;
  min-width: 120px;
}

.experience-item .separator {
  margin: 0 12px;
  color: var(--light-text-color);
  font-weight: 300;
}

.experience-item .position {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1em;
  margin-right: 8px;
}

.experience-item .institution {
  font-size: 0.9em;
  color: var(--secondary-color);
  font-weight: 500;
}

/* Professional Activities, Awards, Teaching Sections */
.awards,
.teaching {
    margin-bottom: var(--spacing-unit);
}

/* Awards and Teaching Tables */
.awards-table,
.teaching-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.awards-table thead,
.teaching-table thead {
    background-color: var(--grey-color-light);
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.awards-table th,
.teaching-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.awards-table td,
.teaching-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    line-height: 1.5;
}

/* Institution column center alignment */
.teaching-table td:first-child,
.teaching-table th:first-child {
    text-align: center;
}

.awards-table tbody tr:hover,
.teaching-table tbody tr:hover {
    background-color: var(--grey-color-light);
    transition: background-color var(--transition-speed);
}

.awards-table tbody tr:last-child td,
.teaching-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive table design */
@media (max-width: 768px) {
    .awards-table,
    .teaching-table {
        font-size: 0.9em;
    }
    
    .awards-table th,
    .teaching-table th,
    .awards-table td,
    .teaching-table td {
        padding: 8px 10px;
    }
}

/* 研究兴趣部分 */
.interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.interest-item {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  background-color: var(--secondary-color);
  border-radius: 5px;
  text-align: center;
}

.interest-item i {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.interest-item h3 {
  margin-bottom: 10px;
}

/* Simple Footer Styles */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-unit) 0;
  background-color: var(--footer-background);
}

.footer-col-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-col {
  margin-bottom: 15px;
}

.footer-col p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95em;
}

.update-time {
  font-size: 0.9em;
  color: var(--light-text-color);
  font-style: italic;
}

/* 响应式设计 */
@media screen and (max-width: 800px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    margin-right: 0;
  }

  .interests-container {
    flex-direction: column;
  }

  /* Footer responsive design */
  .footer-col-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* Selected Publications */
.publications-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 300px; /* Prevent layout shift during loading */
}

.lab-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.lab-logo {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.lab-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-speed) ease;
}

.lab-logo:hover .lab-logo-img {
  transform: scale(1.05);
}

.lab-title-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lab-name {
  font-size: 3em;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
  font-family: 'Lato', 'Helvetica Neue', 'Arial', sans-serif;
  letter-spacing: 0.5px;
  text-transform: none;
}

.lab-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lab-github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lab-github-link:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: white;
}

.lab-github-link i {
  font-size: 1.1em;
}

.lab-github-inline {
  margin-top: 15px;
  margin-bottom: 0;
}

.lab-subtitle {
  font-size: 1.3em;
  color: var(--primary-color);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
  text-align: center;
}

/* Lab Introduction Section */
.lab-intro {
  display: grid;
  grid-template-columns: 1.4fr 1.0fr;
  gap: 20px;
  margin-bottom: 50px;
  align-items: start;
}

.lab-photo-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.lab-photo {
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.photo-placeholder:hover {
  background: #e9ecef;
  border-color: var(--primary-color);
}

.lab-description {
  font-size: 1.0em;
  text-align: justify;
  line-height: 1.5;
  color: var(--text-color);
}

.lab-description p {
  margin-bottom: 20px;
}

/* Responsive design for lab intro */
@media (max-width: 768px) {
  .lab-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .lab-name {
    font-size: 2.5em;
  }
  
  .lab-subtitle {
    font-size: 1.1em;
  }
}

.section-title {
  font-size: 22px;
  text-align: left;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.subsection-title {
  font-size: 1.8em;
  margin: 30px 0 20px 0;
  color: var(--secondary-color);
}

.group-description, .openings-intro {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--light-text-color);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

.member-card, .opening-card {
  background: var(--background-color);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-align: center;
}

.opening-card {
  margin-bottom: 10px;
  text-align: left;
  padding: 15px 20px;
}

.opening-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.opening-card.highlight {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #f39c12;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.opening-card.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 5px auto;
  border: 3px solid #f8f9fa;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) ease;
}

.member-image:hover {
  transform: scale(1.05);
}

.member-name {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.member-title {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 0.9em;
}

.member-bio {
  color: var(--light-text-color);
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.85em;
}

.member-contact {
  margin-bottom: 15px;
}

.member-email {
  color: var(--text-color);
  font-size: 0.9em;
  margin-bottom: 10px;
  word-break: break-word;
}

.member-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.member-links a {
  color: var(--primary-color);
  font-size: 1.3em;
  transition: all var(--transition-speed) ease;
  padding: 8px;
  border-radius: 50%;
  background: #f8f9fa;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.member-links a:hover {
  color: white;
  background: var(--primary-color);
  transform: translateY(-2px);
}

.member-links a.homepage {
  background: #e3f2fd;
}

.member-links a.homepage:hover {
  background: #2196f3;
}

.member-links a.email {
  background: #fff3e0;
}

.member-links a.email:hover {
  background: #ff9800;
}

.member-links a.scholar {
  background: #f3e5f5;
}

.member-links a.scholar:hover {
  background: #9c27b0;
}

/* Welcome Message Styles */
.welcome-message {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  box-shadow: var(--box-shadow);
  margin: 20px 0;
}

.welcome-message h2 {
  color: var(--secondary-color);
  font-size: 2.2em;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.welcome-description {
  font-size: 1.2em;
  color: var(--text-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

.opportunities {
  margin: 30px 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.opportunities h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 15px;
  text-align: center;
}

.opportunities ul {
  list-style: none;
  padding: 0;
}

.opportunities li {
  background: white;
  padding: 12px 20px;
  margin: 8px 0;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.opportunities li:hover {
  transform: translateX(5px);
}

.contact-info {
  font-size: 1.1em;
  color: var(--text-color);
  margin-top: 30px;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  /* font-weight: 600; */
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.contact-info a:hover {
  border-bottom-color: var(--primary-color);
}

.opening-card h2 {
  color: var(--secondary-color);
  margin-bottom: 12px;
  font-size: 1.4em;
  font-weight: 600;
}

.opening-card ul {
  margin: 8px 0;
  padding-left: 18px;
}

.opening-card li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.opening-card p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* 通用工具类 */
.more-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
}

.page-title {
  margin-bottom: 30px;
  font-size: 2.5em;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  font-style: italic;
  color: var(--light-text-color);
  font-size: 1.1em;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prevent layout shifts for dynamic content containers */
.members-grid {
  min-height: 300px;
}

.alumni-list {
  min-height: 200px;
}

.alumni-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--background-color);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.alumni-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background-color var(--transition-speed) ease;
}

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

.alumni-item:hover {
  background-color: #f8f9fa;
}

.alumni-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alumni-name {
  font-size: 1em;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
}

.alumni-position-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.alumni-title {
  font-size: 0.85em;
  color: var(--primary-color);
  font-weight: 500;
}

.alumni-current {
  font-size: 0.8em;
  color: var(--light-text-color);
  font-style: italic;
}

.alumni-links {
  display: flex;
  gap: 6px;
  margin-left: 12px;
}

.alumni-links a {
  color: var(--primary-color);
  font-size: 0.9em;
  transition: all var(--transition-speed) ease;
  padding: 6px;
  border-radius: 50%;
  background: #f8f9fa;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.alumni-links a:hover {
  color: white;
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Responsive design for alumni list */
@media (max-width: 768px) {
  .alumni-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
  
  .alumni-links {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .alumni-info {
    width: 100%;
  }
  
  .alumni-position-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .alumni-current {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .alumni-position-line {
    gap: 2px;
  }
  
  .alumni-title, .alumni-current {
    font-size: 0.8em;
  }
}

/* Empty state messages */
.no-members, .no-alumni {
  text-align: center;
  color: var(--light-text-color);
  font-style: italic;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border: 1px dashed #dee2e6;
}

/* ===== PROJECT PAGE STYLES ===== */

/* Page header */
.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 0;
}

.page-title {
  font-size: 3em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-family: 'Lato', sans-serif;
}

.page-description {
  font-size: 1.2em;
  color: var(--light-text-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Projects filter section */
.projects-filter {
  margin-bottom: 50px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  border: 1px solid #e9ecef;
}

.filter-container {
  text-align: center;
}

.filter-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter-tag {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.filter-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.filter-tag.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Projects grid */
.projects-grid {
  margin-bottom: 60px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Project card */
.project-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  position: relative;
  height: fit-content;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.featured-badge i {
  margin-right: 4px;
}

/* Project image */
.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-link {
  background: white;
  color: var(--primary-color);
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Project content */
.project-content {
  padding: 18px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0; /* Allow title to shrink if needed */
}

.project-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--light-text-color);
  font-size: 0.9em;
  white-space: nowrap;
}

.project-stars i {
  color: #333;
}

.project-stars.loading {
  opacity: 0.6;
}

.project-stars.loading span {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.project-venue {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-description {
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.9em;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tag {
  background: #f8f9fa;
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.75em;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 1px solid #e9ecef;
}

.project-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Projects stats */
.projects-stats {
  margin-bottom: 60px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  border-radius: var(--border-radius);
  color: white;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.stat-item i {
  font-size: 2.5em;
  margin-bottom: 15px;
  opacity: 0.9;
}

.stat-number {
  display: block;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1em;
  opacity: 0.9;
  font-weight: 500;
}

/* Error and empty states */
.no-projects, .error-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--light-text-color);
  grid-column: 1 / -1;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border-radius: var(--border-radius);
  border: 1px solid #f5c6cb;
}

.error-message i {
  font-size: 2em;
  margin-bottom: 15px;
  display: block;
}

/* Responsive design for projects */
@media (max-width: 1024px) and (min-width: 769px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5em;
  }
  
  .page-description {
    font-size: 1.1em;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .project-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .project-venue {
    font-size: 0.75em;
    padding: 3px 10px;
  }
  
  .project-stars {
    align-self: flex-end;
  }
  
  .filter-tags {
    gap: 8px;
  }
  
  .filter-tag {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  
  .projects-filter {
    padding: 20px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-links {
    gap: 10px;
  }
  
  .project-link {
    padding: 8px 12px;
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 2em;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .project-content {
    padding: 16px;
  }
  
  .project-title {
    font-size: 1.1em;
  }
  
  .filter-tags {
    justify-content: flex-start;
  }
  
  .projects-stats {
    padding: 30px 20px;
  }
  
  .stat-number {
    font-size: 2em;
  }
  
  .stat-item i {
    font-size: 2em;
  }
}