/* ===== EXAM HUB PAGE ===== */

/* Hero — matches syllabus page navy gradient */
.exam-hub-hero {
  background: linear-gradient(135deg, #12304a 0%, #1a3d5c 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}
.exam-hub-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.exam-hub-label {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: #fff;
}
.exam-hub-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.exam-hub-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
}

/* Container */
.exam-hub-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Tabs */
.exam-hub-tabs {
  display: flex;
  gap: 0;
  margin: 2.5rem 0 0;
  border-bottom: 2px solid #ddd9d2;
}
.exam-hub-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.exam-hub-tab:hover {
  color: #12304a;
}
.exam-hub-tab.active {
  color: #12304a;
  border-bottom-color: #0d7a6b;
}

/* Panels */
.exam-hub-panel {
  display: none;
  padding-top: 1.5rem;
}
.exam-hub-panel.active {
  display: block;
}
.panel-subtitle {
  color: #5a6a78;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

/* Mock Exam Cards */
.exam-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.exam-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #ddd9d2;
  border-radius: 16px;
  padding: 1.3rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
}
.exam-card:hover {
  border-color: #0d7a6b;
  box-shadow: 0 4px 20px rgba(18,48,74,0.10);
  transform: translateY(-2px);
}
.exam-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
.exam-card-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #12304a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.exam-card.disabled .exam-card-number {
  background: #94a3b8;
}
.exam-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #12304a;
}
.exam-card-body .exam-card-meta {
  font-size: 0.85rem;
  color: #5a6a78;
  margin-top: 0.15rem;
  display: block;
}

/* Badges */
.exam-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.exam-badge.live {
  background: #dcfce7;
  color: #166534;
}
.exam-badge.coming-soon {
  background: #fef3c7;
  color: #92400e;
}

/* Chapter-wise Section */
.chapter-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #12304a;
  margin: 0 0 0.3rem;
}
.chapter-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}
.chapter-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #ddd9d2;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  position: relative;
  transition: box-shadow 0.2s;
}
.chapter-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.chapter-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.chapter-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #12304a;
}
.chapter-card-body .chapter-card-meta {
  font-size: 0.8rem;
  color: #5a6a78;
  display: block;
  margin-top: 0.1rem;
}

/* Responsive */
@media (max-width: 640px) {
  .exam-hub-hero h1 { font-size: 1.8rem; }
  .exam-hub-hero { padding: 2.5rem 1rem 2rem; }
  .exam-card-grid,
  .chapter-card-grid { grid-template-columns: 1fr; }
  .exam-hub-tabs { gap: 0; }
  .exam-hub-tab { font-size: 0.9rem; padding: 0.75rem 0.5rem; }
}
