/* Base styles */
body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #1a5276;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Navbar customization */
  .navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  /* Contact page specific styles */
  .contact-item {
    margin-bottom: 0.75rem;
  }
  
  .contact-item i, .profile-links i {
    width: 1.5rem;
    color: #2e8b8b;
    text-align: center;
    margin-right: 0.5rem;
  }
  
  .profile-links div {
    margin-bottom: 0.5rem;
  }
  
  /* Card-like panels */
  .card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .card:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  }
  
  /* Callout customizations */
  .callout {
    border-left-width: 5px;
    border-radius: 5px;
  }
  
  .callout-note {
    border-left-color: #2e8b8b;
  }
  
  /* Link styling */
  a {
    color: #2e8b8b;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  a:hover {
    color: #1a5276;
    text-decoration: underline;
  }
  
  /* Responsive iframe for maps */
  .embed-responsive {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 5px;
  }
  
  .embed-responsive-4by3 {
    padding-bottom: 75%;
  }
  
  .embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border: 0;
  }
  
  /* Improve spacing for mobile */
  @media (max-width: 768px) {
    .g-col-md-4, .g-col-md-6 {
      margin-bottom: 1.5rem;
    }
  }
  
  /* Add a subtle background pattern */
  body {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23003366' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  
  /* Custom container max-width */
  .container-xl {
    max-width: 1140px;
  }

  .bib-entry u {
    text-decoration: underline;
    font-weight: bold;
  }

  .bib-authors u {
        font-weight: normal; /* Ensures underline is not bold */
        text-decoration: underline; /* Explicitly keep underline */
  }

  .bib-title {
    font-weight: bold;
  }

  .bib-links {
    margin-top: 5px;
    font-size: 0.9em;
  }
  
  .bib-links a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #2e8b8b;
  }
  
  .bib-links a:hover {
    text-decoration: underline;
  }

  .bib-award-text {
    font-style: italic;
    font-weight: bold;
    color: #d4af37; /* Gold color */
    margin-left: 5px;
  }

  .float-left {
    float: left;
    margin-right: 10px;
  }
  
  .float-right {
    float: right;
    margin-left: 10px;
  }

  .featured-publications ol.listing {
    list-style-position: outside;
    padding-left: 1.5rem;
  }
  
  .featured-publications .bib-entry {
    margin-bottom: 1rem;
  }
  
  /* Ensure the listing is visible */
  #featured-papers {
    display: block !important;
  }

  .publication-list {
    padding-left: 2em;
  }
  .publication-list li {
    margin-bottom: 1.5em;
  }
  .publication-venue {
    margin-top: -0.5em;
    margin-bottom: 0.25em;
    font-size: 0.95em;
    color: #555;
  }
  .publication-links {
    margin-top: 0.5em;
    margin-bottom: 1em;
    font-size: 0.9em;
  }
  .publication-links a {
    display: inline-block;
    margin-right: 1em;
    text-decoration: none;
    color: #2e8b8b;
  }
  .publication-links a:hover {
    text-decoration: underline;
  }
  .publication-links i {
    margin-right: 0.25em;
  }
  .listing-award {
    color: #cc9900;
    font-weight: bold;
    margin-left: 0.5em;
  }
  
  /* Publication entry styling */
  .bib-entry {
    margin-bottom: 1em;
  }
  
  /* Category tags in publications */
  .bib-categories {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
  }
  
  .category-tag {
    display: inline-block;
    padding: 0.15em 0.5em;
    margin-right: 0.5em;
    font-size: 0.85em;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 0.25rem;
    font-weight: normal;
  }
  
  .category-tag:hover {
    background-color: #dee2e6;
  }
  
  /* Publication filtering */
  .publication-filters {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
  }
  
  .global-filters {
    margin-top: 1.5em;
    margin-bottom: 2em;
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
  }
  
  .publication-filters::before {
    content: "Filter by category: ";
    font-weight: bold;
    margin-right: 0.5em;
    color: #495057;
  }
  
  .filter-btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .filter-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
  }
  
  .filter-btn.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
  }
  
  .filter-btn.active:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
  }
  
  /* Category links on individual publication pages */
  .publication-categories-links {
    margin-top: 1em;
    font-size: 0.9em;
  }
  
  .publication-categories-links a {
    color: #0d6efd;
    text-decoration: none;
  }
  
  .publication-categories-links a:hover {
    text-decoration: underline;
  }
  
  /* Category filter styling */
  .quarto-listing-category {
    margin-bottom: 1em;
  }
  
  .quarto-listing-category-title {
    font-weight: bold;
    margin-bottom: 0.5em;
  }
  
  .quarto-listing-category .category {
    display: inline-block;
    padding: 0.25em 0.75em;
    margin: 0.25em;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .quarto-listing-category .category:hover {
    background-color: #dee2e6;
  }
  
  .quarto-listing-category .category.active {
    background-color: #2e8b8b;
    color: white;
  }
  
  /* Ensure listing items work with filtering */
  .quarto-listing-item {
    display: list-item !important;
  }
  
  .quarto-listing-item.hidden {
    display: none !important;
  }
  /* Style for featured publications */
  .featured-paper {
    background-color: #f8f9fa;
    border-left: 3px solid #4682b4;
    padding-left: 10px;
    margin-left: -13px;
  }
  /* Patent list styles */
  .patent-list {
    list-style-type: decimal;
    padding-left: 2em;
  }
  .patent-list li {
    margin-bottom: 1em;
  }
  .patent-title {
    font-weight: 600;
  }
  .patent-authors {
    font-size: 0.95em;
  }
  .patent-info {
    color: #555;
    font-size: 0.9em;
  }
  .patent-link {
    margin-left: 0.5em;
    font-size: 0.9em;
  }

  .featured-publications {
    margin-top: 1em;
  }

  .address {
    margin-bottom: 1.5rem;
  }

  /* Homepage hero (lab site) */
  .hero-section {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
  }
  .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    border: none;
  }
  .hero-section h4 {
    color: #2e8b8b;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
  }
  .hero-section p {
    color: #555;
    max-width: 38rem;
    margin: 0 auto;
  }

  /* "What we work on" topic cards */
  .grid .g-col-md-6 h3 {
    color: #1a5276;
    font-size: 1.15rem;
    margin-top: 0;
  }