
    /* labs.css - Complete styles for the labs page */
    main {
      margin-top: 100px;
      padding: 20px 0;
    }
    
    /* Labs Hero Section */
    .labs-hero {
      background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
      color: white;
      padding: 100px 0 60px;
      text-align: center;
      margin-top: 0;
    }

    .labs-hero h1 {
      font-weight: 700;
      margin-bottom: 20px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .labs-hero .lead {
      font-size: 1.5rem;
      margin-bottom: 15px;
      opacity: 0.9;
    }

    .labs-hero p {
      font-size: 1.1rem;
      opacity: 0.8;
      max-width: 600px;
      margin: 0 auto;
    }

    /* Counter Section */
    .counter-section {
      background: #f8f9fa;
      padding: 60px 0;
      text-align: center;
    }

    .counter-item {
      margin-bottom: 30px;
    }

    .counter-number {
      font-size: 3rem;
      font-weight: 700;
      color: #0d6efd;
      margin-bottom: 10px;
    }

    .counter-label {
      font-size: 1.1rem;
      color: #6c757d;
      font-weight: 500;
    }

    /* Labs Filter */
    .labs-filter {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 40px;
    }

    .filter-btn {
      padding: 10px 20px;
      border: 2px solid #0d6efd;
      background: transparent;
      color: #0d6efd;
      border-radius: 25px;
      font-weight: 500;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: #0d6efd;
      color: white;
    }

    /* Lab Cards - 60vh Height */
    .lab-card {
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
      margin-bottom: 30px;
      height: 60vh; /* 60% of viewport height */
      min-height: 400px;
      display: flex;
      flex-direction: column;
      position: relative;
    }

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

    .lab-img-container {
      height: 40%;
      background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 600;
      flex-shrink: 0;
      position: relative;
    }

    .department-badge {
      position: absolute;
      top: 15px;
      left: 15px;
      background: rgba(255, 255, 255, 0.9);
      color: #0d6efd;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .placeholder-img {
      text-align: center;
      padding: 20px;
    }

    .lab-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .lab-icon {
      font-size: 2rem;
      color: #0d6efd;
      margin-bottom: 12px;
      display: block;
    }

    .lab-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 12px;
      color: #212529;
      line-height: 1.3;
    }

    .lab-desc {
      color: #6c757d;
      margin-bottom: 15px;
      line-height: 1.5;
      font-size: 0.95rem;
      flex: 1;
      overflow: hidden;
    }

    .lab-features {
      list-style: none;
      padding: 0;
      margin-bottom: 20px;
      max-height: 120px;
      overflow-y: auto;
    }

    .lab-features li {
      padding: 6px 0;
      border-bottom: 1px solid #f1f1f1;
      position: relative;
      padding-left: 22px;
      font-size: 0.9rem;
      line-height: 1.4;
    }

    .lab-features li:before {
      content: "✓";
      color: #0d6efd;
      font-weight: bold;
      position: absolute;
      left: 0;
      font-size: 0.9rem;
    }

    .learn-more-btn {
      width: 100%;
      padding: 10px;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.3s ease;
      font-size: 0.95rem;
      margin-top: auto;
    }

    /* Card Hover Overlay */
    .card-hover-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(13, 110, 253, 0.95);
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 20px;
      opacity: 0;
      transition: opacity 0.3s ease;
      border-radius: 15px;
      text-align: center;
    }

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

    .hover-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 15px;
    }

    .hover-features {
      list-style: none;
      padding: 0;
      margin-bottom: 20px;
    }

    .hover-features li {
      padding: 8px 0;
      font-size: 0.95rem;
    }

    .hover-features li:before {
      content: "✓";
      margin-right: 8px;
      font-weight: bold;
    }

    /* Enhanced Lab Modal */
    .lab-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      z-index: 1050;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .lab-modal-content {
      background: white;
      border-radius: 15px;
      max-width: 1200px;
      width: 100%;
      height: 80vh; /* 80% of viewport height for mobile */
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      display: flex;
      flex-direction: column;
    }

    .lab-modal-header {
      padding: 15px 25px;
      border-bottom: 1px solid #dee2e6;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }

    .lab-modal-title {
      display: flex;
      align-items: center;
      gap: 15px;
      margin: 0;
      font-size: 1.4rem;
      font-weight: 600;
    }

    .lab-modal-icon {
      font-size: 1.6rem;
      color: #0d6efd;
    }

    .lab-modal-close {
      background: none;
      border: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: #6c757d;
      transition: color 0.3s ease;
    }

    .lab-modal-close:hover {
      color: #dc3545;
    }

    .lab-modal-body {
      padding: 0;
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    .lab-modal-gallery {
      width: 50%;
      padding: 20px;
      border-right: 1px solid #dee2e6;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .lab-modal-main-image {
      flex: 1;
      background-color: #f8f9fa;
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .lab-modal-main-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .lab-modal-thumbnails {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 5px 0;
    }

    .lab-modal-thumbnail {
      width: 70px;
      height: 50px;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }

    .lab-modal-thumbnail.active {
      border-color: #0d6efd;
    }

    .lab-modal-thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .lab-modal-info {
      width: 50%;
      padding: 20px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    /* Lab Toggle Navigation - Top of Info Section */
    .lab-toggle-nav-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid #dee2e6;
    }

    .lab-toggle-buttons {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .lab-toggle-btn {
      background: #f8f9fa;
      color: #495057;
      border: 1px solid #dee2e6;
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .lab-toggle-btn:hover {
      background: #e9ecef;
    }

    .lab-toggle-btn.active {
      background: #0d6efd;
      color: white;
      border-color: #0d6efd;
    }

    .lab-current-info {
      font-size: 1.1rem;
      font-weight: 600;
      color: #0d6efd;
    }

    .lab-modal-description {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 20px;
      color: #495057;
    }

    .lab-modal-features {
      margin-bottom: 20px;
    }

    .lab-modal-features h5 {
      color: #0d6efd;
      margin-bottom: 12px;
      font-weight: 600;
      font-size: 1.1rem;
    }

    .lab-modal-features ul {
      padding-left: 18px;
    }

    .lab-modal-features li {
      margin-bottom: 6px;
      line-height: 1.5;
      font-size: 0.95rem;
    }

    .lab-modal-additional {
      margin-bottom: 20px;
    }

    .lab-modal-additional h5 {
      color: #0d6efd;
      margin-bottom: 12px;
      font-weight: 600;
      font-size: 1.1rem;
    }

    .lab-modal-additional p {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 10px;
    }

    /* Lab Toggle Navigation - Bottom */
    .lab-toggle-nav-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
      padding: 15px 20px;
      border-top: 1px solid #dee2e6;
      background: #f8f9fa;
      border-radius: 0 0 15px 15px;
    }

    .lab-nav-btn {
      background: #0d6efd;
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .lab-nav-btn:hover {
      background: #0a58ca;
    }

    .lab-nav-btn:disabled {
      background: #6c757d;
      cursor: not-allowed;
    }

    .lab-modal-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 20px;
    }

    .lab-modal-download {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.9rem;
    }

    /* Gallery Section */
    .gallery-section {
      background: #f8f9fa !important;
    }

    .gallery-item {
      position: relative;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
    }

    .gallery-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .gallery-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.8));
      color: white;
      padding: 15px;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }

    .gallery-item:hover .gallery-overlay {
      transform: translateY(0);
    }

    .gallery-category {
      font-size: 0.8rem;
      opacity: 0.8;
      margin-bottom: 5px;
    }

    .gallery-title {
      font-size: 1.1rem;
      font-weight: 600;
    }

    /* Section Title */
    .section-title {
      font-weight: 700;
      color: #212529;
      margin-bottom: 15px;
      position: relative;
    }

    .section-title:after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: #0d6efd;
      border-radius: 2px;
    }

    /* Responsive Design */
    @media (min-width: 768px) {
      .lab-modal-content {
        height: 60vh; /* 60% of viewport height for desktop */
      }
      
      .lab-img-container {
        height: 40%;
      }
      
      .lab-title {
        font-size: 1.5rem;
      }
      
      .lab-desc {
        font-size: 1rem;
      }
      
      .lab-features li {
        font-size: 0.95rem;
      }
    }

    @media (max-width: 767px) {
      .labs-hero {
        padding: 80px 0 40px;
      }
      
      .labs-hero h1 {
        font-size: 2.2rem;
      }
      
      .labs-filter {
        gap: 5px;
      }
      
      .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
      }
      
      .lab-modal-content {
        margin: 10px;
        height: 80vh; /* 80% of viewport height for mobile */
        flex-direction: column;
      }
      
      .lab-modal-header {
        padding: 12px 15px;
      }
      
      .lab-modal-body {
        flex-direction: column;
        overflow-y: auto;
      }
      
      .lab-modal-gallery {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        height: 40%;
        padding: 15px;
      }
      
      .lab-modal-info {
        width: 100%;
        height: 60%;
        padding: 15px;
      }
      
      .lab-modal-actions {
        flex-direction: column;
      }
      
      .counter-number {
        font-size: 2.5rem;
      }
      
      .lab-toggle-nav-top,
      .lab-toggle-nav-bottom {
        flex-direction: column;
        gap: 10px;
      }
      
      .lab-toggle-buttons {
        justify-content: center;
      }
      
      .lab-nav-btn {
        width: 100%;
        justify-content: center;
      }
      
      .lab-card {
        height: 60vh;
        min-height: 350px;
      }
    }

    /* Animation for counter */
    @keyframes countUp {
      from {
        transform: translateY(20px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .counter-number.animated {
      animation: countUp 1s ease-out;
    }

    /* Lab Features Section Styling */
.lab-feature {
  position: relative;
  overflow: hidden;
}

.lab-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0d6efd, transparent);
}

.feature-card {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(13, 110, 253, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.05), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(13, 110, 253, 0.3);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.feature-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0a58ca, #0d6efd);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper::after {
  opacity: 1;
  animation: pulse 2s infinite;
}

.feature-icon {
  font-size: 2rem;
  color: white;
  z-index: 2;
}

.feature-card h4 {
  color:white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.feature-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #0d6efd;
  transition: width 0.3s ease;
}

.feature-card:hover h4::after {
  width: 60px;
}

.feature-card p {
  color: white;
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Animation for icon pulse effect */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .feature-card {
    padding: 2rem 1rem;
    margin-bottom: 1rem;
  }
  
  .feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 1.25rem;
  }
  
  .feature-icon {
    font-size: 1.75rem;
  }
  
  .feature-card h4 {
    font-size: 1.1rem;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .lab-feature .row {
    margin: 0 -10px;
  }
  
  .lab-feature .col-md-4 {
    padding: 0 10px;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .lab-feature {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  }
  
  .feature-card {
    background: #216ef3;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .feature-card h4 {
    color: #e2e8f0;
  }
  
  .feature-card p {
    color: #a0aec0;
  }
}

/* Print styles */
@media print {
  .feature-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  
  .feature-card:hover {
    transform: none;
  }
}