/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --primary-color: #EE7FED;
    --primary-dark: #710069;
    --text-primary: #482d42;
    --text-secondary: #684a63;
    --text-muted: #967195;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --bg-light: #fcf7fa;
    --bg-accent: #fff0fe;
    --border-color: #f0e2ef;
    --shadow-light: 0 8px 32px rgba(100, 81, 81, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 60px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #EE7FED, #764ba2);
    --gradient-bg: linear-gradient(135deg, #fff0fd, #ffe6fb);
    --border-radius: 15px;
    --transition: all 0.3s ease;
    --header-height: 70px;
  }
  
  /* ===== RESET & BASE ===== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: url("images/background.webp") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  
  h1, h2, h3, .hero-name, .section-title {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
  }
  
  /* ===== LINKS ===== */
  a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  /* ===== HEADER & NAVIGATION ===== */
  .header {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    position: relative;
  }
  
  .logo {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
  }
  
  .logo:hover {
    color: var(--primary-dark);
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
  }
  
  .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: var(--transition);
    white-space: nowrap;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-dark);
    background: rgba(234, 102, 208, 0.1);
    transform: translateY(-2px);
  }

  /* ===== MAIN CONTENT ===== */
  .main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: clamp(1rem, 3vw, 2rem) 0;
  }
  
  .page {
    display: none;
    animation: fadeIn 0.6s ease-in-out;
  }
  
  .page.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ===== CONTENT CARDS ===== */
  .content-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin: 2rem auto;
    transition: var(--transition);
    max-width: 100%;
  }
  
  .content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
  }
  
  .section-title {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
  }
  
  .compact-content-card {
    padding: clamp(0.5rem, 0vw, 0rem) 
             clamp(1rem, 0vw, 0rem);
    }
    
  .compact-content-card i {
    /* margin-right: 0.2rem; */
    color: var(--primary-color);
    }

  /* ===== HERO SECTION ===== */
  .hero {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
  }
  
  .hero-main {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 4rem);
  }
  
  .hero-left {
    text-align: center;
    min-width: 280px;
  }
  
  .hero-photo {
    width: clamp(200px, 30vw, 250px);
    height: clamp(200px, 30vw, 250px);
    border-radius: 50%;
    background: var(--bg-accent);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 8vw, 4rem);
    color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(234, 102, 223, 0.2);
    transition: var(--transition);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /></svg>');
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .hero-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(234, 102, 223, 0.3);
  }
  
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
  }
  
  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--text-primary);
    border: 1.5px solid var(--text-primary);
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .social-icon:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
  }
  
  .hero-right {
    min-width: 0; /* Prevents text overflow */
  }
  
  .hero-name {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    word-wrap: break-word;
  }
  
  .typewriter {
    color: var(--primary-color);
    font-weight: bold;
    border-right: 2px solid var(--primary-dark);
    animation: blink 1s step-end infinite;
    display: inline-block;
  }
  
  @keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
  }
  
  .hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
  }
  
  .cta-button {
    display: inline-flex;
    align-items: center;
    background: white;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
  }
  
  .cta-button:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-3px);
  }
  
  /* ===== RESEARCH SECTIONS ===== */
  .research-interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .research-item {
    background: var(--gradient-bg);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(234, 102, 221, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .research-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(234, 102, 216, 0.15);
  }
  
  .research-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
  }
  
  .research-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  /* ===== FILTER BUTTONS ===== */
  .filter-row {
    display: flex;
    align-items: flex-start;
    /* gap: 0 rem; */
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }
  
  .filter-row strong {
    font-size: 1rem;
    color: var(--text-primary);
    min-width: 130px;
    flex-shrink: 0;
  }
  
  .filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1;
  }
  
  .year-btn, .type-btn, .tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    border: 2px solid #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 50px;
    text-align: center;
  }
  
  .year-btn:hover,
  .type-btn:hover,
  .tag-btn:hover,
  .year-btn.active,
  .type-btn.active,
  .tag-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
  }
  
  /* ===== RESEARCH HIGHLIGHTS ===== */
  .research-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    margin-bottom: 1.5rem;
  }
  
  .research-highlight:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(234, 102, 216, 0.15);
  }
  
  .research-highlight img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
  }
  
  .research-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: var(--text-primary);
  }
  
  .research-content p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: var(--text-secondary);
  }
  
  /* ===== RESEARCH TAGS ===== */
  .research-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .research-tag, .field-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
  }
  
  /* Tag colors */
  .research-tag.cn, .field-tag.cn { background: #e74c3c; }
  .research-tag.sys, .field-tag.sys { background: #27ae60; }
  .research-tag.ml, .field-tag.ml { background: #9c66f2; }
  .research-tag.es, .field-tag.es { background: #599bff; }
  .research-tag.com, .field-tag.com { background: #f1a2e2; }
  .research-tag.em, .field-tag.em { background: #ffa94d; }
  /* .research-tag.geospatial, .field-tag.geospatial { background: #bdfff8; color: #333; }
  .research-tag.rs, .field-tag.rs { background: #217c39; } */
  .research-tag.paper, .field-tag.paper,
  .research-tag.cpaper, .field-tag.cpaper,
  .research-tag.ppaper, .field-tag.ppaper { background: #333; }
  
  /* ===== NEWS SECTION ===== */
  .scrollable-news {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 1rem;
  }
  
  .scrollable-news::-webkit-scrollbar {
    width: 8px;
  }
  
  .scrollable-news::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 10px;
  }
  
  .news-item {
    border-left: 4px solid var(--primary-color);
    padding: 0.25rem 1rem;
    margin-bottom: 1rem;
    background: var(--gradient-bg);
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
  }
  
  .news-item:hover {
    transform: translateX(5px);
  }
  
  .news-date {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .news-title {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0.5rem 0;
  }
  
  .news-btn {
    font-size: 0.85em;
    margin-right: 8px;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
  }
  
  .news-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  

  /* Dropdown */
  .dropdown-section {
    margin-top: 1rem;
  }

  .dropdown-header {
    background-color: #f4f4f4;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-content {
    padding: 0.5rem 1.25rem;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    display: none;
    background-color: #fff;
  }

  .dropdown-section.open .dropdown-content {
    display: block;
  }

  .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .dropdown-section.open .dropdown-arrow {
    transform: rotate(90deg);
  }

  .scholarship-entry,
  .award-entry {
    margin-bottom: 1rem;
  }

  .scholarship-entry strong,
  .award-entry strong {
    display: block;
  }

  .scholarship-sponsor {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.2rem;
  }

  /* ===== TIMELINE STYLES ===== */
.timeline-item {
    background: linear-gradient(135deg, #fcf7fc, #f7edf7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #EE7FED;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(234, 102, 221, 0.15);
}

.timeline-year {
    color: #EE7FED;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #482d3f;
    margin: 0.5rem 0;
}

.timeline-institution {
    color: #684a64;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: #967190;
    line-height: 1.6;
}

.vertical-timeline {
    position: relative;
    margin-left: 5rem;
    border-left: 6px solid #333;
    padding-left: 2rem;
}

.vt-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.vt-year {
    position: absolute;
    left: -8em;
    width: 4rem;
    text-align: right;
    font-size: 1rem;
    font-weight: bold;
    color: #684a64;
    top: 0;
}

.vt-content {
    margin-left: 0.25rem;
}

.vt-title {
    font-size: 1rem;
    font-weight: 600;
    color: #482d45;
    margin-bottom: 0.2rem;
}

.vt-subtitle {
    color: #684a65;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.vt-content p {
    font-size: 1rem;
    color: #96718d;
    line-height: 1.6;
}
  /* ===== TABLES ===== */
  .research-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
  }
  
  .research-table th {
    background: linear-gradient(0deg, #ffffff, #eaeaea);
    color: var(--text-primary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
  }
  
  .research-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .research-table tr:hover {
    background: var(--bg-light);
  }
  
  /* ===== UTILITIES ===== */
  .see-more-link {
    text-align: center;
    margin-top: 1.5rem;
  }
  
  .see-more-btn {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: var(--transition);
  }
  
  .see-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
  }
  
  .hand-underline {
    position: relative;
    display: inline-block;
    font-weight: bold;
  }
  
  .hand-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2em;
    width: 100%;
    height: 17px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='20' viewBox='0 0 400 20'><path d='M5 15 Q 25 5, 45 15 T 85 15 T 125 15 T 165 15 T 205 15 T 245 15 T 285 15 T 325 15 T 365 15 T 395 15' stroke='%23e63946' stroke-width='6' fill='none' stroke-linecap='round'/></svg>") no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }
  
  /* ===== ANIMATIONS ===== */
  .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(234, 102, 216, 0.1);
    animation: float 20s infinite linear;
    pointer-events: none;
  }
  
  @keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
  }
  
  /* ===== RESPONSIVE BREAKPOINTS ===== */
  
  /* Tablet styles */
  @media (max-width: 1024px) {
    .hero-main {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
    }
    
    .hero-left {
      min-width: auto;
    }
    
    .research-highlight {
      grid-template-columns: 1fr;
      text-align: center;
    }
    
    .research-highlight img {
      width: 100%;
      max-width: 400px;
      height: 250px;
      justify-self: center;
    }
    
    .vertical-timeline {
      margin-left: 2rem;
      padding-left: 1.5rem;
    }
    
    .vt-year {
      position: static;
      text-align: left;
      width: auto;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
    }
  }
  
  /* Mobile styles */
  @media (max-width: 768px) {
    body {
      font-size: 0.875rem;
    }
  
    .mobile-menu-toggle {
      display: flex;
    }
  
    .nav-menu {
      display: none;
      flex-direction: column;
      background: white;
      position: fixed;
      top: var(--header-height);
      left: 0;
      right: 0;
      height: calc(100vh - var(--header-height));
      padding: 2rem 1rem;
      box-shadow: var(--shadow-medium);
      z-index: 999;
      overflow-y: auto;
    }
  
    .nav-menu.active {
      display: flex;
    }
    
    .nav-menu li {
      margin-bottom: 0.5rem;
    }
    
    .nav-link {
      display: block;
      padding: 1rem 1.5rem;
      text-align: center;
      font-size: 0.875rem;
      vertical-align: middle;
      margin-right: 0.5rem;
      font-weight: 600;
      color: var(--text-primary);
      background: var(--bg-light);
      border: 2px solid var(--border-color);
      border-radius: 12px;
      transition: var(--transition);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .nav-link:hover,
    .nav-link.active {
      background: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
      transform: scale(1.02);
    }
  
    .hero {
      padding: 1.5rem 1rem;
    }
  
    .hero-main {
      gap: 1.5rem;
    }
  
    .hero-name {
      font-size: 1.75rem;
    }
  
    .hero-subtitle {
      font-size: 1rem;
    }
  
    .hero-description {
      font-size: 0.9rem;
    }
  
    .content-card {
      margin: 1rem 0.5rem;
      padding: 1.5rem 1rem;
    }
    
    .section-title {
      font-size: 1.25rem;
      margin-bottom: 1.5rem;
    }
    
    .research-interests {
      grid-template-columns: 1fr;
    }
    
    .filter-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
    
    .filter-row strong {
      min-width: auto;
      font-size: 0.9rem;
    }
    
    .research-table {
      font-size: 0.8rem;
    }
    
    .research-table th,
    .research-table td {
      padding: 0.6rem 0.4rem;
    }
    
    .vertical-timeline {
      margin-left: 1rem;
      padding-left: 1rem;
      border-left-width: 4px;
    }
    
    .social-icons {
      justify-content: center;
    }
  
    .news-item {
      padding: 1rem;
    }
  
    .news-title {
      font-size: 0.9rem;
    }
  
    .news-date {
      font-size: 0.85rem;
    }
  
    .timeline-item {
      padding: 1rem;
    }
  
    .timeline-title {
      font-size: 1.1rem;
    }
  
    .timeline-institution {
      font-size: 0.9rem;
    }
  
    .timeline-description {
      font-size: 0.85rem;
    }
  }
  
  /* Small mobile styles */
  @media (max-width: 480px) {
    body {
      font-size: 0.8rem;
    }
  
    .container {
      padding: 0 0.75rem;
    }
    
    .nav-container {
      padding: 0.75rem 1rem;
    }
    
    .nav-link {
      font-size: 1rem;
      padding: 0.875rem 1.25rem;
    }
    
    .hero {
      padding: 1.25rem 0.75rem;
    }
    
    .content-card {
      padding: 1.25rem 0.75rem;
      margin: 0.5rem 0.25rem;
    }
    
    .section-title {
      font-size: 1.1rem;
      margin-bottom: 1.25rem;
    }
    
    .hero-name {
      font-size: 1.5rem;
    }
  
    .hero-subtitle {
      font-size: 0.9rem;
    }
  
    .hero-description {
      font-size: 0.8rem;
    }
    
    .hero-photo {
      width: 150px;
      height: 150px;
    }
    
    .social-icon {
      width: 36px;
      height: 36px;
      font-size: 0.9rem;
    }
    
    .research-table {
      font-size: 0.7rem;
    }
    
    .research-table th,
    .research-table td {
      padding: 0.4rem 0.25rem;
    }
    
    .news-item,
    .timeline-item {
      padding: 0.875rem;
    }
  
    .news-title {
      font-size: 0.8rem;
    }
  
    .news-date {
      font-size: 0.75rem;
    }
  
    .timeline-title {
      font-size: 1rem;
    }
  
    .timeline-institution {
      font-size: 0.8rem;
    }
  
    .timeline-description {
      font-size: 0.75rem;
    }
    
    .filter-btns {
      gap: 0.25rem;
    }
    
    .year-btn, .type-btn, .tag-btn {
      padding: 0.35rem 0.7rem;
      font-size: 0.7rem;
    }
  
    .research-content h3 {
      font-size: 1.1rem;
    }
  
    .research-content p {
      font-size: 0.8rem;
    }
  
    .research-tag, .field-tag {
      font-size: 0.7rem;
      padding: 3px 8px;
    }
  }

  /* ===== SIDEBAR MENU (MOBILE) ===== */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 250px;
    height: 100vh;
    background: var(--bg-glass);
    box-shadow: var(--shadow-medium);
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    z-index: 1200;
    backdrop-filter: blur(12px);
  }
  
  .sidebar-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .sidebar-menu a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
  }
  
  .sidebar-menu a:hover {
    color: var(--primary-color);
  }
  
  .sidebar-menu.active {
    left: 0;
  }
  
  /* Hide desktop nav on small screens */
  @media (max-width: 768px) {
    .desktop-nav {
      display: none;
    }
  
    .mobile-menu-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 30px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 1300;
    }
  
    .mobile-menu-toggle span {
      width: 100%;
      height: 3px;
      background: var(--text-primary);
      border-radius: 2px;
      transition: var(--transition);
    }
  
    .mobile-menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
    }
  
    .mobile-menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }
  
    .mobile-menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }
  }
  
  .site-footer {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    border-top: 1px solid #ccc;
  }
  
  .site-footer p {
    margin: 0.3rem 0;
  }
  
