/* =====================================================================
   Giao diện "THCS Bản tin" (TruongHocBanTin) - Cổng thông tin trường học hiện đại, sinh động, trang nhã.
   - Màu chủ đạo --bt-primary lấy từ tham số COLOR (layout đổ vào :root), mặc định xanh lam #0E427E.
     Các sắc độ khác suy ra từ màu chủ đạo bằng color-mix nên đổi 1 màu là cả trang đồng bộ.
   - Cải tiến:
     + Bảng màu tươi sáng, hiện đại, phối màu gradient tinh tế, loại bỏ cảm giác đơn điệu.
     + Khối "Tin tức từ Phòng VHXH" và các danh sách tin cột phụ được giới hạn chiều cao (max-height: 380px)
       kèm thanh cuộn mượt mà (custom slim scrollbar), hiệu ứng hover trượt nhẹ.
     + Khối "Thông báo" được thiết kế nổi bật với dải màu ấm/vàng cam, biểu tượng chuông báo, huy hiệu mới
       và trạng thái chờ thông báo gọn gàng, trang nhã.
     + Thống kê truy cập dạng thẻ trực quan 4 ô hiện đại.
     + Thanh thông báo (ticker) đầu trang có nhãn nổi bật, tự động hiển thị tin mới nhất khi chưa có thông báo riêng.
   ===================================================================== */
:root {
    --bt-primary: #0E427E;
    --bt-primary-dark: color-mix(in srgb, var(--bt-primary) 78%, #000);
    --bt-primary-deep: color-mix(in srgb, var(--bt-primary) 55%, #000);
    --bt-primary-soft: color-mix(in srgb, var(--bt-primary) 8%, #fff);
    --bt-primary-tint: color-mix(in srgb, var(--bt-primary) 22%, #fff);
    --bt-primary-gradient: color-mix(in srgb, var(--bt-primary) 78%, #0284c7);
    --bt-accent-amber: #f59e0b;
    --bt-accent-amber-dark: #d97706;
    --bt-accent-amber-soft: #fffbeb;
    --bt-accent-red: #ef4444;
    --bt-accent-blue: #0284c7;
    --bt-accent-green: #10b981;
    --bt-red: #c8102e;
    --bt-bg: #f4f6fa;
    --bt-card: #ffffff;
    --bt-ink: #1e293b;
    --bt-muted: #64748b;
    --bt-line: #e2e8f0;
    --bt-dark: #1e2532;
    --bt-radius: 10px;
    --bt-radius-sm: 6px;
    --bt-radius-lg: 14px;
    --bt-body: "Inter", "Segoe UI", Arial, sans-serif;
    --bt-brand: "Montserrat", "Segoe UI", Arial, sans-serif;
    --bt-shadow: 0 4px 18px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
    --bt-shadow-hover: 0 8px 25px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* ---------- Nền tảng ---------- */
body.th-bantin {
    font-family: var(--bt-body);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--bt-ink);
    background: var(--bt-bg);
    -webkit-font-smoothing: antialiased;
}
.th-bantin .wrap.bt-wrap { background: none; overflow: visible; }
.th-bantin header, .th-bantin footer { float: none; width: auto; z-index: auto; }
.th-bantin footer.bt-footer { margin: 0; }
.th-bantin main.bt-main { display: block; margin-top: 0; overflow-x: hidden; }
.th-bantin a { color: var(--bt-ink); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, opacity .2s, transform .2s; }
.th-bantin a:hover { color: var(--bt-primary); text-decoration: none; }
.th-bantin a:focus-visible, .th-bantin button:focus-visible, .th-bantin input:focus-visible {
    outline: 3px solid var(--bt-primary-tint);
    outline-offset: 2px;
}
.th-bantin h1, .th-bantin h2, .th-bantin h3, .th-bantin h4 { font-family: var(--bt-body); color: var(--bt-ink); }
.th-bantin img { max-width: 100%; }
.th-bantin .container { max-width: 1280px; width: 100%; }
.th-bantin .text-orange { color: var(--bt-primary) !important; }

.th-preview-bar {
    position: sticky; top: 0; z-index: 10001;
    background: #fff8e6; color: #854d0e; text-align: center;
    padding: 8px 16px; font-size: 14px; border-bottom: 1px solid #fde68a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.th-preview-bar a { margin-left: 8px; font-weight: 700; text-decoration: underline; color: #854d0e; }

.th-bantin .bt-skip {
    position: absolute; left: 12px; top: -60px; z-index: 10002;
    background: var(--bt-primary); color: #fff; padding: 10px 16px; font-weight: 700; border-radius: var(--bt-radius-sm);
}
.th-bantin .bt-skip:focus { top: 12px; color: #fff; }

/* ---------- Banner đầu trang ---------- */
.th-bantin .bt-header {
    position: relative;
    background-color: var(--bt-primary-deep);
    background-size: cover;
    background-position: center;
}
.th-bantin .bt-header:before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(8, 25, 55, 0.9) 0%, rgba(14, 66, 126, 0.78) 50%, rgba(14, 66, 126, 0.42) 100%);
    pointer-events: none;
}
.th-bantin .bt-header-inner {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    min-height: 200px; padding-top: 24px; padding-bottom: 24px;
}
.th-bantin .bt-brand { display: flex; align-items: center; gap: 22px; min-width: 0; }
.th-bantin .bt-brand:hover { opacity: .96; }
.th-bantin .bt-brand-logo {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 114px; height: 114px; padding: 6px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .32);
    transition: transform .3s;
}
.th-bantin .bt-brand:hover .bt-brand-logo { transform: scale(1.03); }
.th-bantin .bt-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.th-bantin .bt-brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.th-bantin .bt-brand-sub {
    font-family: var(--bt-brand); font-size: 21px; font-weight: 700; line-height: 1.25; text-transform: uppercase;
    color: var(--bt-red);
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 6px rgba(0, 0, 0, .35);
}
.th-bantin .bt-brand-name {
    font-family: var(--bt-brand); font-weight: 700; font-size: 38px; line-height: 1.2;
    text-transform: uppercase; color: #fff; overflow-wrap: anywhere;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 3px 14px rgba(0, 0, 0, .55);
}
.th-bantin .bt-brand-slogan { font-size: 15.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

.th-bantin .bt-burger {
    display: none; flex: 0 0 auto;
    width: 46px; height: 46px; padding: 14px 12px; border-radius: var(--bt-radius-sm);
    background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.th-bantin .bt-burger span { display: block; height: 2px; background: var(--bt-primary); margin-bottom: 6px; }
.th-bantin .bt-burger span:last-child { margin-bottom: 0; }

/* ---------- Menu ngang (nền trắng, luôn 1 dòng) ---------- */
.th-bantin .bt-nav {
    position: sticky; top: 0; z-index: 1000;
    background: #fff; border-bottom: 2px solid #eef2f7;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: box-shadow .25s;
}
.th-bantin .bt-nav.is-stuck { box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.th-bantin .bt-nav ul#menu-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: nowrap; align-items: stretch;
}
.th-bantin .bt-nav #menu-list > li { position: relative; flex: 0 0 auto; }
.th-bantin .bt-nav #menu-list > li > a {
    position: relative; display: flex; align-items: center; gap: 6px;
    height: 52px; padding: 0 16px;
    font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .01em;
    color: var(--bt-ink); white-space: nowrap; cursor: pointer;
}
.th-bantin .bt-nav #menu-list > li > a:after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--bt-primary), var(--bt-accent-blue));
    border-radius: 3px 3px 0 0;
    transform: scaleX(0); transition: transform .2s ease;
}
.th-bantin .bt-nav #menu-list > li:hover > a, .th-bantin .bt-nav #menu-list > li.is-active > a { color: var(--bt-primary); }
.th-bantin .bt-nav #menu-list > li:hover > a:after, .th-bantin .bt-nav #menu-list > li.is-active > a:after { transform: scaleX(1); }
.th-bantin .bt-nav #menu-list > li.isHomePc > a { padding: 0 16px 0 2px; font-size: 19px; }
.th-bantin .bt-nav #menu-list > li.isHomePc > a:after { left: 0; right: 14px; }
.th-bantin .bt-nav #menu-list > li > a i.fa-angle-down { font-size: 13px; }
.th-bantin .bt-nav #menu-list > li > a i.fa-caret-right { display: none; }

.th-bantin .bt-nav ul.sub-menu, .th-bantin .bt-nav ul.sub-menu2 {
    position: absolute; top: 100%; left: 0; z-index: 20;
    min-width: 260px; margin: 0; padding: 8px 0;
    list-style: none; background: var(--bt-card);
    border: 0; border-top: 3px solid var(--bt-primary); border-radius: 0 0 var(--bt-radius) var(--bt-radius);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .15);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
}
.th-bantin .bt-nav ul.sub-menu2 { top: -9px !important; left: 100%; }
.th-bantin .bt-nav ul.sub-menu:before, .th-bantin .bt-nav ul.sub-menu2:before { display: none; }
.th-bantin .bt-nav li.li-submenu:hover > ul.sub-menu,
.th-bantin .bt-nav li.li-submenu:focus-within > ul.sub-menu,
.th-bantin .bt-nav li.li-submenu2:hover > ul.sub-menu2 { opacity: 1; visibility: visible; transform: none; }
.th-bantin .bt-nav ul.sub-menu li { position: relative; width: auto; background: none; }
.th-bantin .bt-nav ul.sub-menu li a {
    display: block; height: auto; padding: 10px 20px;
    color: var(--bt-ink); font-size: 14.5px; font-weight: 500; text-transform: none; background: none;
}
.th-bantin .bt-nav ul.sub-menu li a i { color: var(--bt-primary); margin-right: 8px; }
.th-bantin .bt-nav ul.sub-menu li > i.fa-angle-right { top: 13px !important; right: 14px !important; color: var(--bt-muted) !important; }
.th-bantin .bt-nav ul.sub-menu li:hover > a { background: var(--bt-primary-soft); color: var(--bt-primary); padding-left: 24px; }
.th-bantin .bt-nav #menu-list > li#more-menu { margin-left: auto; }
.th-bantin .bt-nav #more-menu > ul.sub-menu { left: auto; right: 0; }
.th-bantin .bt-nav #more-menu ul.sub-menu ul.sub-menu { top: -9px; left: auto; right: 100%; }
.th-bantin .bt-nav #more-menu ul.sub-menu li.li-submenu > a i.fa-angle-down { float: right; margin-top: 4px; transform: rotate(90deg); color: var(--bt-muted); }
@media (min-width: 1200px) and (max-width: 1365px) {
    .th-bantin .bt-nav #menu-list > li > a { padding: 0 10px; font-size: 13.5px; }
    .th-bantin .bt-nav #menu-list > li > a:after { left: 10px; right: 10px; }
}

/* ---------- Thanh thông tin: ngày giờ, chữ chạy thông báo, tìm kiếm ---------- */
.th-bantin .bt-infobar {
    background: linear-gradient(90deg, #edf3fb 0%, #f7f9fd 50%, #edf3fb 100%);
    border-bottom: 1px solid rgba(14, 66, 126, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}
.th-bantin .bt-infobar-inner { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.th-bantin .bt-clock {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 600; color: #334155; white-space: nowrap;
    background: rgba(255, 255, 255, 0.85); padding: 5px 14px; border-radius: 20px;
    border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.th-bantin .bt-clock i { color: var(--bt-primary); font-size: 14px; }
.th-bantin .bt-ticker { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.th-bantin .bt-ticker-label {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fff;
    font-size: 12.5px; font-weight: 700; text-transform: uppercase; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35); letter-spacing: .02em;
}
.th-bantin .bt-ticker-label i { animation: bt-bell-ring 2s infinite ease-in-out; }
@keyframes bt-bell-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-14deg); }
    50% { transform: rotate(0); }
}
.th-bantin .bt-ticker-track { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.th-bantin .bt-ticker-track marquee { display: block; width: 100%; margin: 0; line-height: 1.4; vertical-align: middle; }
.th-bantin .bt-ticker-move { display: inline-block; white-space: nowrap; padding-left: 100%; animation: bt-ticker 40s linear infinite; }
.th-bantin .bt-ticker-track:hover .bt-ticker-move { animation-play-state: paused; }
.th-bantin .bt-ticker-item { font-size: 14.5px; font-weight: 600; color: var(--bt-primary); white-space: nowrap; }
.th-bantin .bt-ticker-bullet { display: inline-block; margin: 0 16px; color: var(--bt-accent-amber); font-size: 16px; font-weight: 900; }
.th-bantin .bt-ticker-item + .bt-ticker-item:before {
    content: "\2022"; margin: 0 16px; color: var(--bt-accent-amber); font-size: 16px; font-weight: 900;
}
@keyframes bt-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.th-bantin .bt-search {
    flex: 0 0 260px; height: 38px;
    background: #fff; border-radius: 20px; padding: 2px 4px 2px 14px;
    border: 1px solid #cbd5e1; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex; align-items: center; transition: all .2s;
}
.th-bantin .bt-search:focus-within {
    border-color: var(--bt-primary);
    box-shadow: 0 0 0 3px var(--bt-primary-soft);
}
.th-bantin .bt-search input {
    border: 0; font-size: 13.5px; color: var(--bt-ink); background: transparent; outline: none; flex: 1; min-width: 0;
}
.th-bantin .bt-search button {
    flex: 0 0 32px; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.th-bantin .bt-search button:hover { transform: scale(1.06); box-shadow: 0 2px 8px rgba(14, 66, 126, 0.35); }

/* ---------- Bố cục trang chủ: cột chính + cột phải ---------- */
.th-bantin .bt-home { padding-top: 26px; padding-bottom: 12px; }
.th-bantin .bt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.th-bantin .bt-col-main, .th-bantin .bt-col-side { min-width: 0; }

/* Thẻ trắng & tiêu đề khối dạng nhãn ribbon có viền trang trí */
.th-bantin .bt-card {
    margin-bottom: 24px; padding: 20px;
    background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow); transition: box-shadow .25s ease, transform .2s ease;
}
.th-bantin .bt-card:hover { box-shadow: var(--bt-shadow-hover); }
.th-bantin .bt-card-flush { padding: 0; overflow: hidden; }
.th-bantin .bt-card-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    margin-bottom: 18px; border-bottom: 2px solid var(--bt-primary);
}
.th-bantin .bt-card-title {
    position: relative; margin: 0; padding: 9px 20px 8px;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.35;
    text-transform: uppercase; letter-spacing: .02em; border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12); display: flex; align-items: center; gap: 8px;
}
.th-bantin .bt-card-title i { font-size: 14px; opacity: .95; }
.th-bantin .bt-more {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 14px; border-radius: 20px; background: var(--bt-primary-soft);
    font-size: 13px; font-weight: 600; color: var(--bt-primary); transition: all .2s;
    margin-bottom: 4px;
}
.th-bantin .bt-more:hover {
    background: var(--bt-primary); color: #fff; transform: translateX(2px); text-decoration: none;
}
.th-bantin .bt-date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: #64748b;
}
.th-bantin .bt-date i { color: var(--bt-accent-amber-dark); font-size: 13px; }

/* Ảnh tin: tỷ lệ cố định, cắt vừa khung */
.th-bantin .bt-img {
    position: relative; display: block; overflow: hidden;
    background: var(--bt-primary-soft); aspect-ratio: 3 / 2; border-radius: var(--bt-radius-sm);
}
.th-bantin .bt-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.th-bantin a.bt-img:hover img { transform: scale(1.05); }

/* Khối chưa có nội dung: vẫn hiện khung kèm thông báo lịch sự */
.th-bantin .bt-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 30px 18px; text-align: center;
    border: 1px dashed #cbd5e1; border-radius: var(--bt-radius-sm);
    background: #fafbfc; color: var(--bt-muted); font-size: 14.5px;
}
.th-bantin .bt-empty i { font-size: 26px; color: #94a3b8; }
.th-bantin .bt-card-flush > .bt-empty { margin: 20px; }

/* Tin mới nhất: tin lớn + danh sách */
.th-bantin .bt-latest { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; }
.th-bantin .bt-img-lead { aspect-ratio: 16 / 9; border-radius: var(--bt-radius-sm); }
.th-bantin .bt-badge {
    position: absolute; left: 10px; bottom: 10px; padding: 4px 12px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase;
    border-radius: 4px; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); letter-spacing: .03em;
}
.th-bantin .bt-lead-body { margin-top: 14px; }
.th-bantin .bt-lead-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.th-bantin .bt-lead-title a { color: var(--bt-ink); }
.th-bantin .bt-lead-title a:hover { color: var(--bt-primary); }
.th-bantin .bt-lead-meta { margin-bottom: 8px; }
.th-bantin .bt-lead-desc {
    margin: 0; font-size: 14.5px; line-height: 1.6; color: #475569;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Hàng tin: ảnh nhỏ + tiêu đề + ngày */
.th-bantin .bt-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.th-bantin .bt-row {
    display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px;
    border-bottom: 1px dashed var(--bt-line); transition: transform .2s ease;
}
.th-bantin .bt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.th-bantin .bt-row:hover { transform: translateX(3px); }
.th-bantin .bt-thumb { flex: 0 0 100px; aspect-ratio: 3 / 2; border-radius: 6px; }
.th-bantin .bt-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.th-bantin .bt-row-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--bt-ink);
}
.th-bantin .bt-row-title:hover { color: var(--bt-primary); }
.th-bantin .bt-latest-list .bt-row-title { font-size: 14.5px; }
.th-bantin .bt-legacy { min-width: 0; overflow: hidden; }

/* Lưới 2 cột các chuyên mục: phối màu sinh động qua đường viền trên */
.th-bantin .bt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.th-bantin .bt-grid > .bt-card { min-width: 0; border-top: 3px solid var(--bt-primary); }
.th-bantin .bt-grid > .bt-card:nth-child(2n) { border-top-color: var(--bt-accent-blue); }
.th-bantin .bt-grid > .bt-card:nth-child(3n) { border-top-color: var(--bt-accent-amber); }
.th-bantin .bt-grid > .bt-card:nth-child(4n) { border-top-color: var(--bt-accent-green); }
.th-bantin .bt-grid > .bt-card:nth-child(5n) { border-top-color: #8b5cf6; }
.th-bantin .bt-grid > .bt-card:nth-child(6n) { border-top-color: var(--bt-accent-red); }

/* Ảnh nổi bật trượt */
.th-bantin .bt-slide { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bt-primary-deep); }
.th-bantin .bt-slide img { width: 100%; height: 100%; object-fit: cover; }
.th-bantin .bt-slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px;
    background: linear-gradient(transparent, rgba(8, 12, 28, .85));
    color: #fff; font-size: 18px; font-weight: 700; line-height: 1.4;
}
.th-bantin .bt-slides .owl-dots { position: absolute; right: 18px; bottom: 12px; }
.th-bantin .bt-promo img { display: block; width: 100%; height: auto; border-radius: var(--bt-radius); }

/* Bảng văn bản mới (eOffice) */
.th-bantin .bt-table-wrap { overflow-x: auto; border-radius: var(--bt-radius-sm); border: 1px solid var(--bt-line); }
.th-bantin .bt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.th-bantin .bt-table th { padding: 11px 14px; border: 1px solid var(--bt-line); background: #f8fafc; color: var(--bt-ink); font-weight: 700; text-align: left; }
.th-bantin .bt-table td { padding: 10px 14px; border: 1px solid var(--bt-line); vertical-align: middle; color: var(--bt-muted); }
.th-bantin .bt-table td a { color: var(--bt-ink); font-weight: 500; }
.th-bantin .bt-table td a:hover { color: var(--bt-primary); }
.th-bantin .bt-table tbody tr:hover td { background: var(--bt-primary-soft); }
.th-bantin .bt-col-so { width: 160px; font-weight: 600; color: var(--bt-primary); }
.th-bantin .bt-col-ngay { width: 130px; white-space: nowrap; font-size: 13.5px; }
.th-bantin .bt-table-note { text-align: center; font-style: italic; padding: 20px !important; }

/* ---------- Dải tối "Hình ảnh hoạt động" ---------- */
.th-bantin .bt-media {
    margin: 10px 0 30px; padding: 24px 22px 26px;
    background: linear-gradient(135deg, #1e2532 0%, #0f172a 100%);
    border-radius: var(--bt-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.th-bantin .bt-media-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.th-bantin .bt-media-title {
    position: relative; margin: 0; padding-bottom: 10px;
    font-size: 15px; font-weight: 700; text-transform: uppercase; color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.th-bantin .bt-media-title i { color: var(--bt-accent-amber); }
.th-bantin .bt-media-title:after {
    content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--bt-accent-amber), var(--bt-accent-blue));
    border-radius: 3px;
}
.th-bantin .bt-media-more {
    padding: 3px 12px; font-size: 13px; font-weight: 600; color: #fff;
    background: rgba(255, 255, 255, 0.12); border-radius: 20px; margin-bottom: 6px;
    display: inline-flex; align-items: center; gap: 5px;
}
.th-bantin .bt-media-more:hover { background: var(--bt-primary); color: #fff; text-decoration: none; }
.th-bantin .bt-media-lead { position: relative; margin-bottom: 20px; border-radius: var(--bt-radius-sm); overflow: hidden; }
.th-bantin .bt-media-lead .bt-img { aspect-ratio: 16 / 5.5; border-radius: 0; }
.th-bantin .bt-media-lead-text {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85)); pointer-events: none;
}
.th-bantin .bt-media-lead-text h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.th-bantin .bt-media-lead-text a { color: #fff; pointer-events: auto; }
.th-bantin .bt-media-lead-text a:hover { color: var(--bt-accent-amber); }
.th-bantin .bt-media .bt-date, .th-bantin .bt-media .bt-date i { color: #94a3b8; }
.th-bantin .bt-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.th-bantin .bt-media-item { position: relative; margin: 0; min-width: 0; }
.th-bantin .bt-media-item .bt-img { aspect-ratio: 16 / 10; background: #33363f; border-radius: 6px; }
.th-bantin .bt-media-item figcaption { margin-top: 10px; }
.th-bantin .bt-media-item figcaption a {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 4px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #f1f5f9;
}
.th-bantin .bt-media-item figcaption a:hover { color: var(--bt-accent-amber); }
.th-bantin .bt-media-zoom {
    position: absolute; right: 12px; top: 12px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px;
    opacity: 0; transition: all .2s ease;
}
.th-bantin .bt-media-lead:hover .bt-media-zoom, .th-bantin .bt-media-item:hover .bt-media-zoom { opacity: 1; transform: scale(1.05); }
.th-bantin .bt-media-zoom:hover { background: var(--bt-primary); color: #fff; }

/* =====================================================================
   CỘT PHỤ BÊN PHẢI (SIDEBAR) & CÁC KHỐI TIỆN ÍCH
   - Khắc phục triệt để "Tin tức từ Phòng VHXH quá dài": giới hạn max-height 380px,
     kèm thanh cuộn mượt mà (slim custom scrollbar).
   - Khối "Thông báo" thiết kế nổi bật, có icon chuông, badge mới.
   ===================================================================== */
.th-bantin .bt-sidebar { display: flex; flex-direction: column; gap: 0; }
.th-bantin .bt-widget {
    margin-bottom: 24px;
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
    overflow: hidden;
    transition: box-shadow .25s ease;
}
.th-bantin .bt-widget:hover { box-shadow: var(--bt-shadow-hover); }

/* Đầu đề khối cột phụ */
.th-bantin .bt-widget-head {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    padding: 12px 18px; border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.th-bantin .bt-widget-title {
    margin: 0; padding: 0;
    font-size: 14.5px; font-weight: 700; text-transform: uppercase; color: #fff; letter-spacing: .02em;
    display: flex; align-items: center; gap: 10px; flex: 1;
}
.th-bantin .bt-widget-title i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2); font-size: 13.5px; color: #fff;
}
.th-bantin .bt-widget-badge {
    flex: 0 0 auto; padding: 2px 10px; background: #fff; color: var(--bt-accent-amber-dark);
    font-size: 11.5px; font-weight: 800; text-transform: uppercase; border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

/* Khối thông báo (bt-widget-notice): phối màu vàng cam ấm áp, sinh động */
.th-bantin .bt-widget-notice .bt-widget-head,
.th-bantin .bt-widget-head.is-notice {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 3px 12px rgba(217, 119, 6, 0.25);
}
.th-bantin .bt-widget-notice-empty {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 18px; background: #fffbeb; border-top: 1px solid #fef3c7; color: #92400e;
}
.th-bantin .bt-widget-notice-empty i {
    font-size: 26px; color: #f59e0b; flex: 0 0 auto;
}
.th-bantin .bt-widget-notice-empty div { display: flex; flex-direction: column; gap: 2px; }
.th-bantin .bt-widget-notice-empty strong { font-size: 14px; color: #78350f; font-weight: 700; }
.th-bantin .bt-widget-notice-empty span { font-size: 13px; color: #92400e; }

/* Danh sách tin cột phụ (áp dụng cho cả bt-widget-list VÀ hd-widget-list để đảm bảo tương thích mọi view) */
.th-bantin .bt-widget-list,
.th-bantin .hd-widget-list {
    list-style: none; margin: 0; padding: 0;
}
.th-bantin .bt-widget-list.is-scroll,
.th-bantin .bt-widget-list,
.th-bantin .hd-widget-list.is-scroll,
.th-bantin .hd-widget-list {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--bt-primary) 45%, #cbd5e1) #f1f5f9;
}
/* Tinh chỉnh thanh cuộn sleek cho WebKit */
.th-bantin .bt-widget-list::-webkit-scrollbar,
.th-bantin .hd-widget-list::-webkit-scrollbar {
    width: 6px;
}
.th-bantin .bt-widget-list::-webkit-scrollbar-track,
.th-bantin .hd-widget-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.th-bantin .bt-widget-list::-webkit-scrollbar-thumb,
.th-bantin .hd-widget-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--bt-primary) 45%, #cbd5e1);
    border-radius: 4px;
}
.th-bantin .bt-widget-list::-webkit-scrollbar-thumb:hover,
.th-bantin .hd-widget-list::-webkit-scrollbar-thumb:hover {
    background: var(--bt-primary);
}

.th-bantin .bt-widget-list > li > a,
.th-bantin .hd-widget-list > li > a {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 11px 16px; border-bottom: 1px dashed var(--bt-line);
    color: var(--bt-ink); font-size: 14.5px; font-weight: 600; line-height: 1.45;
    transition: all .2s ease;
}
.th-bantin .bt-widget-list > li:last-child > a,
.th-bantin .hd-widget-list > li:last-child > a { border-bottom: 0; }
.th-bantin .bt-widget-list > li > a i,
.th-bantin .hd-widget-list > li > a i {
    color: var(--bt-primary); padding-top: 4px; font-size: 12px; flex: 0 0 auto;
}
.th-bantin .bt-widget-notice .bt-widget-list > li > a i { color: var(--bt-accent-amber-dark); }
.th-bantin .bt-widget-list > li > a:hover,
.th-bantin .hd-widget-list > li > a:hover {
    background: #f8fafc; color: var(--bt-primary); transform: translateX(3px);
}

.th-bantin .bt-widget-empty,
.th-bantin .hd-widget-empty {
    margin: 0; padding: 22px 18px; text-align: center;
    color: var(--bt-muted); font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.th-bantin .bt-widget-empty i { color: #94a3b8; font-size: 16px; }

.th-bantin .bt-widget-banner { padding: 14px; }
.th-bantin .bt-widget-banner .inline-block { display: flex; flex-direction: column; gap: 10px; }
.th-bantin .bt-widget-banner img { width: 100%; height: auto !important; margin: 0 !important; border-radius: 6px; }

/* Thống kê truy cập dạng lưới thẻ hiện đại */
.th-bantin .bt-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; background: #fff;
}
.th-bantin .bt-stat-card {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--bt-radius-sm);
    transition: all .2s ease;
}
.th-bantin .bt-stat-card:hover {
    background: #fff; border-color: var(--bt-primary-tint); box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.th-bantin .bt-stat-card.is-online {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%); border-color: #a7f3d0;
}
.th-bantin .bt-stat-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bt-primary-soft); color: var(--bt-primary); font-size: 15px; flex: 0 0 auto;
}
.th-bantin .bt-stat-card.is-online .bt-stat-icon {
    background: #d1fae5; color: #059669;
}
.th-bantin .bt-stat-info { display: flex; flex-direction: column; min-width: 0; }
.th-bantin .bt-stat-val { font-size: 17px; font-weight: 800; color: var(--bt-ink); line-height: 1.2; }
.th-bantin .bt-stat-card.is-online .bt-stat-val { color: #059669; }
.th-bantin .bt-stat-lbl { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; }

/* Tương thích thống kê dạng <dl> cũ */
.th-bantin .bt-stats { margin: 0; padding: 6px 16px; }
.th-bantin .bt-stats > div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--bt-line); }
.th-bantin .bt-stats > div:last-child { border-bottom: 0; }
.th-bantin .bt-stats dt { font-weight: 500; color: var(--bt-ink); }
.th-bantin .bt-stats dd { margin: 0; font-weight: 700; color: var(--bt-primary); }

/* ---------- Chân trang (nền màu chủ đạo phối gradient sâu lắng) ---------- */
.th-bantin .bt-footer {
    margin-top: 14px;
    background: linear-gradient(135deg, var(--bt-primary-deep) 0%, var(--bt-primary) 100%);
    color: #fff;
}
.th-bantin .bt-footer a { color: #fff; }
.th-bantin .bt-footer a:hover { color: #fff; text-decoration: underline; }
.th-bantin .bt-footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding: 36px 0 30px; }
.th-bantin .bt-footer-brand { display: flex; align-items: center; gap: 22px; flex: 1 1 420px; min-width: 0; }
.th-bantin .bt-footer-logo {
    flex: 0 0 96px; width: 96px; height: 96px; object-fit: contain; padding: 6px;
    border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.th-bantin .bt-footer-id { min-width: 0; }
.th-bantin .bt-footer-sub { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; opacity: .9; }
.th-bantin .bt-footer-name { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.35; text-transform: uppercase; color: #fff; }
.th-bantin .bt-footer-desc { margin: 0 0 4px; font-size: 14.5px; opacity: .92; }
.th-bantin .bt-footer-motto { margin: 6px 0 0; font-style: italic; color: #fde68a; }
.th-bantin .bt-footer-trust { display: inline-block; margin-top: 8px; }
.th-bantin .bt-footer-trust img { max-height: 46px; }
.th-bantin .bt-footer-contact { flex: 0 1 470px; min-width: 0; }
.th-bantin .bt-footer-contact ul { list-style: none; margin: 0; padding: 0; }
.th-bantin .bt-footer-contact li { display: flex; gap: 12px; margin-bottom: 8px; font-size: 14.5px; line-height: 1.5; }
.th-bantin .bt-footer-contact li i {
    flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.18);
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.th-bantin .bt-footer-extra { display: flex; flex-wrap: wrap; gap: 24px 40px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .2); }
.th-bantin .bt-footer-links { flex: 1 1 320px; min-width: 0; }
.th-bantin .bt-footer-mapbox { flex: 1 1 320px; min-width: 0; }
.th-bantin .bt-footer-heading { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; text-transform: uppercase; color: #fff; }
.th-bantin .bt-footer-links ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.th-bantin .bt-footer-links li { margin-bottom: 7px; break-inside: avoid; }
.th-bantin .bt-footer-links i { margin-right: 8px; }
.th-bantin .bt-footer-map { display: block; width: 100%; height: 180px; border: 0; border-radius: 8px; }
.th-bantin .bt-footer-bottom { background: var(--bt-primary-deep); font-size: 13.5px; }
.th-bantin .bt-footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.th-bantin .bt-footer-credit { opacity: .85; }

.th-bantin .bt-backtop {
    position: fixed; right: 22px; bottom: 22px; z-index: 999;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    color: #fff; font-size: 20px; box-shadow: 0 4px 16px rgba(14, 66, 126, 0.4);
    opacity: 0; visibility: hidden; transition: all .25s ease;
}
.th-bantin .bt-backtop.show { opacity: 1; visibility: visible; display: flex !important; }
.th-bantin .bt-backtop:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14, 66, 126, 0.6); color: #fff; }

/* =====================================================================
   TRANG CON & CÁC MODULE DÙNG CHUNG
   ===================================================================== */
.th-bantin .bt-page { padding-top: 26px; padding-bottom: 36px; }
.th-bantin .bt-page > .row { display: flex; flex-wrap: wrap; }
.th-bantin .bt-page > .row:before, .th-bantin .bt-page > .row:after { display: none; }
.th-bantin .bt-page > .row > [class*="col-"] { float: none; min-width: 0; }
@media (max-width: 991px) {
    .th-bantin .bt-page > .row > [class*="col-"] { width: 100%; }
    .th-bantin .bt-page .bt-sidebar { margin-top: 26px; }
}

.th-bantin .site_block_title { height: auto; border: 0; border-bottom: 2px solid var(--bt-primary); margin-bottom: 20px; }
.th-bantin .site_block_title h3, .th-bantin .site_block_title h2 { background: none !important; height: auto; margin: 0; line-height: 1.3; }
.th-bantin .site_block_title a, .th-bantin .site_block_title h3 a {
    display: inline-block; padding: 9px 20px 8px;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    font-size: 15px; font-weight: 700; text-transform: uppercase;
    color: #fff !important; -webkit-line-clamp: unset; border-radius: 8px 8px 0 0;
}
.th-bantin .site_block_title i { display: none; }

.th-bantin .heading-direct {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    height: auto; margin-bottom: 20px; padding: 0; background: none !important; border: 0; border-bottom: 2px solid var(--bt-primary);
}
.th-bantin .heading-direct h3 {
    margin: 0; padding: 9px 20px 8px;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; border-radius: 8px 8px 0 0;
}
.th-bantin .heading-direct h3 i { color: #fff; margin-right: 8px; }
.th-bantin .heading-direct ul.menu-direct { padding: 0; margin: 0 0 6px; }
.th-bantin .heading-direct ul.menu-direct:before { display: none; }
.th-bantin .heading-direct ul.menu-direct li a {
    display: inline-block; padding: 4px 14px; border-radius: 20px;
    background: var(--bt-primary-soft); color: var(--bt-primary) !important; font-size: 13px; font-weight: 700;
}
.th-bantin .btn-question {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: var(--bt-radius-sm);
    background: var(--bt-primary); color: #fff !important; font-weight: 700;
}
.th-bantin .btn-question:hover { background: var(--bt-primary-dark); }

.th-bantin .search-doc .input-container input,
.th-bantin #form_search_change input {
    height: 44px; padding: 0 48px 0 14px; border-radius: var(--bt-radius-sm);
    border: 1px solid #c9ced8; box-shadow: none; font-size: 15px;
}
.th-bantin .search-doc .icon { background: var(--bt-primary) !important; color: #fff; }

/* Danh sách tin */
.th-bantin .list-news-cate {
    display: flex; flex-direction: column; gap: 0; padding: 8px 24px;
    background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
}
.th-bantin .box-news-cate {
    display: flex; gap: 20px; margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--bt-line); background: none;
}
.th-bantin .box-news-cate:last-child { border-bottom: 0; }
.th-bantin .box-news-cate a.img {
    flex: 0 0 220px; max-width: 220px; aspect-ratio: 3 / 2; height: auto;
    float: none; margin: 0; overflow: hidden; background: var(--bt-primary-soft); border-radius: 6px;
}
.th-bantin .box-news-cate a.img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.th-bantin .box-news-cate:hover a.img img { transform: scale(1.04); }
.th-bantin .box-news-cate .title { flex: 1; min-width: 0; width: auto; padding: 0; float: none; }
.th-bantin .box-news-cate .title h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.th-bantin .box-news-cate .title h3 a { color: var(--bt-ink); }
.th-bantin .box-news-cate .title h3 a:hover { color: var(--bt-primary); }
.th-bantin .box-news-cate .time-primary { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--bt-muted); }
.th-bantin .box-news-cate .time-primary i { color: var(--bt-accent-amber-dark); margin-right: 6px; }
.th-bantin .box-news-cate .desc-primary { font-size: 15px; line-height: 1.6; color: var(--bt-muted); }

/* Phân trang */
.th-bantin .pagination > li > a, .th-bantin .pagination > li > span {
    min-width: 38px; min-height: 38px; margin: 0 3px; text-align: center; line-height: 24px;
    border-radius: var(--bt-radius-sm) !important; border: 1px solid var(--bt-line); background: var(--bt-card);
    color: var(--bt-ink); font-weight: 600;
}
.th-bantin .pagination > li.active > a, .th-bantin .pagination > li.active > a:hover {
    background: var(--bt-primary) !important; border-color: var(--bt-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(14, 66, 126, 0.3);
}
.th-bantin .pagination > li > a:hover { background: var(--bt-primary-soft); color: var(--bt-primary); }

/* Chi tiết tin */
.th-bantin .post-details {
    padding: 28px 32px; background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: var(--bt-radius);
    box-shadow: var(--bt-shadow);
}
.th-bantin .post-details h1 { margin: 0 0 12px; font-size: 26px; font-weight: 700; line-height: 1.4; color: var(--bt-ink); }
.th-bantin .post-details span.time { font-size: 13.5px; color: var(--bt-muted); }
.th-bantin .post-details span.time i { color: var(--bt-accent-amber-dark); }
.th-bantin .post-details .cls-tom-tat-item {
    margin: 18px 0; padding: 14px 20px;
    background: var(--bt-primary-soft); border-left: 4px solid var(--bt-primary); font-size: 16px; font-weight: 600; color: var(--bt-ink);
    border-radius: 0 var(--bt-radius-sm) var(--bt-radius-sm) 0;
}
.th-bantin .post-details .content-detail { font-size: 16px; line-height: 1.75; color: var(--bt-ink); }
.th-bantin .post-details .content-detail p { margin-bottom: 14px; }

.th-bantin .box-news-haft { display: flex; gap: 16px; flex-wrap: wrap; }
.th-bantin .box-news-haft .item_box_img { flex: 1 1 200px; min-width: 0; }
.th-bantin .box-news-haft .item_box_text { flex: 1 1 200px; min-width: 0; }
.th-bantin .box-news-haft .item_box_text ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-bantin .box-news-haft .item_box_text li { padding-left: 14px; position: relative; }
.th-bantin .box-news-haft .item_box_text li:before {
    content: "•"; position: absolute; left: 0; top: 0; color: var(--bt-primary); font-size: 16px;
}

.th-bantin .form-control {
    border-radius: var(--bt-radius-sm); border: 1px solid #cbd5e1; box-shadow: none; font-size: 14.5px;
}
.th-bantin textarea.form-control { min-height: 120px; }
.th-bantin .form-control:focus { border-color: var(--bt-primary); box-shadow: 0 0 0 3px var(--bt-primary-tint); }
.th-bantin .btn-primary {
    min-height: 42px; padding: 0 22px; border: 0; border-radius: var(--bt-radius-sm); font-weight: 700;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    box-shadow: 0 2px 8px rgba(14, 66, 126, 0.25);
}
.th-bantin .btn-primary:hover, .th-bantin .btn-primary:focus {
    background: var(--bt-primary-dark); box-shadow: 0 4px 12px rgba(14, 66, 126, 0.4);
}
.th-bantin .table > thead > tr > th { background: #f8fafc; color: var(--bt-ink); border-color: var(--bt-line); font-weight: 700; }
.th-bantin .table-bordered, .th-bantin .table-bordered > tbody > tr > td { border-color: var(--bt-line); }

/* =====================================================================
   QUY TẮC TƯƠNG THÍCH CHO LỚP hd-* (KHI VIEW TruongHocHienDai ĐƯỢC RENDER)
   - Đảm bảo nếu cổng chưa đổi file view thì giao diện vẫn đẹp, không bị vỡ.
   - Đặc biệt: giới hạn chiều cao cột phụ hd-widget-list để "Tin tức từ Phòng VHXH" không dài quá đà.
   ===================================================================== */
.th-bantin .hd-featured { padding: 0; margin-bottom: 24px; }
.th-bantin .hd-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 18px; border-bottom: 2px solid var(--bt-primary);
}
.th-bantin .hd-section-head h2 {
    margin: 0; padding: 9px 20px 8px;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    color: #fff; font-size: 14.5px; font-weight: 700; text-transform: uppercase;
    border-radius: 8px 8px 0 0;
}
.th-bantin .hd-section-head h2 span { color: #fff !important; }
.th-bantin .hd-more {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 14px;
    border-radius: 20px; background: var(--bt-primary-soft); font-size: 13px; font-weight: 600;
    color: var(--bt-primary); margin-bottom: 4px;
}
.th-bantin .hd-more:hover { background: var(--bt-primary); color: #fff; text-decoration: none; }
.th-bantin .hd-featured-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.th-bantin .hd-featured-lead .hd-cover { position: relative; display: block; border-radius: var(--bt-radius); overflow: hidden; aspect-ratio: 16 / 9; }
.th-bantin .hd-cover img { width: 100%; height: 100%; object-fit: cover; }
.th-bantin .hd-cover-body {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff;
}
.th-bantin .hd-cover-title { font-size: 18px; font-weight: 700; display: block; line-height: 1.35; margin-bottom: 4px; }
.th-bantin .hd-meta { font-size: 13px; color: #94a3b8; display: inline-flex; align-items: center; gap: 6px; }
.th-bantin .hd-meta i { color: var(--bt-accent-amber); }
.th-bantin .hd-featured-side { display: flex; flex-direction: column; gap: 12px; }
.th-bantin .hd-card-sm {
    display: flex; gap: 12px; background: #fff; padding: 10px; border-radius: var(--bt-radius-sm);
    border: 1px solid var(--bt-line); box-shadow: var(--bt-shadow);
}
.th-bantin .hd-card-sm .hd-card-img { flex: 0 0 100px; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; }
.th-bantin .hd-card-sm .hd-card-img img { width: 100%; height: 100%; object-fit: cover; }
.th-bantin .hd-card-title { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.th-bantin .hd-card-title a { color: var(--bt-ink); }
.th-bantin .hd-card-title a:hover { color: var(--bt-primary); }
.th-bantin .hd-cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.th-bantin .hd-cat {
    background: #fff; padding: 18px; border-radius: var(--bt-radius);
    border: 1px solid var(--bt-line); border-top: 3px solid var(--bt-primary); box-shadow: var(--bt-shadow);
}
.th-bantin .hd-cat-head {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px;
    border-bottom: 1px solid var(--bt-line); padding-bottom: 8px;
}
.th-bantin .hd-cat-head h2 { margin: 0; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.th-bantin .hd-cat-head h2 a { color: var(--bt-primary); }
.th-bantin .hd-cat-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.th-bantin .hd-cat-list li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding-bottom: 8px; border-bottom: 1px dashed var(--bt-line);
}
.th-bantin .hd-cat-list li a { font-size: 14px; font-weight: 600; color: var(--bt-ink); }
.th-bantin .hd-cat-list li a:hover { color: var(--bt-primary); }

.th-bantin .hd-widget {
    background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius);
    margin-bottom: 24px; overflow: hidden; box-shadow: var(--bt-shadow);
}
.th-bantin .hd-widget-title {
    margin: 0; padding: 12px 18px;
    background: linear-gradient(135deg, var(--bt-primary) 0%, var(--bt-primary-gradient) 100%);
    color: #fff; font-size: 14.5px; font-weight: 700; text-transform: uppercase;
    display: flex; align-items: center; gap: 10px;
}
.th-bantin .hd-widget-title i {
    width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.2);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.th-bantin .hd-online {
    display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 14px;
    background: #f0fdf4; color: #166534; font-weight: 600; border-bottom: 1px solid #dcfce7;
}
.th-bantin .hd-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.th-bantin .hd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.th-bantin .hd-stat { text-align: center; padding: 8px; background: #f8fafc; border-radius: 6px; }
.th-bantin .hd-stat b { display: block; font-size: 16px; color: var(--bt-primary); }
.th-bantin .hd-stat span { font-size: 12px; color: #64748b; }

/* =====================================================================
   ĐÁP ỨNG MÀN HÌNH (RESPONSIVE)
   ===================================================================== */
@media (max-width: 1199px) {
    .th-bantin .bt-nav { display: none; }
    .th-bantin .bt-burger { display: block; }
    .th-bantin .bt-header-inner { min-height: 160px; }
    .th-bantin .bt-brand-logo { width: 92px; height: 92px; }
    .th-bantin .bt-brand-sub { font-size: 18px; }
    .th-bantin .bt-brand-name { font-size: 32px; }
    .th-bantin .bt-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
}

@media (max-width: 991px) {
    .th-bantin .bt-layout { grid-template-columns: minmax(0, 1fr); }
    .th-bantin .bt-infobar-inner { flex-wrap: wrap; gap: 8px 18px; padding-top: 8px; padding-bottom: 8px; }
    .th-bantin .bt-ticker { order: 3; flex-basis: 100%; }
    .th-bantin .bt-search { margin-left: auto; }
    .th-bantin .bt-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-bantin .bt-media-lead .bt-img { aspect-ratio: 16 / 7; }
    .th-bantin .hd-featured-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .th-bantin .bt-header-inner { min-height: 0; padding-top: 16px; padding-bottom: 16px; gap: 12px; }
    .th-bantin .bt-header:before { background: linear-gradient(90deg, rgba(8, 25, 55, .85), rgba(14, 66, 126, .6)); }
    .th-bantin .bt-brand { flex: 1; gap: 12px; }
    .th-bantin .bt-brand-logo { width: 64px; height: 64px; padding: 4px; }
    .th-bantin .bt-brand-sub { font-size: 13px; }
    .th-bantin .bt-brand-name { font-size: 21px; }
    .th-bantin .bt-brand-slogan { font-size: 14px; }
    .th-bantin .bt-clock { font-size: 13px; padding: 4px 10px; }
    .th-bantin .bt-search { flex: 1 1 100%; margin-left: 0; height: 38px; }
    .th-bantin .bt-home { padding-top: 18px; }
    .th-bantin .bt-card { padding: 16px 14px; margin-bottom: 18px; }
    .th-bantin .bt-latest { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .th-bantin .bt-lead-title { font-size: 18px; }
    .th-bantin .bt-grid { grid-template-columns: minmax(0, 1fr); }
    .th-bantin .bt-thumb { flex-basis: 96px; }
    .th-bantin .bt-slide { aspect-ratio: 16 / 10; }
    .th-bantin .bt-slide-caption { font-size: 15px; padding: 26px 14px 12px; }
    .th-bantin .bt-col-so { width: 110px; }
    .th-bantin .bt-media { padding: 18px 14px 20px; }
    .th-bantin .bt-media-lead .bt-img { aspect-ratio: 16 / 10; }
    .th-bantin .bt-media-lead-text h3 { font-size: 17px; }
    .th-bantin .bt-media-grid { gap: 14px; }
    .th-bantin .bt-footer-main { padding: 26px 0 22px; }
    .th-bantin .bt-footer-brand { flex-basis: 100%; align-items: flex-start; }
    .th-bantin .bt-footer-logo { flex-basis: 70px; width: 70px; height: 70px; }
    .th-bantin .list-news-cate { padding: 4px 14px; }
    .th-bantin .box-news-cate { flex-direction: column; gap: 12px; }
    .th-bantin .box-news-cate a.img { flex-basis: auto; max-width: 100%; aspect-ratio: 16 / 9; }
    .th-bantin .post-details { padding: 18px 14px; }
    .th-bantin .post-details h1 { font-size: 22px; }
    .th-bantin .hd-cat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Bỏ clearfix của Bootstrap 3 trên các khung flex/grid */
.th-bantin .bt-header-inner:before, .th-bantin .bt-header-inner:after,
.th-bantin .bt-infobar-inner:before, .th-bantin .bt-infobar-inner:after,
.th-bantin .bt-footer-bottom-inner:before, .th-bantin .bt-footer-bottom-inner:after { display: none; }

/* =====================================================================
   MENU ĐIỆN THOẠI (#menu-mobile)
   ===================================================================== */
#menu-mobile.mm-menu {
    --pmm-bg: #f4f6fa;
    --pmm-item-bg: #ffffff;
    --pmm-text: var(--bt-ink);
    --pmm-line: var(--bt-line);
    --pmm-head-bg: var(--bt-primary);
    --pmm-head-rule: var(--bt-primary-dark);
    --pmm-accent: var(--bt-primary);
    --pmm-accent-soft: var(--bt-primary-soft);
    --pmm-arrow: var(--bt-primary);
    --pmm-font: var(--bt-body);
    --pmm-head-font: var(--bt-body);
    --pmm-weight: 600;
    --pmm-radius: 0px;
    --pmm-gap: 0px;
    --pmm-inset: 0px;
}
