/* =====================================================================
   BẢN TIN — "Thông báo & tin tức" (31/10/2026 — data/ban_tin.php)
   Khối ở trang chủ (index.php, bt_khoi_trang_chu) + trang danh sách / đọc bài (tin_tuc.php). Nạp SAU home.css (dùng biến màu, phông của home.css).
   Mỗi chuyên mục 1 màu: --cm (chữ, viền) / --cm-nen (nền nhạt) — đặt sẵn trong thẻ (style="--cm:…") từ bt_chuyen_muc() (bộ màu BT_CM_MAU).
   ===================================================================== */
.bt-svg { width: 1em; height: 1em; flex: none; }

/* ---------- Khối ở trang chủ ---------- */
.bt-tc {
    position: relative;
    z-index: 2;
    margin: 0 0 26px;
    padding: 18px 20px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 90px;
}
.page > .bt-tc:first-child { margin-top: -40px; box-shadow: var(--shadow-md); }   /* không có khu Học thử: khối nổi lên phần đầu trang như khu Học thử */
.bt-tc + .steps { margin-top: 0; }
.bt-tc-dau { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bt-tc-ic {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 6px 14px rgba(30, 64, 175, .25);
}
.bt-tc-chu { min-width: 0; }
.bt-tc-chu h2 { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--brand-deep); letter-spacing: -.01em; }
.bt-tc-chu p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.bt-tc-het {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.bt-tc-het b { font-variant-numeric: tabular-nums; }
@media (hover: hover) { .bt-tc-het:hover { background: var(--brand-deep); color: #fff; } }
.bt-tc-het:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.bt-tc-luoi { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bt-tc-luoi.is-mot { grid-template-columns: minmax(0, 1fr); }
.bt-tc-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

/* ---------- Thẻ bài ---------- */
.bt-the { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.bt-the:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.bt-the:active { transform: scale(.99); }
.bt-the-than { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bt-ten { font-weight: 800; color: var(--ink); line-height: 1.32; overflow-wrap: anywhere; }
.bt-tom { color: #475569; font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-doc { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--brand); font-weight: 700; font-size: .9rem; }
.bt-doc .bt-svg { transition: transform .15s ease; }

.bt-the-noi-bat { gap: 14px; }
.bt-the-noi-bat .bt-ten { font-size: 1.28rem; }
.bt-tc-luoi.is-mot .bt-the-noi-bat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; }

.bt-the-nho { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: start; padding: 8px; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease; }
.bt-the-nho .bt-ten { font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-tc-ds li + li .bt-the-nho { border-top-color: transparent; }

.bt-the-luoi { gap: 12px; padding: 0 0 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.bt-the-luoi .bt-khung { border-radius: 0; }
.bt-the-luoi .bt-the-than { padding: 0 16px; }
.bt-the-luoi .bt-ten { font-size: 1.06rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-the-luoi .bt-tom { -webkit-line-clamp: 2; }

@media (hover: hover) {
    /* Chỉ máy có chuột: iPhone coi lần chạm là "hover" và giữ hiệu ứng sau khi chạm */
    .bt-the:hover .bt-ten { color: var(--brand-deep); }
    .bt-the:hover .bt-khung img { transform: scale(1.04); }
    .bt-the:hover .bt-doc .bt-svg { transform: translateX(3px); }
    .bt-the-nho:hover { background: #f7f9fd; border-color: var(--line); }
    .bt-the-luoi:hover { transform: translateY(-2px); border-color: #c7d4ee; box-shadow: var(--shadow-md); }
}

/* Khung ảnh của thẻ: ảnh thật (ảnh nhỏ) hoặc khung màu chuyên mục cho bài chỉ có chữ */
.bt-khung {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #e9eef6;
}
.bt-khung img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bt-khung-nho { aspect-ratio: 4 / 3; border-radius: 11px; }
.bt-khung-chu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--cm, #1d4ed8);
    background-image: radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .3), transparent 55%), radial-gradient(circle at 8% 112%, rgba(0, 0, 0, .25), transparent 55%);
    color: #fff;
}
.bt-khung-chu::after { /* lưới chấm mờ như phần đầu trang chủ */
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px);
    background-size: 18px 18px;
    pointer-events: none;
}
.bt-khung-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-size: 32px; }
.bt-khung-ten { font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.bt-khung-nho.bt-khung-chu .bt-khung-ic { width: 40px; height: 40px; font-size: 20px; }
.bt-khung-nho.bt-khung-chu .bt-khung-ten { display: none; }
.bt-dau-phat {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgba(15, 23, 42, .62);
    border: 2px solid rgba(255, 255, 255, .85);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.bt-dau-phat .bt-svg { margin-left: 3px; }
.bt-khung-nho .bt-dau-phat { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 16px; border-width: 1.5px; }
.bt-so-anh {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .7);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
}
.bt-khung-nho .bt-so-anh { right: 4px; bottom: 4px; padding: 1px 6px; font-size: .68rem; }

/* Dòng phụ: chuyên mục · ngày · Ghim · Mới */
.bt-phu { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.bt-phu time { font-variant-numeric: tabular-nums; }
.bt-cm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--cm-nen, #eef4ff);
    color: var(--cm, #1d4ed8);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
}
.bt-cm .bt-svg { font-size: 14px; }
.bt-ghim { display: inline-flex; align-items: center; gap: 3px; color: #b45309; font-weight: 800; }
.bt-moi { padding: 1px 8px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

@media (max-width: 860px) {
    .bt-tc-luoi, .bt-tc-luoi.is-mot .bt-the-noi-bat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .bt-tc { margin-bottom: 22px; padding: 14px 12px 12px; border-radius: 16px; }
    .page > .bt-tc:first-child { margin-top: -24px; }
    .bt-tc-dau { flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
    .bt-tc-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 21px; }
    .bt-tc-chu { flex: 1 1 0; }
    .bt-tc-chu h2 { font-size: 1.12rem; }
    .bt-tc-chu p { font-size: .8rem; }
    .bt-tc-het { width: 100%; justify-content: center; min-height: 44px; margin-left: 0; order: 3; }
    .bt-tc-luoi { gap: 12px; }
    .bt-the-noi-bat { gap: 10px; }
    .bt-the-noi-bat .bt-ten { font-size: 1.12rem; }
    .bt-the-nho { grid-template-columns: 104px minmax(0, 1fr); gap: 11px; padding: 6px 0; }
    .bt-the-nho .bt-ten { font-size: .93rem; }
    .bt-tc-ds { gap: 4px; }
    .bt-tc-ds li + li { border-top: 1px solid #edf1f7; padding-top: 4px; }
}

/* ---------- Trang tin_tuc.php: đầu trang (logo + tên công ty ở giữa) ---------- */
body.bt-trang { min-height: 100vh; display: flex; flex-direction: column; }
/* width 100%: main có margin auto trong khung flex dọc thì co theo nội dung — hàng thẻ lọc chuyên mục dài (nhiều chuyên mục) kéo cả trang rộng hơn màn hình
   điện thoại (đo WebKit iPhone 31/10/2026: 489px / 390px); đặt bề rộng thì hàng thẻ cuộn ngang bên trong như thiết kế */
body.bt-trang main { flex: 1 0 auto; width: 100%; min-width: 0; }
.bt-mast { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(20, 45, 107, .06); }
.bt-mast-in { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 10px 16px; text-decoration: none; }
.bt-mast-in img { width: 46px; height: 46px; flex: none; }
.bt-mast-chu { display: flex; flex-direction: column; text-align: center; line-height: 1.2; }
.bt-mast-chu small { color: #667085; font-size: .72rem; font-weight: 600; letter-spacing: .08em; padding-left: .08em; }
.bt-mast-chu strong { color: #142d6b; font-size: 1.16rem; font-weight: 800; }
.bt-mast-chu strong span { color: #d92e2e; }
.bt-thanh { background: linear-gradient(135deg, #0b1f4d 0%, #1a3a9c 60%, #2457d6 100%); color: #fff; }
.bt-thanh-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 1180px; margin: 0 auto; padding: 10px 16px; }
.bt-ve {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
@media (hover: hover) { .bt-ve:hover { background: rgba(255, 255, 255, .24); } }
.bt-ve:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.bt-duong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .78); font-size: .86rem; }
.bt-duong li + li::before { content: "›"; margin-right: 8px; color: rgba(255, 255, 255, .5); }
.bt-duong a { color: #fff; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .bt-duong a:hover { text-decoration: underline; } }

/* ---------- Trang danh sách ---------- */
.bt-ds { max-width: 1180px; margin: 0 auto; padding: 26px 16px 48px; }
.bt-ds-dau { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.bt-ds-dau h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--brand-deep); letter-spacing: -.01em; }
.bt-ds-dau p { margin: 4px 0 0; color: var(--muted); }
.bt-tim { position: relative; display: flex; flex: 0 1 340px; min-width: 0; }
.bt-tim .bt-svg { position: absolute; left: 14px; top: 50%; margin-top: -9px; width: 18px; height: 18px; color: #94a3b8; pointer-events: none; }
.bt-tim input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 16px;   /* >= 16px: iPhone không tự phóng to trang khi chạm vào ô */
    box-shadow: var(--shadow-sm);
    -webkit-appearance: none;
    appearance: none;
}
.bt-tim input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.bt-loc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.bt-loc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink-2);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.bt-loc a .bt-svg { color: var(--cm, var(--brand)); }
.bt-loc a small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef2f8; color: var(--muted); font-size: .74rem; text-align: center; }
.bt-loc a.is-on { background: var(--cm, var(--brand-deep)); border-color: var(--cm, var(--brand-deep)); color: #fff; }
.bt-loc a.is-on .bt-svg { color: #fff; }
.bt-loc a.is-on small { background: rgba(255, 255, 255, .22); color: #fff; }
@media (hover: hover) { .bt-loc a:not(.is-on):hover { border-color: var(--cm, #b8c6e6); } }
.bt-luoi-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.bt-tim-kq { margin: -6px 0 14px; color: var(--muted); font-size: .9rem; }
.bt-tim-kq a { color: var(--brand); font-weight: 700; }
.bt-rong { margin: 10px 0; padding: 36px 16px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed #cbd5e1; border-radius: var(--radius); }
.bt-rong a { color: var(--brand); font-weight: 700; }
.bt-trang-so { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 26px 0 0; }
.bt-trang-so a, .bt-trang-so span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--brand-deep);
    font-weight: 700;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.bt-trang-so span.is-on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.bt-trang-so span.is-off { color: #a0aec0; background: #f8fafc; }
.bt-trang-so span.bt-cach { border: 0; background: none; min-width: 0; padding: 0 2px; color: var(--muted); }

/* ---------- Trang đọc bài ---------- */
.bv-trang { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
.bv {
    padding: 30px 40px 34px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}
.bv-dau { margin-bottom: 22px; }
.bv-dau .bt-phu { font-size: .84rem; }
.bv-dau h1 { margin: 12px 0 0; font-size: clamp(1.55rem, 3.4vw, 2.2rem); line-height: 1.25; font-weight: 800; color: var(--ink); letter-spacing: -.015em; overflow-wrap: anywhere; }
.bv-thong-tin { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; color: var(--muted); font-size: .84rem; }
.bv-thong-tin span { display: inline-flex; align-items: center; gap: 5px; }
.bv-tom { margin: 18px 0 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--cm, var(--brand)); color: #334155; font-size: 1.1rem; font-weight: 600; line-height: 1.6; }
.bv-noi { color: #1e293b; font-size: 1.06rem; line-height: 1.78; overflow-wrap: break-word; }
.bv-chu > :first-child { margin-top: 0; }
.bv-chu p { margin: 0 0 1em; }
.bv-chu h2 { margin: 1.5em 0 .6em; padding-left: 12px; border-left: 4px solid var(--brand); font-size: 1.32rem; line-height: 1.35; color: var(--ink); }
.bv-chu h3 { margin: 1.3em 0 .5em; font-size: 1.14rem; line-height: 1.4; color: var(--ink); }
.bv-chu ul, .bv-chu ol { margin: 0 0 1em; padding-left: 1.5em; }
.bv-chu li { margin: .3em 0; }
.bv-chu li > ul, .bv-chu li > ol { margin: .3em 0; }
.bv-chu a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.bv-chu strong { font-weight: 700; color: var(--ink); }
.bv-chu span[style*="color"] strong, .bv-chu span[style*="color"] em, .bv-chu blockquote span[style*="color"] strong { color: inherit; } /* chữ đậm nằm trong vùng tô màu: giữ màu người soạn chọn (vùng chỉ đổi cỡ chữ: không đổi màu) */
.bv-chu span[style*="background"] { padding: 0 .12em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bv-chu blockquote {
    position: relative;
    margin: 1.3em 0;
    padding: 14px 18px 14px 52px;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    background: #fffbeb;
    color: #713f12;
}
.bv-chu blockquote::before {
    content: "!";
    position: absolute;
    left: 15px;
    top: 15px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    line-height: 1;
}
.bv-chu blockquote > :last-child { margin-bottom: 0; }
.bv-chu blockquote strong { color: #713f12; }
.bv-chu hr { margin: 1.8em 0; border: 0; border-top: 1px dashed #cbd5e1; }
.bv-bang { margin: 1em 0 1.4em; overflow-x: auto; border: 1px solid #dbe3ef; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.bv-bang table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.bv-bang th, .bv-bang td { padding: 9px 12px; border-right: 1px solid #e6ebf3; border-bottom: 1px solid #e6ebf3; text-align: left; vertical-align: top; }
.bv-bang tr > :last-child { border-right: 0; }
.bv-bang tbody tr:last-child > * { border-bottom: 0; }
.bv-bang th { background: #eef3fb; color: var(--brand-deep); font-weight: 800; white-space: nowrap; }
.bv-bang tbody tr:nth-child(even) td { background: #f8fafd; }
.bv-anh { margin: 1.3em 0 1.5em; }
.bv-anh figure { margin: 0; }
.bv-anh a { display: block; border-radius: 14px; overflow: hidden; background: #eef2f7; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.bv-anh img { display: block; max-width: 100%; height: auto; }
.bv-anh-mot a { width: fit-content; max-width: 100%; margin: 0 auto; }
.bv-anh-mot img { max-height: 78vh; width: auto; }
.bv-anh figcaption { margin-top: 8px; color: var(--muted); font-size: .86rem; line-height: 1.45; text-align: center; }
.bv-anh-luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bv-anh-luoi a { aspect-ratio: 4 / 3; border-radius: 12px; }
.bv-anh-luoi img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.bv-anh-luoi figcaption { margin-top: 5px; font-size: .8rem; text-align: left; }
.bv-anh-3 figure:first-child { grid-column: 1 / -1; }
.bv-anh-3 figure:first-child a { aspect-ratio: 16 / 9; }
@media (hover: hover) { .bv-anh-luoi a:hover img { transform: scale(1.04); } }
@media (min-width: 680px) {
    .bv-anh-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bv-video { margin: 1.4em 0 1.6em; }
.bv-video-khung { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.bv-video-doc .bv-video-khung { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.bv-yt { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.bv-yt img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s ease; }
.bv-yt-nut {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 54px;
    margin: -27px 0 0 -38px;
    border-radius: 16px;
    background: #e11d2e;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: transform .15s ease, background .15s ease;
}
@media (hover: hover) { .bv-yt:hover img { opacity: 1; } .bv-yt:hover .bv-yt-nut { transform: scale(1.06); background: #f02234; } }
.bv-yt:focus-visible { outline: 4px solid #fde68a; outline-offset: -4px; }
.bv-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.bv-video figcaption { margin-top: 8px; color: var(--muted); font-size: .86rem; text-align: center; }
.bv-video figcaption a { color: var(--brand); font-weight: 600; }
/* Ảnh / video NẰM TRONG ô chữ (2/11/2026 — data/ban_tin.php bt_lc_hinh / bt_hien_hinh): bề ngang = % cột chữ (style width), Ở giữa (mặc định) · Căn trái /
   Căn phải = chữ chảy quanh. Ô chữ của trang soạn (admin/ban_tin_soan.php) cũng là .bv-chu và dùng đúng các kiểu này → soạn thấy sao, đăng lên y vậy. */
.bv-chu { display: flow-root; } /* ảnh căn trái / phải không tràn ra ngoài khối chữ */
.bv-chu > :last-child { margin-bottom: 0; } /* flow-root giữ lề dưới của đoạn cuối trong khối → bỏ để khoảng cách với phần dưới như cũ */
.bv-chu .bv-f { box-sizing: border-box; max-width: 100%; min-width: min(120px, 100%); margin: .3em auto 1.2em; padding: 0; }
.bv-chu .bv-f-giua { clear: both; }
.bv-chu .bv-f-trai { float: left; margin: .35em 1.4em .9em 0; }
.bv-chu .bv-f-phai { float: right; margin: .35em 0 .9em 1.4em; }
@media (max-width: 560px) { .bv-chu .bv-f-trai, .bv-chu .bv-f-phai { max-width: 60%; } } /* điện thoại: ảnh căn trái / phải tối đa 60% → cột chữ bên cạnh còn đủ chỗ đọc */
.bv-chu .bv-f img { display: block; width: 100%; height: auto; margin: 0; border-radius: 12px; background: #eef2f7; }
.bv-chu .bv-f > a { display: block; border-radius: 12px; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.bv-chu .bv-f figcaption { margin-top: 7px; color: var(--muted, #5b6475); font-size: .86rem; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.bv-f-khung {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
}
.bv-f-doc .bv-f-khung { aspect-ratio: 9 / 16; }
.bv-chu .bv-f-khung img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: #000; opacity: .92; }
.bv-f-khung::after { /* nút ▶ vẽ bằng CSS — trang soạn và trang đọc bài giống hệt */
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(40px, 16%, 72px);
    aspect-ratio: 17 / 12;
    border-radius: 14px;
    background: #e11d2e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center / 46% no-repeat;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transform: translate(-50%, -50%);
    transition: transform .15s ease;
    pointer-events: none;
}
.bv-f-khung.is-phat::after { content: none; }
.bv-f-khung iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
button.bv-f-khung { cursor: pointer; font: inherit; }
button.bv-f-khung:focus-visible { outline: 4px solid #fde68a; outline-offset: -4px; }
@media (hover: hover) { button.bv-f-khung:hover img { opacity: 1; } button.bv-f-khung:hover::after { transform: translate(-50%, -50%) scale(1.06); } }
/* Âm thanh trong ô chữ (5/11/2026): khung nghe rộng cả cột chữ, tên bài nghe ở trên. Trang đọc bài: trình nghe .bv-am TỰ VẼ (assets/ban-tin.js) — iPhone hiện y như máy
   tính; nút ≥ 44px cho ngón tay; JS không chạy thì còn trình nghe của trình duyệt. Trang soạn: trình nghe của trình duyệt để nghe thử. */
.bv-chu .bv-f-am { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid #d5deed; border-radius: 14px; background: #f5f8fe; }
.bv-chu .bv-f-am figcaption { order: -1; margin: 0; color: var(--ink, #101828); font-size: 1rem; font-weight: 700; line-height: 1.4; text-align: left; }
.bv-chu .bv-f-am audio { display: block; width: 100%; }
.bv-chu .bv-f-am audio:not([controls]) { display: none; }
.bv-am { display: flex; align-items: center; gap: 12px; }
.bv-am button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.bv-am button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.bv-am .bv-am-nut { position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--brand, #1d4ed8); color: #fff; box-shadow: 0 4px 12px rgba(16, 24, 40, .22); }
.bv-am-nut svg { display: block; width: 30px; height: 30px; fill: currentColor; }
.bv-am-nut .bv-am-dung { display: none; }
.bv-am.is-phat .bv-am-nut .bv-am-dung { display: block; }
.bv-am.is-phat .bv-am-nut .bv-am-phat { display: none; }
.bv-am.is-cho .bv-am-nut::after { /* vòng xoay khi đang tải âm thanh */
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border: 3px solid transparent;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: bv-am-xoay .9s linear infinite;
}
@keyframes bv-am-xoay { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bv-am.is-cho .bv-am-nut::after { animation-duration: 3s; } }
.bv-am-giua { flex: 1 1 auto; min-width: 0; }
.bv-am-thanh { position: relative; display: flex; align-items: center; height: 36px; margin: 0 9px; cursor: pointer; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.bv-am-day { position: relative; display: block; width: 100%; height: 6px; overflow: hidden; border-radius: 3px; background: #cdd7e6; }
.bv-am-da { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--brand, #1d4ed8); }
.bv-am-cham { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; box-sizing: border-box; border: 2px solid #fff; border-radius: 50%; background: var(--brand, #1d4ed8); box-shadow: 0 1px 4px rgba(16, 24, 40, .4); pointer-events: none; }
.bv-am-thanh:focus-visible .bv-am-cham { outline: 3px solid #f59e0b; outline-offset: 1px; }
.bv-am-duoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; padding-left: 9px; }
.bv-am-gio { color: var(--muted, #5b6475); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-am-tua { display: flex; gap: 2px; margin-left: auto; }
.bv-am .bv-am-lui, .bv-am .bv-am-toi { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--brand, #1d4ed8); }
.bv-am-lui svg, .bv-am-toi svg { display: block; width: 32px; height: 32px; fill: currentColor; }
.bv-am-lui text, .bv-am-toi text { font: 700 6.5px/1 Arial, sans-serif; text-anchor: middle; }
@media (hover: hover) { .bv-am .bv-am-lui:hover, .bv-am .bv-am-toi:hover { background: #e4ebf8; } }
.bv-am-loi { margin: 0; color: #b42318; font-size: .92rem; font-weight: 600; line-height: 1.45; }
.bv-am-loi a { color: inherit; }
@media (max-width: 359px) { /* iPhone màn hình nhỏ nhất: giờ và 2 nút tua vẫn nằm 1 hàng */
    .bv-chu .bv-f-am { padding: 10px; }
    .bv-am { gap: 8px; }
    .bv-am .bv-am-nut { width: 50px; height: 50px; }
}
.bv-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.bv-chia-se { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.bv-nut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-deep);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.bv-nut .bt-svg { font-size: 17px; }
@media (hover: hover) { .bv-nut:hover { border-color: #b8c6e6; background: var(--brand-soft); } }
.bv-nut:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.bv-da-chep { color: #15803d; font-weight: 700; }
.bv-khac { margin-top: 30px; }
.bv-khac h2 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 800; color: var(--brand-deep); }
.bv-khac .bt-luoi-ds { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.bv-khac .bt-the-luoi .bt-ten { font-size: .98rem; }
.bv-khac .bt-the-luoi .bt-tom { display: none; }
.bv-mat { max-width: 640px; margin: 40px auto; padding: 34px 24px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.bv-mat h1 { margin: 0 0 8px; font-size: 1.4rem; color: var(--brand-deep); }
.bv-mat p { margin: 0 0 18px; color: var(--muted); }
/* Xem trước trong quản trị (admin/ban_tin.php?xem=…) */
.bv-xem-truoc { position: sticky; top: 0; z-index: 30; padding: 10px 16px; background: #fef3c7; border-bottom: 1px solid #fcd34d; color: #78350f; font-weight: 700; text-align: center; font-size: .92rem; }
.bv-xem-truoc a { color: #92400e; margin-left: 10px; }

/* Xem ảnh lớn (assets/ban-tin.js) */
.bv-hop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 58px 12px 18px; background: rgba(6, 10, 22, .94); touch-action: pan-y; }
.bv-hop[hidden] { display: none; }
.bv-hop img { display: block; max-width: 100%; max-height: calc(100% - 64px); object-fit: contain; border-radius: 6px; -webkit-user-select: none; user-select: none; }
.bv-hop-chu { max-width: 760px; margin: 12px 0 0; color: #e2e8f0; font-size: .92rem; line-height: 1.45; text-align: center; }
.bv-hop-so { position: absolute; top: 18px; left: 18px; color: #cbd5e1; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bv-hop button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14);
    color: #fff; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.bv-hop button:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
@media (hover: hover) { .bv-hop button:hover { background: rgba(255, 255, 255, .26); } }
.bv-hop-dong { top: 10px; right: 10px; }
.bv-hop-truoc { left: 12px; top: 50%; margin-top: -24px; }
.bv-hop-sau { right: 12px; top: 50%; margin-top: -24px; }

@media (max-width: 760px) {
    .bt-mast-in { flex-direction: column; gap: 6px; padding: 10px 12px; }
    .bt-mast-in img { width: 42px; height: 42px; }
    .bt-mast-chu strong { font-size: 1.02rem; }
    .bt-thanh-in { padding: 9px 12px; }
    .bt-duong { font-size: .8rem; }
    .bt-ds { padding: 18px 12px 36px; }
    .bt-tim { flex: 1 1 100%; }
    .bt-loc { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 16px; padding: 0 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .bt-loc::-webkit-scrollbar { display: none; }
    .bt-loc a { flex: none; min-height: 44px; }
    .bt-luoi-ds { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .bv-trang { padding: 14px 10px 36px; }
    .bv { padding: 20px 16px 22px; border-radius: 16px; }
    .bv-dau h1 { font-size: 1.45rem; }
    .bv-tom { font-size: 1.02rem; }
    .bv-noi { font-size: 1.02rem; line-height: 1.72; }
    .bv-chu blockquote { padding: 12px 14px 12px 46px; }
    .bv-chu blockquote::before { left: 12px; top: 13px; }
    .bv-bang table { font-size: .9rem; }
    .bv-bang th, .bv-bang td { padding: 8px 10px; }
    .bv-hop-truoc, .bv-hop-sau { top: auto; bottom: 14px; margin-top: 0; }
    .bv-hop { padding-bottom: 76px; }
    .bv-chan { flex-direction: column; align-items: stretch; }
    .bv-chia-se .bv-nut { flex: 1 1 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .bt-khung img, .bv-anh-luoi img, .bt-the-luoi { transition: none; }
}
