/* === Quiz tương tác cho Relearn Theme === */
.quiz-section {
  background: var(--MENU-SECTION-BG-color, #f8f9fa);
  border: 1px solid var(--MENU-SECTION-HR-color, #dee2e6);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.quiz-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--MAIN-TITLES-H2-TEXT-color, #333);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.quiz-question {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--MENU-SECTION-HR-color, #dee2e6);
}

.quiz-question:last-of-type {
  border-bottom: none;
  margin-bottom: .5rem;
}

.quiz-q {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .6rem;
  line-height: 1.5;
  color: var(--MAIN-TEXT-color, #333);
}

.quiz-options {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}

@media (max-width: 600px) {
  .quiz-options { grid-template-columns: 1fr; }
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  background: var(--MAIN-BG-color, #fff);
  border: 1px solid var(--MENU-SECTION-HR-color, #ccc);
  border-radius: 6px;
  padding: .5rem .75rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--MAIN-TEXT-color, #444);
  transition: border-color .15s, background .15s;
  margin: 0;
  user-select: none;
}

.quiz-option:hover {
  border-color: var(--MENU-HEADER-BG-color, #0074D9);
  background: rgba(0,116,217,.06);
}

.quiz-option.selected {
  border-color: var(--MENU-HEADER-BG-color, #0074D9);
  background: rgba(0,116,217,.1);
  color: var(--MENU-HEADER-BG-color, #0074D9);
}

.quiz-option.correct {
  border-color: #28a745 !important;
  background: rgba(40,167,69,.1) !important;
  color: #155724 !important;
}

.quiz-option.wrong {
  border-color: #dc3545 !important;
  background: rgba(220,53,69,.1) !important;
  color: #721c24 !important;
}

.opt-label {
  font-family: monospace;
  font-size: .8rem;
  font-weight: 700;
  min-width: 1.2rem;
  color: var(--MAIN-TEXT-color, #666);
  opacity: .7;
}

.quiz-option.correct .opt-label { opacity: 1; color: #155724; }
.quiz-option.wrong .opt-label { opacity: 1; color: #721c24; }

.quiz-check-btn {
  background: var(--MENU-HEADER-BG-color, #0074D9);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .5rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: .75rem;
  transition: opacity .2s;
}

.quiz-check-btn:hover { opacity: .85; }

.quiz-score {
  display: none;
  margin-top: 1rem;
  padding: .65rem 1rem;
  background: rgba(40,167,69,.1);
  border: 1px solid #28a745;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: #155724;
}

/* === ABC code blocks === */
pre.abc, .abc-example pre {
  border-left: 4px solid var(--MENU-HEADER-BG-color, #0074D9);
}
