/* =====================================================================
   CỔNG THÔNG TIN ĐIỆN TỬ PHƯỜNG RẠCH DỪA — Giao diện công khai
   ===================================================================== */
:root {
    --blue: #0d4a8f;
    --blue-2: #1a5fb4;
    --blue-3: #0b3d7a;
    --blue-soft: #e8f0fb;
    --red: #d71920;
    --red-soft: #fdecec;
    --gold: #f5b301;
    --green: #128a4b;
    --ink: #1b2a41;
    --text: #2b3a4e;
    --muted: #64748b;
    --line: #e3e8ef;
    --bg: #f4f6fa;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(16, 38, 73, .06);
    --shadow-md: 0 8px 28px rgba(16, 38, 73, .12);
    --font: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, sans-serif;
    --container: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.3; font-weight: 700; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 10000; }
.skip-link:focus { left: 8px; top: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.empty { color: var(--muted); padding: 18px; text-align: center; background: var(--bg); border-radius: var(--radius); font-size: 14px; }
.empty--big { padding: 60px 20px; font-size: 15px; }
.empty--big i { font-size: 44px; color: #cbd5e1; display: block; margin-bottom: 12px; }
.empty p { margin: 0; }

/* ---------- Buttons / badges ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1.5px solid transparent; transition: all .2s; line-height: 1.2; }
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-3); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--red { background: var(--red); color: #fff; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue-2); line-height: 1.5; }
.badge--blue { background: var(--blue-2); }
.badge--gold { background: var(--gold); color: #3a2a00; }
.badge--green { background: var(--green); }
.badge--gray { background: #64748b; }
.badge--red { background: var(--red); }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-3); color: #cfe0f7; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 12px; }
.topbar__left { display: flex; gap: 16px; align-items: center; white-space: nowrap; overflow: hidden; }
.topbar__left i { color: var(--gold); margin-right: 4px; }
.topbar__lunar { color: #ffe08a; }
.topbar__right { display: flex; align-items: center; gap: 4px; }
.topbar__right > a { color: #dbe8fa; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.15); line-height: 1; }
.topbar__right > a:first-child { border-left: 0; }
.topbar__right > a:hover { color: var(--gold); }
.topbar__social { display: flex; gap: 6px; margin-left: 8px; }
.topbar__social a { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.topbar__social a:hover { background: var(--gold); color: var(--blue-3); }
.topbar__social img { width: 14px; }

/* ---------- Header ---------- */
.hdr { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='58' fill='none' stroke='%23e8f0fb' stroke-width='1'/%3E%3C/svg%3E") right top / 240px no-repeat; border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; min-height: 118px; }
.brand { display: flex; align-items: center; gap: 16px; color: inherit; }
.brand__emblem { width: 88px; height: 88px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__l1 { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 1.5px; text-transform: uppercase; }
.brand__l2 { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: .5px; text-transform: uppercase; margin: 2px 0; }
.brand__l3 { font-size: 12px; font-weight: 700; color: var(--blue-2); letter-spacing: 1.5px; text-transform: uppercase; }
.brand__slogan { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 4px; }
.hdr__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hdr__banner { max-height: 110px; border-radius: 8px; object-fit: cover; }
.hdr__search { position: relative; display: flex; width: 380px; max-width: 100%; }
.hdr__search input { flex: 1; height: 42px; border: 1.5px solid var(--line); border-right: 0; border-radius: 22px 0 0 22px; padding: 0 16px; outline: none; font-size: 14px; }
.hdr__search input:focus { border-color: var(--blue-2); }
.hdr__search button { width: 52px; border: 0; border-radius: 0 22px 22px 0; background: var(--blue); color: #fff; font-size: 15px; }
.hdr__search button:hover { background: var(--red); }
.hdr__meta { display: flex; gap: 12px; }
.hdr__hot, .hdr__dvc { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hdr__hot i { color: var(--red); font-size: 20px; }
.hdr__dvc i { color: var(--blue-2); font-size: 20px; }
.hdr__hot span, .hdr__dvc span { display: flex; flex-direction: column; line-height: 1.2; }
.hdr__hot small, .hdr__dvc small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.hdr__hot strong { color: var(--red); font-size: 15px; }
.hdr__dvc strong { color: var(--blue); font-size: 13px; }
.hdr__hot:hover, .hdr__dvc:hover { border-color: var(--blue-2); box-shadow: var(--shadow); }

/* ---------- Nav ---------- */
.nav { background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue) 100%); position: sticky; top: 0; z-index: 900; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.nav.is-stuck { box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.nav__in { display: flex; align-items: stretch; height: 50px; position: relative; }
.nav__brand-sm { display: none; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 14px; }
.nav__hot-sm { gap: 10px; padding-left: 4px; }
.nav__hot-sm i { font-size: 18px; color: #ffd24d; }
.nav__hot-sm { min-width: 0; white-space: nowrap; }
/* Một hàng: biểu tượng + "Đường dây nóng:" + số; số quá dài so với màn hình thì tự xuống dòng dưới nhãn thay vì tràn */
.nav__hot-sm span { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; line-height: 1.2; }
.nav__hot-sm small { font-size: 12.5px; font-weight: 600; opacity: .9; }
.nav__hot-sm small::after { content: ":"; }
.nav__hot-sm strong { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
@media (max-width: 430px) { .nav__hot-sm { gap: 7px; padding-left: 2px; } .nav__hot-sm i { font-size: 15px; } .nav__hot-sm span { gap: 0 5px; } .nav__hot-sm small { font-size: 11.5px; } .nav__hot-sm strong { font-size: 14.5px; letter-spacing: 0; } }
@media (max-width: 365px) { .nav__hot-sm span { gap: 0 4px; } .nav__hot-sm small { font-size: 10.5px; } .nav__hot-sm strong { font-size: 13.5px; } }
.nav__list { display: flex; flex: 1; align-items: stretch; }
.nav__item { position: relative; display: flex; }
.nav__item > a { display: flex; align-items: center; gap: 5px; padding: 0 10px; color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; position: relative; }
.nav__item > a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav__item:hover > a::after, .nav__item.is-active > a::after { transform: scaleX(1); }
.nav__item.is-active > a { background: rgba(255,255,255,.1); }
.nav__item:hover > a { background: rgba(255,255,255,.08); color: #fff; }
.nav__item > a .fa-house { font-size: 15px; }
.nav__home-txt { display: none; }
.nav__caret { font-size: 8px; opacity: .8; }
.nav__sub-toggle { display: none; }
.nav__sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-md); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; border-top: 3px solid var(--gold); z-index: 20; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub li a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14px; font-weight: 500; border-left: 3px solid transparent; }
.nav__sub li a:hover { background: var(--blue-soft); color: var(--blue); border-left-color: var(--blue); }
.nav__sub li a i { font-size: 11px; color: var(--muted); margin-left: 4px; }
.nav__item:nth-last-child(-n+3) .nav__sub { left: auto; right: 0; }
.nav__search { width: 50px; border: 0; background: var(--red); color: #fff; font-size: 16px; flex-shrink: 0; }
.nav__search:hover { background: #b8121a; }
.nav__toggle { display: none; width: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.nav__mhead { display: none; }
.nav__item--mobile-search { display: none; }
.nav__backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 890; }
.nav__searchbox { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
.nav__searchbox form { display: flex; align-items: center; gap: 10px; padding: 14px 0; position: relative; }
.nav__searchbox form > i { color: var(--muted); font-size: 18px; }
.nav__searchbox input { flex: 1; border: 0; border-bottom: 2px solid var(--line); padding: 10px 0; font-size: 17px; outline: none; }
.nav__searchbox input:focus { border-bottom-color: var(--blue); }
.nav__searchbox button[type=submit] { background: var(--blue); color: #fff; border: 0; padding: 10px 18px; border-radius: 6px; font-weight: 600; }
.nav__searchclose { background: transparent; border: 0; font-size: 18px; color: var(--muted); }
.suggest { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-md); z-index: 50; max-height: 360px; overflow: auto; }
.suggest a { display: flex; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: var(--ink); font-size: 14px; align-items: baseline; }
.suggest a:hover { background: var(--blue-soft); }
.suggest a small { color: var(--muted); font-size: 11px; text-transform: uppercase; flex-shrink: 0; width: 64px; }
.nav__searchbox .suggest { top: calc(100% - 8px); }

/* ---------- Alert bar / crumbs / toast ---------- */
.alertbar { background: var(--red); color: #fff; }
.alertbar__in { display: flex; align-items: center; gap: 12px; height: 36px; overflow: hidden; }
.alertbar__tag { background: #fff; color: var(--red); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 4px; white-space: nowrap; }
.alertbar__track { flex: 1; overflow: hidden; white-space: nowrap; }
.alertbar__track span { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; font-weight: 600; }
@keyframes marquee { to { transform: translateX(-100%); } }
.alertbar__more { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: underline; }
.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; padding: 9px 0; gap: 4px; }
.crumbs__list li { display: flex; align-items: center; }
.crumbs__list li + li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #94a3b8; margin: 0 8px; font-size: 11px; }
.crumbs__list a { color: var(--muted); }
.crumbs__list a:hover { color: var(--blue); }
.crumbs__list span { color: var(--ink); font-weight: 600; }
.toast { position: fixed; top: 70px; right: 16px; z-index: 9999; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-md); max-width: 420px; font-size: 14px; background: #fff; border-left: 4px solid var(--green); animation: toastIn .3s; }
.toast--err { border-left-color: var(--red); }
.toast--ok i { color: var(--green); }
.toast--err i { color: var(--red); }
.toast button { background: none; border: 0; color: var(--muted); margin-left: auto; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Sections ---------- */
.home { padding: 22px 16px 10px; }
.sec { margin-bottom: 26px; }
.sec__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--line); margin-bottom: 14px; position: relative; }
.sec__head h2 { font-size: 15px; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; padding: 0 0 8px; position: relative; letter-spacing: .3px; }
.sec__head h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--blue); }
.sec__head h2 i { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.sec__head--red h2 { color: var(--red); }
.sec__head--red h2::after { background: var(--red); }
.sec__head--red h2 i { background: var(--red); }
.sec__more { font-size: 13px; color: var(--muted); font-weight: 600; padding-bottom: 8px; }
.sec__more:hover { color: var(--red); }
.sec__more i { font-size: 11px; }
.sec__h2 { font-size: 15px; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); }

/* ---------- Home row 1 ---------- */
.home__top { display: grid; grid-template-columns: 1fr 360px; gap: 20px; margin-bottom: 22px; }
.hero { border-radius: var(--radius); overflow: hidden; background: #dbe5f3; position: relative; aspect-ratio: 16/8.4; }
.hero__swiper { height: 100%; }
.hero__slide { display: block; height: 100%; position: relative; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 22px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.hero__cap b { display: block; font-size: 18px; line-height: 1.3; }
.hero__cap small { display: block; font-size: 13px; opacity: .9; margin-top: 4px; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--blue); font-size: 14px; opacity: 0; transition: opacity .2s; }
.hero:hover .hero__nav { opacity: 1; }
.hero__prev { left: 14px; }
.hero__next { right: 14px; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .6; width: 9px; height: 9px; }
.hero .swiper-pagination-bullet-active { background: var(--gold); opacity: 1; width: 22px; border-radius: 5px; }
.hero__empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.hero__empty i { font-size: 44px; margin-bottom: 8px; }
.quick { display: flex; flex-direction: column; gap: 14px; }
.quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-align: center; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.3; min-height: 96px; transition: all .2s; text-transform: uppercase; }
.quick__item i { font-size: 24px; color: var(--red); transition: transform .2s; }
.quick__item:hover { border-color: var(--blue-2); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--blue); }
.quick__item:hover i { transform: scale(1.12); }
.weather { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(135deg, #e8f0fb, #f6f9fe); border: 1px solid var(--line); border-radius: 10px; flex: 1; }
.weather__icon img { width: 60px; height: 60px; }
.weather__main { display: flex; flex-direction: column; }
.weather__main b { font-size: 26px; color: var(--ink); line-height: 1; }
.weather__main span { font-size: 13px; color: var(--muted); }
.weather__date { margin-left: auto; text-align: right; display: flex; flex-direction: column; line-height: 1.3; }
.weather__date b { color: var(--blue); }
.weather__date span { font-size: 13px; }
.weather__date small { font-size: 11px; color: var(--muted); }
.propa { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-bottom: 22px; }
.propa__item img { width: 100%; border-radius: 8px; }

/* ---------- Home row 2 ---------- */
.home__row2 { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-bottom: 8px; }
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.feat__img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 12px; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feat__lead:hover .feat__img img { transform: scale(1.04); }
.feat__lead h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.feat__lead h3 a { color: var(--ink); }
.feat__lead h3 a:hover { color: var(--blue); }
.feat__lead p { color: var(--muted); font-size: 13.5px; }
.feat__meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.feat__meta i { color: var(--red); }
.feat__list { display: flex; flex-direction: column; }
.feat__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.feat__item:first-child { padding-top: 0; }
.feat__item img { width: 104px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.feat__item span { display: flex; flex-direction: column; justify-content: center; }
.feat__item b { font-size: 13.5px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat__item small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.feat__item:hover b { color: var(--blue); }
.latest { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.latest__item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.latest__item img { width: 84px; height: 58px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.latest__item b { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest__item small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.latest__item:hover b { color: var(--blue); }
.home__side { display: flex; flex-direction: column; gap: 14px; }
.party { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.party__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, #c8161d, #e0242c); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 13px; line-height: 1.3; }
.party__head:hover { color: #ffe08a; }
.party__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.party__list li a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.party__list li a > i:first-child { color: var(--red); width: 16px; text-align: center; }
.party__arr { margin-left: auto; font-size: 11px; color: #94a3b8; }
.party__list li a:hover { background: var(--red-soft); color: var(--red); }
.cta { --cta: var(--blue); display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--cta), color-mix(in srgb, var(--cta) 75%, #000)); color: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; overflow: hidden; position: relative; }
.cta::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.cta > i { font-size: 30px; width: 46px; text-align: center; }
.cta img { width: 100%; border-radius: 6px; }
.cta span { display: flex; flex-direction: column; line-height: 1.25; }
.cta b { font-size: 14px; text-transform: uppercase; }
.cta small { font-size: 12px; opacity: .9; }
.sbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.sbox__title { font-size: 14px; color: var(--blue); text-transform: uppercase; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.sbox__list li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.sbox__list li b { display: block; color: var(--red); font-size: 12.5px; }
.sbox__more { font-size: 13px; font-weight: 600; display: inline-block; margin-top: 6px; }

/* ---------- Home row 3 / cats ---------- */
.home__row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 8px; }
.lead-card { display: block; border-radius: 8px; overflow: hidden; position: relative; aspect-ratio: 16/10; margin-bottom: 10px; }
.lead-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lead-card:hover img { transform: scale(1.05); }
.lead-card b { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; font-size: 13.5px; background: linear-gradient(transparent, rgba(0,0,0,.8)); line-height: 1.4; }
.dotlist li { padding: 7px 0 7px 16px; border-bottom: 1px dashed var(--line); position: relative; font-size: 13.5px; }
.dotlist li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.dotlist li a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dotlist li a:hover { color: var(--blue); }
.notice li a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.notice li a > i { width: 36px; height: 36px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice b { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.notice li a:hover b { color: var(--blue); }
.evlist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.evlist__date { width: 58px; flex-shrink: 0; border-radius: 8px; background: var(--red-soft); color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; line-height: 1.1; }
.evlist__date b { font-size: 24px; font-weight: 800; }
.evlist__date span { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.evlist__body { display: flex; flex-direction: column; justify-content: center; }
.evlist__body a { color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.evlist__body a:hover { color: var(--blue); }
.evlist__body small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.home__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 8px; }
/* Số khối lẻ: khối cuối trải hết chiều ngang, danh sách tin chia 2 cột */
.home__cats .catblk:last-child:nth-child(odd) { grid-column: 1 / -1; }
.home__cats .catblk:last-child:nth-child(odd) .catblk__lead img { width: 30%; }
.home__cats .catblk:last-child:nth-child(odd) .dotlist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.catblk__lead { display: flex; gap: 14px; margin-bottom: 8px; color: var(--ink); }
.catblk__lead img { width: 46%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.catblk__lead span { display: flex; flex-direction: column; justify-content: center; }
.catblk__lead b { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.catblk__lead small { color: var(--muted); font-size: 12px; margin-top: 6px; }
.catblk__lead:hover b { color: var(--blue); }
.doctable { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doctable__row { display: grid; grid-template-columns: 170px 1fr 130px 110px; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.doctable__row:first-child { border-top: 0; }
.doctable__row:nth-child(even) { background: #fafbfd; }
.doctable__row:hover { background: var(--blue-soft); }
.doctable__code { font-weight: 700; color: var(--blue); }
.doctable__type { color: var(--muted); font-size: 13px; }
.doctable__date { color: var(--muted); font-size: 13px; text-align: right; }
.home__media { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gal4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gal4__item { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/10; display: block; }
.gal4__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal4__item:hover img { transform: scale(1.06); }
.gal4__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; display: flex; flex-direction: column; }
.gal4__item b { font-size: 13.5px; line-height: 1.3; }
.gal4__item small { font-size: 11px; opacity: .85; }
.vbig { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.vbig img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.vbig iframe, .vbig video { width: 100%; height: 100%; border: 0; }
.vbig__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(215,25,32,.92); color: #fff; font-size: 22px; box-shadow: 0 0 0 10px rgba(255,255,255,.2); transition: transform .2s; }
.vbig__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.vbig__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-weight: 700; font-size: 13.5px; }
.vbig.is-playing img, .vbig.is-playing .vbig__play, .vbig.is-playing .vbig__cap { display: none; }
.vlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.vlist__item { position: relative; border-radius: 6px; overflow: hidden; display: block; color: #fff; aspect-ratio: 16/10; }
.vlist__item img { width: 100%; height: 100%; object-fit: cover; }
.vlist__item > i { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.vlist__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Newsletter / linkbar / footer ---------- */
.nl { background: linear-gradient(135deg, var(--blue-3), var(--blue-2)); color: #fff; padding: 28px 0; margin-top: 20px; }
.nl__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.nl__txt h2 { color: #fff; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.nl__txt h2 i { color: var(--gold); }
.nl__txt p { margin: 4px 0 0; opacity: .9; font-size: 13.5px; }
.nl__form { display: flex; gap: 8px; flex-wrap: wrap; }
.nl__form input { height: 44px; border: 0; border-radius: 6px; padding: 0 14px; min-width: 200px; }
.nl__form button { height: 44px; border: 0; border-radius: 6px; background: var(--gold); color: #2a1e00; font-weight: 700; padding: 0 20px; }
.nl__form button:hover { background: #ffc61a; }
.linkbar { background: var(--bg); border-top: 1px solid var(--line); padding: 14px 0; }
.linkbar__in { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.linkbar__lbl { font-weight: 700; color: var(--blue); font-size: 14px; }
.linkbar__lbl i { margin-right: 4px; }
.linkbar__sel { height: 38px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: #fff; color: var(--ink); font-size: 13px; min-width: 240px; }
.ftr { background: var(--blue-3); color: #d7e3f5; font-size: 13.5px; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 34px 16px 26px; }
.ftr__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ftr__brand img { width: 64px; height: 64px; object-fit: contain; }
.ftr__l1 { display: block; font-size: 11px; letter-spacing: 1.5px; color: #9fbce3; }
.ftr__l2 { display: block; font-size: 18px; font-weight: 800; color: #fff; }
.ftr__info li { display: flex; gap: 10px; padding: 4px 0; line-height: 1.5; }
.ftr__info i { color: var(--gold); width: 16px; margin-top: 4px; text-align: center; }
.ftr__info a { color: #fff; }
.ftr__col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.ftr__stats li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.ftr__stats strong { color: #fff; font-variant-numeric: tabular-nums; }
.ftr__links li { padding: 4px 0; }
.ftr__links a { color: #d7e3f5; }
.ftr__links a:hover { color: var(--gold); }
.ftr__qrbox { background: #fff; padding: 8px; border-radius: 8px; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ftr__qrbox img, .ftr__qrbox canvas { width: 96px !important; height: 96px !important; }
.ftr__qr p { font-size: 12px; color: #9fbce3; margin: 0 0 12px; }
.ftr__social { display: flex; gap: 8px; }
.ftr__social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.ftr__social a:hover { background: var(--gold); color: var(--blue-3); }
.ftr__social img { width: 18px; }
.ftr__bottom { background: #072c5a; padding: 12px 0; font-size: 12.5px; color: #9fbce3; }
.ftr__bottom-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "copy dev" "nav dev"; gap: 6px 24px; align-items: center; }
.ftr__bottom-in > span:first-child { grid-area: copy; }
.ftr__dev { grid-area: dev; justify-self: end; }
.ftr__bnav { grid-area: nav; }
.ftr__dev { color: #9fbce3; }
.ftr__dev a { color: #fff; font-weight: 600; }
.ftr__dev a:hover { color: var(--gold); text-decoration: underline; }
.ftr__bnav { display: flex; gap: 14px; }
.ftr__bnav a { color: #c9daf2; }
.ftr__bnav a:hover { color: var(--gold); }
.totop { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all .3s; z-index: 800; }
.totop.is-show { opacity: 1; visibility: visible; }
.totop:hover { background: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox__stage img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox__stage figcaption { color: #fff; margin-top: 10px; font-size: 14px; text-align: center; }
.lightbox__x, .lightbox__nav { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.lightbox__x { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
.lightbox__x:hover, .lightbox__nav:hover { background: var(--red); }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; }

/* ---------- Inner pages ---------- */
.page { padding: 22px 16px 40px; }
.cathead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 6px 0 16px; margin-bottom: 18px; border-bottom: 2px solid var(--line); position: relative; flex-wrap: wrap; }
.cathead::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 90px; height: 2px; background: var(--red); }
.cathead__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-weight: 700; }
.cathead h1 { font-size: 24px; color: var(--blue); margin: 4px 0 6px; }
.cathead__txt p { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 820px; }
.cathead__stat { text-align: center; padding: 8px 18px; background: var(--blue-soft); border-radius: 10px; min-width: 100px; }
.cathead__stat b { display: block; font-size: 24px; color: var(--blue); line-height: 1; }
.cathead__stat span { font-size: 12px; color: var(--muted); }
.cathead__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cathead__tabs a { padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--line); font-weight: 600; font-size: 13px; color: var(--ink); }
.cathead__tabs a.is-active, .cathead__tabs a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; }
.chip i { color: var(--red); font-size: 12px; }
.chip:hover, .chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip:hover i, .chip.is-active i { color: var(--gold); }
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.layout__main { min-width: 0; }
.tagcat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: .5px; margin-bottom: 6px; }
.hlead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 24px; background: var(--bg); border-radius: 12px; overflow: hidden; }
.hlead__img { display: block; aspect-ratio: 16/10; }
.hlead__img img { width: 100%; height: 100%; object-fit: cover; }
.hlead__body { padding: 20px 22px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.hlead__body h2 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
.hlead__body h2 a { color: var(--ink); }
.hlead__body h2 a:hover { color: var(--blue); }
.hlead__body p { color: var(--muted); font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__img { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__cat { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; }
.card__body { padding: 14px 16px 14px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.card__title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--blue); }
.card__ex { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.card__meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: auto; }
.card__meta i { color: var(--red); margin-right: 3px; }
.card--sm .card__title { font-size: 14px; }
.card--sm .card__body { padding: 12px; }
.pg { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pg__btn { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; }
.pg__btn:hover { border-color: var(--blue); color: var(--blue); }
.pg__btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg__dots { padding: 0 4px; color: var(--muted); align-self: center; }

/* ---------- Sidebar widgets ---------- */
.side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 64px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.widget--plain { padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; gap: 12px; }
.widget__title { font-size: 13px; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--blue); letter-spacing: .3px; }
.widget__title i { color: var(--red); }
.widget__more { display: block; text-align: right; font-size: 13px; font-weight: 600; margin-top: 8px; }
.wlist li a { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.wlist li:last-child a { border-bottom: 0; }
.wlist img { width: 92px; height: 62px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.wlist b { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wlist small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.wlist li a:hover b { color: var(--blue); }
.wrank li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.wrank li:last-child { border-bottom: 0; }
.wrank__n { width: 26px; height: 26px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wrank li:nth-child(-n+3) .wrank__n { background: var(--red); color: #fff; }
.wrank a { color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.wrank a:hover { color: var(--blue); }
.wdocs li a { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.wdocs li:last-child a { border-bottom: 0; }
.wdocs b { color: var(--blue); font-size: 13px; }
.wdocs span { color: var(--ink); font-size: 13.5px; line-height: 1.4; }
.wdocs small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.wdocs li a:hover span { color: var(--blue); }
.wdocs--wide li a { padding: 12px 14px; background: var(--bg); border-radius: 8px; margin-bottom: 8px; border: 0; }
.wcats li { border-bottom: 1px dashed var(--line); }
.wcats li:last-child { border-bottom: 0; }
.wcats > li > a { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.wcats > li > a i { color: var(--red); width: 18px; text-align: center; font-size: 13px; }
.wcats ul { padding: 0 0 6px 26px; }
.wcats ul a { display: block; padding: 3px 0; font-size: 13px; color: var(--muted); }
.wcats a:hover { color: var(--blue); }
.wnav li a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--ink); font-size: 13.5px; }
.wnav li a i { font-size: 11px; color: var(--muted); }
.wnav li a em { margin-left: auto; font-style: normal; font-size: 12px; background: var(--bg); padding: 1px 8px; border-radius: 10px; color: var(--muted); }
.wnav li.is-active a, .wnav li a:hover { background: var(--blue-soft); color: var(--blue); }
.wnote li { padding: 6px 0 6px 14px; position: relative; font-size: 13.5px; color: var(--text); }
.wnote li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.widget--cta { padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; gap: 10px; }
.wcta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: #fff; background: var(--blue); box-shadow: var(--shadow); transition: transform .2s; }
.wcta:hover { transform: translateX(3px); color: #fff; }
.wcta--red { background: linear-gradient(135deg, #c8161d, #e0242c); }
.wcta--blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.wcta--green { background: linear-gradient(135deg, #0f7a42, #16a05a); }
.wcta > i { font-size: 24px; width: 36px; text-align: center; }
.wcta span { display: flex; flex-direction: column; line-height: 1.25; }
.wcta b { font-size: 14px; }
.wcta small { font-size: 12px; opacity: .9; }
.widget--hot { display: flex; align-items: center; gap: 14px; background: var(--red-soft); border-color: #f7c5c8; }
.widget--hot > i { font-size: 28px; color: var(--red); }
.widget--hot span { display: flex; flex-direction: column; }
.widget--hot small { font-size: 12px; color: var(--muted); }
.widget--hot a { font-size: 20px; font-weight: 800; color: var(--red); }
.sbanner img { border-radius: 8px; width: 100%; }

/* ---------- Post page ---------- */
.post { min-width: 0; }
.post__head { margin-bottom: 18px; }
.post__cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.post__cats a { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--red); padding: 3px 10px; border: 1px solid #f7c5c8; border-radius: 4px; background: var(--red-soft); }
.post__cats a:hover { background: var(--red); color: #fff; }
.post__title { font-size: 26px; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.post__meta i { color: var(--red); margin-right: 4px; }
.post__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.post__share { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sh { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 0; font-size: 13px; background: var(--muted); }
.sh img { width: 16px; }
.sh--fb { background: #1877f2; } .sh--zalo { background: #0068ff; } .sh--mail { background: #6b7280; } .sh--copy { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.sh:hover { opacity: .85; color: #fff; }
.sh--copy:hover { color: var(--blue); border-color: var(--blue); opacity: 1; }
.docpage__stats .sh--copy { width: auto; border-radius: 16px; padding: 0 12px; height: 30px; gap: 6px; font-size: 12px; }
.post__font { display: flex; gap: 6px; }
.post__font button { height: 32px; min-width: 40px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); font-size: 13px; padding: 0 8px; }
.post__font button:hover { border-color: var(--blue); color: var(--blue); }
.post__sapo { font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.65; padding: 14px 18px; background: var(--bg); border-left: 4px solid var(--blue); border-radius: 0 8px 8px 0; margin: 18px 0; }
.post__fig { margin: 0 0 20px; }
.post__fig img { width: 100%; border-radius: 10px; }
.post__fig figcaption { font-size: 13px; color: var(--muted); text-align: center; font-style: italic; margin-top: 8px; }
.rich { font-size: 15.5px; line-height: 1.75; color: #263244; }
.rich p { margin: 0 0 16px; }
.rich h2 { font-size: 20px; margin: 26px 0 12px; }
.rich h3 { font-size: 17.5px; margin: 22px 0 10px; }
.rich h4 { font-size: 16px; margin: 18px 0 8px; }
.rich img { border-radius: 8px; margin: 8px auto; }
.rich figure, .rich .fig { margin: 16px 0; text-align: center; }
.rich figcaption { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 6px; }
.rich ul, .rich ol { margin: 0 0 16px 24px; }
.rich ul { list-style: disc; } .rich ol { list-style: decimal; }
.rich li { margin-bottom: 6px; }
.rich blockquote { margin: 18px 0; padding: 14px 20px; border-left: 4px solid var(--gold); background: #fffbea; border-radius: 0 8px 8px 0; font-style: italic; }
.rich a { text-decoration: underline; }
.rich table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.rich th { background: var(--bg); }
.tbl-wrap { overflow-x: auto; margin: 0 0 16px; }
.rich iframe { max-width: 100%; }
.post__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.post__gallery a { display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.post__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post__gallery a:hover img { transform: scale(1.05); }
.post__foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.post__author { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.post__author i { color: var(--red); margin-right: 4px; }
.post__author b { color: var(--ink); }
.post__byline { color: var(--ink); }
.cathead__desc p { margin: 0 0 6px; }
.docpage__summary p { display: inline; margin: 0; }
.docpage__summary p + p { display: block; margin-top: 6px; }
.post__byline b { color: var(--blue); }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.post__tags > i { color: var(--muted); }
.post__tags a { padding: 4px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; }
.post__tags a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.post__nav a { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.post__nav a:hover { border-color: var(--blue); }
.post__nav small { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post__nav b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__nav-next { text-align: right; }
.related { margin-top: 26px; }
.static__upd { font-size: 12px; color: var(--muted); margin-top: 20px; }
.layout--rev .side { top: 64px; }
.attach { margin: 22px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.attach__title { font-size: 14px; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.attach__title span { background: var(--blue); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.attach__list { display: flex; flex-direction: column; gap: 8px; }
.attach__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex-wrap: wrap; }
.attach__ico { font-size: 28px; width: 34px; text-align: center; }
.attach__ico--pdf { color: #e11d48; } .attach__ico--doc { color: #2563eb; } .attach__ico--xls { color: #16a34a; }
.attach__body { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.attach__body b { font-size: 14px; color: var(--ink); }
.attach__body small { font-size: 12px; color: var(--muted); }
.attach__act { display: flex; gap: 6px; }

/* ---------- Org chart ---------- */
.org-wrap { overflow-x: auto; padding: 10px 0 20px; }
.org { display: inline-block; min-width: 100%; text-align: center; }
.org ul { display: flex; justify-content: center; padding-top: 24px; position: relative; }
.org ul ul::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 24px; background: #b8c7dc; }
.org li { position: relative; padding: 24px 8px 0; display: flex; flex-direction: column; align-items: center; }
.org li::before, .org li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 24px; border-top: 2px solid #b8c7dc; }
.org li::after { right: auto; left: 50%; border-left: 2px solid #b8c7dc; }
.org li:only-child::before, .org li:only-child::after { display: none; }
.org li:only-child { padding-top: 0; }
.org li:first-child::before, .org li:last-child::after { border: 0; }
.org li:last-child::before { border-right: 2px solid #b8c7dc; border-radius: 0 6px 0 0; }
.org li:first-child::after { border-radius: 6px 0 0 0; }
.org > ul > li { padding-top: 0; }
.org > ul > li::before, .org > ul > li::after { display: none; }
.org__card { width: 170px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 10px; padding: 12px 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.org__card--d0 { border-top-color: var(--red); width: 190px; }
.org__card--d1 { border-top-color: var(--blue); }
.org__card--d2 { border-top-color: var(--green); }
.org__card--d3 { border-top-color: var(--gold); }
.org__card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); margin-bottom: 8px; }
.org__card b { font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.org__card span { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 3px; line-height: 1.3; }
.org__card small { font-size: 11px; color: var(--muted); margin-top: 2px; }
.org__hint { font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Contact / forms ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cinfo { background: var(--bg); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.cinfo h2 { font-size: 18px; color: var(--blue); margin-bottom: 14px; }
.cinfo li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cinfo li:last-child { border-bottom: 0; }
.cinfo li > i { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow); }
.cinfo li span { display: flex; flex-direction: column; }
.cinfo li b { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cmap { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg); }
.cmap iframe { width: 100%; height: 100%; border: 0; }
.cmap--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.cmap--empty i { font-size: 40px; margin-bottom: 8px; }
.contact__form h2 { font-size: 18px; color: var(--blue); margin-bottom: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form--card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.form h2 { font-size: 18px; color: var(--blue); display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form h3 { font-size: 16px; margin-top: 10px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form label > i { color: var(--red); font-style: normal; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea { height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; font-weight: 400; outline: none; transition: border-color .2s; background: #fff; width: 100%; }
.form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(26,95,180,.12); }
.form input[type=file] { padding: 8px; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--bg); }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form__captcha { flex-direction: row !important; align-items: center; flex-wrap: wrap; gap: 10px !important; }
.form__captcha b { background: var(--blue-soft); color: var(--blue); padding: 6px 14px; border-radius: 6px; font-size: 16px; letter-spacing: 1px; }
.form__captcha input { width: 130px !important; }
.form__refresh { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.form__refresh:hover { color: var(--blue); border-color: var(--blue); }
.form .btn { align-self: flex-start; }
.filter { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.filter__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter__q { flex: 1; min-width: 240px; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; height: 42px; gap: 8px; position: relative; }
.filter__q i { color: var(--muted); }
.filter__q input { border: 0; outline: none; flex: 1; height: 100%; font-size: 14px; background: transparent; }
.filter select { height: 42px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; font-size: 14px; min-width: 150px; }
.lookup { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; max-width: 640px; margin: 0 auto 24px; }
.lookup > i { color: var(--muted); font-size: 18px; }
.lookup input { flex: 1; height: 44px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 16px; font-weight: 700; letter-spacing: 1px; outline: none; }
.lookup input:focus { border-color: var(--blue); }

/* ---------- Documents / procedures ---------- */
.doclist { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.doclist th { background: var(--blue); color: #fff; text-align: left; padding: 11px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.doclist td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doclist tr:hover td { background: var(--blue-soft); }
.doclist__code { font-weight: 700; color: var(--blue); display: block; }
.doclist__title { color: var(--ink); font-weight: 500; }
.doclist__title:hover { color: var(--blue); }
.doclist__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.doclist__file { color: var(--red); font-weight: 700; }
.doclist .badge { margin-top: 4px; }
.docpage { min-width: 0; }
.docpage__head { margin-bottom: 16px; }
.docpage__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.docpage__head h1 { font-size: 22px; line-height: 1.4; color: var(--ink); }
.docinfo { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.docinfo th { background: var(--bg); text-align: left; padding: 10px 12px; width: 160px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.docinfo td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.docpage__summary { background: #fffbea; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 14.5px; }
.docpage__stats { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); margin-top: 16px; flex-wrap: wrap; }
.consult { margin-top: 28px; }
.cmt { padding: 12px 16px; background: var(--bg); border-radius: 8px; margin-bottom: 10px; }
.cmt__head { display: flex; gap: 8px; align-items: baseline; font-size: 14px; margin-bottom: 4px; }
.cmt__head small { color: var(--muted); margin-left: auto; font-size: 12px; }
.cmt p { margin: 0; font-size: 14px; }
.cmt__file { font-size: 13px; display: inline-block; margin-top: 6px; }
.consultlist { display: flex; flex-direction: column; gap: 12px; }
.consultlist__item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'type cta' 'title cta' 'meta cta'; gap: 4px 20px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; color: var(--ink); align-items: center; transition: box-shadow .2s; }
.consultlist__item:hover { box-shadow: var(--shadow-md); }
.consultlist__type { grid-area: type; font-size: 12px; text-transform: uppercase; color: var(--red); font-weight: 700; }
.consultlist__item b { grid-area: title; font-size: 15px; line-height: 1.4; }
.consultlist__meta { grid-area: meta; font-size: 13px; color: var(--muted); }
.consultlist__cta { grid-area: cta; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.dvc-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.dvc-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.dvc-links a i { color: var(--blue); }
.dvc-links a:hover { border-color: var(--blue); color: var(--blue); }
.proclist { display: flex; flex-direction: column; gap: 8px; }
.proclist__item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); transition: all .2s; }
.proclist__item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.proclist__ico { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.proclist__body { flex: 1; display: flex; flex-direction: column; }
.proclist__body b { font-size: 14.5px; line-height: 1.4; }
.proclist__body small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.proclist__arr { color: #94a3b8; font-size: 12px; }
.procsec { margin: 22px 0; }
.procsec h2 { font-size: 16px; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--blue-soft); border-radius: 6px; margin-bottom: 10px; }
.procsec .rich { font-size: 14.5px; padding: 0 6px; }

/* ---------- Schedules / events ---------- */
.schedbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.schedbar__nav { display: flex; align-items: center; gap: 12px; }
.schedbar__nav b { font-size: 15px; color: var(--blue); }
.schedbar__tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.schedbar__pick input { height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 13px; }
.sched { display: flex; flex-direction: column; gap: 12px; }
.sched__day { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.sched__day.is-today { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,95,180,.1); }
.sched__dh { background: var(--bg); padding: 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.sched__day.is-today .sched__dh { background: var(--blue); color: #fff; }
.sched__dh b { font-size: 15px; color: var(--blue); }
.sched__day.is-today .sched__dh b { color: #fff; }
.sched__dh span { font-size: 13px; }
.sched__dh em { font-size: 11px; font-style: normal; background: var(--gold); color: #3a2a00; padding: 1px 8px; border-radius: 10px; margin-top: 6px; align-self: flex-start; font-weight: 700; }
.sched__items { display: flex; flex-direction: column; }
.sched__none { padding: 14px; color: var(--muted); font-size: 13px; margin: 0; font-style: italic; }
.sched__it { display: flex; gap: 14px; padding: 12px 14px; border-bottom: 1px dashed var(--line); }
.sched__it:last-child { border-bottom: 0; }
.sched__time { width: 56px; flex-shrink: 0; font-weight: 700; color: var(--red); font-size: 14px; line-height: 1.5; }
.sched__body b { font-size: 14.5px; color: var(--ink); display: block; }
.sched__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 3px; }
.sched__meta i { color: var(--blue); margin-right: 3px; }
.sched__note { display: block; font-size: 12.5px; color: #92400e; margin-top: 4px; }
.evcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.evcard__img { display: block; position: relative; aspect-ratio: 16/10; }
.evcard__img img { width: 100%; height: 100%; object-fit: cover; }
.evcard__date { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; border-radius: 8px; padding: 4px 10px; text-align: center; line-height: 1.1; }
.evcard__date b { display: block; font-size: 20px; }
.evcard__date small { font-size: 10px; text-transform: uppercase; }
.evcard__body { padding: 14px; }
.evcard__body h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.4; }
.evcard__body h3 a { color: var(--ink); }
.evlist--side li { padding: 8px 0; }

/* ---------- Feedback ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.steps__it { position: relative; padding: 14px 14px 14px 58px; background: var(--bg); border-radius: 10px; }
.steps__it span { position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.steps__it b { display: block; font-size: 14px; }
.steps__it small { font-size: 12px; color: var(--muted); }
.notice-box { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 10px; background: #fffbea; border: 1px solid #fde68a; margin-bottom: 20px; font-size: 14.5px; }
.notice-box > i { font-size: 22px; color: var(--gold); margin-top: 2px; }
.notice-box--ok { background: #ecfdf5; border-color: #a7f3d0; }
.notice-box--ok > i { color: var(--green); }
.notice-box p { margin: 4px 0 0; }
.notice-box .code { font-size: 20px; color: var(--red); letter-spacing: 1px; }
.track { display: flex; gap: 0; margin: 20px 0 24px; counter-reset: s; }
.track li { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.track li::before { content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.is-done::before { background: var(--green); }
.track span { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--muted); position: relative; z-index: 1; }
.track li.is-done span { background: var(--green); border-color: var(--green); color: #fff; }
.track li.is-cur span { box-shadow: 0 0 0 5px rgba(18,138,75,.18); }
.track li.is-rej span { background: var(--red); border-color: var(--red); color: #fff; }
.track b { font-size: 13px; margin-top: 8px; color: var(--muted); }
.track li.is-done b, .track li.is-rej b { color: var(--ink); }
.fbpage { min-width: 0; }
.fbpage__sec { margin-top: 20px; }
.fbpage__sec h2 { font-size: 15px; text-transform: uppercase; color: var(--blue); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.fbpage__content { background: var(--bg); padding: 16px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.7; }
.fbpage__sec--reply .fbpage__content { background: #ecfdf5; border: 1px solid #a7f3d0; }
.fbpage__files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fbpage__files a img { width: 140px; height: 100px; object-fit: cover; border-radius: 6px; }
.fbpage__file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.fbpage__when { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.fbres { display: flex; flex-direction: column; gap: 10px; }
.fbres__item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.fbres__item:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.fbres__code { font-weight: 800; color: var(--blue); font-size: 14px; }
.fbres__body { display: flex; flex-direction: column; min-width: 0; }
.fbres__body b { font-size: 15px; line-height: 1.4; }
.fbres__body small { font-size: 12.5px; color: var(--muted); margin: 3px 0; }
.fbres__ex { font-size: 13.5px; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.faq__item[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq__item summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { width: 32px; height: 32px; border-radius: 8px; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.faq__item summary b { flex: 1; color: var(--ink); line-height: 1.4; }
.faq__arr { color: var(--muted); transition: transform .2s; font-size: 12px; }
.faq__item[open] .faq__arr { transform: rotate(180deg); }
.faq__a { padding: 0 16px 16px 60px; }
.faq__a .rich { font-size: 14.5px; }
.faq__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.faq__answer { margin-top: 18px; }
.faq__answer h2 { font-size: 15px; text-transform: uppercase; color: var(--green); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

/* ---------- Media ---------- */
.album { display: flex; flex-direction: column; color: var(--ink); }
.album__img { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.album__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album:hover .album__img img { transform: scale(1.05); }
.album__count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.album b { font-size: 15px; line-height: 1.4; }
.album small { font-size: 12.5px; color: var(--muted); }
.album:hover b { color: var(--blue); }
.masonry { columns: 3; column-gap: 12px; }
.masonry a { display: block; break-inside: avoid; margin-bottom: 12px; border-radius: 8px; overflow: hidden; position: relative; }
.masonry img { width: 100%; }
.masonry a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; font-size: 12.5px; }
.vcard { display: flex; flex-direction: column; color: var(--ink); }
.vcard__img { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: #000; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.vcard__img > i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(215,25,32,.9); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.vcard__img em { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; font-style: normal; }
.vcard b { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard small { font-size: 12px; color: var(--muted); margin-top: 4px; }
.vcard:hover b { color: var(--blue); }
.vplayer { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 18px; }
.vplayer iframe, .vplayer video { width: 100%; height: 100%; border: 0; }
.vplayer--fb { aspect-ratio: auto; height: min(76vh, 640px); }
.post__source { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.post__source a { color: var(--blue); font-weight: 600; }

/* ---------- Search / sitemap / errors ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a em { font-style: normal; background: var(--bg); padding: 1px 8px; border-radius: 10px; font-size: 12px; margin-left: 4px; }
.tabs a.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.srlist { display: flex; flex-direction: column; gap: 12px; }
.sr { display: flex; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.sr:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.sr img { width: 160px; height: 105px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sr > i { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.sr span { display: flex; flex-direction: column; min-width: 0; }
.sr__type { font-size: 12px; text-transform: uppercase; color: var(--red); font-weight: 700; }
.sr b { font-size: 15px; line-height: 1.4; margin: 3px 0; }
.sr em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sitemap h2 { font-size: 16px; text-transform: uppercase; color: var(--blue); margin: 10px 0; padding-bottom: 6px; border-bottom: 2px solid var(--blue); }
.sitemap > div > ul > li { padding: 6px 0; font-weight: 600; }
.sitemap ul ul { padding-left: 20px; }
.sitemap ul ul li { font-weight: 400; padding: 3px 0; font-size: 14px; }
.sitemap ul ul li::before { content: '– '; color: var(--muted); }
.errpage { text-align: center; padding: 50px 20px; max-width: 620px; margin: 0 auto; }
.errpage__code { font-size: 100px; font-weight: 800; color: var(--blue-soft); line-height: 1; text-shadow: 2px 2px 0 var(--blue); }
.errpage h1 { font-size: 24px; margin: 10px 0; }
.errpage p { color: var(--muted); }
.errpage__search { display: flex; max-width: 420px; margin: 20px auto; }
.errpage__search input { flex: 1; height: 44px; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 14px; outline: none; }
.errpage__search button { width: 50px; border: 0; background: var(--blue); color: #fff; border-radius: 0 8px 8px 0; }
.errpage__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.apptbox { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.apptbox__head { display: flex; gap: 8px; margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .home__top { grid-template-columns: 1fr 320px; }
    .home__row2 { grid-template-columns: 1fr 320px; }
    .layout { grid-template-columns: 1fr 300px; gap: 22px; }
    .nav__item > a { padding: 0 8px; font-size: 11.5px; }
    .nav__caret { display: none; }
}
@media (max-width: 991px) {
    .topbar__right > a { display: none; }
    .hdr__in { min-height: auto; padding: 12px 16px; }
    .hdr__right { display: none; }
    .brand__l2 { font-size: 24px; }
    .brand__emblem { width: 68px; height: 68px; }
    .nav__toggle { display: flex; }
    .nav__brand-sm { display: flex; flex: 1; }
    .nav__list { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; background: #fff; flex-direction: column; overflow-y: auto; z-index: 950; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow-md); padding-bottom: 20px; }
    .nav.is-open .nav__list { transform: translateX(0); }
    .nav.is-open .nav__backdrop { display: block; }
    .nav__mhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--blue); color: #fff; font-weight: 800; }
    .nav__mhead button { background: transparent; border: 0; color: #fff; font-size: 20px; }
    .nav__item { flex-direction: column; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
    .nav__item > a { color: var(--ink); padding: 13px 16px; flex: 1; text-transform: none; font-size: 15px; font-weight: 600; }
    .nav__item > a::after { display: none; }
    .nav__item.is-active > a { background: var(--blue-soft); color: var(--blue); }
    .nav__home-txt { display: inline; }
    .nav__caret { display: none; }
    .nav__item.has-sub { flex-direction: row; }
    .nav__sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); }
    .nav__item.is-expanded .nav__sub-toggle i { transform: rotate(180deg); }
    .nav__sub { position: static; width: 100%; box-shadow: none; border: 0; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0; padding: 4px 0; display: none; opacity: 1; visibility: visible; transform: none; }
    .nav__item.is-expanded .nav__sub { display: block; }
    .nav__sub li a { padding: 10px 16px 10px 28px; font-size: 14px; }
    .nav__item--mobile-search { display: block; padding: 12px 16px; }
    .nav__item--mobile-search form { display: flex; }
    .nav__item--mobile-search input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 6px 0 0 6px; padding: 0 12px; }
    .nav__item--mobile-search button { width: 44px; border: 0; background: var(--blue); color: #fff; border-radius: 0 6px 6px 0; }
    .home__top, .home__row2, .home__media, .home__cats { grid-template-columns: 1fr; }
    .home__cats .catblk:last-child:nth-child(odd) .dotlist { display: block; }
    .home__cats .catblk:last-child:nth-child(odd) .catblk__lead img { width: 46%; }
    .home__row3 { grid-template-columns: 1fr; }
    .quick__grid { grid-template-columns: repeat(3, 1fr); }
    .layout { grid-template-columns: 1fr; }
    .side { position: static; }
    .ftr__grid { grid-template-columns: 1fr 1fr; }
    .contact, .sitemap { grid-template-columns: 1fr; }
    .doctable__row { grid-template-columns: 130px 1fr 100px; }
    .doctable__type { display: none; }
    .steps { grid-template-columns: 1fr 1fr; }
    .masonry { columns: 2; }
    .grid3 { grid-template-columns: 1fr 1fr; }
    .grid4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ftr__bottom-in { grid-template-columns: 1fr; grid-template-areas: "copy" "nav" "dev"; }
    .ftr__dev { justify-self: start; }
    body { font-size: 14px; }
    .topbar__left { gap: 10px; font-size: 12px; }
    .topbar__clock { display: none; }
    .brand__text { line-height: 1.15; }
    .brand__l1, .brand__l3 { font-size: 11px; letter-spacing: 1px; }
    .brand__l2 { font-size: 20px; }
    .brand__slogan { display: none; }
    .hero { aspect-ratio: 16/10; }
    .hero__cap b { font-size: 15px; }
    .quick__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .quick__item { font-size: 11px; min-height: 84px; padding: 10px 6px; }
    .quick__item i { font-size: 20px; }
    .feat { grid-template-columns: 1fr; }
    .latest { grid-template-columns: 1fr; }
    .hlead { grid-template-columns: 1fr; }
    .hlead__body { padding: 16px; }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    .post__title { font-size: 22px; }
    .cathead h1 { font-size: 21px; }
    .cathead__stat { display: none; }
    .form__row2 { grid-template-columns: 1fr; }
    .sched__day { grid-template-columns: 1fr; }
    .sched__dh { flex-direction: row; gap: 8px; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
    .sched__dh em { margin-top: 0; margin-left: auto; }
    .doctable__row { grid-template-columns: 1fr; gap: 2px; }
    .doctable__date { text-align: left; }
    .ftr__grid { grid-template-columns: 1fr; gap: 22px; }
    .ftr__bottom-in { flex-direction: column; text-align: center; }
    .ftr__bnav { justify-content: center; flex-wrap: wrap; }
    .nl__form { width: 100%; }
    .nl__form input { flex: 1; min-width: 0; }
    .post__gallery { grid-template-columns: repeat(2, 1fr); }
    .post__nav { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .track b { font-size: 11px; }
    .fbres__item { grid-template-columns: 1fr; gap: 6px; }
    .consultlist__item { grid-template-columns: 1fr; grid-template-areas: 'type' 'title' 'meta' 'cta'; }
    .consultlist__cta { justify-self: start; }
    .masonry { columns: 2; }
    .grid4 { grid-template-columns: 1fr 1fr; }
    .docinfo, .docinfo tbody, .docinfo tr, .docinfo th, .docinfo td { display: block; width: 100%; }
    .docinfo th { border-right: 0; border-bottom: 0; padding-bottom: 2px; }
    .sr img { width: 100px; height: 70px; }
    .linkbar__sel { min-width: 100%; }
}
@media print {
    .topbar, .hdr__right, .nav, .alertbar, .crumbs, .side, .nl, .linkbar, .ftr, .totop, .post__tools, .post__nav, .related, .schedbar__tools, .toast, .tt-popup { display: none !important; }
    .layout { grid-template-columns: 1fr; }
    body { font-size: 13px; }
    a { color: #000; }
}

/* Bảng văn bản: xếp dọc trên điện thoại */
@media (max-width: 640px) {
    .doclist thead { display: none; }
    .doclist tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .doclist td { display: block; padding: 0; border: 0; }
    .doclist tr:hover td { background: transparent; }
    .doclist td:nth-child(1) { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 8px; }
    .doclist .badge { margin-top: 0; }
    .doclist td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .doclist td:nth-child(3) { display: none; }
    .doclist td:nth-child(4) { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); white-space: nowrap; }
    .doclist td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; font-size: 12px; }
}

/* Ẩn với mắt thường nhưng vẫn đọc được bởi trình đọc màn hình / công cụ tìm kiếm */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Nội dung dài không có khoảng trắng không làm tràn trang */
.post__content, .rich, .post__sapo, .post__title, .docpage__summary, .procsec { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.post__content pre { white-space: pre-wrap; }
.layout > * { min-width: 0; }
