/*
 * Site công khai, giao diện 2026 (Giai đoạn 3; thiết kế docs/Thiet ke/PC-TKDL-*.png). Dùng cùng tokens.css và Bootstrap 5.3.
 * Quy tắc điện thoại theo kế hoạch §4.5.
 */
body.cong-khai { font-family: var(--tk-phong); color: var(--tk-chu); background: var(--tk-nen); }
.cong-khai a { color: var(--tk-navy); }

/* ---------- Header ---------- */
.ck-header { background: var(--tk-navy); color: #fff; }
.ck-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.ck-logo img { height: 57px; width: auto; display: block; }
.ck-ten-he-thong img { height: 31px; width: auto; display: block; }
.ck-tim { position: relative; width: 280px; max-width: 100%; }
.ck-tim input { width: 100%; height: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 16px 0 38px; font-size: 14px; }
.ck-tim input::placeholder { color: rgba(255, 255, 255, .7); }
.ck-tim input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .15); }
.ck-tim button { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(255, 255, 255, .85); width: 28px; height: 28px; padding: 0; }
.ck-tim svg { width: 16px; height: 16px; }

/* ---------- Menu ngang ---------- */
.ck-menu { background: #fff; border-bottom: 1px solid var(--tk-vien); }
.ck-menu .navbar { padding: 0; min-height: 58px; }
.ck-menu .navbar-nav .nav-link { color: var(--tk-navy); font-size: 13px; font-weight: 500; text-transform: uppercase; padding: 20px 9px 18px; border-bottom: 3px solid transparent; white-space: nowrap; }
.ck-menu .navbar-nav .nav-item + .nav-item .nav-link::before { content: "|"; color: var(--tk-vien); margin-right: 9px; margin-left: -9px; font-weight: 400; }
.ck-menu .navbar-nav .nav-link:hover { color: var(--tk-nhom-2); }
.ck-menu .navbar-nav .nav-item.active .nav-link { color: var(--tk-navy); font-weight: 700; border-bottom-color: var(--tk-nhom-1); }
.ck-nut-bao-cao { display: flex; gap: 8px; margin-left: 12px; }
.ck-nut-bao-cao a { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; padding: 5px 10px; color: #fff; font-size: 12px; line-height: 1.15; text-decoration: none; }
.ck-nut-bao-cao a svg { width: 16px; height: 16px; flex: 0 0 16px; }
.ck-nut-bao-cao .nhanh { background: var(--tk-nhom-3); }
.ck-nut-bao-cao .dinh-ky { background: var(--tk-nhom-1); }
.ck-nut-bao-cao a:hover { filter: brightness(1.08); color: #fff; }

/* ---------- Banner tiêu đề trang ---------- */
.ck-banner { background: #2a7fd0 center / cover no-repeat; color: #fff; }
.ck-banner .container { min-height: 150px; display: flex; align-items: center; }
.ck-banner h1 { font-size: 2.6rem; font-weight: 400; text-transform: uppercase; letter-spacing: .5px; margin: 0; }

/* ---------- Footer ---------- */
.ck-footer { background: var(--tk-navy); color: #fff; padding: 20px 0; margin-top: 48px; font-size: 13px; }
.ck-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ck-footer .ck-don-vi span + span::before { content: "|"; margin: 0 28px; opacity: .7; }
.ck-footer img { width: 132px; height: auto; display: block; }

/* ---------- PC-TKDL-2: nhóm chỉ tiêu ---------- */
.ck-nhom-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; margin-top: 60px; }
.ck-nhom { background: #fff; border-radius: 2px; box-shadow: 0 2px 14px rgba(13, 59, 102, .08); border-bottom: 10px solid var(--mau-nhom, var(--tk-navy)); display: flex; flex-direction: column; }
.cong-khai .ck-nhom-dau { background: var(--mau-nhom, var(--tk-navy)); color: #fff; display: flex; align-items: center; gap: 22px; min-height: 128px; padding: 18px 28px 18px 48px; text-decoration: none; }
.cong-khai .ck-nhom-dau:hover { color: #fff; filter: brightness(1.04); }
.ck-nhom-dau img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; }
.ck-nhom-dau span { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.ck-nhom ul { list-style: none; margin: 0; padding: 20px 24px; display: flex; flex-direction: column; gap: 30px; }
.ck-nhom li a { display: flex; align-items: center; gap: 14px; color: var(--tk-chu); text-decoration: none; font-size: 16px; }
.ck-nhom li a:hover { color: var(--mau-nhom, var(--tk-navy)); }
.ck-nhom li a:hover span { text-decoration: underline; }
.ck-nhom li img, .ck-nhom li .ck-anh-trong { width: 60px; height: 60px; flex: 0 0 60px; object-fit: cover; border-radius: 2px; }
.ck-nhom li .ck-anh-trong { background: var(--tk-nen); }
.ck-nhom--1 { --mau-nhom: var(--tk-nhom-1); }
.ck-nhom--2 { --mau-nhom: var(--tk-nhom-2); }
.ck-nhom--3 { --mau-nhom: var(--tk-nhom-3); }

/* ---------- Điện thoại (§4.5) ---------- */
@media (max-width: 991.98px) {
    .ck-header .container { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .ck-ten-he-thong { order: 3; width: 100%; display: flex; justify-content: center; }
    .ck-tim { display: none; }
    .ck-menu .navbar-nav .nav-item + .nav-item .nav-link::before { content: none; }
    .ck-menu .navbar-nav .nav-link { padding: 12px 4px; border-bottom: 0; }
    .ck-menu .navbar-nav .nav-item.active .nav-link { color: var(--tk-nhom-2); }
    .ck-menu .ck-tim { display: block; width: 100%; margin: 8px 0 12px; }
    .ck-menu .ck-tim input { border-color: var(--tk-vien); background: #fff; color: var(--tk-chu); }
    .ck-menu .ck-tim input::placeholder { color: var(--tk-chu-phu); }
    .ck-menu .ck-tim button { color: var(--tk-chu-phu); }
    .ck-nut-bao-cao { margin: 4px 0 12px; order: -1; }
    .ck-nhom-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
    .ck-banner h1 { font-size: 2rem; }
}
@media (max-width: 575.98px) {
    .ck-logo img { height: 44px; }
    .ck-nhom-luoi { grid-template-columns: 1fr; }
    .ck-nhom-dau { padding-left: 24px; min-height: 104px; }
    .ck-banner .container { min-height: 110px; }
    .ck-banner h1 { font-size: 1.6rem; }
    .ck-footer .ck-don-vi span { display: block; }
    .ck-footer .ck-don-vi span + span::before { content: none; }
}
@media (max-width: 991.98px) {
    /* menu chuyển vào ngăn trượt (offcanvas-lg): thanh menu không còn chiếm chỗ */
    .ck-menu { border-bottom: 0; }
    .ck-menu .navbar { min-height: 0; }
}

/* ---------- PC-TKDL-3-1: một nhóm chỉ tiêu ---------- */
.ck-trang-nhom { padding-top: 36px; }
.ck-mot-nhom + .ck-mot-nhom { margin-top: 48px; }
.ck-mot-nhom h2 { font-size: 1.6rem; font-weight: 700; color: var(--tk-navy); margin: 0 0 22px; }
.ck-the-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cong-khai .ck-the { display: flex; flex-direction: column; background: #fff; box-shadow: 0 2px 14px rgba(13, 59, 102, .08); border-bottom: 10px solid var(--mau-nhom, var(--tk-navy)); text-decoration: none; color: var(--tk-navy); transition: transform .15s, box-shadow .15s; }
.cong-khai .ck-the:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13, 59, 102, .14); }
.ck-the-dau { background: var(--mau-nhom, var(--tk-navy)); min-height: 98px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px 20px; font-weight: 700; text-transform: uppercase; font-size: 15px; line-height: 1.35; color: var(--tk-navy); }
.ck-the-anh { flex: 1; min-height: 230px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ck-the-anh img { width: 150px; height: 150px; object-fit: contain; }
.ck-mot-nhom.ck-nhom--1 { --mau-nhom: var(--tk-nhom-1); }
.ck-mot-nhom.ck-nhom--2 { --mau-nhom: var(--tk-nhom-2); }
.ck-mot-nhom.ck-nhom--3 { --mau-nhom: var(--tk-nhom-3); }
@media (max-width: 991.98px) { .ck-the-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ck-the-anh { min-height: 180px; } }
@media (max-width: 575.98px) { .ck-the-luoi { grid-template-columns: 1fr; } .ck-mot-nhom h2 { font-size: 1.3rem; } }
/* footer luôn ở đáy khi nội dung ngắn */
body.cong-khai { min-height: 100vh; display: flex; flex-direction: column; }
body.cong-khai > main { flex: 1 0 auto; }
.ck-the-anh--lon { padding: 8px; }
.ck-the-anh--lon img { width: 100%; height: auto; max-height: 272px; object-fit: contain; }

/* ---------- Danh sách bài (PC-TKDL-5) ---------- */
.ck-tin { padding-top: 42px; }
.ck-tin-luoi { display: grid; grid-template-columns: 278px minmax(0, 1fr); gap: 24px; align-items: start; }
.ck-cot-ben, .ck-tin-chinh { background: #fff; box-shadow: 0 2px 14px rgba(13, 59, 102, .06); }
.ck-cot-ben { padding: 24px 22px 32px; min-height: 100%; }
.ck-cm-khac + .ck-cm-khac { margin-top: 40px; }
.ck-cm-khac h2 { font-size: 17px; font-weight: 700; margin: 0 0 14px; padding-bottom: 2px; border-bottom: 2px solid var(--tk-navy); }
.ck-cm-khac h2 a { text-decoration: none; }
.ck-cm-khac ul { list-style: none; padding: 0; margin: 0; }
.ck-cm-khac li { font-size: 14px; line-height: 1.3; margin-bottom: 14px; }
.ck-cm-khac li a { text-decoration: none; }
.ck-cm-khac li a:hover, .ck-tin-chinh h2 a:hover, .ck-tin-chinh h3 a:hover { text-decoration: underline; }
.ck-cm-lien-ket { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.ck-cm-lien-ket a { color: var(--tk-chu-phu, #5b6b7d); }
.ck-tin-chinh { padding: 28px 28px 36px; }
.ck-tin-anh { display: block; overflow: hidden; background: var(--tk-nen); }
.ck-tin-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ck-tin-noi-bat .ck-tin-anh { aspect-ratio: 805 / 465; }
.ck-tin-noi-bat h2 { font-size: 24px; font-weight: 700; margin: 26px 3px 18px; line-height: 1.3; }
.ck-tin-chinh h2 a, .ck-tin-chinh h3 a { text-decoration: none; }
.ck-tin-chinh p { color: #757575; font-size: 14px; line-height: 1.25; margin: 0 3px; }
.ck-tin-the-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 84px; margin-top: 44px; }
.ck-tin-the .ck-tin-anh { aspect-ratio: 359 / 240; margin-bottom: 30px; }
.ck-tin-the h3 { font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0 0 4px; }
.ck-tin-the p { margin: 0; }
.ck-phan-trang { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.ck-phan-trang a, .ck-phan-trang span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tk-vien); border-radius: 4px; text-decoration: none; font-size: 14px; }
.ck-phan-trang a:hover { background: var(--tk-nen); }
.ck-phan-trang .hien-tai { background: var(--tk-navy); border-color: var(--tk-navy); color: #fff; font-weight: 700; }
@media (max-width: 991.98px) {
    .ck-tin-luoi { grid-template-columns: minmax(0, 1fr); }
    .ck-cot-ben { order: 2; }
    .ck-tin-the-luoi { gap: 32px 28px; }
}
@media (max-width: 575.98px) {
    .ck-tin { padding-top: 20px; }
    .ck-tin-chinh { padding: 16px 16px 24px; }
    .ck-tin-noi-bat h2 { font-size: 20px; margin: 16px 0 10px; }
    .ck-tin-the-luoi { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
    .ck-tin-the .ck-tin-anh { margin-bottom: 14px; }
}

/* ---------- Chi tiết bài ---------- */
.ck-bai-tieu-de { font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--tk-navy); margin: 0 0 8px; }
.ck-bai-ngay { color: #757575; font-size: 13px; margin: 0 0 18px !important; }
.ck-bai-tom-tat { font-weight: 700; line-height: 1.5; margin-bottom: 16px; }
.ck-bai-noi-dung { line-height: 1.6; overflow-wrap: anywhere; }
.ck-bai-noi-dung img, .ck-bai-noi-dung iframe, .ck-bai-noi-dung video { max-width: 100%; height: auto; }
.ck-bai-noi-dung table { max-width: 100%; display: block; overflow-x: auto; }
.ck-bai-noi-dung p { color: inherit; font-size: inherit; line-height: inherit; margin: 0 0 12px; }
.ck-bai-nguon { text-align: right; font-weight: 700; margin-top: 12px; }
.ck-bai-khac { margin-top: 36px; border-top: 1px solid var(--tk-vien); padding-top: 20px; }
.ck-bai-khac h2 { font-size: 18px; font-weight: 700; color: var(--tk-navy); margin: 0 0 12px; }
.ck-bai-khac ul { padding-left: 18px; margin: 0; }
.ck-bai-khac li { margin-bottom: 8px; }
.ck-bai-khac a { text-decoration: none; }
.ck-bai-khac a:hover { text-decoration: underline; }
@media (max-width: 575.98px) { .ck-bai-tieu-de { font-size: 21px; } }

/* ---------- Tìm kiếm bài ---------- */
.ck-tim-trang { margin-bottom: 16px; }
.ck-tim-trang .form-label { color: #646464; }
.ck-tim-trang .btn-primary { background: var(--tk-navy); border-color: var(--tk-navy); white-space: nowrap; }
.ck-tin-chinh .ck-tim-cau { color: var(--tk-chu); margin: 0 0 4px; }
.ck-tin-chinh .ck-tim-tong { color: var(--tk-navy); font-weight: 600; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--tk-vien); }
.ck-tim-ds { display: flex; flex-direction: column; gap: 24px; }
.ck-tim-muc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.ck-tim-muc--chu { grid-template-columns: minmax(0, 1fr); }
.ck-tim-muc .ck-tin-anh { aspect-ratio: 359 / 240; }
.ck-tim-muc h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
@media (max-width: 575.98px) { .ck-tim-muc { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---------- Trang chủ (PC-TKDL-1-2) ---------- */
.ck-hero { background: #2a7fd0 center / cover no-repeat; color: #fff; }
.ck-hero .container { min-height: 300px; padding-top: 70px; padding-bottom: 110px; }
.ck-hero h1 { margin: 0; font-size: 2.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.ck-hero h1 span { display: block; font-size: 2rem; font-weight: 400; text-transform: none; }
.ck-tc { position: relative; }
.ck-chi-so-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: -80px; }
.ck-chi-so-luoi--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ck-chi-so-luoi--1 { grid-template-columns: minmax(0, 420px); }
.cong-khai .ck-chi-so { background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(13, 59, 102, .12); padding: 22px 26px 16px; color: var(--tk-chu); text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.cong-khai .ck-chi-so:hover { box-shadow: 0 8px 28px rgba(13, 59, 102, .2); }
.ck-chi-so-dau { display: flex; align-items: center; gap: 12px; }
.ck-chi-so-bt { width: 38px; height: 38px; border-radius: 8px; background: var(--tk-nen); color: var(--tk-navy); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.ck-chi-so-ten { font-size: 18px; font-weight: 600; color: var(--tk-navy); line-height: 1.25; }
.ck-chi-so-than { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ck-chi-so-so { font-size: 38px; font-weight: 700; color: var(--tk-navy); line-height: 1; white-space: nowrap; }
.ck-chi-so-so small { font-size: 14px; font-weight: 400; color: var(--tk-chu-phu); }
.ck-chi-so-ss { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--tk-chu-phu); }
.ck-chi-so-pt { border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.ck-chi-so-pt.tang { background: #e3f5ec; color: #0b6b3a; }
.ck-chi-so-pt.giam { background: #fdecea; color: #a1261b; }
.ck-chi-so-ky { font-size: 12px; color: var(--tk-chu-phu); border-top: 1px solid var(--tk-vien); padding-top: 8px; }
.ck-noi-bat { margin-top: 56px; }
.ck-muc-tieu-de { font-size: 20px; font-weight: 700; color: var(--tk-navy); margin: 0; }
.ck-muc-phu { font-size: 12px; color: var(--tk-chu-phu); margin: 2px 0 16px; }
.ck-noi-bat-luoi { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.ck-the-trang { background: #fff; border-radius: 12px; box-shadow: 0 2px 14px rgba(13, 59, 102, .08); padding: 22px 20px; }
.ck-xu-huong { display: flex; flex-direction: column; min-width: 0; }
.ck-xu-huong-dau { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ck-xu-huong h3, .ck-tra-nhanh h3 { font-size: 17px; font-weight: 700; color: var(--tk-navy); margin: 0; }
.ck-xu-huong-dau p, .ck-tra-nhanh > p { font-size: 12px; color: var(--tk-chu-phu); margin: 4px 0 0; }
.ck-xu-huong-cong-cu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ck-xu-huong-cong-cu .form-select { width: auto; }
.ck-so-sanh { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ck-xu-huong-cong-cu .btn-outline-primary { --bs-btn-color: var(--tk-navy); --bs-btn-border-color: var(--tk-vien); --bs-btn-hover-bg: var(--tk-nen); --bs-btn-hover-color: var(--tk-navy); --bs-btn-hover-border-color: var(--tk-vien); --bs-btn-active-bg: #1f5fa8; --bs-btn-active-border-color: #1f5fa8; }
.ck-xu-huong-tai { border: 1px solid var(--tk-vien); }
.ck-xu-huong-ve { height: 300px; margin-top: 12px; }
.ck-xu-huong-bang { margin-top: 12px; max-height: 300px; overflow: auto; font-size: 14px; }
.ck-xu-huong-chan { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--tk-chu-phu); margin-top: 8px; }
.ck-xu-huong-chan a { font-weight: 600; text-decoration: none; }
.ck-tra-nhanh ul { list-style: none; padding: 0; margin: 14px 0 0; }
.ck-tra-nhanh li + li { border-top: 1px solid var(--tk-vien); }
.cong-khai .ck-tra-nhanh li a { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--tk-navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.ck-tra-nhanh li a span:nth-child(2) { flex: 1; }
.ck-tra-nhanh li a:hover span:nth-child(2) { text-decoration: underline; }
.ck-tra-nhanh .cham { width: 9px; height: 9px; border-radius: 50%; background: var(--mau-nhom, var(--tk-navy)); flex: 0 0 9px; }
.ck-nhom-luoi--gon { margin-top: 64px; }
.ck-nhom--gon ul { gap: 18px; padding: 26px 24px 30px; }
.ck-nhom--gon li a { gap: 12px; }
.ck-nhom--gon li a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mau-nhom, var(--tk-navy)); flex: 0 0 9px; }
.ck-tin-moi { margin-top: 56px; }
.ck-tin-moi h2 { text-align: center; font-size: 24px; font-weight: 700; color: var(--tk-navy); text-transform: uppercase; margin: 0 0 28px; }
.ck-tin-moi ul { columns: 2; column-gap: 72px; padding: 0; margin: 0; list-style: none; }
.ck-tin-moi li { break-inside: avoid; position: relative; padding: 8px 0 10px 18px; border-bottom: 1px solid var(--tk-vien); margin-bottom: 8px; font-size: 15px; }
.ck-tin-moi li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--tk-navy); }
.ck-tin-moi a { color: var(--tk-chu); text-decoration: none; }
.ck-tin-moi a:hover { color: var(--tk-navy); text-decoration: underline; }
@media (max-width: 991.98px) {
    .ck-chi-so-luoi, .ck-chi-so-luoi--2 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: -60px; }
    .ck-noi-bat-luoi { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ck-tin-moi ul { columns: 1; }
}
@media (max-width: 575.98px) {
    .ck-hero .container { min-height: 0; padding-top: 32px; padding-bottom: 88px; }
    .ck-hero h1 { font-size: 1.8rem; }
    .ck-hero h1 span { font-size: 1.4rem; }
    .ck-chi-so-so { font-size: 30px; }
    .ck-xu-huong-ve { height: 260px; }
}
.ck-tra-nhanh li a small { display: block; font-size: 11px; font-weight: 400; color: var(--tk-chu-phu); }
