:root {
    --primary: #800000;        /* UChicago Maroon */
    --grey: #767676;
    --light-grey: #f5f5f5;
    --dark-grey: #4d4d4d;
    --white: #ffffff;
    --footer-bg: #404040;      /* UChicago Footer Background */
  }
  
  /* Base Typography */
  body {
    color: var(--dark-grey);
    line-height: 1.6;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
  }
  
  /* Clear duplicated font rules */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Set all headings to use Montserrat (Gotham alternative) */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
  }
  
  /* All other elements that should use Montserrat */
  nav a, 
  .btn,
  footer p,
  footer a,
  footer li,
  .banner p,
  .section-header p,
  .highlight-content p,
  .recent-item p,
  .mobile-menu-btn,
  .dropdown-content a,
  .nav-links li a,
  .phoenix-logo span {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
      
      body {
        color: var(--dark-grey);
        line-height: 1.6;
      }
      
      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
      }
      
      nav {
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: sticky;
        top: 0;
        z-index: 100;
      }
      
      .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
      }
      
      .logo {
        display: flex;
        align-items: center;
      }
      
      .logo img {
        height: 50px; /* Adjust this value based on your logo size */
        width: auto;
        max-width: 100%;
      }
      
      .nav-links {
        display: flex;
        list-style: none;
      }
      
      .nav-links li {
        margin-left: 30px;
      }
      
      .nav-links a {
        text-decoration: none;
        color: var(--dark-grey);
        font-weight: 500;
        transition: color 0.3s;
      }
      
      .nav-links a:hover {
        color: var(--primary);
      }
      
      /* Dropdown styles */
      .dropdown {
        position: relative;
      }
      
      .dropdown-content {
        display: none;
        position: absolute;
        background-color: white;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        border-radius: 4px;
      }
      
      .dropdown-content a {
        color: var(--dark-grey);
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        font-weight: 400;
      }
      
      .dropdown-content a:hover {
        background-color: var(--light-grey);
      }
      
      .dropdown:hover .dropdown-content {
        display: block;
      }
      
      
      .btn {
        display: inline-block;
        background: var(--primary);
        color: white;
        padding: 14px 28px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        font-size: 16px;
        letter-spacing: 0.5px;
      }
      
      .btn:hover {
        background: #a00000;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
      }
      
      .section {
        padding: 60px 0;
      }
      
      .section-header {
        text-align: center;
        margin-bottom: 40px;
      }
      
      .section-header h2 {
        font-size: 32px;
        color: var(--primary);
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
      }
      
      .section-header h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: var(--primary);
      }
      
      .section-header p {
        font-size: 18px;
        color: var(--grey);
      }
      
      
      .recent-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
      }
      
      .recent-box {
        background: var(--light-grey);
        padding: 30px;
        border-radius: 8px;
      }
      
      .recent-box h3 {
        font-size: 24px;
        color: var(--primary);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e0e0e0;
      }
      
      .recent-item {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
      }
      
      .recent-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
      }
      
      .recent-item h4 {
        font-size: 18px;
        margin-bottom: 5px;
      }
      
      .recent-item p {
        color: var(--grey);
        font-size: 14px;
      }
      
      .view-all {
        display: block;
        text-align: right;
        margin-top: 20px;
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
      }
      
      footer {
        background: var(--primary);
        color: white;
        padding: 50px 0 20px;
      }
      
      .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
      }
      
      .footer-info h3 {
        font-size: 24px;
        margin-bottom: 20px;
      }
      
      .footer-links h3 {
        font-size: 18px;
        margin-bottom: 20px;
      }
      
      .footer-links ul {
        list-style: none;
      }
      
      .footer-links li {
        margin-bottom: 10px;
      }
      
      .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 0.3s;
      }
      
      .footer-links a:hover {
        color: white;
      }
      
      .copyright {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 14px;
        color: rgba(255,255,255,0.8);
      }
      
      @media (max-width: 992px) {
        .banner {
          height: 500px;
        }
        
        .banner h1 {
          font-size: 40px;
        }
      }
      
      @media (max-width: 768px) {
        .highlights {
          grid-template-columns: 1fr;
        }
        
        .recent-section {
          grid-template-columns: 1fr;
        }
        
        .footer-content {
          grid-template-columns: 1fr;
        }
        
        .banner {
          height: 450px;
        }
        
        .banner h1 {
          font-size: 36px;
        }
        
        .banner p {
          font-size: 18px;
        }
        
        .banner-content {
          padding: 30px;
        }
        
        /* Adjust logo size for mobile */
        .logo img {
          height: 40px;
        }
      }
      
      @media (max-width: 576px) {
        .banner {
          height: 400px;
        }
        
        .banner h1 {
          font-size: 32px;
        }
        
        .banner-content {
          padding: 20px;
        }
      }
  
      /* Mobile Responsiveness Improvements */
  
  /* Base responsive adjustments */
  @media (max-width: 768px) {
    /* Adjust container padding for mobile */
    .container {
      padding: 0 15px;
    }
    
    /* Make headings more mobile-friendly */
    .page-header h1 {
      font-size: 32px;
    }
    
    .section-header h2 {
      font-size: 26px;
    }
    
    /* Fix Research Highlights grid */
    .highlights {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    /* Adjust publication cards */
    .featured-grid {
      grid-template-columns: 1fr;
    }
    
    /* Fix Recent Publications & News section */
    .recent-section {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    
    /* Improve team grid on mobile */
    .team-grid {
      grid-template-columns: 1fr;
    }
    
    /* Adjust footer layout */
    .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
  
  /* Small phone adjustments */
  @media (max-width: 480px) {
    /* Further reduce font sizes */
    .hero h1 {
      font-size: 32px;
    }
    
    .hero p {
      font-size: 16px;
    }
    
    /* Make buttons more tappable */
    .btn {
      padding: 12px 20px;
      display: block;
      text-align: center;
      margin: 0 auto;
    }
    
    /* Adjust card spacing */
    .highlight-content {
      padding: 15px;
    }
    
    /* Fix navigation for very small screens */
    .nav-container {
      height: auto;
      padding: 15px 0;
      flex-direction: column;
    }
    
    .logo {
      margin-bottom: 15px;
    }
    
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .nav-links li {
      margin: 5px 10px;
    }
  }
  
  /* Mobile Navigation Menu */
  @media (max-width: 768px) {
    /* Hide desktop navigation by default */
    .nav-links {
      display: none;
      width: 100%;
      flex-direction: column;
      background-color: white;
      position: absolute;
      top: 80px;
      left: 0;
      box-shadow: 0 5px 10px rgba(0,0,0,0.1);
      padding: 10px 0;
    }
    
    .nav-links.active {
      display: flex;
    }
    
    .nav-links li {
      margin: 0;
      width: 100%;
      text-align: center;
    }
    
    .nav-links a {
      display: block;
      padding: 15px 0;
    }
    
    /* Add hamburger menu button */
    .mobile-menu-btn {
      display: block;
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--primary, #800000);
    }
    
    /* Hide mobile menu button on desktop */
    @media (min-width: 769px) {
      .mobile-menu-btn {
        display: none;
      }
      
      .nav-links {
        display: flex !important;
        position: static;
        box-shadow: none;
        width: auto;
        background: transparent;
        padding: 0;
      }
    }
  }
  
  /* Responsive Table Fixes */
  @media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
      display: block;
    }
    
    thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    
    tr {
      margin-bottom: 15px;
      border: 1px solid #ddd;
    }
    
    td {
      border: none;
      position: relative;
      padding-left: 50%;
      text-align: left;
    }
    
    td:before {
      position: absolute;
      left: 10px;
      width: 45%;
      padding-right: 10px;
      white-space: nowrap;
      font-weight: bold;
    }
    
    /* Custom labels for the publications table - you'll need to adjust based on your column headers */
    td:nth-of-type(1):before { content: "Title"; }
    td:nth-of-type(2):before { content: "Authors"; }
    td:nth-of-type(3):before { content: "Journal"; }
    td:nth-of-type(4):before { content: "Year"; }
    td:nth-of-type(5):before { content: "Links"; }
  }
  
  /* Fluid Typography */
  html {
    font-size: 16px;
  }
  
  @media (max-width: 768px) {
    html {
      font-size: 15px;
    }
  }
  
  @media (max-width: 480px) {
    html {
      font-size: 14px;
    }
  }
  
  /* Fix image sizes */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Hide mobile menu button on desktop */
  @media (min-width: 769px) {
    .mobile-menu-btn {
      display: none;
    }
  }
  
  /* Only show mobile menu button on smaller screens */
  .mobile-menu-btn {
    display: none;
  }
  
  @media (max-width: 768px) {
    .mobile-menu-btn {
      display: block;
    }
  }
  
  /* Brand Bar Styles - Required Element */
  .brand-bar {
    background-color: #800000;
    min-height: 40px;
    width: 100%;
    position: relative;
    z-index: 110; /* Above regular navigation */
  }
  
  .brand-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 0 20px;
  }
  
  .phoenix-logo {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
  }
  
  .phoenix-logo img {
    margin-right: 10px;
  }
  
  .phoenix-logo span {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
  }
  
  .search-container {
    display: flex;
    align-items: center;
  }
  
  .search-icon {
    color: #ffffff;
    font-size: 0.8rem;
  }
  
  /* Updated Footer Styles for compliance */
  footer {
    background: #404040; /* Changed from #800000 to #404040 per guidelines */
    color: white;
    padding: 50px 0 20px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 1px dotted rgba(255,255,255,0.8);
  }
  
  .footer-links a:hover {
    color: white;
    border-bottom: 1px solid white;
    opacity: 1;
  }
  
  .uc-footer-logo {
    text-align: center;
    padding: 60px 0;
  }
  
  .social-icons {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .social-icons a {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    margin: 0 10px;
    font-size: 1.2rem;
    transition: opacity 0.3s;
  }
  
  .social-icons a:hover {
    opacity: 1;
    color: white;
  }
  
  .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: rgba(255,255,255,0.8);
  }
  
  /* Mobile Responsiveness for Brand Bar and Footer */
  @media (max-width: 768px) {
    .phoenix-logo span {
      display: none; /* Hide text on mobile but keep phoenix logo */
    }
    
    .footer-content {
      grid-template-columns: 1fr;
    }
    
    .uc-footer-logo img {
      width: 180px;
    }
  }
/* Updated Footer Layout for branding compliance */
.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 0 0 215px;
  margin-right: 30px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.footer-lab-info {
  flex: 0 0 30%;
  margin-right: 30px;
}

.footer-lab-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-lab-info p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links-section {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.footer-link-column {
  flex: 0 0 48%;
}

.footer-link-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-link-column ul {
  list-style: none;
  padding: 0;
}

.footer-link-column li {
  margin-bottom: 10px;
}

.footer-link-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.footer-link-column a:hover {
  color: white;
  border-bottom: 1px solid white;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .footer-main-row {
    flex-wrap: wrap;
  }
  
  .footer-logo {
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .footer-lab-info {
    flex: 0 0 45%;
    margin-right: 5%;
  }
  
  .footer-links-section {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .footer-main-row {
    flex-direction: column;
  }
  
  .footer-lab-info {
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }
  
  .footer-links-section {
    flex: 0 0 100%;
  }
  
  .footer-link-column {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
  
  .footer-links-section {
    flex-direction: column;
  }
}

/* Comprehensive responsive fixes for all pages */
@media (max-width: 992px) {
  /* Tablet adjustments */
  .highlights, .featured-grid, .recent-section {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  /* Mobile landscape and tablet portrait adjustments */
  
  /* Fix for Research Highlights grid */
  .highlights {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Fix for Publications Featured grid */
  .featured-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  /* Fix for Recent Publications & News section */
  .recent-section {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }
  
  /* Make cards more mobile-friendly */
  .highlight-card, .pub-card {
    max-width: 100% !important;
  }
  
  /* Adjust padding for mobile */
  .highlight-content, .pub-content {
    padding: 15px !important;
  }
  
  /* Improve table display on publications page */
  .publication-list table td {
    padding: 10px !important;
  }
}

@media (max-width: 576px) {
  /* Small phone adjustments */
  
  /* Further reduce padding on cards */
  .highlight-content, .pub-content {
    padding: 12px !important;
  }
  
  /* Make buttons more tappable */
  .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Improve readability of publication entries */
  .publication-list th, .publication-list td {
    font-size: 14px;
  }
}
 /* General Mobile Responsiveness Improvements for King Lab Website */

/* General Layout Fixes */
@media (max-width: 768px) {
  /* Improve section spacing on mobile */
  .section {
    padding: 40px 0;
  }
  
  /* Make section headers more compact */
  .section-header {
    margin-bottom: 25px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  /* Improve container padding */
  .container {
    padding: 0 20px;
  }
}

/* General image handling for responsive layouts */
@media (max-width: 768px) {
  .responsive-img {
    height: auto !important;
    max-height: 250px;
    width: 100%;
    object-fit: cover;
  }
}

/* Improve container padding */
@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
}

/* Fix button display on mobile */
@media (max-width: 480px) {
  .btn {
    display: block;
    text-align: center;
    padding: 12px 15px;
  }
}

/* Fix the header for small screens */
@media (max-width: 480px) {
  .page-header {
    padding: 50px 0;
    height: 300px;
  }
  
  .page-header h1 {
    font-size: 28px;
  }
  
  .page-header p {
    font-size: 16px;
  }
} 