:root {
      --primary: #4361ee;
      --secondary: #3f37c9;
      --accent: #4cc9f0;
      --light: #f8f9fa;
      --dark: #212529;
      --gray: #6c757d;
      --light-gray: #e9ecef;
      --transition: all 0.3s ease;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      color: var(--dark);
      line-height: 1.6;
      background-color: #f7f9fc;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, h5 {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Top Bar */
    .topbar {
      background: var(--light-gray);
      padding: 0.5rem 0;
      font-size: 0.875rem;
    }

    .topbar-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .social-links {
      display: flex;
      gap: 1rem;
    }

    .social-links a {
      color: var(--gray);
      transition: var(--transition);
    }

    .social-links a:hover {
      color: var(--primary);
    }

    /* Navbar */
    .navbar {
      padding: 1rem 0;
      position: sticky;
      top: 0;
      background: white;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .navbar-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .navbar-brand img {
      height: 75px;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      gap: 0.75rem;
      margin: 0;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      text-decoration: none;
      color: var(--dark);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      border-radius: 8px;
      transition: var(--transition);
      font-size: 0.95rem;
    }

    .nav-link i {
      font-size: 0.85rem;
      opacity: 0.8;
    }

    .nav-link:hover, .nav-link.active {
      background: rgba(67, 97, 238, 0.1);
      color: var(--primary);
    }

    .nav-link:hover i, .nav-link.active i {
      opacity: 1;
    }

    .mobile-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--dark);
    }

    /* Hero Section */
    .page-header {
      background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
      color: white;
      padding: 3rem 0;
      text-align: center;
    }

    .page-header h1 {
      font-size: 2.25rem;
      margin-bottom: 0.5rem;
    }

    .page-header p {
      opacity: 0.9;
      max-width: 700px;
      margin: 0 auto;
    }

    /* Tests Grid */
    .tests-section {
      padding: 3rem 0 4rem;
    }

    .tests-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
    }

    .test-card {
      background: white;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,0.06);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .test-card:hover {
      transform: translateY(-6px) scale(1.01);
      box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    }

    .card-img-top {
      height: 200px;
      object-fit: cover;
      width: 100%;
    }

    .card-body {
      padding: 1.25rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

    .card-title {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--secondary);
    }

    .card-text {
      font-size: 0.95rem;
      color: var(--gray);
      line-height: 1.5;
      margin-bottom: 1rem;
      flex-grow: 1;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.625rem 1.25rem;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
      font-size: 0.9rem;
      text-align: center;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
      border: none;
    }

    .btn-primary:hover {
      background: var(--secondary);
      transform: translateY(-2px);
    }

    /* Footer */
    .footer {
      background: var(--dark);
      color: white;
      padding: 3rem 0 1.5rem;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .footer-col h4 {
      margin-bottom: 1.25rem;
      position: relative;
      padding-bottom: 0.5rem;
      font-size: 1.2rem;
    }

    .footer-col h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: var(--accent);
    }

    .footer-links {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 0.5rem;
    }

    .footer-links a {
      color: #adb5bd;
      text-decoration: none;
      transition: var(--transition);
      font-size: 0.9rem;
    }

    .footer-links a:hover {
      color: white;
      padding-left: 3px;
    }

    .contact-info {
      list-style: none;
    }

    .contact-info li {
      display: flex;
      margin-bottom: 0.75rem;
      font-size: 0.9rem;
    }

    .contact-info i {
      margin-right: 0.75rem;
      color: var(--accent);
      min-width: 18px;
    }

    .social-footer {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .social-footer a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 35px;
      height: 35px;
      border-radius: 50%;
      background: rgba(255,255,255,0.1);
      color: white;
      transition: var(--transition);
      font-size: 0.8rem;
    }

    .social-footer a:hover {
      background: var(--primary);
      transform: translateY(-2px);
    }

    .copyright {
      text-align: center;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      color: #adb5bd;
      font-size: 0.85rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .mobile-toggle {
        display: block;
      }

      .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        gap: 0.5rem;
      }

      .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
      }

      .nav-link {
        padding: 0.75rem;
        justify-content: flex-start;
      }

      .page-header {
        padding: 2rem 0;
      }

      .page-header h1 {
        font-size: 1.75rem;
      }

      .tests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
    }

    @media (max-width: 480px) {
      .page-header h1 {
        font-size: 1.5rem;
      }
      
      .page-header p {
        font-size: 0.9rem;
      }
      
      .card-title {
        font-size: 1rem;
      }
      
      .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
}

/* ===== FILTER BAR STYLES ===== */
.filter-bar {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: sticky;
  top: 110px;
  z-index: 900;
  border: 1px solid var(--light-gray);
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Custom Select Dropdown */
.filter-dropdown {
  position: relative;
}

.custom-select {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 1.5rem;
  border: 2px solid var(--light-gray);
  border-radius: 14px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  appearance: none;
  transition: var(--transition);
  cursor: pointer;
  background-image: none;
  padding-right: 2.5rem;
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
  font-size: 0.9rem;
}

/* Search Input */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  padding-right: 2.75rem;
  border: 2px solid var(--light-gray);
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.search-input::placeholder {
  color: var(--gray);
  opacity: 1;
}

.clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.clear-btn:hover {
  color: var(--primary);
  background: rgba(67, 97, 238, 0.1);
}

/* Clear Filters Button */
.btn-clear {
  background: rgba(108, 117, 125, 0.08);
  color: var(--gray);
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  min-width: 90px;
  justify-content: center;
}

.btn-clear:hover {
  background: rgba(108, 117, 125, 0.15);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-clear:active {
  transform: translateY(0);
}

/* Results Counter */
.results-counter {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--light-gray);
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.results-counter span {
  color: var(--secondary);
  font-weight: 700;
}

/* Empty State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(248, 249, 250, 0.7);
  border-radius: 16px;
  margin: 1.5rem 0;
}

.no-results i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-bar {
    padding: 1.25rem;
    top: 70px;
  }
  
  .filter-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .btn-clear {
    width: 100%;
    padding: 0.85rem;
    min-width: auto;
  }
  
  .results-counter {
    padding-top: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .filter-bar {
    padding: 1rem;
    border-radius: 14px;
  }
  
  .filter-label {
    font-size: 0.9rem;
  }
  
  .custom-select, .search-input {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  .select-icon {
    right: 0.75rem;
  }
  
  .search-input {
    padding-right: 2.5rem;
  }
  
  .clear-btn {
    right: 0.5rem;
    width: 22px;
    height: 22px;
  }
  
  .btn-clear {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .results-counter span {
    font-size: 1.1rem;
  }
}