/* ============================================
   READING LESSON 5 — TRUE / FALSE / NOT GIVEN
   ============================================ */

.rl5-wrap { width: 100%; }

.rl5-inst-header { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 20px; margin-bottom: 18px; }
.rl5-inst-label  { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.rl5-inst-tips   { font-size: .9rem; color: rgba(255,255,255,0.5); font-style: italic; }

.rl5-score-banner { display: flex; align-items: center; gap: 16px; background: rgba(251,191,36,0.08); border: 1.5px solid rgba(251,191,36,0.3); border-radius: 12px; padding: 16px 22px; margin-bottom: 20px; flex-wrap: wrap; }
.rl5-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.rl5-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.rl5-score-label { font-size: 1.05rem; color: rgba(255,255,255,0.8); flex: 1; }

.rl5-content-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; position: relative; }
@media (max-width: 900px) { .rl5-content-wrap { grid-template-columns: 1fr; } }

.rl5-left-col { min-width: 0; }
.rl5-left-col::-webkit-scrollbar { width: 4px; }
.rl5-left-col::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.rl5-right-col { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0; min-width: 0; overflow: hidden; position: relative; }

/* Question exam box */
.rl5-exam-box { background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 18px 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }

/* Individual question item */
.rl5-q-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.rl5-q-item:last-child { border-bottom: none; padding-bottom: 4px; }

.rl5-q-body { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.rl5-q-num  { font-size: .82rem; font-weight: 800; color: var(--gold); background: rgba(251,191,36,0.12); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.rl5-q-text { font-size: 1.02rem; color: rgba(255,255,255,0.88); line-height: 1.65; }

/* Option buttons */
.rl5-q-options { display: flex; gap: 8px; flex-wrap: wrap; padding-left: 36px; }

.rl5-opt-btn {
  padding: 7px 14px; border-radius: 8px; font-size: .88rem; font-weight: 700; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.rl5-opt-btn:hover:not([disabled]) { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }
.rl5-opt-btn:disabled { cursor: default; }

/* Selected (before check) */
.rl5-opt-btn.rl5-opt-selected { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.6); color: #c4b5fd; }

/* After check */
.rl5-opt-btn.rl5-opt-correct  { background: rgba(74,222,128,0.15) !important; border-color: #4ade80 !important; color: #4ade80 !important; }
.rl5-opt-btn.rl5-opt-wrong    { background: rgba(248,113,113,0.15) !important; border-color: #f87171 !important; color: #f87171 !important; }
/* Reveal correct answer when student was wrong */
.rl5-opt-btn.rl5-opt-show-correct { background: rgba(74,222,128,0.1) !important; border-color: rgba(74,222,128,0.5) !important; color: rgba(74,222,128,0.75) !important; }

/* Feedback row */
.rl5-q-feedback { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; padding-left: 36px; flex-wrap: wrap; }
.rl5-fb-ok  { color: #4ade80; background: rgba(74,222,128,0.07); }
.rl5-fb-err { color: #f87171; background: rgba(248,113,113,0.07); }
.rl5-fb-icon { font-size: 1rem; }

/* Why button */
.rl5-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: 3px 10px; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .15s; margin-left: auto; }
.rl5-why-btn:hover { background: rgba(251,191,36,0.25); }

/* Check / Retry */
.rl5-check-btn { display: block; width: 100%; padding: 14px; margin-bottom: 8px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.rl5-check-btn:hover { opacity: .88; }
.rl5-retry-btn { display: block; width: 100%; padding: 13px; margin-top: 10px; background: transparent; color: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.rl5-retry-btn:hover { border-color: rgba(255,255,255,0.45); color: #fff; }

/* Exp box */
.rl5-exp-box { background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; color: rgba(255,255,255,0.85); line-height: 1.7; }

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

/* Passage panel */
.rl5-passage-title-bar { font-size: 1rem; font-weight: 700; color: var(--gold); padding: 14px 22px 12px; background: rgba(14,14,28,0.97); border-bottom: 1px solid rgba(255,255,255,0.07); position: sticky; top: 0; z-index: 2; }
.rl5-passage-card { font-size: 1.1rem; line-height: 2.15; color: rgba(255,255,255,0.88); padding: 20px 26px 32px; font-family: 'Georgia', serif; letter-spacing: 0.01em; }
.rl5-passage-card p { margin: 0 0 16px; }
.rl5-passage-title { font-size: 1.2rem; font-weight: 700; color: rgba(255,255,255,0.97); font-family: 'Inter', sans-serif; margin-bottom: 20px; }

/* Context highlights */
.rl5-ctx { background: rgba(251,191,36,0.1); border-radius: 4px; padding: 1px 3px; border-bottom: 2px solid rgba(251,191,36,0.3); transition: background .3s; }
.rl5-ctx.active { background: rgba(245,200,66,0.3); border-bottom-color: #f5c842; animation: rl5-pulse 1.4s ease-in-out; }
@keyframes rl5-pulse { 0%,100%{background:rgba(245,200,66,0.22);} 50%{background:rgba(245,200,66,0.5);} }
.rl5-no-hl .rl5-ctx { background: none; border-bottom: none; padding: 0; border-radius: 0; }

/* ══ INFO PAGES ══ */
.rl5-info-page { width: 100%; padding: 8px 0 48px; }
.rl5-info-badge { display: inline-block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--gold); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); border-radius: 20px; padding: 4px 14px; margin-bottom: 14px; }
.rl5-info-h2 { font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 16px; }
.rl5-info-lead { font-size: 1.18rem; color: rgba(255,255,255,0.82); line-height: 1.85; margin-bottom: 32px; width: 100%; }

.rl5-info-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 22px 28px; margin-bottom: 16px; }
.rl5-info-section-title { font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 14px; }
.rl5-info-section p { font-size: 1.05rem; color: rgba(255,255,255,0.82); line-height: 1.85; margin: 0 0 10px; }
.rl5-info-section p:last-child { margin-bottom: 0; }
.rl5-info-ol { margin: 0; padding-left: 22px; color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.95; }
.rl5-info-ol li { margin-bottom: 8px; }
.rl5-info-ul { margin: 0; padding-left: 0; color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.95; list-style: none; }
.rl5-info-ul li { margin-bottom: 8px; }

/* T/F/NG key cards on intro page */
.rl5-tfng-key-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 4px; }
@media (max-width: 700px) { .rl5-tfng-key-grid { grid-template-columns: 1fr; } }
.rl5-key-card { border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid; }
.rl5-key-true { background: rgba(74,222,128,0.07);  border-color: rgba(74,222,128,0.3); }
.rl5-key-false { background: rgba(248,113,113,0.07); border-color: rgba(248,113,113,0.3); }
.rl5-key-ng   { background: rgba(251,191,36,0.06);  border-color: rgba(251,191,36,0.3); }
.rl5-key-label { font-size: 1rem; font-weight: 800; letter-spacing: .5px; }
.rl5-key-true  .rl5-key-label { color: #4ade80; }
.rl5-key-false .rl5-key-label { color: #f87171; }
.rl5-key-ng    .rl5-key-label { color: var(--gold); }
.rl5-key-desc { font-size: .98rem; color: rgba(255,255,255,0.78); line-height: 1.7; }

/* Task preview */
.rl5-task-preview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 6px; }
@media (max-width: 700px) { .rl5-task-preview-grid { grid-template-columns: repeat(2,1fr); } }
.rl5-task-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border-radius: 12px; background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); }
.rl5-tp-num { width: 36px; height: 36px; border-radius: 50%; background: #7c3aed; color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.rl5-tp-label { font-size: .88rem; color: rgba(255,255,255,0.7); text-align: center; line-height: 1.4; }

/* Final tips grid */
.rl5-tips-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 4px; }
@media (max-width: 900px) { .rl5-tips-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .rl5-tips-grid { grid-template-columns: 1fr; } }
.rl5-tip-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.rl5-tip-icon { font-size: 1.6rem; line-height: 1; }
.rl5-tip-title { font-size: 1rem; font-weight: 700; color: var(--gold); line-height: 1.35; }
.rl5-tip-body { font-size: .95rem; color: rgba(255,255,255,0.75); line-height: 1.75; }