/* ===========================
   READING QUIZ MAIN WRAPPER
=========================== */
.rq-quiz {
  background: #4f9a95;
  padding: 70px 40px 120px;
  color: #07131a;
  font-family: "Poppins", Arial, sans-serif;
  box-sizing: border-box;
}
img.rq-rocket {
    height: 200px;
}

.rq-result-extra {
    text-align: left;
}
.rq-result-guide{
    text-align: left;
}
/* ===========================
   HEADING
=========================== */
.rq-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 18px;
  color: #0e1213;
  letter-spacing: 0.2px;
}

.rq-audio-toggle.rq-needs-gesture {
  outline: 2px dashed #f39c12;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.12);
}

/* ===========================
   PROGRESS SECTION
=========================== */
.rq-progress-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 22px;
}

.rq-progress-counter {
  font-size: 20px;
  font-weight: 600;
  color: #07131a;
  margin-bottom: 20px;
}

.rq-progress-counter p {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  /*margin: 0;*/
  /*padding: 0;*/
}

.rq-progress-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rq-dot {
  width: 40px;
  height: 10px;
  border-radius: 10px;
  background: #dfecec;
  display: inline-block;
  opacity: 0.9;
}

.rq-dot.active {
  background: #07131a;
}

/* ===========================
   CARD
=========================== */
.rq-card {
  background: #edfdfc;
  border-radius: 14px;
  padding: 28px;
  margin: 0 auto;
  max-width: 1180px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  color: #07131a;
  position: relative;
}

/* ===========================
   QUESTION TOP SECTION
=========================== */
.rq-qtop {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rq-qnum {
  font-weight: 700;
  font-size: 20px;
  margin-right: 8px;
  color: #07131a;
}

.rq-qtext {
  font-size: 22px;
  line-height: 1.3;
  flex: 1;
}

.rq-qimage {
  max-width: 160px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-left: 16px;
}

/* ===========================
   AUDIO ROW
=========================== */
.rq-audio-row {
  position: absolute;
  top: -58px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rq-audio-toggle {
  background: transparent !important;
  border: none !important;
  font-size: 26px;
  cursor: pointer;
  color: #000 !important; /* pure black icon */
  transition: transform 0.2s ease;
  line-height: 1;
}

.rq-audio-toggle:hover {
  background: transparent !important;
  transform: scale(1.1);
}

/* ===========================
   AUDIO ROW DESKTOP ALIGNMENT
=========================== */
@media (min-width: 992px) {
  .rq-audio-row {
    right: 25px;
  }
}

/* ===========================
   OPTIONS
=========================== */
.rq-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rq-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rq-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.rq-option input {
  display: none;
}

.rq-opt-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #073b5a;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 22px;
}

.rq-option.selected {
  background: #eaf7f6;
  border-color: #0b6b62;
}

.rq-option.selected .rq-opt-bullet {
  background: #c36;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.rq-opt-text {
  font-size: 18px;
  font-weight: 600;
  color: #07202a;
}

.rq-opt-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  margin-left: auto;
  border-radius: 6px;
}

/* ===========================
   CONTROLS
=========================== */
.rq-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.rq-prev,
.rq-next {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.rq-prev {
  background: #11a63a;
  color: #fff;
}

.rq-next {
  background: #11a63a;
  color: #fff;
}
.rq-next:hover {
   background: #c36;
  outline: 2px solid blue;
}
.rq-prev:hover {
  color: #fff;
  background: blue;
  outline: 2px solid #c36;
}

.rq-next[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===========================
   RESULT
=========================== */
#rq-score {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

#rq-message {
  font-size: 18px;
  margin-bottom: 12px;
}

.rq-wrong-item {
  border-top: 1px dashed #eaeaea;
  padding: 12px 0;
}

.rq-wrong-item .label {
  font-weight: 700;
  margin-right: 8px;
}

#rq-restart {
  margin-top: 12px;
  background: #0b6b62;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .rq-qtop {
    flex-direction: column;
  }
  
  .rq-progress-counter {
    margin-bottom: 50px;
}

  .rq-qimage {
    margin-left: 0;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
  }

  .rq-audio-row {
    position: absolute;
    margin-top: 10px;
    justify-content: flex-start;
  }

  .rq-progress-dots {
    gap: 6px;
  }

  .rq-dot {
    width: 20px;
    height: 8px;
  }
}

/* Tablets and below (≤768px) */
@media (max-width: 768px) {
  .rq-quiz {
    padding: 60px 20px 80px;
  }

.rq-result-title {
  font-size: 28px;
}
  .rq-title {
    font-size: 28px;
  }

  .rq-card {
    padding: 20px;
  }

  .rq-qtext {
    font-size: 20px;
  }

  .rq-option {
    padding: 10px 14px;
  }

  .rq-opt-text {
    font-size: 16px;
  }

  .rq-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .rq-prev,
  .rq-next {
    width: 100%;
    text-align: center;
  }

  .rq-audio-row {
    position: absolute;
    margin-bottom: 12px;
  }
}

/* Mobile phones (≤480px) */
@media (max-width: 480px) {
    .rq-audio-row {
    top: -56px;
    right: 0px;
    gap: 0px;
}

.rq-result-title {
  font-size: 25px;
}
  .rq-quiz {
    padding: 60px 16px 60px;
  }

  .rq-title {
    font-size: 24px;
  }

  .rq-progress-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .rq-progress-counter {
    font-size: 16px;
    margin-bottom: 50px;
  }

  .rq-dot {
    width: 10px;
    height: 6px;
  }

  .rq-qtext {
    font-size: 18px;
  }

  .rq-option {
    flex-direction: row;
    gap: 10px;
  }

  .rq-opt-text {
    font-size: 15px;
  }

  .rq-opt-image {
    width: 46px;
    height: 46px;
  }

  .rq-controls {
    flex-direction: column;
    gap: 10px;
  }

  .rq-prev,
  .rq-next {
    padding: 10px;
    font-size: 15px;
  }

  #rq-score {
    font-size: 22px;
  }

  #rq-message {
    font-size: 16px;
  }
}

/* ===========================
   RESULT SCREEN NEW DESIGN
=========================== */
.rq-result-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #4f9a95;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.rq-result-title {
  position: absolute;
  top: 10px;
  width: 100%;
  text-align: center;
  font-size: 36px;
  color: #0e1213;
  font-weight: 500;
}

.rq-result-box {
  background: #e9f8f6;
  border-radius: 12px;
  padding: 25px 25px;
  max-width: 550px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.rq-result-heading {
  color: #0b6b62;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rq-result-message {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 14px;
}

.rq-result-score {
  font-size: 18px;
  font-weight: 700;
  color: #e32626;
}

.rq-btn,
.rq-app-btn {
  background: #0b6b62;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
  text-decoration: none;
  display: inline-block;
}

.rq-btn:hover,
.rq-app-btn:hover {
  background: #09564f;
}

.rq-footer-logo img {
  width: 200px;
}

/* ===========================
   DESKTOP ADJUSTMENT
=========================== */
@media (min-width: 992px) {
  .rq-progress-counter {
    text-align: left;
    max-width: 1180px;
    margin: 0 auto 20px;
    padding-left: 20px;
  }

  .rq-progress-counter p {
    text-align: left;
    margin-top: 6px;
  }
}
