/* ===================================
   CDL Test Selection - Stylesheet
   ================================= */

/* ===================================
   Main Layout and Grid
   ================================= */
/* Main layout for desktop with sidebar */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  /*grid-template-columns: 1fr;*/
  gap: 30px;
  padding: 0 20px;
}

.main-content {
  min-width: 0; /* Prevents grid overflow */
}

/* ===================================
   State Header Section
   ================================= */
.state-header {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 40px;
}

.state-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.state-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Back Button Styling */
.back-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Test Categories Section
   ================================= */
.test-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-section {
  margin-bottom: 50px;
}

.category-title {
  color: #1976d2;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.category-description {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Test Grid and Options
   ================================= */
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.test-option {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

.test-option:hover {
  border-color: #1976d2;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(25, 118, 210, 0.2);
  text-decoration: none;
  color: inherit;
}

/* Test Option Components */
.test-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.test-option h3 {
  color: #1976d2;
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.test-description {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.test-count {
  background: linear-gradient(135deg, #f3f8ff 0%, #e8f2ff 100%);
  color: #1976d2;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  border: 2px solid #e3f2fd;
}

/* ===================================
   Required Badge Styling
   ================================= */
.required-badge {
  background: #ff4444;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: 15px;
  right: 15px;
}

/* ===================================
   Disclaimer Section
   ================================= */
.disclaimer {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.disclaimer-desktop {
  display: block;
}

.disclaimer-mobile {
  display: none;
}

/* ===================================
   Responsive Design - Tablet
   ================================= */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sidebar-ad {
    display: none;
  }
}

/* ===================================
   Responsive Design - Mobile
   ================================= */
@media (max-width: 768px) {
  .page-layout {
    padding: 15px;
  }

  .state-header h1 {
    font-size: 2rem;
  }

  .state-header p {
    font-size: 1rem;
  }

  .tests-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .test-categories {
    padding: 0;
  }

  /* Mobile disclaimer */
  .disclaimer-desktop {
    display: none;
  }

  .disclaimer-mobile {
    display: block;
  }

  .disclaimer {
    margin-top: 30px;
    padding: 15px;
    font-size: 0.7rem;
  }
}
