/* ===================================
   CDL Test List - 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;
  gap: 30px;
  padding: 0 20px;
}

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

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

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

.test-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 25px;
  margin-bottom: 20px;
  display: inline-block;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* ===================================
   Test Container and Introduction
   ================================= */
.test-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.test-intro {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.test-intro h2 {
  color: #1976d2;
  margin-bottom: 15px;
}

/* ===================================
   Test Statistics Section
   ================================= */
.test-stats {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1976d2;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* ===================================
   Test List Section
   ================================= */
.test-list {
  display: grid;
  gap: 20px;
}

.test-item {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

/* Test Information */
.test-info h3 {
  color: #1976d2;
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
}

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

.test-details {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

/* ===================================
   Start Button Styling
   ================================= */
.start-btn {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.4);
  color: white;
  text-decoration: none;
}

/* ===================================
   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;
  }

  .test-header h1 {
    font-size: 1.8rem;
  }

  .test-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .test-container {
    padding: 0;
  }

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

  .disclaimer-mobile {
    display: block;
  }

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