/* =========================================================
   1. Smooth Infinite Sliding Subject Carousel
========================================================= */
.subject-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.subject-carousel-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: smoothScroll 28s linear infinite;
}

.subject-carousel-wrapper:hover .subject-carousel-track {
  animation-play-state: paused; /* Hover par scroll rukega */
}

@keyframes smoothScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mini Cards */
.subject-card {
  width: 220px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: block;
}

.subject-card:hover, .subject-card.active {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 18px rgba(11, 123, 193, 0.15);
}

.subject-card-top {
  height: 52px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.subject-card:nth-child(even) .subject-card-top {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.subject-card-body {
  padding: 0.65rem 0.95rem;
}

.subject-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.subject-card-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   2. Hero Gradient Banner
========================================================= */
.practice-banner {
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 100%);
  border-radius: 20px;
  padding: 2.2rem 2.5rem;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.22);
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.practice-banner-title {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  font-weight: 800;
}

.practice-banner-desc {
  font-size: 0.92rem;
  opacity: 0.95;
  margin: 0.4rem 0 0.8rem 0;
}

.practice-banner-badge {
  font-weight: 700;
  font-size: 1.05rem;
}

/* =========================================================
   3. MCQ Question & State Styling (Figma Match)
========================================================= */
.question-block {
  margin-bottom: 2.4rem;
}

.question-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.question-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 1rem;
}

.mcq-option-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mcq-option-wrapper:hover:not(.locked) {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.mcq-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 0.85rem;
  background-color: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mcq-option-text {
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
}

/* Correct Answer Design (Green Border + Green Badge) */
.mcq-option-wrapper.correct-answer {
  border-color: #22c55e !important;
  background-color: #f0fdf4 !important;
}

.mcq-option-wrapper.correct-answer .mcq-badge {
  background-color: #22c55e !important;
  color: #ffffff !important;
}

.mcq-option-wrapper.correct-answer .mcq-option-text {
  color: #15803d !important;
  font-weight: 600;
}

/* Wrong Answer Design (Red Border + Red Badge) */
.mcq-option-wrapper.wrong-answer {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.mcq-option-wrapper.wrong-answer .mcq-badge {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

.mcq-option-wrapper.wrong-answer .mcq-option-text {
  color: #b91c1c !important;
  font-weight: 600;
}

/* Lock other options after clicking */
.mcq-option-wrapper.locked {
  pointer-events: none;
  cursor: default;
}