/* ============================================================
   READING LESSON 7 — MULTIPLE CHOICE  (rl7- prefix)
   Supports both single-answer (A-D) and choose-two (A-E)
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────────── */
.rl7-wrap { width: 100%; }

.rl7-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
}

.rl7-left-col { min-width: 0; }

.rl7-right-col { min-width: 0; }
.rl7-no-hl .rl7-ctx { background: none !important; box-shadow: none !important; }

/* ── Instruction header ──────────────────────────────────────── */
.rl7-inst-header {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.rl7-inst-label {
  font-size: .78rem; font-weight: 700; color: var(--gold);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px;
}
.rl7-inst-tips { font-size: .92rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ── Question items ─────────────────────────────────────────── */
.rl7-exam-box { display: flex; flex-direction: column; gap: 18px; }

.rl7-q-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px 16px 14px;
}

.rl7-q-body { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }

.rl7-q-num {
  min-width: 26px; height: 26px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rl7-q-text { font-size: .97rem; color: rgba(255,255,255,0.88); line-height: 1.55; font-weight: 600; }

/* ── Choose TWO hint row ────────────────────────────────────── */
.rl7-multi-hint {
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rl7-multi-counter {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  transition: background .2s, color .2s, border-color .2s;
}
.rl7-counter-full {
  background: rgba(99,179,237,0.15);
  border-color: rgba(99,179,237,0.5);
  color: #7ecfff;
}

/* ── Option buttons (shared) ────────────────────────────────── */
.rl7-q-options { display: flex; flex-direction: column; gap: 8px; }

.rl7-opt-btn {
  width: 100%; display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  font-size: .92rem; text-align: left; cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.rl7-opt-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.rl7-opt-key {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .14s, color .14s;
}
.rl7-opt-text { line-height: 1.45; }

/* Choose-two buttons get a square key to distinguish visually */
.rl7-opt-multi .rl7-opt-key { border-radius: 5px; }

/* Selected */
.rl7-opt-selected {
  background: rgba(99,179,237,0.12);
  border-color: rgba(99,179,237,0.6);
  color: #7ecfff;
}
.rl7-opt-selected .rl7-opt-key { background: rgba(99,179,237,0.3); color: #7ecfff; }

/* Correct */
.rl7-opt-correct {
  background: rgba(72,199,90,0.14) !important;
  border-color: rgba(72,199,90,0.7) !important;
  color: #5ee87a !important;
}
.rl7-opt-correct .rl7-opt-key { background: rgba(72,199,90,0.3) !important; color: #5ee87a !important; }

/* Wrong */
.rl7-opt-wrong {
  background: rgba(245,101,101,0.12) !important;
  border-color: rgba(245,101,101,0.7) !important;
  color: #f87171 !important;
}
.rl7-opt-wrong .rl7-opt-key { background: rgba(245,101,101,0.3) !important; color: #f87171 !important; }

/* Show correct when student got it wrong */
.rl7-opt-show-correct {
  background: rgba(72,199,90,0.07) !important;
  border-color: rgba(72,199,90,0.4) !important;
  color: rgba(94,232,122,0.75) !important;
}
.rl7-opt-show-correct .rl7-opt-key {
  background: rgba(72,199,90,0.18) !important;
  color: rgba(94,232,122,0.85) !important;
}
.rl7-opt-btn:disabled { cursor: default; }

/* ── Per-question feedback ──────────────────────────────────── */
.rl7-q-feedback {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px;
  font-size: .87rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.rl7-fb-ok  { background: rgba(72,199,90,0.1);  color: #5ee87a; border: 1px solid rgba(72,199,90,0.25); }
.rl7-fb-err { background: rgba(245,101,101,0.1); color: #f87171; border: 1px solid rgba(245,101,101,0.25); }
.rl7-fb-icon { font-weight: 800; font-size: 1rem; }

/* ── Why? button ────────────────────────────────────────────── */
.rl7-why-btn {
  background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.4);
  color: var(--gold); border-radius: 6px; padding: 2px 9px;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s; margin-left: auto;
}
.rl7-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Check / Retry buttons ──────────────────────────────────── */
.rl7-check-btn {
  margin-top: 20px; width: 100%; padding: 13px;
  background: var(--gold); color: #111; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.rl7-check-btn:hover { opacity: .88; }

.rl7-retry-btn {
  margin-top: 20px; width: 100%; padding: 11px;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.15); border-radius: 10px;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .15s;
}
.rl7-retry-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Score banner ───────────────────────────────────────────── */
.rl7-score-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.25);
  border-radius: 12px; padding: 16px 22px; margin-bottom: 20px;
}
.rl7-score-big   { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rl7-score-denom { font-size: 1.3rem; color: rgba(255,255,255,0.45); }
.rl7-score-label { font-size: .92rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ── Passage ────────────────────────────────────────────────── */
.rl7-passage-title-bar {
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,0.35);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.rl7-passage-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 22px 24px;
  font-size: .97rem; line-height: 1.85; color: rgba(255,255,255,0.8);
}
.rl7-passage-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.rl7-passage-card p { margin: 0 0 14px; }
.rl7-passage-card p:last-child { margin-bottom: 0; }

/* ── Context highlights ─────────────────────────────────────── */
.rl7-ctx {
  background: rgba(251,191,36,0.12); border-radius: 4px; padding: 1px 3px;
  transition: background .3s, box-shadow .3s;
}
.rl7-ctx.active {
  background: rgba(251,191,36,0.28); box-shadow: 0 0 0 2px rgba(251,191,36,0.5);
  animation: rl7Pulse 1s ease 0.1s 2;
}
@keyframes rl7Pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(251,191,36,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(251,191,36,0.15); }
}

/* ── Explanation box ────────────────────────────────────────── */
.rl7-exp-box {
  margin-top: 14px; padding: 14px 18px;
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 10px; font-size: .9rem; color: rgba(255,255,255,0.82); line-height: 1.65;
}

/* ── Arrow SVG ──────────────────────────────────────────────── */
.rl7-arrow-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible; z-index: 10;
}

/* ── Info / Intro page ──────────────────────────────────────── */
.rl7-info-page { width: 100%; padding: 10px 0 40px; }

.rl7-info-badge {
  display: inline-block; background: rgba(251,191,36,0.12); color: var(--gold);
  border: 1px solid rgba(251,191,36,0.3); border-radius: 20px;
  padding: 4px 14px; font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; margin-bottom: 14px;
}
.rl7-info-h2   { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.rl7-info-lead { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; }
.rl7-info-section { margin-bottom: 28px; }
.rl7-info-section-title {
  font-size: .8rem; font-weight: 700; color: var(--gold);
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px;
}
.rl7-info-ol { padding-left: 22px; color: rgba(255,255,255,0.8); font-size: .97rem; line-height: 1.8; }
.rl7-info-ol li { margin-bottom: 8px; }
.rl7-info-ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rl7-info-ul li {
  font-size: .95rem; color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.03); border-radius: 8px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.06);
}
.rl7-info-section p { font-size: .97rem; color: rgba(255,255,255,0.78); line-height: 1.7; margin: 0 0 12px; }

/* ── Format type cards ──────────────────────────────────────── */
.rl7-mc-types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rl7-mc-type-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 18px;
}
.rl7-mc-type-highlight { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.06); }
.rl7-mc-type-icon    { font-size: 1.4rem; margin-bottom: 8px; }
.rl7-mc-type-label   { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rl7-mc-type-example { font-size: .87rem; color: var(--gold); margin-bottom: 8px; font-style: italic; line-height: 1.55; }
.rl7-mc-type-desc    { font-size: .87rem; color: rgba(255,255,255,0.68); line-height: 1.55; }

/* ── Trap cards ─────────────────────────────────────────────── */
.rl7-trap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rl7-trap-card {
  background: rgba(245,101,101,0.06); border: 1px solid rgba(245,101,101,0.18);
  border-radius: 10px; padding: 16px;
}
.rl7-trap-label { font-size: .88rem; font-weight: 700; color: #f87171; margin-bottom: 8px; }
.rl7-trap-desc  { font-size: .87rem; color: rgba(255,255,255,0.7); line-height: 1.55; }

/* ── Task preview grid ──────────────────────────────────────── */
.rl7-task-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rl7-task-preview {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 10px;
}
.rl7-tp-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(251,191,36,0.15); color: var(--gold);
  font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rl7-tp-label { font-size: .85rem; color: rgba(255,255,255,0.75); line-height: 1.3; display: block; }
.rl7-tp-fmt {
  font-size: .75rem; color: rgba(255,255,255,0.38); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.rl7-tp-fmt-multi { color: var(--gold); opacity: .75; }

/* ── Final tips grid ────────────────────────────────────────── */
.rl7-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rl7-tip-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px 18px;
}
.rl7-tip-icon  { font-size: 1.5rem; margin-bottom: 10px; }
.rl7-tip-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rl7-tip-body  { font-size: .88rem; color: rgba(255,255,255,0.68); line-height: 1.65; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rl7-content-wrap      { grid-template-columns: 1fr; }
  .rl7-mc-types-grid     { grid-template-columns: 1fr; }
  .rl7-trap-grid         { grid-template-columns: 1fr; }
  .rl7-task-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .rl7-tips-grid         { grid-template-columns: 1fr; }
}