@import url("phong/phong.css");

:root {
  --navy: #1F3552;
  --navy-2: #2C4A70;
  --do: #8C2A33;
  --olive: #6E7B2F;
  --kem: #F7F2E7;
  --kem-2: #EFE7D6;
  --giay: #FBF8F1;
  --muc: #1E2633;
  --xam: #5B6474;
  --vien: #D8CDB6;
  --font-than: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-tieu-de: "Lora", "Noto Serif", Georgia, "Times New Roman", serif;
  --bo: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-than);
  font-size: 17px;
  line-height: 1.55;
  color: var(--muc);
  background-color: var(--kem);
  background-image:
    repeating-linear-gradient(0deg, rgba(31,53,82,.035) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(31,53,82,.03) 0 1px, transparent 1px 34px);
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-tieu-de); color: var(--navy); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.18rem; }
a { color: var(--navy-2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #C9963A; outline-offset: 2px; }
.an { display: none !important; }
.nho { font-size: .88rem; color: var(--xam); }
.giua { text-align: center; }

/* ----- đầu trang và chân trang ----- */
.dau-trang {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; background: var(--navy); color: #fff;
  border-bottom: 4px solid var(--do);
}
.dau-trang img.logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.dau-trang .ten-truong { font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.dau-trang .ten-hp { font-size: .92rem; opacity: .9; }
.dau-trang .phai { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chan-trang { text-align: right; padding: 18px 22px 22px; font-size: .85rem; color: var(--xam); font-style: italic; }

.khung { max-width: 1120px; margin: 0 auto; padding: 22px 18px 10px; }

/* ----- nút ----- */
button, .nut {
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 44px; padding: 8px 16px; border-radius: 8px;
  border: 2px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none;
}
button:hover, .nut:hover { background: var(--navy-2); border-color: var(--navy-2); }
button.phu, .nut.phu { background: #fff; color: var(--navy); }
button.phu:hover, .nut.phu:hover { background: var(--kem-2); }
button.do, .nut.do { background: var(--do); border-color: var(--do); }
button.olive, .nut.olive { background: var(--olive); border-color: var(--olive); }
button:disabled { opacity: .5; cursor: not-allowed; }
button svg, .nut svg { width: 20px; height: 20px; flex: none; }

input, select, textarea {
  font: inherit; color: var(--muc); background: #fff;
  border: 2px solid var(--vien); border-radius: 8px; padding: 9px 12px; min-height: 44px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
label { font-weight: 600; display: block; margin: 10px 0 4px; }

/* ----- thẻ, khung tư liệu ----- */
.the {
  background: var(--giay); border: 1px solid var(--vien); border-radius: var(--bo);
  box-shadow: 0 1px 0 rgba(0,0,0,.03); padding: 18px 20px; margin-bottom: 16px;
}
.the.vien-kep { border: 1px solid var(--vien); outline: 1px solid var(--vien); outline-offset: 3px; }
.the > h2:first-child, .the > h3:first-child { margin-top: 0; }
.thong-bao { border-left: 5px solid var(--olive); background: #F1F2E4; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.thong-bao.canh-bao { border-left-color: var(--do); background: #F7E9E7; }
.nhan { display: inline-block; white-space: nowrap; font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--kem-2); color: var(--navy); border: 1px solid var(--vien); }
.nhan.mo { background: #E7EBD5; color: #4B5520; border-color: #C8CFA4; }
.nhan.dong { background: #EEE; color: #666; }

figure.anh { margin: 0; }
figure.anh img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--vien); background: var(--kem-2); }
figure.anh figcaption { font-size: .88rem; color: var(--xam); margin-top: 6px; }
.anh-cho {
  border: 2px dashed var(--vien); border-radius: 8px; padding: 34px 18px; text-align: center;
  color: var(--xam); background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(31,53,82,.03) 12px 24px);
}
.anh-cho b { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.khung-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.khung-video iframe, .khung-video > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

table.bang { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
table.bang th, table.bang td { border: 1px solid var(--vien); padding: 8px 10px; vertical-align: top; text-align: left; }
table.bang thead th { background: var(--navy); color: #fff; font-family: var(--font-tieu-de); }
table.bang tbody th { background: var(--kem-2); color: var(--navy); }
table.bang tbody tr:nth-child(even) td { background: #FCFAF5; }
.cuon-ngang { overflow-x: auto; }
.nguon { font-size: .85rem; color: var(--xam); margin-top: 6px; }

.the-lien-ket { display: flex; gap: 14px; align-items: flex-start; }
.the-lien-ket .bieu-tuong { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--kem-2); color: var(--navy); display: grid; place-items: center; }
.the-lien-ket .bieu-tuong svg { width: 26px; height: 26px; }

/* ----- thanh tiến độ ----- */
.tien-do { height: 14px; background: var(--kem-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--vien); }
.tien-do > span { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), #8C9A45); width: 0; transition: width .4s; }

/* ----- hộp thoại ----- */
.man-che { position: fixed; inset: 0; background: rgba(20,28,40,.55); display: grid; place-items: center; z-index: 50; padding: 18px; }
.man-che .hop { background: var(--giay); border-radius: 12px; padding: 24px; max-width: 560px; width: 100%; border-top: 6px solid var(--do); }

.luoi { display: grid; gap: 16px; }
.luoi.c3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .dau-trang { padding: 8px 12px; }
  .dau-trang { flex-wrap: wrap; }
  .dau-trang img.logo { width: 42px; height: 42px; }
  .dau-trang .phai { width: 100%; justify-content: space-between; margin-left: 0; }
  .dau-trang .phai > span:first-child svg { display: none; }
  .dau-trang .ten-truong { font-size: .9rem; }
  .khung { padding: 14px 10px; }
  .the { padding: 14px; }
}

/* ----- thẻ ý chính, dòng thời gian, hoạt động trên lớp ----- */
.tieu-de-y { font-family: var(--font-tieu-de); color: var(--navy); margin: 0 0 .7em; }
.hang-y { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.o-y { flex: 1 1 200px; background: #fff; border: 1px solid var(--vien); border-radius: 10px; padding: 14px 16px; box-shadow: 0 2px 0 rgba(31,53,82,.06); }
.o-y .ten-y { font-family: var(--font-tieu-de); font-weight: 700; color: var(--do); margin-bottom: 6px; font-size: 1.05em; }
.dau-y { align-self: center; font-family: var(--font-tieu-de); font-size: 2.2em; color: var(--do); font-weight: 700; }
.kieu-phuong_trinh .o-y:last-child { background: #EEF0E0; border-color: #C8CFA4; }
.kieu-phuong_trinh .o-y:last-child .ten-y { color: #4B5520; }
.kieu-trich_dan .o-y { background: var(--navy); color: #fff; font-family: var(--font-tieu-de); font-size: 1.25em; text-align: center; padding: 26px 30px; border: 0; }
.truc-tg { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 10px; position: relative; overflow-x: auto; }
.truc-tg::before { content: ""; position: absolute; left: 0; right: 0; top: 2.35em; border-top: 4px solid var(--navy); }
.truc-tg li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 6px; }
.truc-tg .nam { font-family: var(--font-tieu-de); font-weight: 700; color: var(--navy); font-size: 1.2em; }
.truc-tg .cham { width: 18px; height: 18px; border-radius: 50%; background: var(--do); border: 3px solid var(--kem); box-shadow: 0 0 0 2px var(--do); position: relative; z-index: 1; }
.truc-tg b { color: var(--do); font-size: .92em; }
.truc-tg .mt { font-size: .82em; color: var(--xam); }
.hoat-dong .nhan-hd { display: inline-block; background: var(--do); color: #fff; font-weight: 700; padding: 2px 12px; border-radius: 999px; font-size: .85em; margin-bottom: 8px; }
.buoc-hd { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; counter-reset: b; }
.buoc-hd li { flex: 1 1 150px; border: 2px solid var(--vien); border-radius: 10px; padding: 8px 12px; background: #fff; display: flex; flex-direction: column; counter-increment: b; }
.buoc-hd li b::before { content: counter(b) ". "; color: var(--do); }
.buoc-hd li span { font-size: .85em; color: var(--xam); }
.buoc-hd li.dang { border-color: var(--do); background: #F7E9E7; box-shadow: 0 0 0 3px rgba(140,42,51,.15); }
.buoc-hd li.xong { opacity: .55; }
.nv-hd { font-weight: 600; }
table.phieu td { height: 2.1em; }
.luu-y-hd { margin-top: 10px; border-left: 5px solid var(--olive); background: #F1F2E4; padding: 8px 12px; border-radius: 6px; }
