/* Đề thi tiếng Anh tổng hợp (tienganh/tonghop.php) – Phần 37 (08/11/2026).
 * Màn thi: nạp sau luyenthi.css + lambai.css + doanvan.css (thẻ câu, đồng hồ, bảng câu, đoạn văn, chỗ trống, Bài đọc/Bản dịch).
 * Trang giới thiệu: nạp sau trang-nganh.css + vanban.css + doanvan-ds.css. */

/* ---------- Trang giới thiệu ---------- */
.th-h2{margin-top:40px!important}
.th-lich{list-style:none;margin:16px 0 0;padding:0;background:#fff;border:1px solid #e3e8f0;border-radius:18px;overflow:hidden}
.th-lich li{display:grid;grid-template-columns:110px 1fr auto;gap:4px 16px;align-items:baseline;padding:14px 18px;font-size:15px}
.th-lich li+li{border-top:1px solid #edf1f6}
.th-lich b{font-size:17px;color:#0b3a82}
.th-lich span{color:#64708a}
@media (max-width:640px){
  .th-lich li{grid-template-columns:1fr;padding:12px 14px}
}

/* ---------- Màn thi: nhãn phần + số câu (hiện cả trên điện thoại) ---------- */
.th .lt-qnum{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;background:none;padding:0;margin:0 0 10px;border-radius:0;font-size:13px;font-weight:800;color:var(--muted)}
.th-p{display:inline-block;font-size:12px;font-weight:800;border-radius:999px;padding:3px 10px;color:#fff;background:#3f8f00}
.th-p.p2{background:var(--primary)}
.th-p.p3{background:#7c3aed}
.lt-rhead .th-p{margin-left:4px;font-size:11px;padding:2px 8px}

/* Bảng câu theo phần */
.th-sheet-p{font-size:13px;font-weight:800;color:var(--navy);margin:12px 0 8px}
.th-sheet-p:first-of-type{margin-top:0}
.th-grid{max-height:none!important;overflow:visible!important}

/* Chỗ trống: từ đã chọn điền ngay vào; bấm chỗ trống để mở câu */
.th .dv-o{cursor:pointer}
.th .dv-o.chon{background:#eaf1fd;border:1px solid var(--primary)}
.th .dv-o.chon i{color:var(--navy);font-weight:700;letter-spacing:0}
.th .dv-o.khoa{cursor:default}
.th-doan[hidden]{display:none!important}

/* Tổng kết: số câu đúng từng phần */
.th-st.p1{color:#3f8f00}
.th-st.p2{color:var(--primary)}
.th-st.p3{color:#7c3aed}
.lt-xong .th-doan{position:static;max-height:none;overflow:visible;margin:0 0 14px}
.lt-xong .th-doan .dv-doan-nd{max-height:none;overflow:visible}

/* "Đáp án và giải thích" theo thứ tự đề (v=2): thanh Phần 1/2/3 + lọc dính đầu trang, rồi từng phần */
.th-rv-dau{position:sticky;top:0;z-index:5;background:#f3f6fb;padding:10px 0 8px;box-shadow:0 8px 8px -8px rgba(15,23,42,.12)}
.th-rv-nav{display:flex;gap:8px;margin-bottom:10px}
.th-rv-tab{flex:1;display:flex;justify-content:center;align-items:baseline;gap:6px;padding:9px 6px;border-radius:12px;background:#fff;border:1.5px solid var(--line);border-top:4px solid #3f8f00;font-size:14px;font-weight:800;color:var(--navy)!important;text-decoration:none!important}
.th-rv-tab.p2{border-top-color:var(--primary)}
.th-rv-tab.p3{border-top-color:#7c3aed}
.th-rv-tab span{font-weight:700;color:var(--muted)}
.th-rv-dau .lt-filter{margin-bottom:6px}
.th-rv-dau .lt-legend{display:block}
.th-rv-p{margin:22px 0 28px;scroll-margin-top:150px}
.th-rv-h{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.th-rv-h h3{flex:1;margin:0;font-size:19px;font-weight:800;color:var(--navy)}
.th-rv-h b{font-size:15px}
.th-rv-so{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.th-rv-so .lt-cell{width:40px;height:40px;border-radius:10px}
.th-rv-ds .lt-rcard{margin-bottom:12px;transition:box-shadow .3s}
.th-rv-ds .lt-rcard[hidden]{display:none!important}
.th-rv-ds .th-nhay{box-shadow:0 0 0 3px var(--gold)}
.th-rv-rong{margin:0 0 8px;font-size:14px}
.th-rv-p .th-doan{margin:0 0 14px}

/* ---------- Bố cục máy tính ---------- */
@media (min-width:992px){
  .th-layout .th-doan{grid-column:1;margin:0}
  .th-layout .lt-main{grid-column:1}
  .th-layout .lt-aside{grid-column:2;grid-row:1 / span 2}
  .th .dv-mo{display:none!important}
}
/* ≥1200 px, câu có đoạn văn: 3 cột – đoạn văn (cuộn riêng) · câu hỏi · cột phải */
@media (min-width:1200px){
  .lt-wrap.th-layout.th-co-doan{max-width:1380px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) 320px;gap:24px}
  .th-layout.th-co-doan .th-doan{grid-column:1;grid-row:1 / span 2;position:sticky;top:76px;max-height:calc(100vh - 96px);overflow:auto}
  .th-layout.th-co-doan .lt-main{grid-column:2;grid-row:1}
  .th-layout.th-co-doan .lt-aside{grid-column:3}
}

/* Phần 96: khối đầu Mẫu C – điện thoại: nút Bắt đầu thi (chỉ 1 nút) rộng hết khung */
@media (max-width:640px){ .kn-hero-nut>div:only-child{grid-column:1/-1} }

/* ---------- Phần 133: chọn mức trong khối navy (phương án A) ---------- */
.th-muc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 2px;max-width:640px}
.kn .th-muc-c{display:flex;flex-direction:column;gap:2px;min-height:64px;padding:11px 14px;border-radius:14px;border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:#fff;text-decoration:none;transition:background .15s,border-color .15s}
.kn .th-muc-c:hover{background:rgba(255,255,255,.12);color:#fff}
.th-muc-c b{font-size:16px;font-weight:800}
.th-muc-c span{font-size:13px;opacity:.85}
.kn .th-muc-c[aria-current]{background:#fff;border-color:#8fd14f;color:#0b3a82}
.th-muc-c:focus-visible{outline:3px solid #8fd14f;outline-offset:2px}
.th-theo-muc[hidden]{display:none!important}
.kn-hero-trai .th-theo-muc{display:flex;flex-direction:column;gap:10px}
.th-muc-mo{margin:0;font-size:15px;line-height:1.5;color:#d3dcf0}
.th-muc-mo b{color:#fff}
.th-muc-bu{margin:0;font-size:13px;color:#ffd58a}
.th-lich .th-tag{justify-self:start;font-size:12px;font-weight:800;border-radius:999px;padding:2px 9px;color:#fff;background:#64708a}
.th-lich .th-tag.m1{background:#15803d}
.th-lich .th-tag.m2{background:#1d5fd0}
.th-lich .th-tag.m3{background:#7c3aed}
.th-lich li{grid-template-columns:110px auto 1fr auto}
@media (max-width:640px){
  .th-muc{grid-template-columns:1fr;gap:8px}
  .kn .th-muc-c{min-height:52px;flex-direction:row;align-items:baseline;gap:10px}
  .th-lich li{grid-template-columns:1fr}
}
