:root {
  --main-blue: #0046AD;
  --soft-bg: #f4f7ff;
  --card-grad: linear-gradient(145deg,#f7fbff,#eef6ff);
  --correct: #28a745;
  --wrong: #dc3545;
}

body {
  background: var(--soft-bg);
  font-family: "Inter", system-ui, Arial, Helvetica, sans-serif;
  color: #0b2447;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.quiz-container {
  width: 100%;
  max-width: 700px;
}

/* Quiz Card */
.quiz-box {
  background: var(--card-grad);
  border-radius: 14px;
  padding: 25px 20px;
  margin-bottom: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quiz-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2,45,110,0.12);
}

/* Question */
h2 {
  font-weight: 600;
  color: var(--main-blue);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Option Buttons */
.option-btn {
  display: block;
  width: 100%;
  border-radius: 10px;
  padding: 12px 15px;
  font-weight: 600;
  background: #f3f7ff;
  border: 2px solid #cdd9f0;
  margin-bottom: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}
.option-btn:hover {
  background: #e8f0ff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,70,173,0.12);
}
.option-btn.correct {
  background: var(--correct);
  color: #fff;
  border-color: rgba(40,167,69,0.9);
}
.option-btn.wrong {
  background: var(--wrong);
  color: #fff;
  border-color: rgba(220,53,69,0.9);
}

/* Next Button */
button[id^="next-"] {
  border-radius: 12px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--main-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}
button[id^="next-"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,70,173,0.3);
}

/* Progress */
p[id^="progress-"] {
  margin-top: 15px;
  font-weight: 500;
  color: #0b2447;
}

/* Final Results */
#final-results {
  background: white;
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
#final-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--main-blue);
  margin-bottom: 15px;
}
#breakdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#breakdown li {
  font-weight: 500;
  margin-bottom: 8px;
}
#restart {
  margin-top: 20px;
  border-radius: 12px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--main-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
#restart:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,70,173,0.3);
}

/* Responsive */
@media (max-width: 576px) {
.quiz-container {
  background: #f4f7ff;
  padding: 30px;
  border-radius: 20px;
  font-family: Arial, sans-serif;
}

.quiz-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quiz-box:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

.question { font-weight:600; font-size:1.1rem; min-height: 3rem; }

.option-btn {
  text-align: left;
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  font-weight:500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.option-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,70,173,0.15); }
.option-btn.correct { background-color: #28a745; color: white; }
.option-btn.wrong { background-color: #dc3545; color: white; }

#final-results { text-align:center; margin-top:20px; }
  .option-btn {
    font-size: 0.95rem;
    padding: 10px;
  }
  h2 {
    font-size: 1rem;
  }
}
