﻿/* Tông cam - vàng. Phần trang khách. Phần quản trị nằm ở them.css */
:root {
  --cam: #f2541b; --cam-dam: #c9381a; --cam-toi: #a52c12; --vang: #fcd537; --vang-dam: #f3c416; --vang-nhat: #fff6d6;
  --nen: #f7f6f3; --giay: #ffffff; --chu: #27221f; --phu: #645c56; --vien: #e6e0d9; --xanh: #02734a; --anh-nen: #f1ece4;
  --bo: 14px; --bong: 0 1px 2px rgba(60, 35, 10, .06), 0 4px 14px rgba(60, 35, 10, .06); --bong-cao: 0 2px 4px rgba(60, 35, 10, .08), 0 12px 30px rgba(60, 35, 10, .14);
  --phong: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 16px/1.6 var(--phong); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--cam-dam); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; overflow-wrap: anywhere; letter-spacing: -.015em; }
h1 { font-size: clamp(24px, 3.2vw, 31px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.3vw, 24px); font-weight: 700; }
h3 { font-weight: 600; letter-spacing: -.005em; }
p { margin: 0; }
form { margin: 0; }
[hidden] { display: none !important; }
.khung { width: 100%; max-width: 1760px; margin: 0 auto; padding-inline: 20px; }
.hinh { flex: none; }
:focus-visible { outline: 3px solid var(--cam-dam); outline-offset: 2px; border-radius: 6px; }
.bo-qua { position: absolute; left: 12px; top: -80px; z-index: 20; background: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.bo-qua:focus { top: 10px; }

/* Đầu trang */
.canh-bao { background: var(--chu); color: #fff; text-align: center; padding: 7px 16px; font-size: 14px; }
.dau { background: var(--giay); }
.dau .khung { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--chu); text-decoration: none; }
.logo span { color: var(--cam-dam); font-size: 24px; letter-spacing: -.025em; white-space: nowrap; }
.logo img { height: 52px; width: auto; max-width: 150px; object-fit: contain; }
.tim { flex: 1 1 280px; display: flex; min-width: 0; }
.tim input { flex: 1; min-width: 0; border: 2px solid var(--cam-dam); border-right: 0; border-radius: 10px 0 0 10px; padding: 10px 16px; font: inherit; color: var(--chu); background: #fff; min-height: 48px; appearance: none; }
.tim input:focus { outline: none; background: #fffdf6; box-shadow: inset 0 0 0 1px var(--cam-dam); }
.tim .nut { border-radius: 0 10px 10px 0; min-height: 48px; }
/* Gợi ý hiện ngay dưới ô tìm khi khách gõ */
.tim { position: relative; }
.goi-y-tim { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 9; background: var(--giay); border: 1px solid var(--vien); border-radius: 12px; box-shadow: var(--bong-cao); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.goi-y-tim [role=option] { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--chu); text-decoration: none; }
.goi-y-tim [role=option]:hover, .goi-y-tim [aria-selected=true] { background: var(--vang-nhat); }
.gy-anh { width: 40px; height: 52px; border-radius: 4px; background: var(--anh-nen); overflow: hidden; box-shadow: 0 1px 4px rgba(60, 35, 10, .18); }
.gy-anh img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gy-chu { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.gy-chu strong { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gy-chu small { font-size: 12.5px; color: var(--phu); }
.gy-gia { font-weight: 800; font-size: 14.5px; color: var(--cam-dam); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gy-gia.free { color: var(--xanh); }
.gy-het { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--vien); text-align: center; font-weight: 700; font-size: 14.5px; text-decoration: none; border-radius: 0 0 9px 9px; }
.gy-het:hover { background: var(--vang-nhat); }
.gy-trong { padding: 14px 12px; font-size: 14.5px; color: var(--phu); }
@media (max-width: 720px) { .goi-y-tim [role=option] { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; } .goi-y-tim .gy-gia { grid-column: 2; font-size: 13.5px; } .gy-anh { width: 36px; height: 47px; grid-row: span 2; } }
.dau-goi { display: flex; align-items: center; gap: 10px; color: var(--cam-dam); text-decoration: none; }
.dau-goi span { display: grid; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--chu); }
.dau-goi strong { font-size: 17px; font-weight: 800; color: var(--cam-dam); font-variant-numeric: tabular-nums; }
.dau-goi:hover strong { color: var(--cam-toi); }
.menu { background: var(--giay); border-top: 1px solid var(--vien); border-bottom: 3px solid var(--vang); position: sticky; top: 0; z-index: 5; }
.menu .khung { display: flex; justify-content: safe center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.menu .khung::-webkit-scrollbar { display: none; }
.menu a { padding: 13px 14px; font-weight: 600; font-size: 15px; color: var(--chu); text-decoration: none; white-space: nowrap; position: relative; }
.menu a:hover { color: var(--cam-dam); }
.menu a.dang { color: var(--cam-dam); }
.menu a.dang::after { content: ""; position: absolute; inset: auto 14px 0; height: 3px; background: var(--cam-dam); border-radius: 3px 3px 0 0; }

/* Nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 10px;
  background: var(--cam-dam); color: #fff; font: 600 16px/1.2 var(--phong); text-decoration: none; cursor: pointer; transition: background-color .15s; text-align: center; }
.nut:hover { background: var(--cam-toi); }
.nut:active { transform: translateY(1px); }
.nut[disabled] { opacity: .45; cursor: default; }
.nut.vang { background: var(--vang); color: var(--chu); }
.nut.vang:hover { background: var(--vang-dam); }
.nut.vien { background: var(--giay); color: var(--chu); box-shadow: inset 0 0 0 1.5px #cfc6bc; }
.nut.vien:hover { box-shadow: inset 0 0 0 2px var(--cam-dam); color: var(--cam-dam); }
.nut.nho { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 8px; }
.nut.nho .hinh { width: 18px; height: 18px; }
.nut.to { min-height: 56px; font-size: 18px; padding-inline: 32px; }
.nut-hang { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Banner chạy thay nhau */
.truot-bao { position: relative; }
.truot-khung { border-radius: var(--bo); overflow: hidden; background: #fff; box-shadow: var(--bong); }
.truot-to { position: relative; animation: hien-banner .6s ease; }
.truot-to img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.truot-chu { position: absolute; inset: auto 0 0; padding: 18px 70px 18px 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: rgba(39, 34, 31, .82); color: #fff; }
.truot-chu strong { font-size: 24px; line-height: 1.25; }
.truot-chu .nut { margin-left: auto; }
.mui { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--chu); font: 700 28px/1 var(--phong); padding: 0 0 5px; cursor: pointer; box-shadow: var(--bong); opacity: 0; transition: opacity .2s; }
.mui.trai { left: 14px; } .mui.phai { right: 14px; }
.truot-bao:hover .mui, .mui:focus-visible { opacity: 1; }
.mui:hover { background: var(--vang); }
.truot-nut { display: flex; justify-content: center; padding-top: 4px; }
.cham { border: 0; background: none; padding: 0; width: 32px; height: 32px; position: relative; cursor: pointer; }
.cham::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 10px; margin: -5px; border-radius: 10px; background: #bdb3a8; transition: width .2s, margin .2s, background-color .2s; }
.cham[aria-current=true]::before { background: var(--cam-dam); width: 26px; margin-left: -13px; }
@keyframes hien-banner { from { opacity: .25; } to { opacity: 1; } }

/* Khung tìm ở trang chủ */
.dau-tc { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; }
.giua { min-width: 0; }
.giua .khung { max-width: none; padding-inline: 0; }
/* Khung chọn SKKN: nền trắng, chỉ một vạch cam bên trái làm điểm nhấn (bớt màu, 26/11/2026) */
.bia { flex: 1; display: grid; align-items: center; border-radius: var(--bo); background: var(--giay); color: var(--chu); position: relative; overflow: hidden; box-shadow: var(--bong); border-left: 5px solid var(--cam-dam); }
.bia-trong { position: relative; z-index: 1; padding: 24px 28px; display: grid; gap: 16px; min-width: 0; }
.bia-chu { display: grid; gap: 4px; }
.bia h1 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; letter-spacing: -.025em; color: var(--cam-toi); }
.bia p { font-size: 16px; color: var(--phu); }
.chon { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #faf8f5; padding: 16px; border-radius: var(--bo); color: var(--chu); border: 1px solid var(--vien); }
.chon label { flex: 1 1 170px; min-width: 0; display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--phu); }
select { font: 400 16px/1.4 var(--phong); padding: 9px 38px 9px 14px; border: 1.5px solid #d6cdc3; border-radius: 10px; color: var(--chu); min-height: 48px; width: 100%; min-width: 0; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23c9381a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.500 1.500L7 7l5.500-5.500'/%3E%3C/svg%3E") no-repeat right 14px center; }
select:hover { border-color: var(--cam-dam); }
.goi-y { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.goi-y span { font-weight: 600; margin-right: 4px; }
.goi-y a { color: var(--cam-dam); background: #fff; text-decoration: none; border: 1.5px solid #e3d8cc; border-radius: 99px; padding: 5px 14px; font-weight: 600; }
.goi-y a:hover { background: var(--vang); border-color: var(--vang); color: var(--chu); }
.goi-y.sang a { color: var(--cam-dam); border-color: #dccfc2; background: #fff; }
.goi-y.sang a:hover { color: var(--chu); background: var(--vang); border-color: var(--vang); }

/* Hai cột bên, chỉ hiện trên màn hình rộng */
.ben { display: none; }
.the-ben { background: var(--giay); border-radius: 18px; box-shadow: var(--bong); overflow: hidden; display: flex; flex-direction: column; }
.the-ben h2 { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; font-size: 16px; font-weight: 700; letter-spacing: -.005em; color: var(--cam-toi); background: var(--giay); border-bottom: 1px solid var(--vien); }
.the-ben h2 .hinh { width: 20px; height: 20px; color: var(--cam-dam); }
.dm-than { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.dm-nhom { --m: var(--cam-dam); --n: #fdf0ec; flex: 1; display: grid; gap: 11px; align-content: center; padding: 14px; border-radius: 14px; background: var(--giay); border: 1.5px solid var(--vien); transition: border-color .2s; }
.dm-nhom:hover, .dm-nhom.dang { border-color: var(--m); }
.dm-tieu-hoc { --m: #c96f00; --n: #fff5e2; } .dm-thcs { --m: #0a8577; --n: #e8f6f3; } .dm-thpt { --m: #c9381a; --n: #fdefeb; } .dm-free { --m: #02734a; --n: #e9f6ef; }
.dm-ten { display: flex; align-items: center; gap: 14px; color: var(--chu); text-decoration: none; line-height: 1.3; }
.dm-ten strong { display: block; font-size: 16px; font-weight: 700; } .dm-ten:hover strong, .dm-nhom.dang strong { color: var(--m); }
.dm-ten small { font-size: 13px; color: var(--phu); }
.dm-lop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dm-lop em { font-style: normal; font-size: 13px; color: var(--phu); margin-right: 2px; }
.dm-lop a { min-width: 32px; height: 32px; padding: 0 5px; border-radius: 16px; display: grid; place-items: center; background: var(--n); color: var(--m); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s; }
.dm-lop.chu a { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.dm-lop a:hover, .dm-lop a.dang { background: var(--m); color: #fff; }
.xh ol { list-style: none; margin: 0; padding: 8px 10px 0; flex: 1; display: grid; }
.xh ol:not(:has(> :nth-child(4))) { align-content: start; } /* ít tài liệu thì xếp từ trên xuống, không lơ lửng giữa cột */
.xh li { display: grid; } .xh li + li { border-top: 1px dashed var(--vien); }
.xh li a { display: flex; align-items: center; gap: 14px; padding: 9px 8px; border-radius: 12px; color: var(--chu); text-decoration: none; }
.xh li a:hover { background: var(--vang-nhat); }
.xh-anh { position: relative; flex: none; width: 46px; height: 62px; display: grid; place-items: center; border-radius: 5px; background: var(--anh-nen); color: var(--phu); box-shadow: 0 2px 7px rgba(60, 35, 10, .2); }
.xh-anh img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.xh-anh b { position: absolute; left: -8px; top: -5px; width: 23px; height: 23px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; background: #8b8178; color: #fff; font-size: 11.5px; line-height: 1; }
.xh li:nth-child(1) b { background: var(--cam-dam); } .xh li:nth-child(2) b { background: #d96a12; } .xh li:nth-child(3) b { background: #b07a00; }
.xh ol:not(:has(> :nth-child(5))) .xh-anh { width: 68px; height: 94px; }
.xh-chu { min-width: 0; display: grid; gap: 3px; line-height: 1.38; }
.xh-chu strong { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xh li a:hover strong { color: var(--cam-dam); }
.xh-chu small { font-size: 13px; color: var(--phu); }
.xh-het { margin: 8px 18px 14px; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; border-radius: 10px; padding: 8px; background: var(--nen); }
.xh-het:hover { background: var(--vang); color: var(--chu); }
.chong { display: grid; gap: 18px; min-width: 0; align-content: start; }

/* Bố cục chung */
.muc { padding-top: 40px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.muc.dau-trang { padding-top: 14px; }
.muc:last-child { padding-bottom: 56px; }
/* Tiêu đề các mục: đỏ gạch đậm, vạch vàng bên dưới */
.muc > h2, .muc > .hang > h2 { color: var(--cam-toi); padding-bottom: 10px; position: relative; }
.muc > h2::after, .muc > .hang > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--vang-dam); }
.hang { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.duong { display: flex; gap: 4px 8px; padding-top: 18px; font-size: 14px; color: var(--phu); }
.duong a { color: var(--phu); text-decoration: none; flex: none; } .duong span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duong a:hover { color: var(--cam-dam); text-decoration: underline; }
.duong > * + *::before { content: "/"; margin-right: 8px; color: #b5aba0; display: inline-block; }
.cap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cap a { background: var(--giay); color: var(--phu); text-decoration: none; border-radius: var(--bo); display: flex; align-items: center; gap: 18px; padding: 20px 22px; box-shadow: var(--bong); transition: box-shadow .2s; }
.cap a:hover { box-shadow: var(--bong-cao); }
/* Hình màu của cấp học */
.o-hinh { --a: #ffb627; --b: #ee7500; --bd: rgba(238, 117, 0, .36); position: relative; flex: none; width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 6px 14px var(--bd), inset 0 1.5px 0 rgba(255, 255, 255, .45); transition: transform .2s, box-shadow .2s; }
.o-hinh::before { content: ""; position: absolute; width: 130%; height: 70%; left: -15%; top: -32%; border-radius: 50%; background: rgba(255, 255, 255, .17); }
.o-hinh .hc { position: relative; width: 45px; height: 45px; overflow: visible; filter: drop-shadow(0 2px 2px rgba(60, 25, 0, .22)); }
.o-hinh text { font: 800 16px var(--phong); text-anchor: middle; }
.cap-thcs .o-hinh, .dm-thcs .o-hinh { --a: #22c3a8; --b: #04776a; --bd: rgba(4, 119, 106, .34); }
.cap-thpt .o-hinh, .dm-thpt .o-hinh { --a: #f96a45; --b: #b8240b; --bd: rgba(184, 36, 11, .34); }
.dm-free .o-hinh { --a: #2fbb72; --b: #02683f; --bd: rgba(2, 104, 63, .32); }
.cap .o-hinh { width: 84px; height: 84px; border-radius: 25px; } .cap .hc { width: 60px; height: 60px; }
.cap a:hover .o-hinh, .dm-ten:hover .o-hinh { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 20px var(--bd), inset 0 1.5px 0 rgba(255, 255, 255, .45); }
.cap-chu { flex: 1; min-width: 0; line-height: 1.45; }
.cap-chu > span { display: block; font-size: 15px; }
.cap-chu small { font-size: 14px; font-weight: 600; color: var(--cam-dam); }
.cap strong { display: block; font-size: 20px; line-height: 1.3; color: var(--chu); }
.cap-mui { flex: none; font-size: 30px; line-height: 1; color: #c3b8ac; transition: transform .2s, color .2s; }
.cap a:hover .cap-mui { color: var(--cam-dam); transform: translateX(4px); }
.tab { display: flex; flex-wrap: wrap; gap: 6px; background: #ece6de; padding: 5px; border-radius: 12px; }
.tab button { font: 600 15px/1 var(--phong); padding: 11px 16px; border-radius: 8px; border: 0; background: none; color: var(--chu); cursor: pointer; }
.tab button:hover { color: var(--cam-dam); }
.tab button[aria-pressed=true] { background: var(--giay); color: var(--cam-dam); box-shadow: 0 1px 4px rgba(60, 35, 10, .16); font-weight: 700; }
.xem-het { text-align: center; padding-top: 22px; }
.trong { background: var(--giay); border: 1.5px dashed #d6cdc3; border-radius: var(--bo); padding: 32px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--phu); }
.trong strong { color: var(--chu); font-size: 18px; }
.trong .goi-y { justify-content: center; }

/* Thẻ tài liệu */
.luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.the { background: var(--giay); border-radius: var(--bo); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--bong); transition: box-shadow .2s; }
.the:hover { box-shadow: var(--bong-cao); }
/* Khung ảnh theo tỉ lệ trang giấy, ảnh bìa lấp kín khung */
.the .anh { position: relative; background: var(--anh-nen); padding: 0; aspect-ratio: 4 / 5; display: grid; place-items: stretch; border: 0; border-bottom: 1px solid var(--vien); cursor: pointer; width: 100%; font: inherit; overflow: hidden; }
.the .anh img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .25s; }
.the .anh .khong-anh { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
/* Bìa nằm ngang (slide): khung ngang theo đúng tỉ lệ, không cắt hai bên */
.the .anh.ngang43 { aspect-ratio: 4 / 3; } .the .anh.ngang169 { aspect-ratio: 16 / 9; }
.the .anh.ngang43 img, .the .anh.ngang169 img { object-position: center; }
.the .anh:hover img { transform: scale(1.04); }
.the .anh::after { content: "Xem nhanh"; position: absolute; inset: auto 0 0; background: rgba(39, 34, 31, .88); color: #fff; padding: 8px; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.the .anh:hover::after, .the .anh:focus-visible::after { opacity: 1; }
.the .anh:focus-visible { outline-offset: -3px; }
.khong-anh { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; width: 150px; height: 210px; padding: 14px 12px; background: #fff; border-top: 12px solid var(--cam); border-radius: 3px; box-shadow: 0 3px 12px rgba(60, 35, 10, .2); text-align: center; overflow: hidden; line-height: 1.3; }
.khong-anh b { font-size: 11px; color: var(--phu); }
.khong-anh i { font-style: normal; font-weight: 700; font-size: 13px; align-self: center; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.khong-anh small { font-size: 11px; color: var(--phu); }
.nhan { position: absolute; top: 12px; left: 12px; background: var(--vang); color: var(--chu); font-weight: 700; font-size: 13px; line-height: 1.4; padding: 4px 10px; border-radius: 7px; }
.nhan.free { background: var(--xanh); color: #fff; }
.nhan-hang { display: flex; flex-wrap: wrap; gap: 6px; }
.nhan-hang span { background: var(--vang-nhat); color: #6b4b00; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 2px 9px; border-radius: 6px; }
.the .than { padding: 16px 16px 12px; display: grid; gap: 9px; flex: 1; align-content: start; }
.the h3 { font-size: 15px; line-height: 1.42; text-wrap: wrap; }
.the h3 a { color: var(--chu); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.the h3 a:hover { color: var(--cam-dam); }
.phu { color: var(--phu); font-size: 14px; }
.the .phu { font-size: 13.5px; line-height: 1.55; }
.the .chan { margin: 0 16px; padding: 12px 0 16px; border-top: 1px solid var(--vien); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.gia { font-weight: 800; color: var(--cam-dam); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gia del { color: var(--phu); font-weight: 400; font-size: 13.5px; margin-left: 2px; }
.the .chan .gia del { display: block; margin: 0; line-height: 1.3; }
.gia.free { color: var(--xanh); }
.giua .khung:has(+ .vung-free) > .muc:last-child { padding-bottom: 0; }
.vung-free { margin-top: 40px; padding: 0 24px; background: linear-gradient(180deg, #fff8e1 0, var(--giay) 150px); border: 1px solid var(--vien); border-radius: 18px; }
.vung-free .muc { padding-block: 26px 26px; }
/* Bài giảng PowerPoint: màu hồng đất để tách khỏi SKKN và tài liệu miễn phí */
.vung-bg { margin-top: 40px; padding: 0 24px; background: linear-gradient(180deg, #fdf0f3 0, var(--giay) 150px); border: 1px solid var(--vien); border-radius: 18px; }
.vung-bg .muc { padding-block: 26px; gap: 16px; }
.bg-dan { margin: -4px 0 0; color: var(--phu); font-size: 15px; }
.bg-cap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 6px; }
.bg-o { --m: #c96f00; --n: #fff3dc; background: var(--giay); border-radius: var(--bo); box-shadow: var(--bong); padding: 16px; display: grid; gap: 12px; align-content: start; border-top: 4px solid var(--m); transition: box-shadow .2s; }
.bg-o:hover { box-shadow: var(--bong-cao); }
.bg-o.cap-thcs { --m: #0a8577; --n: #e3f5f1; } .bg-o.cap-thpt { --m: #c9381a; --n: #fdece7; }
.bg-ten { display: flex; align-items: center; gap: 13px; color: var(--chu); text-decoration: none; line-height: 1.3; }
.bg-ten > span:nth-child(2) { flex: 1; min-width: 0; }
.bg-ten strong { display: block; font-size: 18px; } .bg-ten small { font-size: 13.5px; font-weight: 600; color: var(--m); }
.bg-ten:hover strong { color: var(--m); } .bg-ten:hover .cap-mui { color: var(--m); transform: translateX(4px); }
.bg-o .o-hinh { width: 58px; height: 58px; border-radius: 17px; } .bg-o .hc { width: 41px; height: 41px; }
.bg-ten:hover .o-hinh { transform: translateY(-3px) scale(1.05); }
.bg-o .dm-lop { gap: 5px; } .bg-o .dm-lop a { min-width: 30px; height: 30px; background: var(--n); box-shadow: none; }
.bg-o .dm-lop a:hover { background: var(--m); color: #fff; }
.dm-bg { --m: #b4446c; --n: #fcebf0; }
.dm-bg .o-hinh { --a: #ee7f9f; --b: #9c3459; --bd: rgba(156, 52, 89, .32); }
.dm-bg-cap { display: grid; gap: 6px; }
.dm-bg-cap .dm-lop { flex-wrap: nowrap; gap: 4px; }
.dm-bg-cap .dm-lop a { min-width: 29px; height: 29px; padding: 0 3px; font-size: 13.5px; }
.dm-lop a.dm-cap { min-width: 40px; background: rgba(180, 68, 108, .13); box-shadow: none; font-size: 12px; letter-spacing: .02em; }
.dm-lop a.dm-cap:hover, .dm-lop a.dm-cap.dang { background: var(--m); color: #fff; }
/* Trang bài giảng: chọn nhanh cấp rồi lớp */
.loc-nhanh { display: grid; gap: 10px; }
.loc-cap, .loc-lop { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-nhanh a { text-decoration: none; font-weight: 600; white-space: nowrap; border-radius: 99px; transition: background-color .15s, color .15s, border-color .15s; }
.loc-cap a { padding: 8px 20px; background: var(--giay); color: var(--chu); border: 1.5px solid var(--vien); font-size: 15px; }
.loc-cap a:hover { border-color: #b4446c; color: #b4446c; }
.loc-cap a.dang { background: #b4446c; border-color: #b4446c; color: #fff; }
.loc-lop a { padding: 6px 15px; background: #fcebf0; color: #9c3459; font-size: 14px; }
.loc-lop a:hover, .loc-lop a.dang { background: #b4446c; color: #fff; }
.buoc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: b; }
.buoc li { counter-increment: b; position: relative; background: var(--giay); border-radius: var(--bo); padding: 22px; box-shadow: var(--bong); display: flex; gap: 16px; align-items: flex-start; color: var(--phu); }
.buoc li > .hinh { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--cam-dam); color: #fff; }
.buoc strong { display: block; font-size: 17px; color: var(--chu); }
.buoc strong::before { content: counter(b) ". "; color: var(--cam-dam); }
.hoi-dap > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; align-items: start; }
details { background: var(--giay); border: 1px solid var(--vien); border-radius: 12px; }
summary { font-weight: 600; cursor: pointer; padding: 14px 48px 14px 18px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -54%; font-size: 24px; font-weight: 400; color: var(--cam-dam); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; }
.trang-so { display: flex; gap: 14px; align-items: center; justify-content: center; padding-top: 10px; }

/* Trang tài liệu */
.hai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; background: var(--giay); border-radius: var(--bo); padding: 28px; box-shadow: var(--bong); }
.xem { display: grid; gap: 12px; align-content: start; min-width: 0; }
/* Khung bìa ở trang chi tiết ôm sát ảnh */
.xem .lon { background: var(--anh-nen); border: 0; border-radius: 6px; padding: 0; display: block; justify-self: center; width: fit-content; max-width: 100%; overflow: hidden; cursor: pointer; min-height: 0; box-shadow: 0 3px 16px rgba(60, 35, 10, .2); }
.xem .lon img { display: block; max-height: 440px; max-width: 100%; width: auto; height: auto; }
.xem .lon.khong { cursor: default; }
.tt { display: grid; gap: 16px; align-content: start; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.tt h1 { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.42; font-weight: 700; letter-spacing: -.008em; text-wrap: pretty; }
.nhanh .tt h2 { font-size: 18px; line-height: 1.42; text-wrap: pretty; }
.hop-gia { background: var(--vang-nhat); border-radius: 12px; padding: 20px; display: grid; gap: 14px; }
.gia-hang { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.hop-gia .gia { font-size: 30px; line-height: 1.2; }
.hop-gia .gia del { font-size: 17px; }
.nhan-giam { background: var(--cam-dam); color: #fff; font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 7px; }
.hop-gia .nut, .nhanh .nut { width: 100%; }
.hop-gia .nut { min-height: 54px; font-size: 18px; }
.hop-gia .nut.vang { background: var(--xanh); color: #fff; }
.hop-gia .nut.vang:hover { background: #015838; }
.cam-ket { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 15px; }
.cam-ket li { display: flex; gap: 10px; align-items: flex-start; }
.cam-ket .hinh { width: 20px; height: 20px; margin-top: 2px; color: var(--cam-dam); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
td { padding: 9px 0; border-bottom: 1px solid var(--vien); vertical-align: top; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--phu); width: 38%; padding-right: 12px; }
.noi-hai { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.noi-hai .noi-dung { background: var(--giay); border-radius: var(--bo); padding: 26px 28px; box-shadow: var(--bong); }
.noi-dung { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.noi-dung p { overflow-wrap: anywhere; max-width: 72ch; }
.noi-dung h2 { font-size: 21px; }
.mua-dinh { display: none; }
.van-ban { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.van-ban nav { display: flex; overflow-x: auto; white-space: nowrap; gap: 4px; background: var(--giay); border-radius: var(--bo); padding: 12px; box-shadow: var(--bong); }
.van-ban nav a { padding: 10px 14px; border-radius: 8px; color: var(--chu); text-decoration: none; font-weight: 600; font-size: 15px; }
.van-ban nav a:hover { color: var(--cam-dam); background: var(--nen); }
.van-ban nav a.dang { background: var(--vang); color: var(--chu); }
.van-ban .noi-dung { background: var(--giay); border-radius: var(--bo); padding: 32px; box-shadow: var(--bong); }
.van-ban details p { max-width: none; }
.lien-dan { margin-top: 6px; color: var(--phu); text-wrap: pretty; }
.hai-dai { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.the-lien + .hai-dai { margin-top: -6px; }
.the-lien { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.the-lien > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.the-lien a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--giay); border-radius: var(--bo); padding: 13px 16px; box-shadow: var(--bong); color: var(--cam-dam); font-size: 14px; text-decoration: none; transition: box-shadow .2s; }
.the-lien a:hover { box-shadow: var(--bong-cao); }
.the-lien a:hover .tron { transform: scale(1.06); }
.the-lien .tron { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; transition: transform .15s; }
.the-lien .tron .hinh { width: 23px; height: 23px; }
.the-lien .goi-dien { background: var(--cam-dam); }
.the-lien .goi-dien .hinh { fill: currentColor; stroke-width: 1; }
.the-lien .zalo { background: #0062e6; font: 800 15px/1 var(--phong); letter-spacing: -.02em; }
.the-lien .mess { background: linear-gradient(160deg, #a033ff, #0a6cf5); }
.the-lien .mess .hinh { width: 27px; height: 27px; }
.the-lien .tia { fill: #6a3bd1; }
.the-lien .thu { background: #d9790b; }
.the-chu { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.the-lien strong { display: block; color: var(--chu); font-size: 16px; line-height: 1.35; font-weight: 700; }

/* Đơn hàng */
.don { width: 100%; max-width: 800px; margin: 0 auto; background: var(--giay); border-radius: var(--bo); padding: 32px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); box-shadow: var(--bong); }
.don ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.tien-trinh { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: t; text-align: center; font-size: 14px; font-weight: 600; color: var(--phu); }
.tien-trinh li { counter-increment: t; position: relative; display: grid; gap: 6px; justify-items: center; }
.tien-trinh li::before { content: counter(t); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ece6de; color: var(--phu); font-weight: 700; position: relative; z-index: 1; }
.tien-trinh li + li::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: #ece6de; }
.tien-trinh .xong::before { content: "✓"; background: var(--xanh); color: #fff; }
.tien-trinh .dang::before { background: var(--cam-dam); color: #fff; }
.tien-trinh .dang { color: var(--cam-dam); }
.tien-trinh li.xong::after, .tien-trinh li.dang::after { background: var(--xanh); }
.hai-don { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
.khoi-qr { display: grid; gap: 10px; justify-items: center; text-align: center; }
.khoi-qr .phu { font-size: 13px; }
.khoi-qr .goi-y-qr { font-size: 13.5px; text-align: left; max-width: 300px; margin: 0; }
.khoi-qr .goi-y-qr.ok { background: #dff3e8; color: #04543a; }
img.qr-that { -webkit-touch-callout: default; user-select: auto; background: #fff; }
.qr { width: 240px; aspect-ratio: 1; max-width: 100%; border: 2px dashed #b5aba0; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--phu); font-size: 14px; }
.qr-that { width: 260px; height: 260px; border: 2px solid var(--vang); border-radius: 12px; image-rendering: pixelated; }
/* Trang thanh toán (30/11/2026, theo mẫu trondethi): hai khung cân nhau, đủ rộng thì nằm cạnh nhau, hẹp thì xếp dọc */
.the-ck { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 18px; align-items: stretch; margin: 4px 0 16px; }
.cot-qr, .cot-tt { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: #fffaf3; border: 1px solid #f1e2cc; min-width: 0; }
.cot-qr { align-items: center; text-align: center; }
.tieu-ck { display: flex; align-items: center; gap: 10px; align-self: stretch; font-size: 17px; font-weight: 700; color: var(--chu); margin: 0; }
.so-ck { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cam-dam); color: #fff; font-size: 13px; font-weight: 800; }
.khung-qr { padding: 10px; background: #fff; border-radius: 16px; border: 2px solid var(--vang); line-height: 0; }
.khung-qr .qr-that { width: 240px; height: 240px; border: 0; border-radius: 6px; }
.khung-qr.trong { width: 240px; aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; padding: 16px; line-height: 1.5; color: var(--phu); font-size: 14px; border-style: dashed; border-color: #b5aba0; }
.loi-qr { margin: auto 0 0; padding-top: 4px; display: grid; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--phu); text-align: center; text-wrap: balance; }
.loi-qr b { color: var(--cam-dam); }
.loi-qr .phu-dt { margin-top: 6px; font-size: 13px; }
@media (pointer: fine) { .loi-qr .phu-dt { display: none; } }
.ds-ck { background: #fff; border: 1px solid #efe4d6; border-radius: 14px; overflow: hidden; }
.dong-ck { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px 14px; border-top: 1px solid #f3ebe0; }
.dong-ck:first-child { border-top: 0; }
.dong-ck .chep { margin: 0; }
.nhan-ck { color: var(--phu); font-size: 14px; }
.gt-ck { font-size: 16px; color: var(--chu); overflow-wrap: anywhere; }
.dong-ck.tien { background: #fff6e8; }
.dong-ck.tien .gt-ck { font-size: 21px; font-weight: 800; color: var(--cam-dam); }
.dong-ck.noi-dung .gt-ck { color: #b45309; letter-spacing: .5px; }
.dong-ck.ngan-hang { grid-template-columns: 100px minmax(0, 1fr); padding-block: 13px; }
.gt-nh { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.gt-nh img { height: 30px; width: auto; }
.gt-nh b { font-size: 16px; }
.gt-nh small { font-size: 13px; color: #475569; line-height: 1.35; }
.tom-don { margin-bottom: 14px; }
.the-ck { padding: 18px; background: #fff; border: 1px solid #efe4d6; border-radius: 20px; box-shadow: 0 6px 20px rgba(120, 70, 20, .06); }
.khung-qr { box-shadow: 0 8px 22px rgba(201, 56, 26, .12); }
.chep.sao-chep { background: #fff; border: 1.5px solid #f0c9a8; color: var(--cam-dam); border-radius: 999px; padding: 7px 13px; font-size: 13px; white-space: nowrap; }
.chep.sao-chep:hover { background: var(--vang-nhat); border-color: var(--cam); color: var(--cam-dam); }
.trang-thai-ck { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 16px; border-radius: 16px; background: #fffaf3; border: 1px solid #f1e2cc; }
.trang-thai-ck > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.trang-thai-ck b { color: var(--cam-dam); }
.trang-thai-ck div span { color: var(--phu); font-size: 14px; }
.dem-gio { flex: none; background: #fff; border: 1px solid #f0c9a8; border-radius: 999px; padding: 5px 13px; font-weight: 800; color: var(--chu); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .the-ck { padding: 10px; gap: 12px; } .cot-qr, .cot-tt { padding: 14px 12px; } .tieu-ck { font-size: 16px; } .trang-thai-ck { flex-wrap: wrap; } .trang-thai-ck > div { flex: 1 1 calc(100% - 40px); } .dem-gio { margin-left: 36px; } }
@media (max-width: 420px) { .dong-ck { grid-template-columns: minmax(0, 1fr) auto; } .dong-ck .nhan-ck { grid-column: 1 / -1; } .dong-ck.ngan-hang { grid-template-columns: minmax(0, 1fr); } .khung-qr .qr-that { width: 220px; height: 220px; } }
.chep { border: 0; background: var(--vang-nhat); color: var(--cam-dam); font: 700 13px/1 var(--phong); padding: 7px 11px; border-radius: 7px; cursor: pointer; margin-left: 6px; }
.chep:hover { background: var(--vang); color: var(--chu); }
.bao { padding: 14px 18px; border-radius: 10px; background: var(--vang-nhat); font-weight: 600; overflow-wrap: anywhere; }
.bao.ok { background: #dff3e8; color: #04543a; }
.bao.cho { display: flex; gap: 14px; align-items: center; }
.xoay { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #f0d98a; border-top-color: var(--cam-dam); animation: xoay 1s linear infinite; }
@keyframes xoay { to { transform: rotate(360deg); } }
.ma-don { border: 1.5px dashed var(--cam); border-radius: 12px; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: center; }
.ma-don div span { display: block; font-size: 13px; color: var(--phu); }
.ma-don div strong { font-size: 21px; letter-spacing: .04em; overflow-wrap: anywhere; }
.ma-don p { font-size: 14px; color: var(--phu); }
.nhap { display: grid; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.nhap input, .nhap textarea, .nhap select { font: 400 16px/1.4 var(--phong); padding: 11px 14px; border: 1.5px solid #d6cdc3; border-radius: 10px; width: 100%; background-color: #fff; color: var(--chu); flex: none; }
.nhap input:focus, .nhap textarea:focus { border-color: var(--cam-dam); outline: 2px solid rgba(201, 56, 26, .2); outline-offset: 0; }
.nhap textarea { min-height: 140px; resize: vertical; }

/* Cửa sổ xem nhanh, phóng to */
dialog { border: 0; border-radius: 16px; padding: 24px; width: max-content; max-width: min(940px, calc(100vw - 24px)); max-height: 94vh; color: var(--chu); background: var(--giay); box-shadow: var(--bong-cao); overscroll-behavior: contain; }
dialog::backdrop { background: rgba(30, 22, 16, .72); }
.dong { position: sticky; top: 0; float: right; z-index: 3; width: 42px; height: 42px; margin: -8px -8px 0 8px; border: 0; border-radius: 50%; background: #f0ebe4; color: var(--chu); font: 400 26px/1 var(--phong); cursor: pointer; padding: 0 0 3px; }
.dong:hover { background: var(--vang); }
.nhanh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; clear: none; }
.nhanh .tt { padding-top: 4px; }
.nhanh .tt .nhan-hang { padding-right: 44px; }
.nhanh .lon { min-height: 0; }
.nhanh .xem .lon img { max-height: 50vh; }
.nhanh .gia { font-size: 26px; }
/* Đọc thử kín màn hình */
#docTrang { width: max-content; min-width: 100%; display: grid; gap: 12px; justify-items: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.doc-to { background: #fff; }
.doc-to canvas { display: block; width: 100%; height: 100%; }
.doc-ghi { padding: 30vh 24px; text-align: center; font-size: 17px; }
.doc-het { display: grid; gap: 16px; justify-items: center; padding: 36px 20px 60px; text-align: center; font-size: 19px; }
.doc-nut { width: 100%; }
dialog.toan { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border-radius: 0; background: #2b2522; color: #fff; overflow: hidden; }
.toan .dong { position: fixed; top: 12px; right: 22px; float: none; margin: 0; width: 46px; height: 46px; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.phong { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.phong-cuon { overflow: auto; scrollbar-gutter: stable; outline: 0; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.phong-nut button.doc-phan { border: 0; background: none; color: #fff; font: 600 16px/1 var(--phong); font-variant-numeric: tabular-nums; padding: 10px 6px; border-radius: 8px; cursor: pointer; }
.phong-nut button.doc-phan:hover { background: rgba(255, 255, 255, .12); }
.phong-nut { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #1f1a18; font-weight: 600; font-variant-numeric: tabular-nums; }
.phong-nut #docSo { min-width: 96px; } .phong-nut #docPhan { min-width: 52px; text-align: center; } .phong-nut #docMua { margin-left: 22px; } .phong-nut #docMua .nut { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.phong-nut [data-doc-muc] { font-size: 20px; padding-inline: 15px; }

/* Cuối trang */
.cuoi { background: linear-gradient(120deg, #9c2a11 0%, #7c1d0a 100%); color: #fff; border-top: 4px solid var(--vang); font-size: 14.5px; }
.cuoi-luoi { padding-block: 28px 24px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) auto; gap: 28px; }
.cuoi-ten { display: flex; gap: 18px; align-items: flex-start; }
.cuoi-ten > div { min-width: 0; }
.cuoi-ten p { padding: 2.5px 0; }
.cuoi-logo { flex: none; padding: 0 !important; }
.cuoi-logo img { height: 112px; width: auto; max-width: 150px; border-radius: 50%; background: #fff; padding: 3px; }
.cuoi h2 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: 0; }
.cuoi-luoi a { display: block; width: fit-content; max-width: 100%; color: #fff; text-decoration: none; padding: 2.5px 0; overflow-wrap: anywhere; transition: color .15s; }
.cuoi-luoi a:hover { text-decoration: underline; }
.cuoi-cong small { display: block; font-size: 13px; opacity: .8; margin-top: 1px; }
/* Màn vừa: 6 cột chia đều thì cột tên web quá hẹp; mỗi cột rộng theo chữ, khoảng trống chia đều */
@media (min-width: 1180px) and (max-width: 1499px) { .cuoi-luoi { grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 18px; } .cuoi-logo img { height: 92px; } .cuoi-ten { gap: 14px; } }
/* Dưới 1180px: ba cột Tài liệu, Hỗ trợ, Chính sách; tên web, Công cụ, Kết nối mỗi thứ một hàng */
@media (max-width: 1179px) {
  .cuoi-luoi { grid-template-columns: repeat(3, 1fr); gap: 22px 20px; } .cuoi-ten, .cuoi-lh, .cuoi-cong { grid-column: span 3; }
  .cuoi-cong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; } .cuoi-cong h2 { margin: 0; } .cuoi-cong a { display: flex; align-items: baseline; gap: 8px; } .cuoi-cong small { margin: 0; }
  .cuoi-lh { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; } .cuoi-lh h2 { display: none; } .cuoi-mxh { margin: 0; }
}
@media (min-width: 1180px) { .cuoi-lh > a { white-space: nowrap; overflow-wrap: normal; } }
@media (min-width: 1180px) and (max-width: 1299px) { .cuoi-luoi { gap: 12px; } .cuoi-logo img { height: 74px; } .cuoi-ten { gap: 12px; } }
.cuoi-lh > a { display: flex; align-items: center; gap: 9px; }
.cuoi-lh > a .hinh { width: 17px; height: 17px; }
.cuoi-mxh { display: flex; gap: 9px; margin-top: 7px; }
.cuoi-mxh a { padding: 0; }
.cuoi-mxh .tron { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55); transition: transform .15s; }
.cuoi-mxh a:hover .tron { transform: translateY(-2px); }
.cuoi-mxh .hinh { width: 19px; height: 19px; } .cuoi-mxh .fb .hinh { width: 21px; height: 21px; } .cuoi-mxh .zalo span { font: 800 10.5px/1 var(--phong); letter-spacing: -.02em; }
.tron.goi-dien { background: var(--cam-dam); } .tron.goi-dien .hinh { fill: currentColor; stroke-width: 1; }
.tron.zalo { background: #0062e6; } .tron.mess { background: linear-gradient(160deg, #a033ff, #0a6cf5); } .tron .tia { fill: #6a3bd1; } .tron.fb { background: #1877f2; }
.cuoi-day { background: rgba(50, 8, 0, .3); font-size: 13px; }
.cuoi-day .khung { text-align: center; padding-block: 10px; }
.cuoi :focus-visible { outline-color: var(--vang); }
.fanpage { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: var(--bo); background: linear-gradient(105deg, #0f5fd0, #1c86ff); color: #fff; box-shadow: var(--bong); }
.fanpage > div { flex: 1; min-width: 0; } .fanpage .nut { flex: none; }
.fanpage h2 { font-size: 16px; line-height: 1.35; } .fanpage p { font-size: 14px; color: #e7f1ff; }
.fanpage .tron { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1877f2; } .fanpage .tron .hinh { width: 29px; height: 29px; }
.nut.trang { background: #fff; color: #0f5fd0; } .nut.trang:hover { background: var(--vang); color: var(--chu); }
.noi { position: fixed; right: 18px; bottom: 18px; z-index: 6; }
.noi-ds { display: grid; gap: 12px; }
.noi-nut { display: none; }
.noi a { position: relative; width: 54px; height: 54px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(40, 25, 10, .3); transition: transform .15s, box-shadow .15s; }
.noi a:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(40, 25, 10, .38); }
.noi .goi-dien { background: var(--cam-dam); }
.noi .goi-dien .hinh { width: 26px; height: 26px; fill: currentColor; stroke-width: 1; }
.noi .zalo { background: #0062e6; }
.noi .zalo span { font: 800 16px/1 var(--phong); letter-spacing: -.02em; }
.noi .mess { background: linear-gradient(160deg, #a033ff, #0a6cf5); }
.noi .mess .hinh { width: 31px; height: 31px; }
.noi .tia { fill: #6a3bd1; }
/* Chữ hiện khi đưa chuột vào nút */
.noi b { position: absolute; right: 64px; top: 50%; translate: 0 -50%; padding: 8px 14px; border-radius: 8px; background: var(--chu); color: #fff; font-size: 14px; line-height: 1.3; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s; }
.noi a:focus-visible b { opacity: 1; visibility: visible; }
@media (hover: hover) { .noi a:hover b { opacity: 1; visibility: visible; } }
@media (max-width: 720px) { .noi { right: 12px; bottom: 14px; } .noi-ds { gap: 10px; } .noi a { width: 50px; height: 50px; } }
@media (max-width: 1179px) {
  .noi.gom { display: grid; gap: 10px; justify-items: end; }
  .noi.gom:not(.mo) .noi-ds { display: none; }
  .noi.mo .noi-ds { animation: xoe .18s ease-out; }
  .noi.mo b { opacity: 1; visibility: visible; }
  .gom .noi-nut { width: 50px; height: 50px; padding: 0; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; background: var(--cam-dam); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(40, 25, 10, .3); }
  .noi-nut .hinh { width: 25px; height: 25px; } .noi-nut span { display: none; font: 400 38px/1 var(--phong); }
  .mo .noi-nut { background: var(--chu); } .mo .noi-nut .hinh { display: none; } .mo .noi-nut span { display: block; }
  body:has(.the-lien) .noi { display: none; }
}
@keyframes xoe { from { opacity: 0; translate: 0 14px; } }

@media (min-width: 1180px) {
  .khung { padding-inline: 64px; }
  /* Ba cột: hai cột bên đứng yên khi cuộn trang */
  .ba-khung { display: grid; grid-template-columns: 241px minmax(0, 1fr) 241px; gap: 20px; padding-top: 20px; }
  .ben { display: block; min-width: 0; min-height: calc(100vh - 190px); padding-bottom: 40px; }
  .dinh { container-type: size; position: sticky; top: 68px; height: calc(100vh - 206px); display: flex; flex-direction: column; }
  .dinh > .the-ben { flex: 1; min-height: 0; }
  .dm-than, .xh ol { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d9cdc0 transparent; overscroll-behavior: contain; }
  .dm-than > *, .xh ol > * { flex-shrink: 0; }
  .dau-tc, .giua .duong { padding-top: 0; }
  .giua > .khung:first-child > .muc:first-child { padding-top: 0; }
  .giua .don { max-width: none; } .giua form.don { padding: 36px clamp(28px, 5vw, 90px); }
  .muc-cap { display: none; }
  .bia .chon label { flex-basis: 120px; }
  .menu .khung { gap: clamp(0px, 1vw, 18px); }
  .tim { max-width: 900px; margin-inline: auto; }
  .noi { right: 9px; bottom: 16px; } .noi-ds { gap: 10px; } .noi a { width: 46px; height: 46px; } .noi .zalo span { font-size: 14px; } .noi .goi-dien .hinh { width: 22px; height: 22px; } .noi .mess .hinh { width: 26px; height: 26px; } .noi b { right: 56px; }
  /* Thẻ gọn lại cho vừa cột giữa */
  .the .than { padding: 14px 14px 10px; } .the .chan { margin: 0 14px; padding: 10px 0 14px; } .the .chan .nut { padding: 8px 11px; font-size: 13.5px; } .the .gia { font-size: 17px; }
  .hai { padding: 22px; gap: 26px; }
  .buoc li { flex-direction: column; gap: 10px; padding: 18px; }
  .hoi-dap details:hover, .hoi-dap details[open] { border-color: var(--cam-dam); }
  .hoi-dap summary { display: flex; align-items: center; min-height: 64px; padding: 8px 34px 8px 14px; font-size: 14.5px; line-height: 1.4; }
  .hoi-dap summary::after { right: 13px; font-size: 22px; }
  .hoi-dap details p { padding: 0 14px 14px; font-size: 14.5px; }
}
/* Số thẻ trên một hàng; trang chủ không để hàng cuối bị hở */
/* Giá và nút cùng một hàng cho thẻ gọn */
@media (min-width: 721px) {
  .the .chan { gap: 6px; }
  .the .chan .nut { flex: none; white-space: nowrap; padding: 8px 11px; font-size: 13.5px; }
  .the .chan .gia { font-size: 16.5px; white-space: nowrap; }
}
/* Máy tính: luôn 4 thẻ một hàng, chữ trong thẻ gọn lại (chủ web chọn ngày 26/11/2026) */
@media (min-width: 1300px) {
  .luoi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .luoi.mot-hang > :nth-child(n+5), .luoi.hai-hang > :nth-child(n+9), .luoi.hai-hang > :nth-child(4n+5):nth-last-child(-n+3), .luoi.hai-hang > :nth-child(4n+5):nth-last-child(-n+3) ~ * { display: none; }
}
@media (min-width: 1180px) {
  .the .than { padding: 10px 11px 8px; gap: 6px; }
  .the h3 { font-size: 14px; line-height: 1.4; }
  .the .phu { font-size: 12.5px; line-height: 1.5; }
  .the .nhan-hang span { font-size: 12px; padding: 1px 7px; }
  .the .chan { margin: 0 11px; padding: 8px 0 10px; gap: 5px; }
  .the .chan .gia { font-size: 15px; } .the .chan .gia del { font-size: 12px; }
  .the .chan .nut { padding: 6px 14px; font-size: 13px; }
  .the .nhan { font-size: 11.5px; }
  .the .anh::after { font-size: 13px; padding: 6px; }
}
/* 1180 đến 1299px cột giữa hẹp: 3 thẻ, cỡ thẻ gần bằng 4 thẻ ở màn hình rộng */
@media (min-width: 1180px) and (max-width: 1299px) {
  .luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .luoi.mot-hang > :nth-child(n+4), .luoi.hai-hang > :nth-child(n+10), .luoi.hai-hang > :nth-child(3n+4):nth-last-child(-n+2), .luoi.hai-hang > :nth-child(3n+4):nth-last-child(-n+2) ~ * { display: none; }
}
@media (min-width: 1180px) and (max-width: 1499px) {
  .hoi-dap > div { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } .hoi-dap details { grid-column: span 2; } .hoi-dap details:nth-child(n+4) { grid-column: span 3; }
  .the-ben h2 { font-size: 15px; padding: 0 12px; gap: 8px; }
  .dm .o-hinh { width: 54px; height: 54px; border-radius: 16px; } .dm .hc { width: 38px; height: 38px; } .dm-ten { gap: 11px; } .dm-ten strong { font-size: 15px; } .dm-than { gap: 8px; padding: 10px; } .dm-nhom { padding: 10px; } .dm-lop { gap: 4px; } .dm-lop a { min-width: 28px; height: 28px; padding: 0 3px; } .dm-lop em { margin-right: 0; } .dm-lop.chu a { padding: 0 9px; }
  .bia h1 { font-size: 30px; }
}
@media (min-width: 1500px) {
  .ba-khung { grid-template-columns: 291px minmax(0, 1fr) 291px; gap: 24px; }
  .luoi { gap: 16px; }
  .buoc li { flex-direction: row; gap: 14px; }
  .hai { padding: 26px; gap: 32px; }
  /* Năm câu hỏi trên một hàng */
  .hoi-dap > div { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .hoi-dap summary { min-height: 78px; padding: 8px 28px 8px 12px; font-size: 14px; } .hoi-dap summary::after { right: 10px; }
  .hoi-dap details p { padding: 0 12px 12px; font-size: 14px; }
}
/* Nội dung hai cột bên tự to nhỏ theo chiều cao cột */
@media (min-width: 1500px) {
  @container (min-height: 735px) {
    .dm .o-hinh { width: 72px; height: 72px; border-radius: 21px; } .dm .hc { width: 51px; height: 51px; }
    .dm-ten strong { font-size: 17.5px; } .dm-ten small { font-size: 14px; }
    .dm-nhom { padding-block: 10px; } .dm-lop { gap: 5px; } .dm-lop a { min-width: 34px; height: 34px; border-radius: 17px; font-size: 15px; } .dm-lop.chu a { height: 31px; font-size: 13.5px; }
    .xh-anh { width: 56px; height: 76px; } .xh ol:not(:has(> :nth-child(5))) .xh-anh { width: 88px; height: 122px; } .xh-chu strong { font-size: 15.5px; } .xh-chu small { font-size: 14px; }
  }
}
@media (min-width: 1180px) {
  @container (max-height: 690px) {
    .dm .o-hinh { width: 46px; height: 46px; border-radius: 14px; } .dm .hc { width: 33px; height: 33px; }
    .dm-than { gap: 8px; padding: 10px; } .dm-nhom { gap: 7px; padding: 8px 11px; } .dm-ten strong { font-size: 15px; } .dm-ten small { font-size: 12.5px; }
    .dm-lop { gap: 4px; } .dm-lop a { min-width: 28px; height: 28px; padding: 0 3px; } .dm-lop.chu a { height: 27px; padding: 0 9px; font-size: 12.5px; }
    .xh li a { padding: 6px 8px; } .xh-anh { width: 38px; height: 52px; } .xh ol:not(:has(> :nth-child(5))) .xh-anh { width: 54px; height: 75px; } .xh-chu strong { font-size: 14px; -webkit-line-clamp: 2; } .xh-het { margin-bottom: 12px; padding: 6px; }
  }
}
@media (min-width: 721px) { .hai > .xem { position: sticky; top: 72px; align-self: start; } }
@media (max-width: 1179px) { .luoi.mot-hang > :nth-child(n+5), .luoi.hai-hang > :nth-child(n+9) { display: none; } }
@media (max-width: 1000px) {
  .luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dau-goi { display: none; }
  .cap a { padding: 16px; gap: 16px; } .cap .o-hinh { width: 68px; height: 68px; border-radius: 20px; } .cap .hc { width: 48px; height: 48px; } .cap-mui { display: none; }
  .buoc li { flex-direction: column; gap: 10px; }
}
@media (max-width: 720px) {
  .khung { padding-inline: 14px; }
  .logo { font-size: 19px; } .logo span { font-size: 21px; white-space: normal; } .logo img { height: 44px; }
  .dau .khung { gap: 10px; padding-block: 10px; }
  .tim { flex-basis: 100%; }
  .tim .nut { padding-inline: 16px; } .tim .nut span { display: none; }
  .truot-chu { position: static; background: var(--chu); padding: 12px 14px; } .truot-chu strong { font-size: 18px; } .truot-chu .nut { margin-left: 0; }
  .mui { display: none; }
  .dau-tc { padding-top: 12px; } .vung-free { padding: 0 14px; margin-top: 32px; } .bia-trong { padding: 22px 16px 18px; }
  .bia p { font-size: 16px; }
  .chon label { flex-basis: calc(50% - 6px); }
  .chon .nut { flex: 1 1 100%; }
  .goi-y { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .goi-y.sang { flex-wrap: wrap; margin: 0; padding: 0; }
  .muc { padding-top: 32px; }
  .duong { padding-top: 14px; } .duong a ~ a ~ span { display: none; }
  .cap { gap: 10px; }
  .cap a { flex-direction: column; gap: 12px; text-align: center; padding: 18px 8px 14px; }
  .cap strong { font-size: 17px; } .cap-chu > span { font-size: 14px; } .cap-chu small { font-size: 13px; }
  .tab { width: 100%; } .tab button { flex: 1; padding-inline: 8px; font-size: 14px; }
  .luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .luoi.hai-hang:not(.vuot) > :nth-child(n+7) { display: none; }
  .luoi.vuot { display: flex; gap: 10px; margin: -4px -14px -14px; padding: 4px 14px 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 14px; scrollbar-width: none; }
  .luoi.vuot::-webkit-scrollbar { display: none; }
  .luoi.vuot > :nth-child(n) { display: flex; flex: 0 0 max(140px, 40vw); scroll-snap-align: start; }
  .the .khong-anh { padding: 8px; }
  .the .anh::after { display: none; }
  .nhan { top: 8px; left: 8px; font-size: 12px; padding: 3px 8px; }
  .the .than { padding: 12px 12px 10px; } .the h3 { font-size: 14.5px; } .the .phu { font-size: 13px; }
  .the .chan { margin: 0 12px; padding: 10px 0 12px; } .the .chan .nut { width: 100%; padding-inline: 8px; }
  .buoc, .hai, .hai-don, .nhanh { grid-template-columns: minmax(0, 1fr); }
  .buoc { gap: 12px; } .buoc li { flex-direction: row; padding: 16px; }
  .hai { padding: 16px; gap: 22px; } .don, .van-ban .noi-dung { padding: 20px 16px; } .noi-hai .noi-dung { padding: 20px 16px; }
  .the-lien { grid-template-columns: minmax(0, 1fr); gap: 10px; } .the-lien a { padding: 11px 14px; }
  .xem .lon img { max-height: 400px; }
  .ma-don { grid-template-columns: minmax(0, 1fr); }
  .mua-dinh { display: flex; gap: 14px; align-items: center; justify-content: space-between; position: fixed; inset: auto 0 0; z-index: 7; background: var(--giay); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(60, 35, 10, .16); }
  .mua-dinh .gia del { display: block; margin: 0; line-height: 1.2; }
  body:has(.mua-dinh) .noi { bottom: 84px; }
  body:has(.mua-dinh) .cuoi-day .khung { padding-bottom: 120px; }
  dialog { padding: 16px; }
}
@media (max-width: 720px) { .cuoi { font-size: 14px; } .cuoi-luoi { gap: 18px 12px; padding-block: 22px 18px; } .cuoi-ten { align-items: center; } .cuoi-luoi a { padding: 4px 0; } .fanpage { padding: 11px 14px; } .hai-dai { gap: 10px; } .the-lien + .hai-dai { margin-top: -8px; } }
@media (max-width: 480px) { .phong-nut { gap: 6px; padding-inline: 8px; } .phong-nut #docSo { min-width: 0; font-size: 13px; } .phong-nut #docPhan { min-width: 42px; font-size: 13px; } .phong-nut [data-doc-muc] { padding-inline: 12px; } .phong-nut #docMua { margin-left: 4px; } .phong-nut #docMua .nut { padding-inline: 10px; font-size: 13.5px; } .phong-nut #docMua .hinh { display: none; } }
@media (max-width: 480px) { .fanpage .nut { padding-inline: 12px; } }
@media (hover: none) { .mui { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .truot-to, .noi.mo .noi-ds { animation: none; } .xoay { animation-duration: 4s; } * { transition: none !important; } }
@media print { dialog.toan, body:has(dialog.toan[open]) > * { display: none !important; } }
@media print { .menu, .tim, .noi, .mua-dinh, .cuoi { display: none; } }

/* Bài giảng PowerPoint trên màn hình nhỏ; menu thêm một mục nên thu khoảng cách khi màn hình chưa đủ rộng */
@media (max-width: 1399px) { .menu a { padding-inline: 9px; font-size: 14.5px; } .menu a.dang::after { inset-inline: 9px; } }
@media (min-width: 721px) and (max-width: 1299px) { .menu .khung { gap: 0; } .menu a { padding-inline: 7px; font-size: 13.5px; } .menu a.dang::after { inset-inline: 7px; } }
/* Menu phía khách (30/11/2026, chủ web thấy chữ nhỏ, khoảng cách lệch): chữ to hơn, máy tính thì các mục giãn đều hết bề rộng nội dung */
/* Lần 2 (chủ web thấy giãn hết bề rộng thì xa nhau quá): dồn vào giữa, cách nhau vừa phải, di chuột có nền cam nhạt */
.menu.khach .khung { gap: 4px; padding-block: 5px; }
.menu.khach a { font-size: 16px; padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s; }
.menu.khach a:hover { background: #fff1e4; }
.menu.khach a.dang { background: #fff1e4; }
.menu.khach a.dang::after { display: none; }
@media (min-width: 1180px) and (max-width: 1399px) { .menu.khach .khung { gap: 2px; } .menu.khach a { font-size: 15px; padding-inline: 10px; } .menu.khach a.dang::after { inset-inline: 10px; } }
@media (min-width: 721px) and (max-width: 1179px) { .menu.khach .khung { gap: 0; } .menu.khach a { font-size: 14px; padding-inline: 7px; } .menu.khach a.dang::after { inset-inline: 7px; } }
@media (max-width: 720px) { .menu.khach a { font-size: 15px; padding-inline: 10px; } .menu.khach a.dang::after { inset-inline: 10px; } }
@media (min-width: 1180px) and (max-width: 1499px) { .dm-bg-cap .dm-lop { gap: 3px; } .dm-bg-cap .dm-lop a { min-width: 26px; height: 26px; padding: 0 2px; font-size: 13px; } .dm-lop a.dm-cap { min-width: 36px; font-size: 11px; } }
@media (max-width: 720px) {
  .vung-bg { padding: 0 14px; margin-top: 32px; }
  .bg-cap { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bg-o { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 14px; }
  .bg-o .cap-mui { display: none; } .bg-o .o-hinh { width: 48px; height: 48px; border-radius: 14px; } .bg-o .hc { width: 34px; height: 34px; } .bg-ten strong { font-size: 16px; }
  .bg-o .dm-lop { justify-content: flex-end; }
  .loc-cap, .loc-lop { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
}
@media (max-width: 420px) { .bg-o { grid-template-columns: minmax(0, 1fr); } .bg-o .dm-lop { justify-content: flex-start; } }

/* Cột phải: Tài liệu miễn phí ở trên (cao vừa nội dung), Tải miễn phí nhiều nhất chiếm phần còn lại */
@media (min-width: 1180px) {
  .dinh { gap: 14px; }
  .dinh > .dm-phai { flex: none; }
  .dinh > .dm-phai:last-child { flex: 1; }
  .dm-phai .dm-than { flex: none; overflow: visible; }
  .dm-phai .dm-nhom { flex: none; }
}

/* Thẻ tài liệu cân đối (26/11/2026): nhãn một dòng, tên luôn chiếm đủ 3 dòng và chia dòng đều nhau, nên các thẻ cùng hàng thẳng nhau */
.the .nhan-hang { flex-wrap: nowrap; overflow: hidden; min-width: 0; }
.the .nhan-hang span { flex: none; white-space: nowrap; }
.the .nhan-hang span:last-child:not(:first-child) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.the h3 { min-height: calc(3em * 1.42); }
.the h3 a { text-wrap: balance; }
@media (min-width: 1180px) { .the h3 { min-height: calc(3em * 1.4); } }
/* Căn giữa phần chữ trong thẻ (chủ web thử 26/11/2026) */
.the .than { text-align: center; justify-items: center; }
.the .nhan-hang { justify-content: center; max-width: 100%; }
.the h3, .the .phu { width: 100%; }
@media (max-width: 720px) { .the .chan { justify-content: center; } }

/* ---------- Giỏ hàng (26/11/2026) ---------- */
.dau .logo { order: 0; } .dau .tim { order: 1; } .dau .dau-goi { order: 2; } .dau .dau-gio { order: 3; }
.dau-gio { position: relative; display: flex; align-items: center; gap: 8px; color: var(--chu); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 4px; }
.dau-gio .hinh { width: 27px; height: 27px; color: var(--cam-dam); }
.dau-gio:hover { color: var(--cam-dam); }
.dau-gio b { position: absolute; left: 18px; top: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--cam-dam); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px #fff; }
.nut-gio.da-them { color: var(--xanh); box-shadow: inset 0 0 0 1.5px var(--xanh); }
.mua-nut { display: flex; gap: 8px; align-items: center; }
.nut-gio.gon { padding-inline: 12px; min-width: 48px; }
.nut-gio.gon span { display: none; }
.bao-gio { position: fixed; left: 50%; bottom: 22px; translate: -50% 0; z-index: 30; display: flex; gap: 14px; align-items: center; padding: 10px 10px 10px 18px; border-radius: 12px; background: var(--chu); color: #fff; font-weight: 600; box-shadow: var(--bong-cao); max-width: calc(100vw - 24px); }
.bao-gio .nut { flex: none; }
body:has(.mua-dinh) .bao-gio { bottom: 90px; }
/* Trang giỏ hàng */
.gio .hang { align-items: center; }
.gio-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gio-ds li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 12px; background: #fff; }
.gio-anh { width: 56px; height: 72px; border-radius: 5px; overflow: hidden; background: var(--anh-nen); box-shadow: 0 2px 7px rgba(60, 35, 10, .18); }
.gio-anh img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gio-chu { display: grid; gap: 3px; min-width: 0; line-height: 1.4; }
.gio-chu a { color: var(--chu); font-weight: 600; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gio-chu a:hover { color: var(--cam-dam); }
.gio-chu small { color: var(--phu); font-size: 13px; }
.gio-gia { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gio-gia b { color: var(--cam-dam); font-size: 16px; } .gio-gia del { display: block; color: var(--phu); font-size: 13px; }
button.lien { border: 0; background: none; color: var(--cam-dam); font: 600 14px/1 var(--phong); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 10px 6px; }
button.lien:hover { color: var(--cam-toi); }
#gioMua:not([hidden]) { display: grid; gap: 14px; }
.gio-tong td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.gio-tong .tong td { font-size: 19px; font-weight: 800; color: var(--cam-dam); }
.gio-tong .tong td:first-child { color: var(--chu); }
.giam-gia, .giam-gia td:last-child { color: var(--xanh); font-weight: 700; }
.gio-goi { background: var(--vang-nhat); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.gio .trong { border-style: dashed; }
/* Trang đơn nhiều bộ */
.ds-mua { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ds-mua b { margin-left: 8px; color: var(--cam-dam); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tai-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tai-ds li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 12px; background: #fff; }
.tai-ds li span { min-width: 0; font-weight: 600; }
.tai-ds .nut { flex: none; }
@media (max-width: 1000px) { .dau-gio span { display: none; } }
@media (max-width: 720px) {
  .dau .dau-gio { order: 1; margin-left: auto; } .dau .tim { order: 2; }
  .gio-ds li { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .gio-anh { width: 48px; height: 62px; grid-row: span 2; }
  .gio-gia { grid-column: 2; text-align: left; } .gio-gia del { display: inline; margin-left: 6px; }
  .gio-ds li > button.lien { grid-column: 3; grid-row: 1 / span 2; }
  .tai-ds li { flex-wrap: wrap; } .tai-ds .nut { width: 100%; }
  .mua-dinh .mua-nut .nut { min-height: 46px; }
}
.don .gio-ds, .don .tai-ds { padding-left: 0; gap: 10px; } .gio-tong td:first-child { width: auto; }
/* Thẻ tài liệu: giá ở giữa, dưới là nút Mua và nút giỏ hàng cạnh nhau (26/11/2026) */
.the .chan { flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.the .chan .chan-nut { display: flex; gap: 6px; width: 100%; }
.the .chan .chan-nut .nut { flex: 1 1 auto; width: auto; min-height: 38px; padding: 6px 10px; }
.the .chan .chan-nut .nut-gio { flex: 0 0 44px; padding: 0; position: relative; }
.the .chan .nut-gio .hinh { width: 20px; height: 20px; }
.the .chan .nut-gio.da-them { background: #e9f6ef; }
.the .chan .nut-gio.da-them::after { content: "✓"; position: absolute; right: -5px; top: -6px; width: 17px; height: 17px; border-radius: 50%; background: var(--xanh); color: #fff; font-size: 11px; line-height: 17px; text-align: center; font-weight: 800; }
@media (max-width: 720px) { .the .chan .chan-nut .nut { min-height: 42px; } .the .chan .chan-nut .nut-gio { flex-basis: 46px; } }
/* Trang Hướng dẫn mua và các chính sách: chữ căn đều hai bên (chủ web chọn 26/11/2026) */
.van-ban .noi-dung p { text-align: justify; }

/* ---------- Nhận xét của thầy cô (26/11/2026) ---------- */
.sao { color: #f2a900; letter-spacing: 1px; font-size: 17px; line-height: 1; white-space: nowrap; }
.sao span { color: #dcd3c8; }
.nx-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.nx-the { margin: 0; background: var(--giay); border-radius: var(--bo); box-shadow: var(--bong); padding: 18px 18px 16px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--vang-dam); }
.nx-the blockquote { margin: 0; color: var(--chu); font-size: 15px; line-height: 1.6; display: grid; gap: 8px; }
.nx-the blockquote p { text-align: left; }
.nx-the figcaption { display: grid; gap: 2px; font-size: 14px; color: var(--phu); }
.nx-the figcaption b { color: var(--chu); }
.nx-the figcaption a { color: var(--cam-dam); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-the figcaption a:hover { text-decoration: underline; }
.nhan-xet-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--vien); border-radius: 12px; background: #fffdf8; scroll-margin-top: 80px; }
.nhan-xet-form h2 { font-size: 19px; }
.nhan-xet-form textarea { min-height: 110px; }
.nhan-xet-form .nut { justify-self: start; }
.don .nx-cua-toi { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.nx-cua-toi li { background: #fff; border: 1px solid var(--vien); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
@media (max-width: 720px) { .nhan-xet-form { padding: 14px; } .nhan-xet-form .nut { justify-self: stretch; } }
/* Thẻ nhận xét: chữ căn đều hai bên, ngoặc kép trang trí, tên người nhận xét luôn ở đáy thẻ (chủ web chọn 26/11/2026) */
.nx-luoi { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.nx-the { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 18px; border-top: 0; border-left: 4px solid var(--vang-dam); overflow: hidden; }
.nx-the::before { content: "\201C"; position: absolute; right: 14px; top: -6px; font: 700 76px/1 Georgia, "Times New Roman", serif; color: var(--cam); opacity: .16; pointer-events: none; }
.nx-the .sao { font-size: 18px; }
.nx-the blockquote { flex: 1; font-size: 15.5px; line-height: 1.7; color: #3a332e; }
.nx-the blockquote p { text-align: justify; text-justify: inter-word; hyphens: auto; }
.nx-the figcaption { display: flex; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--vien); }
.nx-chu-cai { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, #ffb35c, var(--cam-dam)); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 2px 6px rgba(201, 56, 26, .3); }
.nx-ai { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--phu); }
.nx-ai b { color: var(--chu); font-size: 15px; }
@media (max-width: 720px) { .nx-the { padding: 16px 16px 14px; } .nx-the blockquote { font-size: 15px; } }

/* Khung Tài liệu miễn phí (cột phải): hàng TH/THCS/THPT và số lớp (27/11/2026) */
.dm-phai .dm-free .dm-bg-cap { display: grid; gap: 6px; }
.dm-phai .dm-free .dm-lop a.dm-cap { min-width: 44px; background: rgba(2, 115, 74, .13); font-size: 12px; letter-spacing: .02em; }
.dm-phai .dm-free .dm-lop a.dm-cap:hover, .dm-phai .dm-free .dm-lop a.dm-cap.dang { background: var(--m); color: #fff; }
.dm-lop .trong-lop { min-width: 32px; height: 32px; padding: 0 3px; border-radius: 16px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--m); opacity: .38; border: 1px dashed currentColor; cursor: default; }
@media (min-width: 1180px) and (max-width: 1499px) { .dm-phai .dm-free .dm-bg-cap .dm-lop { flex-wrap: nowrap; gap: 3px; } .dm-phai .dm-free .dm-lop a, .dm-lop .trong-lop { min-width: 27px; height: 27px; font-size: 13px; padding: 0 2px; } .dm-phai .dm-free .dm-lop a.dm-cap { min-width: 38px; font-size: 11px; } }
/* Chữ "Tiểu học" đầy đủ: ô cấp cùng bề rộng ở cả ba hàng, không xuống dòng */
.dm-phai .dm-free .dm-lop a.dm-cap { min-width: 66px; white-space: nowrap; padding: 0 8px; }
@media (min-width: 1180px) and (max-width: 1499px) { .dm-phai .dm-free .dm-lop a.dm-cap { min-width: 58px; padding: 0 5px; font-size: 11px; } .dm-phai .dm-free .dm-bg-cap .dm-lop a:not(.dm-cap), .dm-phai .dm-free .dm-bg-cap .trong-lop { min-width: 25px; height: 25px; font-size: 12.5px; } }
