/* Trang bài học, lộ trình và đề thi thử */
.lesson-main { max-width: 980px; padding: 10px 0 20px; line-height: 1.6; }
.lesson-main h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 6px 0 10px; color: var(--navy-ink); letter-spacing: -.5px; }
.lesson-main h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 34px 0 12px; color: var(--navy-ink); }
.lesson-main h3 { font-size: 18px; margin: 18px 0 8px; color: var(--navy-ink); }
.lesson-main p { margin: 0 0 10px; font-size: 17px; }
.lead { color: var(--muted); font-size: 18px !important; }
.crumbs { font-size: 14px; color: var(--muted); margin: 6px 0 12px; }
.crumbs a { color: #1f6f8b; }
.crumbs a:hover { text-decoration: underline; }

.lesson-hero { border-radius: var(--radius); padding: 34px 32px; margin-bottom: 10px; }
.lesson-hero.subject--toan { background: linear-gradient(160deg, #e9ddfc, #e1d3fe); }
.lesson-hero p { font-size: 18px; color: #1d2747; }
.lesson-hero .btn { font-size: 17px; padding: 12px 24px; }
.btn-ghost { background: #fff; color: var(--navy-ink); border-color: #d6deea; }

.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid #e3e8f0; }
table.grid { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
table.grid th { background: var(--navy-ink); color: #fff; text-align: left; padding: 10px 12px; font-weight: 600; }
table.grid td { padding: 10px 12px; border-top: 1px solid #e9edf3; vertical-align: top; }
table.grid tr:nth-child(even) td { background: #f7f9fc; }

.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.week-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e3e8f0;
  box-shadow: 0 4px 14px rgba(14,47,94,.06); transition: transform .15s, box-shadow .15s; }
.week-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,47,94,.12); }
.week-card strong { color: var(--navy-ink); font-size: 16px; line-height: 1.35; }
.week-no { font-size: 13px; font-weight: 700; color: #6b4fd8; text-transform: uppercase; letter-spacing: .4px; }
.week-tag { font-size: 13px; color: var(--muted); }
.steps { padding-left: 22px; font-size: 17px; }
.steps li { margin-bottom: 6px; }

.week-head { margin-bottom: 8px; }
.note { background: #fff8e6; border: 1px solid #f3dfa6; border-radius: 14px; padding: 12px 16px; margin: 14px 0; font-size: 16px; }
.session { background: #fff; border: 1px solid #e3e8f0; border-radius: 20px; padding: 6px 22px 16px; margin: 18px 0; box-shadow: 0 4px 14px rgba(14,47,94,.05); }
.session h2 { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.session.check { border-color: #bfe9d8; background: #f6fdf9; }
.badge { display: inline-block; font-size: 14px; font-weight: 700; background: var(--mint-soft); color: #0b3b4a; padding: 4px 10px; border-radius: 999px; }
.task { color: var(--muted); }
.example { background: #f4f1fe; border-radius: 14px; padding: 6px 16px 10px; }
.exercises { padding-left: 22px; margin: 0; }
.exercises li { margin-bottom: 12px; }
.exercises li p { margin-bottom: 4px; }
.lvl { display: inline-block; font-size: 12px; font-weight: 700; color: #6b4fd8; background: #efe9ff; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
details summary { cursor: pointer; color: #1f6f8b; font-weight: 600; font-size: 15px; width: fit-content; }
details summary:hover { text-decoration: underline; }
details[open] > p { background: #eefaf5; border-radius: 10px; padding: 8px 12px; margin-top: 6px; }

.timer { position: sticky; top: 84px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--navy-ink); color: #fff; border-radius: 16px; padding: 10px 16px; margin: 14px 0; width: fit-content; }
.timer .time { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 92px; }
.timer.done .time { color: #ffb4b4; }
.q { background: #fff; border: 1px solid #e3e8f0; border-radius: 18px; padding: 4px 20px 10px; margin: 14px 0; }
.q h2 { font-size: 20px; margin-top: 14px; }
.answers { background: #f6fdf9; border: 1px solid #bfe9d8; border-radius: 18px; padding: 14px 20px; margin: 18px 0; }
.answers[open] p { font-size: 16px; }

.pager { display: flex; justify-content: space-between; gap: 10px; margin: 28px 0 10px; flex-wrap: wrap; }
.pager a { background: #fff; border: 1px solid #d6deea; border-radius: 12px; padding: 10px 16px; font-weight: 600; color: var(--navy-ink); }
.pager a:hover { background: var(--mint-soft); }

@media (max-width: 960px) { .timer { top: 76px; } }
@media (max-width: 480px) {
  .lesson-hero { padding: 24px 18px; }
  .session { padding: 4px 14px 12px; }
  .q { padding: 4px 14px 8px; }
  .lesson-main p, .steps { font-size: 16px; }
}
@media print {
  .site-header, .site-footer, .pager, .timer, .crumbs { display: none; }
  details > p { display: block; }
}
