/* ============================================================
   READING LESSON 6 — YES / NO / NOT GIVEN  (rl6- prefix)
   ============================================================ */

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

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

.rl6-right-col { min-width: 0; }

.rl6-no-hl .rl6-ctx { background: none !important; box-shadow: none !important; }

/* ── Instruction header ──────────────────────────────────────── */
.rl6-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;
}
.rl6-inst-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.rl6-inst-tips { font-size: .92rem; color: rgba(255,255,255,0.75); line-height: 1.5; }

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

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

.rl6-q-body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.rl6-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;
}
.rl6-q-text { font-size: .95rem; color: rgba(255,255,255,0.88); line-height: 1.55; }

/* ── Option buttons ─────────────────────────────────────────── */
.rl6-q-options { display: flex; gap: 8px; flex-wrap: wrap; }

.rl6-opt-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.75);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
  white-space: nowrap;
}
.rl6-opt-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.rl6-opt-selected {
  background: rgba(99,179,237,0.18);
  border-color: rgba(99,179,237,0.7);
  color: #7ecfff;
}
.rl6-opt-correct {
  background: rgba(72,199,90,0.18) !important;
  border-color: rgba(72,199,90,0.8) !important;
  color: #5ee87a !important;
}
.rl6-opt-wrong {
  background: rgba(245,101,101,0.18) !important;
  border-color: rgba(245,101,101,0.8) !important;
  color: #f87171 !important;
}
.rl6-opt-show-correct {
  background: rgba(72,199,90,0.1) !important;
  border-color: rgba(72,199,90,0.5) !important;
  color: rgba(94,232,122,0.8) !important;
}
.rl6-opt-btn:disabled { cursor: default; }

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

/* ── Why? button ────────────────────────────────────────────── */
.rl6-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;
}
.rl6-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Check / Retry buttons ──────────────────────────────────── */
.rl6-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;
}
.rl6-check-btn:hover { opacity: .88; }

.rl6-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;
}
.rl6-retry-btn:hover { background: rgba(255,255,255,0.1); }

/* ── Score banner ───────────────────────────────────────────── */
.rl6-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;
}
.rl6-score-big  { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.rl6-score-denom { font-size: 1.3rem; color: rgba(255,255,255,0.45); }
.rl6-score-label { font-size: .92rem; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ── Passage ────────────────────────────────────────────────── */
.rl6-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;
}
.rl6-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);
}
.rl6-passage-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.rl6-passage-card p { margin: 0 0 14px; }
.rl6-passage-card p:last-child { margin-bottom: 0; }

/* ── Context highlights ─────────────────────────────────────── */
.rl6-ctx {
  background: rgba(251,191,36,0.12);
  border-radius: 4px;
  padding: 1px 3px;
  transition: background .3s, box-shadow .3s;
}
.rl6-ctx.active {
  background: rgba(251,191,36,0.28);
  box-shadow: 0 0 0 2px rgba(251,191,36,0.5);
  animation: rl6Pulse 1s ease 0.1s 2;
}
@keyframes rl6Pulse {
  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 ────────────────────────────────────────── */
.rl6-exp-box {
  margin-top: 14px;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .9rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}

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

/* ── Info / Intro page ──────────────────────────────────────── */
.rl6-info-page { width: 100%; padding: 10px 0 40px; }
.rl6-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;
}
.rl6-info-h2 { font-size: 1.9rem; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.rl6-info-lead { font-size: 1.05rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; }
.rl6-info-section { margin-bottom: 28px; }
.rl6-info-section-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.rl6-info-ol {
  padding-left: 22px;
  color: rgba(255,255,255,0.8);
  font-size: .97rem;
  line-height: 1.8;
}
.rl6-info-ol li { margin-bottom: 8px; }
.rl6-info-ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rl6-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);
}
.rl6-info-section p {
  font-size: .97rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0 0 12px;
}

/* ── Compare grid (T/F/NG vs Y/N/NG) ───────────────────────── */
.rl6-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rl6-compare-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 16px 18px;
}
.rl6-compare-highlight {
  border-color: rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.07);
}
.rl6-compare-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.rl6-compare-body { font-size: .92rem; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* ── YES / NO / NG key cards ─────────────────────────────────── */
.rl6-tfng-key-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.rl6-key-card {
  border-radius: 10px;
  padding: 18px 16px;
  border: 1px solid transparent;
}
.rl6-key-yes  { background: rgba(72,199,90,0.08);  border-color: rgba(72,199,90,0.25); }
.rl6-key-no   { background: rgba(245,101,101,0.08); border-color: rgba(245,101,101,0.25); }
.rl6-key-ng   { background: rgba(160,160,255,0.08); border-color: rgba(160,160,255,0.25); }
.rl6-key-label {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.rl6-key-yes .rl6-key-label  { color: #5ee87a; }
.rl6-key-no  .rl6-key-label  { color: #f87171; }
.rl6-key-ng  .rl6-key-label  { color: #a0a0ff; }
.rl6-key-desc { font-size: .88rem; color: rgba(255,255,255,0.72); line-height: 1.55; }

/* ── Task preview grid ──────────────────────────────────────── */
.rl6-task-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rl6-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;
}
.rl6-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;
}
.rl6-tp-label { font-size: .85rem; color: rgba(255,255,255,0.7); line-height: 1.3; }

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

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rl6-content-wrap { grid-template-columns: 1fr; }
  .rl6-tfng-key-grid  { grid-template-columns: 1fr; }
  .rl6-compare-grid   { grid-template-columns: 1fr; }
  .rl6-task-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .rl6-tips-grid      { grid-template-columns: 1fr; }
}