/* ===============================
   BASE
================================ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto !important;
  background: #BCB7B7E6;
  color: #ffffff;
  font-family: Poppins, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   SUBJECT HEADING
================================ */
.subject-heading-card {
  background: #333;
  border: 4px solid #FF006E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 30px auto;
  max-width: 750px;
  min-height: 110px;
}

.subject-heading-card h2 {
  color: #fff;
  font-size: 36px;
  margin: 0;
  line-height: 1.3;
}

/* ===============================
   QUIZ CONTAINER
================================ */
.quiz-container {
  max-width: 750px;
  margin: auto;
  font-family: Poppins, sans-serif;
  min-height: 1250px;
}

.quiz-card {
  background: #333;
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  min-height: 320px;
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* ===============================
   OPTIONS
================================ */
.options {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.options button {
  width: 100%;
  background: #555;
  color: #fff;
  border: 2px solid transparent;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font: inherit;
}

.options button:hover {
  background: #666;
}

.options button:disabled {
  cursor: default;
}

.opt-label {
  font-weight: 700;
  flex-shrink: 0;
}

/* ===============================
   ANSWER STATES
================================ */
.correct-option {
  background: #28a745 !important;
  border: 2px solid #28a745 !important;
  color: #fff;
}

.wrong-option {
  background: #dc3545 !important;
  border: 2px solid #dc3545 !important;
  color: #fff;
}

/* ===============================
   ANSWER BOX
================================ */
.answer-box {
  display: none;
  margin-top: 18px;
  padding: 18px;
  background: #28a745;
  border-left: 4px solid #FF006E;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.answer-box p {
  margin: 0 0 10px;
}

.answer-box p:last-child {
  margin-bottom: 0;
}

.answer-heading {
  font-weight: 700;
  text-decoration: underline;
  margin-top: 12px !important;
  margin-bottom: 8px !important;
}

/* ===============================
   PAGINATION
================================ */
.pagination-card {
  max-width: 750px;
  margin: 30px auto 50px;
  background: #333;
  padding: 18px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.nav-btn {
  background: #FF006E;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  font: inherit;
  line-height: 1.2;
}

.nav-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===============================
   GO TO PAGE
================================ */
.goto-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
}

.goto-box input {
  width: 60px;
  min-height: 36px;
  padding: 6px;
  border-radius: 6px;
  border: none;
  text-align: center;
  font: inherit;
}

/* ===============================
   TABLET
================================ */
@media (max-width: 991px) {
  .subject-heading-card {
    padding: 24px;
    min-height: 100px;
  }

  .subject-heading-card h2 {
    font-size: 30px;
  }

  .quiz-container {
    min-height: 1100px;
  }

  .quiz-card {
    min-height: 290px;
  }

  .pagination-card {
    min-height: 74px;
  }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
  .subject-heading-card {
    margin: 20px auto;
    padding: 20px;
    min-height: 88px;
  }

  .subject-heading-card h2 {
    font-size: 26px;
  }

  .quiz-container {
    min-height: 900px;
  }

  .quiz-card {
    padding: 18px;
    min-height: 250px;
  }

  .question-text {
    font-size: 17px;
  }

  .pagination-card {
    flex-direction: column;
    gap: 12px;
    min-height: 140px;
  }

  .nav-btn {
    width: 100%;
  }
}

/* ===============================
   WHITE PAGE WRAPPER
================================ */
.quiz-page-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px 15px 10px;
  margin: 20px auto;
  max-width: 780px;
}

/* ===============================
   FLOATING HEADING
================================ */
.subject-heading-card {
  position: relative;
  top: -15px;
  margin-bottom: 10px;
}

/* ===============================
   SEPARATE QUESTION CARDS
================================ */
.quiz-card {
  margin-bottom: 20px;
}

