/* ===== Giao diện trang công khai ===== */
:root { --pb-r: 1.1rem; --pb-ink: #1d2b24; --pb-soft: color-mix(in srgb, var(--main) 7%, #fff); --pb-line: color-mix(in srgb, var(--main) 16%, #e6e8e4); --pb-deep: color-mix(in srgb, var(--main) 62%, #07150f); --pb-gold: #e0a526; --pb-bg: #fbfbf8; --pb-fh: 'Bitter', Georgia, serif; --pb-fb: 'Be Vietnam Pro', system-ui, sans-serif; --pb-nav-bg: #fff; --pb-nav-ink: #3a4a42; --pb-foot-ink: #d5e0da; }
body.pub { font-family: var(--pb-fb); color: var(--pb-ink); background: var(--pb-bg); }
body.pub h1, body.pub h2, body.pub h3, .pub-serif { font-family: var(--pb-fh); letter-spacing: -.01em; }
:where(body.pub) a { color: var(--main); }
/* Thanh điều hướng */
.pub-nav { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--pb-nav-bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--pb-line); }
.pub-nav .navbar-brand { font-family: var(--pb-fh); font-weight: 700; color: var(--pb-deep); display: flex; align-items: center; gap: .6rem; }
.pub-logo { width: 2.2rem; height: 2.2rem; border-radius: .7rem; background: linear-gradient(135deg, var(--main), var(--pb-deep)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.pub-nav .nav-link { color: var(--pb-nav-ink); font-weight: 500; border-radius: 2rem; padding: .4rem .95rem !important; }
.pub-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) {
  .pub-nav > .container { max-width: 1320px; flex-wrap: nowrap; }
  .pub-nav .navbar-collapse { flex-wrap: nowrap; min-width: 0; }
  .pub-nav .navbar-nav { flex-wrap: nowrap; flex-direction: row; }
  .pub-nav .nav-link { padding: .4rem .7rem !important; font-size: .92rem; }
  .pub-nav .pub-nav-act { flex-shrink: 0; white-space: nowrap; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) { .pub-nav .nav-link { padding: .4rem .55rem !important; font-size: .88rem; } .pub-nav .navbar-brand { margin-right: .5rem; } }
.pub-nav .nav-link:hover { background: var(--pb-soft); }
.pub-nav .nav-link.active { background: var(--main); color: #fff; }
/* Hero */
.pub-hero { position: relative; overflow: hidden; color: #fff; padding: 4.5rem 0 5.5rem; background: radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--main) 70%, #fff) , transparent 60%), linear-gradient(160deg, var(--pb-h1, var(--main)), var(--pb-h2, var(--pb-deep))); }
.pub-hero.has-img { background-size: cover; background-position: center; }
.pub-hero.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--main) 78%, transparent), color-mix(in srgb, var(--pb-deep) 92%, transparent)); }
.pub-hero .contour { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.pub-hero .container { position: relative; }
.pub-kicker { display: inline-flex; gap: .45rem; align-items: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: .3rem .8rem; border-radius: 2rem; }
.pub-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 1rem 0 .6rem; line-height: 1.1; }
.pub-hero p.lead { max-width: 38rem; opacity: .92; }
.pub-hero .btn-light { color: var(--pb-deep); font-weight: 600; border-radius: 2rem; padding: .55rem 1.3rem; }
.pub-hero .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 2rem; padding: .55rem 1.3rem; }
.pub-hero .btn-ghost:hover { background: rgba(255,255,255,.14); }
.pub-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 42px; display: block; }
/* Thẻ thống kê */
.pub-stats { margin-top: 1.6rem; }
.pub-stat { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); height: 100%; }
.pub-stat i { width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.4rem; background: var(--pb-soft); color: var(--main); flex: none; }
.pub-stat b { display: block; font-family: var(--pb-fh); font-size: 1.8rem; line-height: 1; }
.pub-stat span { font-size: .82rem; color: #6a756f; }
/* Mục */
.pub-sec { padding: 2.2rem 0 .4rem; }
.pub-h { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.pub-h h2 { font-size: 1.55rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .6rem; }
.pub-h h2::before { content: ''; width: .35rem; height: 1.5rem; background: var(--pb-gold); border-radius: 1rem; }
.pub-h a { font-size: .9rem; text-decoration: none; font-weight: 500; }
.pub-card { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); overflow: hidden; height: 100%; transition: transform .2s, box-shadow .2s; }
.pub-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(0,0,0,.45); }
.pub-card .thumb { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--pb-soft); display: grid; place-items: center; color: color-mix(in srgb, var(--main) 40%, #fff); font-size: 2.6rem; }
.pub-card .body { padding: 1rem 1.1rem 1.2rem; }
.pub-card h5 { font-family: var(--pb-fh); font-size: 1.05rem; font-weight: 700; }
.pub-card h5 a { color: var(--pb-ink); text-decoration: none; } .pub-card h5 a:hover { color: var(--main); }
.pub-date { display: inline-flex; gap: .35rem; align-items: center; font-size: .78rem; color: #6a756f; background: var(--pb-soft); padding: .15rem .6rem; border-radius: 2rem; }
.pub-news { display: flex; gap: .9rem; padding: .95rem 1.1rem; border-bottom: 1px solid var(--pb-line); text-decoration: none; color: inherit; }
.pub-news:last-child { border-bottom: 0; } .pub-news:hover { background: var(--pb-soft); }
.pub-dd { flex: none; width: 3.1rem; text-align: center; border-radius: .8rem; background: var(--pb-soft); padding: .35rem 0; line-height: 1.1; }
.pub-dd b { display: block; font-family: var(--pb-fh); font-size: 1.3rem; color: var(--main); } .pub-dd small { font-size: .68rem; text-transform: uppercase; color: #6a756f; }
.pub-panel { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); overflow: hidden; }
.pub-new { font-size: .68rem; background: #d9473d; color: #fff; padding: .1rem .5rem; border-radius: 2rem; margin-left: .3rem; vertical-align: middle; }
.pub-page-head { background: linear-gradient(160deg, var(--pb-h1, var(--main)), var(--pb-h2, var(--pb-deep))); color: #fff; padding: 2.6rem 0 3rem; position: relative; overflow: hidden; }
.pub-page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: 0; }
.pub-page-head .contour { position: absolute; inset: 0; opacity: .14; }
.pub-article { max-width: 780px; margin: 1.6rem auto 0; background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); padding: 2rem clamp(1.1rem, 4vw, 2.4rem); position: relative; box-shadow: 0 14px 40px -26px rgba(0,0,0,.4); }
.pub-article .txt { font-size: 1.05rem; line-height: 1.8; }
/* Giới thiệu thôn */
.gt-lead { font-family: var(--pb-fh); font-size: 1.25rem; line-height: 1.7; }
.gt-lead::first-letter { font-size: 3.4rem; float: left; line-height: .9; padding: .25rem .6rem 0 0; color: var(--main); font-weight: 800; }
.gt-fact { background: #fff; border: 1px solid var(--pb-line); border-radius: 1rem; padding: 1rem 1.1rem; height: 100%; }
.gt-fact i { color: var(--main); font-size: 1.3rem; } .gt-fact small { display: block; color: #6a756f; margin-top: .3rem; } .gt-fact b { display: block; }
.gt-blk { min-width: 0; }
.gt-map { border-radius: var(--pb-r); overflow: hidden; border: 1px solid var(--pb-line); box-shadow: 0 14px 40px -26px rgba(0,0,0,.4); }
/* Cán bộ */
.cb-card { position: relative; background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); overflow: hidden; text-align: center; height: 100%; transition: transform .2s, box-shadow .2s; }
.cb-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.5); }
.cb-top { height: 78px; background: linear-gradient(135deg, var(--main), var(--pb-deep)); position: relative; }
.cb-top .contour { position: absolute; inset: 0; opacity: .2; }
.cb-ava { width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff; margin: -52px auto 0; background: var(--pb-soft); display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); color: var(--main); font-size: 3.4rem; }
.cb-ava img { width: 100%; height: 100%; object-fit: cover; }
.cb-role { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--pb-deep); background: color-mix(in srgb, var(--pb-gold) 28%, #fff); padding: .2rem .8rem; border-radius: 2rem; }
.cb-card.lead-cb { border-color: var(--pb-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pb-gold) 28%, transparent); }
.cb-info { color: #55625b; font-size: .9rem; } .cb-info a { color: inherit; text-decoration: none; } .cb-info a:hover { color: var(--main); }
/* Chân trang */
.pub-foot { background: var(--pb-foot-bg, var(--pb-deep)); color: var(--pb-foot-ink); margin-top: 4rem; padding: 2.6rem 0 1.2rem; }
.pub-foot h6 { color: #fff; font-family: var(--pb-fh); } .pub-foot a { color: var(--pb-foot-ink); text-decoration: none; } .pub-foot a:hover { color: #fff; text-decoration: underline; }
.pub-foot .sub { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.6rem; padding-top: 1rem; font-size: .82rem; color: #9fb3a9; }
@media (max-width: 575px) { .pub-hero { padding: 3rem 0 4.5rem; } .pub-stat b { font-size: 1.45rem; } }
@media print { .pub-nav, .pub-foot { display: none; } }

/* Tùy chỉnh template do quản trị viên chọn */
body.pub-r-vuong { --pb-r: .2rem; } body.pub-r-vua { --pb-r: .65rem; } body.pub-r-tron { --pb-r: 1.2rem; }
body.pub-h-sang .pub-hero, body.pub-h-sang .pub-page-head { background: linear-gradient(180deg, var(--pb-soft), #fff); color: var(--pb-ink); border-bottom: 1px solid var(--pb-line); }
body.pub-h-sang .pub-hero .contour, body.pub-h-sang .pub-page-head .contour { stroke: var(--main); opacity: .12; }
body.pub-h-sang .pub-hero .btn-light { background: var(--main); color: #fff; } body.pub-h-sang .pub-hero .btn-ghost { color: var(--main); border-color: var(--main); }
body.pub-h-sang .pub-kicker { background: #fff; border-color: var(--pb-line); color: var(--main); } body.pub-h-sang .pub-page-head a { color: var(--main) !important; }
body.pub-h-sang .pub-wave { display: none; }
body.pub-h-phang .pub-hero { background: var(--main); } body.pub-h-phang .pub-page-head { background: var(--main); } body.pub-h-phang .pub-wave, body.pub-h-phang .contour { display: none; }
.pub-card, .pub-panel, .pub-stat, .gt-fact, .cb-card, .pub-article { min-width: 0; overflow-wrap: anywhere; }

/* ===== Bài viết / hoạt động nổi bật ===== */
.bv-preview-bar { background: #b45309; color: #fff; padding: .55rem 0; font-size: .92rem; position: sticky; top: 0; z-index: 1029; }
.bv-article { max-width: 820px; }
.bv-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: #5b6b62; }
.bv-lead { color: #3d4a43; border-left: 4px solid var(--main); padding-left: 1rem; font-size: 1.1rem; }
.bv-body h2 { font-family: var(--pb-fh); font-size: 1.5rem; margin: 1.6rem 0 .7rem; font-weight: 700; } .bv-body h3 { font-size: 1.2rem; margin: 1.3rem 0 .6rem; font-weight: 700; } .bv-body h4 { font-size: 1.05rem; font-weight: 700; }
.bv-body img { max-width: 100%; height: auto; border-radius: .8rem; }
.bv-body figure { margin: 1.3rem auto; text-align: center; max-width: 100%; } .bv-body figure.img-full { width: 100%; } .bv-body figure.img-full img { width: 100%; }
.bv-body figure.img-left { float: left; max-width: 46%; margin: .3rem 1.2rem .6rem 0; } .bv-body figure.img-right { float: right; max-width: 46%; margin: .3rem 0 .6rem 1.2rem; }
.bv-body figure.bv-video { width: 100%; max-width: 760px; } .bv-body .bv-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: .8rem; background: #000; }
.bv-body figcaption { font-size: .86rem; color: #6b7a72; margin-top: .3rem; font-style: italic; }
.bv-body blockquote { border-left: 4px solid var(--main); background: var(--pb-soft); padding: .6rem 1.1rem; border-radius: 0 .7rem .7rem 0; color: #3d4a43; }
.bv-body table { width: 100%; border-collapse: collapse; } .bv-body td, .bv-body th { border: 1px solid var(--pb-line); padding: .4rem .6rem; }
.bv-body a { color: var(--main); text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 575px) { .bv-body figure.img-left, .bv-body figure.img-right { float: none; max-width: 100%; margin: 1rem auto; } }
.bv-tags { display: flex; flex-wrap: wrap; gap: .4rem; } .bv-tags a { background: var(--pb-soft); border: 1px solid var(--pb-line); color: var(--pb-deep); border-radius: 2rem; padding: .2rem .75rem; font-size: .88rem; text-decoration: none; } .bv-tags a:hover, .bv-tags a.on { background: var(--main); color: #fff; border-color: var(--main); } .bv-tags small { opacity: .7; }
.bv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.bv-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.bv-like { border: 1.5px solid #e11d48; color: #e11d48; background: #fff; border-radius: 2rem; padding: .4rem 1.1rem; font-weight: 600; display: inline-flex; gap: .45rem; align-items: center; transition: transform .15s; } .bv-like:hover { background: #fff1f3; } .bv-like.on { background: #e11d48; color: #fff; } .bv-like:active { transform: scale(.94); } .bv-like:disabled { opacity: .6; }
.bv-rel { display: block; text-decoration: none; color: inherit; border: 1px solid var(--pb-line); border-radius: .9rem; overflow: hidden; background: #fff; height: 100%; } .bv-rel img { width: 100%; aspect-ratio: 16/10; object-fit: cover; } .bv-rel span { display: block; padding: .6rem .8rem; font-weight: 600; font-size: .92rem; }
.bv-search { margin-bottom: 1.25rem; max-width: 460px; margin-top: 1.2rem; }
.bv-fcard { position: relative; display: block; border-radius: 1.1rem; overflow: hidden; color: #fff; text-decoration: none; background: #26332c; aspect-ratio: 16/10; box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.bv-fcard.big { aspect-ratio: auto; height: 100%; min-height: 330px; } .bv-fcard img, .bv-fcard .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .bv-fcard .ph { display: grid; place-items: center; font-size: 3rem; opacity: .4; } .bv-fcard:hover img { transform: scale(1.04); }
.bv-fcard .ov { position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.1rem 1rem; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); display: flex; flex-direction: column; gap: .3rem; } .bv-fcard b { font-family: var(--pb-fh); font-size: 1.05rem; line-height: 1.3; } .bv-fcard.big b { font-size: 1.5rem; } .bv-fcard small { opacity: .85; }
.bv-badge { align-self: flex-start; background: var(--pb-gold, #f5b301); color: #1d2b24; font-weight: 700; font-size: .72rem; border-radius: 2rem; padding: .1rem .6rem; }

/* Bài viết: khối thông tin + bài khác */
.bv-info { background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); overflow: hidden; margin: 1.6rem auto 0; max-width: 1000px; box-shadow: 0 14px 34px -26px rgba(0,0,0,.5); }
.bv-cover { width: 100%; height: 100%; min-height: 240px; max-height: 420px; object-fit: cover; display: block; } .bv-cover.ph { display: grid; place-items: center; background: var(--pb-soft); font-size: 3rem; color: var(--main); opacity: .6; }
.bv-info-body { padding: 1.3rem 1.5rem; } .bv-title { font-family: var(--pb-fh); font-size: 1.35rem; font-weight: 700; margin-bottom: .9rem; }
.bv-dl { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: 0 0 1rem; } .bv-dl > div { min-width: 0; } .bv-dl dt { font-size: .76rem; font-weight: 600; color: #6b7a72; text-transform: uppercase; letter-spacing: .03em; } .bv-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 575px) { .bv-dl { grid-template-columns: 1fr 1fr; } .bv-info-body { padding: 1rem; } .bv-cover { min-height: 180px; } }
.bv-article { margin-top: 1.2rem; max-width: 1000px; }
.bv-others { max-width: 1000px; margin: 2rem auto 0; }
.bv-orow { display: flex; gap: .85rem; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--pb-line); border-radius: .95rem; padding: .6rem; height: 100%; transition: box-shadow .2s, transform .2s; } .bv-orow:hover { box-shadow: 0 12px 26px -18px rgba(0,0,0,.5); transform: translateY(-2px); }
.bv-orow img, .bv-orow .ph { width: 112px; height: 84px; object-fit: cover; border-radius: .65rem; flex: none; background: var(--pb-soft); } .bv-orow .ph { display: grid; place-items: center; color: var(--main); opacity: .6; }
.bv-orow .tx { display: flex; flex-direction: column; gap: .15rem; min-width: 0; } .bv-orow b { font-family: var(--pb-fh); font-size: .98rem; line-height: 1.3; } .bv-orow small { font-size: .8rem; color: #6b7a72; }

/* v17c — bố cục 30% / 70% */
.bv-layout { display: grid; grid-template-columns: 30% minmax(0, 1fr); grid-template-areas: "info body" "others body"; grid-template-rows: auto 1fr; gap: 1.4rem 1.6rem; margin-top: 1.6rem; align-items: start; }
.bv-layout .bv-info { grid-area: info; margin: 0; max-width: none; } .bv-layout .bv-article { grid-area: body; margin: 0; max-width: none; min-width: 0; } .bv-layout .bv-others { grid-area: others; margin: 0; max-width: none; }
.bv-layout .bv-cover { min-height: 0; max-height: none; aspect-ratio: auto; height: auto; object-fit: contain; background: var(--pb-soft); }
.bv-layout .bv-cover.ph { aspect-ratio: 16/10; }
.bv-layout .bv-dl { grid-template-columns: 1fr; }
.bv-layout .bv-actions { flex-direction: column; align-items: stretch; } .bv-layout .bv-like { justify-content: center; }
.bv-layout .bv-orow img, .bv-layout .bv-orow .ph { width: 84px; height: 64px; }
.bv-layout .pub-h h2 { font-size: 1.1rem; }
@media (max-width: 767px) { .bv-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "body" "others"; grid-template-rows: auto; } .bv-layout .bv-dl { grid-template-columns: 1fr 1fr; } .bv-layout .bv-cover { max-height: none; } }

/* Logo + tên thôn ở đầu trang công khai */
.pub-logo-img { flex: none; width: 46px; height: 46px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.pub-brand-t { display: flex; flex-direction: column; line-height: 1.12; }
.pub-brand-t b { font-size: 1.28rem; font-weight: 800; letter-spacing: .01em; color: var(--pb-deep); }
.pub-brand-t small { font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .3em; color: #c1272d; display: flex; align-items: center; gap: .45rem; margin-top: .15rem; }
.pub-brand-t small::before { content: ""; width: 26px; height: 2px; background: #c1272d; flex: none; }
@media (max-width: 575px) { .pub-brand-t b { font-size: 1.05rem; } .pub-brand-t small { letter-spacing: .18em; } .pub-logo-img { width: 40px; height: 40px; } }

/* Đánh giá sao + in bài */
.bv-stars { display: inline-flex; gap: .05rem; vertical-align: middle; margin-right: .35rem; }
.bv-stars button { min-width: 1.25rem; min-height: 1.25rem; background: none; border: 0; padding: 0 .08rem; font-size: 1.15rem; line-height: 1; color: #d6a21a; cursor: pointer; }
.bv-stars button:disabled { cursor: default; opacity: .6; }
.bv-stars button:focus-visible { outline: 2px solid var(--main, #0d6efd); border-radius: 4px; }
@media print {
  .pub-nav, .pub-foot, footer, .bv-actions, .bv-others, .bv-preview-bar, .bv-tags-post, #bvStars, #bvStarTxt, .qlt-chat, [id^="qltChat"], .pub-fab, .back-top { display: none !important; }
  .bv-info { break-inside: avoid; } .bv-cover { max-height: 240px; object-fit: cover; }
  body { background: #fff !important; } a[href]:after { content: none !important; }
  .pub-page-head { background: none !important; color: #000 !important; padding: .5rem 0 !important; } .pub-page-head * { color: #000 !important; }
}

/* ===== Danh sách Thông báo / Hoạt động nổi bật (bvl-*) ===== */
.bvl-sub { margin: .55rem 0 0; opacity: .88; font-size: 1.02rem; max-width: 46rem; }
.bvl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 1.6rem 0 1.2rem; }
.bvl-search { display: flex; align-items: center; flex: 1 1 380px; max-width: 560px; background: #fff; border: 1px solid var(--pb-line); border-radius: 3rem; padding: .25rem .3rem .25rem 1rem; box-shadow: 0 8px 22px -18px rgba(0,0,0,.5); transition: box-shadow .2s, border-color .2s; }
.bvl-search:focus-within { border-color: var(--main); box-shadow: 0 0 0 .22rem rgba(13,110,253,.14); }
.bvl-search > i { color: #7b8a82; margin-right: .55rem; } .bvl-search input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: .45rem 0; font-size: .98rem; }
.bvl-search .btn { border-radius: 3rem; padding: .42rem 1.15rem; font-weight: 600; }
.bvl-meta { color: #5b6b62; font-size: .95rem; } .bvl-meta b { color: var(--pb-deep); font-size: 1.05rem; } .bvl-clear { color: #c1272d; text-decoration: none; font-weight: 600; margin-left: .2rem; }
.bvl-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: -.4rem 0 1.1rem; } .bvl-chips span { background: var(--pb-soft); border: 1px solid var(--pb-line); color: var(--pb-deep); border-radius: 2rem; padding: .2rem .8rem; font-size: .88rem; }
.bvl-sec { margin-bottom: 2.2rem; } .bvl-h2 { margin-top: .4rem; }
.bvl-feat { display: grid; gap: 1.1rem; grid-template-columns: minmax(0,1fr); }
.bvl-feat.multi { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
.bvl-feat-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1.1rem; min-height: 0; } .bvl-feat-main { min-height: 0; }
.bvl-feat .bv-fcard, .bvl-feat .bv-fcard.big { height: 100%; aspect-ratio: auto; min-height: 210px; border-radius: 1.2rem; }
.bvl-feat-main .bv-fcard.big { min-height: 440px; }
.bvl-feat:not(.multi) .bv-fcard.big { min-height: 380px; }
.bvl-feat .bv-fcard .ov { padding: 3.2rem 1.3rem 1.15rem; gap: .4rem; }
.bvl-feat .bv-fcard b { font-size: 1.05rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bvl-feat-main .bv-fcard b { font-size: clamp(1.3rem, 2.4vw, 1.85rem); -webkit-line-clamp: 3; }
.bvl-feat .bv-fcard small { opacity: .9; font-size: .84rem; } .bvl-feat .bv-fcard .dot { opacity: .55; margin: 0 .15rem; }
.bvl-feat .bv-fcard:hover img { transform: scale(1.04); }
.bvl-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
.bvl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-line); border-radius: 1.1rem; overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; }
.bvl-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(0,0,0,.55); border-color: color-mix(in srgb, var(--main) 35%, var(--pb-line)); }
.bvl-img { position: relative; display: block; aspect-ratio: 16/10; background: var(--pb-soft); overflow: hidden; }
.bvl-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; } .bvl-card:hover .bvl-img img { transform: scale(1.05); }
.bvl-img .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: var(--main); opacity: .55; background: linear-gradient(135deg, var(--pb-soft), #fff); }
.bvl-img .bv-badge { position: absolute; top: .7rem; left: .7rem; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.bvl-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.05rem 1.2rem 1rem; flex: 1; }
.bvl-date { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--main); }
.bvl-body h3 { font-family: var(--pb-fh); font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bvl-body h3 a { color: var(--pb-ink, #1d2b24); text-decoration: none; } .bvl-body h3 a:hover { color: var(--main); }
.bvl-body p { margin: 0; color: #55645c; font-size: .93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bvl-foot { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--pb-line); display: flex; justify-content: space-between; gap: .6rem; font-size: .82rem; color: #6b7a72; }
.bvl-foot .au { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .bvl-foot .st { white-space: nowrap; }
.bvl-empty { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; padding: 3.2rem 1rem; background: #fff; border: 1px dashed var(--pb-line); border-radius: 1.2rem; color: #6b7a72; } .bvl-empty i { font-size: 2.6rem; color: var(--main); opacity: .6; } .bvl-empty b { color: var(--pb-ink, #1d2b24); font-size: 1.1rem; }
.bvl-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 2rem 0 .5rem; }
.bvl-pager a, .bvl-pager .gap { min-width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; padding: 0 .5rem; border-radius: .8rem; border: 1px solid var(--pb-line); background: #fff; color: var(--pb-deep); text-decoration: none; font-weight: 600; font-size: .95rem; }
.bvl-pager .gap { border: 0; background: none; min-width: 1.4rem; } .bvl-pager a:hover { border-color: var(--main); color: var(--main); } .bvl-pager a.on { background: var(--main); border-color: var(--main); color: #fff; }
@media (max-width: 991px) { .bvl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .bvl-feat.multi { grid-template-columns: minmax(0,1fr); } .bvl-feat-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; } .bvl-feat-main .bv-fcard.big { min-height: 340px; } }
@media (max-width: 575px) { .bvl-grid { grid-template-columns: minmax(0,1fr); gap: 1.1rem; } .bvl-feat-side { grid-template-columns: minmax(0,1fr); } .bvl-feat-main .bv-fcard.big { min-height: 260px; } .bvl-search { flex-basis: 100%; max-width: none; } .bvl-search .btn { padding: .42rem .9rem; } .bvl-meta { width: 100%; } }

/* ===== Template do quản trị viên tùy chỉnh ===== */
.pub-topbar { font-size: .86rem; padding: .38rem 0; text-align: center; } .pub-topbar a { text-decoration: none; font-weight: 600; } .pub-topbar a:hover { text-decoration: underline; }
body.pub-nav-static .pub-nav { position: relative; }
body.pub-nav-gon .pub-nav .navbar { --bs-navbar-padding-y: .1rem; } body.pub-nav-gon .pub-logo-img { width: 34px; height: 34px; } body.pub-nav-gon .pub-brand-t b { font-size: 1.08rem; }
body.pub-nav-lon .pub-nav .navbar { --bs-navbar-padding-y: .9rem; } body.pub-nav-lon .pub-logo-img { width: 58px; height: 58px; } body.pub-nav-lon .pub-brand-t b { font-size: 1.45rem; }
body.pub-mk-gach .pub-nav .nav-link { border-radius: 0; background: none !important; border-bottom: 3px solid transparent; padding-bottom: .5rem !important; } body.pub-mk-gach .pub-nav .nav-link:hover { border-bottom-color: color-mix(in srgb, var(--main) 40%, transparent); }
body.pub-mk-gach .pub-nav .nav-link.active { color: var(--main); border-bottom-color: var(--main); font-weight: 700; }
body.pub-mk-chu .pub-nav .nav-link { border-radius: .4rem; background: none !important; } body.pub-mk-chu .pub-nav .nav-link:hover, body.pub-mk-chu .pub-nav .nav-link.active { color: var(--main); font-weight: 700; }
.pub-social { display: flex; gap: .5rem; flex-wrap: wrap; } .pub-social a { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 1.05rem; text-decoration: none !important; } .pub-social a:hover { background: rgba(255,255,255,.28); }
/* Banner quảng cáo */
.pub-ban { margin: 1.1rem 0; } .pub-ban-a { display: block; border-radius: var(--pb-r); overflow: hidden; line-height: 0; border: 1px solid var(--pb-line); background: #fff; } .pub-ban-a img { width: 100%; height: auto; display: block; }
.pub-ban-side { display: grid; gap: .9rem; margin: 1.2rem 0 0; } .pub-ban-wrap-b { margin-top: 2.2rem; }
.pub-ban .carousel { border-radius: var(--pb-r); overflow: hidden; } .pub-ban-dots { margin-bottom: .3rem; } .pub-ban-dots button { width: 8px !important; height: 8px !important; border-radius: 50%; border: 0 !important; }
.pub-pop { position: fixed; inset: 0; z-index: 2000; background: rgba(10,20,15,.6); display: grid; place-items: center; padding: 1rem; } .pub-pop[hidden] { display: none; }
.pub-pop-box { position: relative; max-width: min(92vw, 520px); max-height: 88vh; } .pub-pop-box img { max-width: 100%; max-height: 88vh; border-radius: var(--pb-r); display: block; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.pub-pop-x { position: absolute; top: -.9rem; right: -.9rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: #fff; color: #222; font-size: 1.4rem; line-height: 1; box-shadow: 0 6px 14px rgba(0,0,0,.35); cursor: pointer; z-index: 2; }
/* Bố cục danh sách theo cấu hình */
.bvl-grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .bvl-grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1199px) { .bvl-grid.c4 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 991px) { .bvl-grid.c4, .bvl-grid.c3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 575px) { .bvl-grid.c2, .bvl-grid.c3, .bvl-grid.c4 { grid-template-columns: minmax(0,1fr); } }
.bvl-grid.ngang { grid-template-columns: minmax(0,1fr); gap: 1rem; } .bvl-grid.ngang .bvl-card { flex-direction: row; } .bvl-grid.ngang .bvl-img { width: 32%; min-width: 180px; aspect-ratio: auto; } .bvl-grid.ngang .bvl-body { padding: 1.1rem 1.3rem; }
@media (max-width: 575px) { .bvl-grid.ngang .bvl-card { flex-direction: column; } .bvl-grid.ngang .bvl-img { width: 100%; aspect-ratio: 16/10; } }
/* Chi tiết bài: vị trí cột thông tin */
@media (min-width: 768px) { .bv-layout.side-phai { grid-template-columns: minmax(0,1fr) 30%; grid-template-areas: "body info" "body others"; } }
.bv-layout.side-tren { grid-template-columns: minmax(0,1fr); grid-template-areas: "info" "body" "others"; grid-template-rows: auto; } .bv-layout.side-tren .bv-dl { grid-template-columns: repeat(4, 1fr); } @media (max-width: 767px) { .bv-layout.side-tren .bv-dl { grid-template-columns: 1fr 1fr; } }
/* Cán bộ: số cột */
.cb-grid.c2 > * { flex: 0 0 auto; width: 50%; } .cb-grid.c4 > * { flex: 0 0 auto; width: 25%; }
@media (max-width: 991px) { .cb-grid.c4 > * { width: 33.333%; } } @media (max-width: 767px) { .cb-grid.c4 > *, .cb-grid.c3 > * { width: 50%; } } @media (max-width: 575px) { .cb-grid.c2 > *, .cb-grid.c3 > *, .cb-grid.c4 > * { width: 100%; } }
.bv-actions[hidden] { display: none !important; } .bv-others .pub-ban-side { margin: 0 0 1.4rem; }

/* ===== Trang chủ (hx-*) ===== */
.min-w-0 { min-width: 0; }
.pub-hero.hx { padding: 3.6rem 0 4.4rem; } .pub-hero.hx-over { padding-bottom: 7.2rem; }
.hx-grid { display: grid; gap: 2.2rem; align-items: center; } .hx-grid.has-card { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
.hx-main h1 { margin-top: 1.1rem; }
.hx-card { background: rgba(255,255,255,.96); color: var(--pb-ink); border-radius: 1.3rem; padding: 1.15rem 1.25rem 1rem; box-shadow: 0 28px 50px -26px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.6); }
.hx-card-h { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--main); margin-bottom: .75rem; display: flex; gap: .45rem; align-items: center; }
.hx-lead { display: flex; align-items: center; gap: .8rem; padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px dashed var(--pb-line); }
.hx-lead b { display: block; line-height: 1.2; } .hx-lead small { color: #6a756f; }
.hx-ava { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: var(--pb-soft); display: grid; place-items: center; font-size: 1.6rem; color: var(--main); border: 3px solid #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); } .hx-ava img { width: 100%; height: 100%; object-fit: cover; }
.hx-call { margin-left: auto; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1fa05a; color: #fff !important; text-decoration: none; box-shadow: 0 8px 18px -8px rgba(31,160,90,.8); }
.hx-row { display: flex; gap: .6rem; font-size: .9rem; margin: .4rem 0; line-height: 1.45; } .hx-row > i { color: var(--main); margin-top: .12rem; flex: none; } .hx-row a { color: inherit; text-decoration: none; font-weight: 600; }
.hx-more { display: inline-block; margin-top: .5rem; font-size: .86rem; font-weight: 600; text-decoration: none; }
/* Số liệu: nổi lên trên hero */
.pub-stats.over { margin-top: -4.2rem; position: relative; z-index: 3; } .pub-stats.over .pub-stat { box-shadow: 0 22px 44px -24px rgba(0,0,0,.55); }
.pub-stat b { font-variant-numeric: tabular-nums; }
/* Lối tắt nhanh */
.hq { display: grid; grid-template-columns: repeat(auto-fit, minmax(188px, 1fr)); gap: .8rem; }
.hq-i { display: flex; align-items: center; gap: .85rem; background: #fff; border: 1px solid var(--pb-line); border-radius: var(--pb-r); padding: .95rem 1rem; text-decoration: none; color: var(--pb-ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hq-i:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(0,0,0,.5); border-color: color-mix(in srgb, var(--main) 40%, var(--pb-line)); color: var(--pb-ink); }
.hq-ic { width: 2.9rem; height: 2.9rem; flex: none; border-radius: .9rem; display: grid; place-items: center; font-size: 1.35rem; background: var(--pb-soft); color: var(--main); transition: background .2s, color .2s; } .hq-i:hover .hq-ic { background: var(--main); color: #fff; }
.hq-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; } .hq-t b { font-size: .98rem; } .hq-t small { color: #6a756f; font-size: .78rem; margin-top: .15rem; }
.hq-ar { margin-left: auto; color: #9aa6a0; transition: transform .2s, color .2s; } .hq-i:hover .hq-ar { transform: translateX(3px); color: var(--main); }
/* Tin: thông báo + hoạt động */
.pub-sec { padding: 2.6rem 0 .4rem; }
.hx-news .pub-news { align-items: flex-start; } .hx-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .15rem; }
.hx-act { display: grid; gap: .9rem; }
.hx-big { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--pb-r); overflow: hidden; color: #fff; text-decoration: none; background: #26332c; box-shadow: 0 16px 34px -22px rgba(0,0,0,.6); }
.hx-big img, .hx-big .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s; } .hx-big .ph { display: grid; place-items: center; font-size: 3rem; color: rgba(255,255,255,.35); } .hx-big:hover img { transform: scale(1.04); }
.hx-big .ov { position: absolute; inset: auto 0 0 0; padding: 3rem 1.2rem 1rem; background: linear-gradient(0deg, rgba(0,0,0,.84), transparent); display: flex; flex-direction: column; gap: .3rem; }
.hx-big b { font-family: var(--pb-fh); font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .hx-big small { opacity: .88; }
.hx-list { display: grid; gap: .6rem; }
.hx-row2 { display: flex; gap: .8rem; align-items: center; background: #fff; border: 1px solid var(--pb-line); border-radius: .95rem; padding: .5rem; text-decoration: none; color: var(--pb-ink); transition: box-shadow .2s, transform .2s; } .hx-row2:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -22px rgba(0,0,0,.5); color: var(--pb-ink); }
.hx-row2 img, .hx-row2 .ph { width: 92px; height: 64px; flex: none; object-fit: cover; border-radius: .65rem; background: var(--pb-soft); } .hx-row2 .ph { display: grid; place-items: center; color: var(--main); opacity: .55; }
.hx-row2 span:last-child { display: flex; flex-direction: column; min-width: 0; gap: .15rem; } .hx-row2 b { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .hx-row2 small { color: #6a756f; font-size: .78rem; }
/* Khung kêu gọi góp ý */
.hx-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; padding: 2.2rem 2.4rem; border-radius: calc(var(--pb-r) + .4rem); color: #fff; background: linear-gradient(135deg, var(--pb-h1, var(--main)), var(--pb-h2, var(--pb-deep))); box-shadow: 0 26px 50px -30px rgba(0,0,0,.6); }
.hx-cta .contour { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .14; } .hx-cta > * { position: relative; }
.hx-cta h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 .4rem; font-weight: 800; } .hx-cta p { margin: 0; opacity: .9; max-width: 36rem; }
.hx-cta .btn-light { color: var(--pb-deep); font-weight: 700; border-radius: 2rem; } .hx-cta .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 2rem; } .hx-cta .btn-ghost:hover { background: rgba(255,255,255,.15); }
@media (max-width: 991px) { .hx-grid.has-card { grid-template-columns: minmax(0,1fr); gap: 1.6rem; } .pub-hero.hx-over { padding-bottom: 6.4rem; } }
@media (max-width: 575px) { .pub-hero.hx { padding: 2.6rem 0 3.6rem; } .pub-hero.hx-over { padding-bottom: 5.6rem; } .pub-stats.over { margin-top: -3.4rem; } .hx-cta { padding: 1.6rem 1.3rem; } .hq { grid-template-columns: minmax(0,1fr); } }

/* Tiêu đề trên nền màu luôn trắng (không phụ thuộc màu tiêu đề mặc định của Bootstrap) */
.pub-hero h1, .pub-hero h2, .pub-page-head h1, .pub-page-head h2, .hx-cta h2 { color: #fff; }

.pub-bx { position: relative; } .pub-bx[hidden] { display: none !important; }
.pub-bx-x { position: absolute; top: .4rem; right: .4rem; z-index: 4; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; opacity: .85; } .pub-bx-x:hover { opacity: 1; background: rgba(0,0,0,.8); }

/* =====================================================================
   V7 — Thiết kế lại giao diện công khai (lớp hoàn thiện, giữ nguyên mọi
   tùy chọn template: màu, phông, bo góc, kiểu menu/đầu trang)
   ===================================================================== */
:root { --pb-muted: #5f6d66; --pb-shadow: 0 1px 2px rgba(16,40,28,.05), 0 10px 26px -16px rgba(16,40,28,.22); --pb-shadow-up: 0 2px 4px rgba(16,40,28,.06), 0 24px 44px -24px rgba(16,40,28,.38); }
html { scroll-behavior: smooth; }
body.pub { font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.pub :focus-visible { outline: 3px solid color-mix(in srgb, var(--main) 55%, #fff); outline-offset: 2px; border-radius: .4rem; }
body.pub .btn-primary { --bs-btn-bg: var(--main); --bs-btn-border-color: var(--main); --bs-btn-hover-bg: var(--pb-deep); --bs-btn-hover-border-color: var(--pb-deep); --bs-btn-active-bg: var(--pb-deep); --bs-btn-active-border-color: var(--pb-deep); --bs-btn-disabled-bg: var(--main); --bs-btn-disabled-border-color: var(--main); font-weight: 600; }
body.pub .btn-outline-primary { --bs-btn-color: var(--main); --bs-btn-border-color: var(--main); --bs-btn-hover-bg: var(--main); --bs-btn-hover-border-color: var(--main); --bs-btn-active-bg: var(--main); font-weight: 600; }
.pub-skip { position: fixed; left: .8rem; top: -4rem; z-index: 3000; background: #fff; color: var(--pb-deep); font-weight: 700; padding: .6rem 1rem; border-radius: .7rem; box-shadow: var(--pb-shadow-up); text-decoration: none; transition: top .15s; } .pub-skip:focus { top: .8rem; }

/* Thanh điều hướng */
.pub-nav { box-shadow: 0 1px 0 var(--pb-line), 0 8px 24px -22px rgba(16,40,28,.5); }
.pub-nav .navbar { --bs-navbar-padding-y: .55rem; }
.pub-nav .nav-link { transition: background .18s, color .18s; }
.pub-nav .nav-link.active { background: color-mix(in srgb, var(--main) 11%, #fff); color: var(--main); font-weight: 700; }
.pub-nav .nav-link:hover { color: var(--main); }
.pub-nav-act .btn { font-weight: 600; }
.pub-nav-act .btn[style*="--main"] { box-shadow: 0 8px 18px -10px var(--main); }
@media (max-width: 1199.98px) { .pub-nav .navbar-collapse { padding: .6rem 0 .9rem; } .pub-nav .navbar-nav .nav-link { padding: .65rem .9rem !important; border-radius: .7rem; } }

/* Tiêu đề mục: chữ đậm màu mực + gạch nhấn vàng */
.pub-h { align-items: flex-end; margin-bottom: 1.3rem; }
.pub-h h2 { color: var(--pb-ink); font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 800; letter-spacing: -.015em; position: relative; padding-bottom: .65rem; }
.pub-h h2::before { content: none; }
.pub-h h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 2.8rem; height: 3px; border-radius: 3px; background: var(--pb-gold); }
.pub-h a { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .85rem; border-radius: 2rem; background: color-mix(in srgb, var(--main) 8%, #fff); color: var(--main); font-weight: 600; font-size: .86rem; white-space: nowrap; transition: background .18s, color .18s; }
.pub-h a:hover { background: var(--main); color: #fff; }
.pub-sec { padding: 3rem 0 .4rem; }

/* Hero trang chủ */
.pub-hero.hx { padding: 4.2rem 0 5rem; }
.pub-hero.hx::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 320px at 12% 110%, rgba(255,255,255,.1), transparent 70%); }
.pub-hero h1 { letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 20px rgba(0,0,0,.18); }
.pub-hero p.lead { font-size: 1.15rem; line-height: 1.6; }
.hx-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hx-actions .btn { padding: .7rem 1.5rem; font-size: 1rem; }
.hx-actions .btn-light { box-shadow: 0 14px 28px -14px rgba(0,0,0,.55); }
.hx-card { box-shadow: 0 34px 60px -28px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.hx-call { transition: transform .18s; } .hx-call:hover { transform: scale(1.08); }

/* Dải số liệu: một khối thống nhất */
.pub-stats .row { --bs-gutter-x: 0; --bs-gutter-y: 0; margin: 0; background: #fff; border: 1px solid var(--pb-line); border-radius: calc(var(--pb-r) + .35rem); box-shadow: var(--pb-shadow-up); overflow: hidden; }
.pub-stats .row > [class*="col-"] { padding: 0; border-left: 1px solid var(--pb-line); }
.pub-stats .row > [class*="col-"]:first-child { border-left: 0; }
.pub-stats .pub-stat { border: 0; box-shadow: none !important; border-radius: 0; background: transparent; padding: 1.35rem 1.5rem; gap: 1rem; }
.pub-stats .pub-stat i { width: 3.2rem; height: 3.2rem; border-radius: 50%; font-size: 1.45rem; background: linear-gradient(135deg, color-mix(in srgb, var(--main) 14%, #fff), color-mix(in srgb, var(--main) 6%, #fff)); }
.pub-stats .pub-stat b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pub-stats .pub-stat span { display: block; margin-top: .2rem; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-muted); }
@media (max-width: 991.98px) { .pub-stats .row > [class*="col-"]:nth-child(odd) { border-left: 0; } .pub-stats .row > [class*="col-"]:nth-child(n+3) { border-top: 1px solid var(--pb-line); } .pub-stats .pub-stat { padding: 1.1rem 1.1rem; } }
@media (max-width: 575.98px) { .pub-stats .pub-stat { gap: .7rem; padding: 1rem .85rem; } .pub-stats .pub-stat i { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; } .pub-stats .pub-stat b { font-size: 1.5rem; } }

/* Thẻ, bảng, khối nội dung: bóng đổ nhẹ nhất quán */
.pub-card, .pub-panel, .gt-fact, .hq-i, .hx-row2, .bv-orow, .bvl-card, .bv-info, .cb-card { box-shadow: var(--pb-shadow); }
.pub-card:hover, .hq-i:hover, .hx-row2:hover, .bv-orow:hover, .bvl-card:hover, .cb-card:hover { box-shadow: var(--pb-shadow-up); }
.pub-panel { border-radius: calc(var(--pb-r) + .1rem); }
.hq { gap: 1rem; }
.hq-i { padding: 1.05rem 1.1rem; }
.hq-ic { width: 3rem; height: 3rem; border-radius: 50%; }
.hq-t small { line-height: 1.35; }
.pub-news { padding: 1rem 1.2rem; transition: background .15s; }
.pub-dd { width: 3.3rem; border-radius: .85rem; background: color-mix(in srgb, var(--main) 9%, #fff); }
.pub-dd b { font-size: 1.35rem; font-weight: 800; }
.pub-new { background: #d7372f; font-weight: 700; letter-spacing: .02em; }
.hx-big { border-radius: calc(var(--pb-r) + .2rem); box-shadow: var(--pb-shadow-up); }
.hx-big .ov { padding: 3.6rem 1.4rem 1.2rem; }
.hx-cta { box-shadow: var(--pb-shadow-up); }

/* Đầu trang con */
.pub-page-head { padding: 2.2rem 0 2.5rem; }
.pub-page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--pb-gold), transparent 55%); }
.pub-page-head h1 { font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.pub-page-head .container > .small:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; opacity: 1 !important; margin-bottom: .7rem !important; font-size: .82rem; letter-spacing: .02em; color: rgba(255,255,255,.78); }
.pub-page-head .container > .small:first-child a { color: #fff !important; text-decoration: none; padding: .12rem .55rem; border-radius: 2rem; background: rgba(255,255,255,.14); transition: background .15s; } .pub-page-head .container > .small:first-child a:hover { background: rgba(255,255,255,.28); }
.pub-page-head p { max-width: 62rem; font-size: 1.05rem; text-wrap: pretty; }
body.pub-h-sang .pub-page-head .container > .small:first-child { color: var(--pb-muted); }
body.pub-h-sang .pub-page-head .container > .small:first-child a { background: color-mix(in srgb, var(--main) 9%, #fff); color: var(--main) !important; }
body.pub-h-sang .pub-hero h1, body.pub-h-sang .pub-page-head h1 { color: var(--pb-ink); text-shadow: none; }

/* Danh sách bài */
.bvl-search { box-shadow: var(--pb-shadow); border-color: var(--pb-line); }
.bvl-card { border-radius: calc(var(--pb-r) + .1rem); }
.bvl-body { padding: 1.15rem 1.3rem 1.05rem; }
.bvl-date { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.bvl-body h3 { font-size: 1.15rem; }
.bvl-foot { border-top: 1px solid var(--pb-line); }
.bvl-pager a { border-radius: .7rem; transition: background .15s, color .15s, border-color .15s; }

/* Bài viết chi tiết */
.pub-article { box-shadow: var(--pb-shadow-up); border-radius: calc(var(--pb-r) + .2rem); }
.bv-body { font-size: 1.07rem; line-height: 1.9; color: #25332b; overflow-wrap: anywhere; }
.bv-body p { margin-bottom: 1.1rem; }
.bv-lead { font-size: 1.15rem; line-height: 1.65; font-weight: 500; background: color-mix(in srgb, var(--main) 5%, #fff); border-radius: 0 .8rem .8rem 0; padding: .9rem 1.2rem; margin-bottom: 1.4rem; }
.bv-info { border-radius: calc(var(--pb-r) + .2rem); }
.bv-dl dt { color: var(--pb-muted); }
.bv-like { transition: transform .15s, background .15s; }

/* Giới thiệu thôn / cán bộ */
.gt-fact { padding: 1.15rem 1.2rem; border-radius: calc(var(--pb-r) + .1rem); transition: transform .2s, box-shadow .2s; }
.gt-fact:hover { transform: translateY(-2px); box-shadow: var(--pb-shadow-up); }
.gt-fact i { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--main) 9%, #fff); font-size: 1.2rem; margin-bottom: .5rem; }
.gt-fact small { color: var(--pb-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.cb-card { border-radius: calc(var(--pb-r) + .2rem); }
.cb-top { height: 70px; }
.cb-ava { width: 108px; height: 108px; margin-top: -54px; }
.cb-role { letter-spacing: .01em; }
.cb-card.lead-cb { border-color: var(--pb-gold); }
.cb-card h5 { font-size: 1.12rem; }

/* Góp ý & biểu mẫu công khai */
body.pub .pub-panel h2.h5, body.pub .pub-panel h2.h6 { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--pb-ink); font-family: var(--pb-fh); }
body.pub .pub-panel h2.h5 > i, body.pub .pub-panel h2.h6 > i { width: 2.3rem; height: 2.3rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--main) 10%, #fff); color: var(--main); font-size: 1.05rem; }
body.pub .pub-panel .form-label { font-weight: 600; font-size: .9rem; color: var(--pb-ink); margin-bottom: .3rem; }
body.pub .pub-panel .form-control, body.pub .pub-panel .form-select { border-radius: .75rem; border-color: color-mix(in srgb, var(--main) 18%, #d9ded9); padding: .62rem .9rem; background-color: #fff; transition: border-color .15s, box-shadow .15s; }
body.pub .pub-panel .form-control:focus, body.pub .pub-panel .form-select:focus { border-color: var(--main); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--main) 18%, transparent); }
body.pub .pub-panel .btn-lg { font-size: 1rem; padding: .7rem 1.6rem; }
body.pub .alert { border-radius: .9rem; border: 0; box-shadow: var(--pb-shadow); }

/* Chân trang */
.pub-foot { margin-top: 5rem; padding: 3.6rem 0 1.4rem; position: relative; }
.pub-foot::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--pb-gold), color-mix(in srgb, var(--pb-gold) 25%, transparent) 70%); }
.pub-foot h6 { font-family: var(--pb-fb); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 1.05rem; }
.pub-foot .pf-gt h6 { font-family: var(--pb-fh); font-size: 1.2rem; letter-spacing: 0; text-transform: none; font-weight: 700; }
.pub-foot .pf-gt h6 img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); width: 38px; height: 38px; }
.pub-foot p { line-height: 1.65; opacity: .92; }
.pub-foot ul a { display: inline-block; padding: .08rem 0; transition: transform .15s, color .15s; text-decoration: none !important; } .pub-foot ul a:hover { transform: translateX(3px); color: #fff; }
.pub-social a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); transition: background .18s, transform .18s; } .pub-social a:hover { background: var(--pb-gold); color: #1d2b24; transform: translateY(-2px); }
.pub-foot .sub { margin-top: 2.2rem; }

/* Giảm chuyển động theo cài đặt của người dùng */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body.pub *, body.pub *::before, body.pub *::after { animation: none !important; transition: none !important; } }
@media print { .pub-skip, .hx-actions { display: none !important; } }

/* V7b — tinh chỉnh bố cục lối tắt và hero */
.pub-hero.hx-over { padding-bottom: 8.4rem; }
.pub-stats.over { margin-top: -4.8rem; }
.hq { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hq-i { position: relative; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.2rem 1.25rem 1.15rem; }
.hq-t b { font-size: 1.02rem; margin-bottom: .1rem; }
.hq-ar { position: absolute; top: 1.15rem; right: 1.15rem; margin: 0; }
@media (max-width: 991px) { .pub-hero.hx-over { padding-bottom: 7.4rem; } }
@media (max-width: 575px) { .pub-hero.hx-over { padding-bottom: 6.6rem; } .pub-stats.over { margin-top: -4rem; } .hq-i { flex-direction: row; align-items: center; } .hq-ar { position: static; margin-left: auto; } }
.pub-page-head h1 + p { margin-top: .65rem !important; }

/* ---------- Hình ảnh thôn: lưới thư mục (4 cột × 3 hàng ở trang chủ) và ảnh trong thư mục ---------- */
.ag { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ag-i { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--pb-r, 1rem); overflow: hidden; background: #26332c; color: #fff; text-decoration: none; box-shadow: var(--pb-shadow, 0 6px 18px -10px rgba(0,0,0,.35)); }
.ag-im, .ag-im img { position: absolute; inset: 0; width: 100%; height: 100%; } .ag-im img { object-fit: cover; transition: transform .45s; } .ag-im { display: grid; place-items: center; font-size: 2.4rem; color: rgba(255,255,255,.5); }
.ag-i:hover .ag-im img { transform: scale(1.06); }
.ag-ov { position: absolute; inset: auto 0 0 0; padding: 2.4rem .9rem .8rem; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); display: flex; flex-direction: column; gap: .15rem; }
.ag-ov b { font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ag-ov small { opacity: .85; font-size: .8rem; }
.ag-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin: 1.1rem 0 .9rem; }
.ag-photos { columns: 4 220px; column-gap: .8rem; } .ag-p { display: block; margin: 0 0 .8rem; break-inside: avoid; border-radius: .8rem; overflow: hidden; background: #e9edf2; } .ag-p img { display: block; width: 100%; height: auto; transition: transform .35s, filter .2s; } .ag-p:hover img { transform: scale(1.03); }
.ag-lb { position: fixed; inset: 0; z-index: 2000; background: rgba(8,12,10,.93); display: flex; align-items: center; justify-content: center; } .ag-lb[hidden] { display: none; }
.ag-lb img { max-width: min(94vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: .4rem; }
.ag-x, .ag-n { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; cursor: pointer; } .ag-x:hover, .ag-n:hover { background: rgba(255,255,255,.28); }
.ag-x { top: 1rem; right: 1rem; } .ag-n { top: 50%; transform: translateY(-50%); } .ag-prev { left: 1rem; } .ag-next { right: 1rem; }
.ag-cap { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: #e8ecea; font-size: .92rem; padding: 0 4.5rem; }
@media (max-width: 991px) { .ag { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { .ag { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .ag-ov { padding: 1.8rem .6rem .55rem; } .ag-ov b { font-size: .85rem; } .ag-photos { columns: 2 140px; column-gap: .5rem; } .ag-n { width: 40px; height: 40px; } .ag-prev { left: .4rem; } .ag-next { right: .4rem; } }

/* ===== Trang danh mục bài viết (công khai): bài nổi bật lớn + lưới thẻ ===== */
.dm-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1.1rem 0 .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--pb-line); color: #5d6a63; font-size: .9rem; } .dm-bar b { color: var(--main); font-size: 1.05rem; }
.dm-hero { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--pb-line); border-radius: 1.1rem; overflow: hidden; text-decoration: none; color: var(--pb-ink); margin-bottom: 1.2rem; transition: box-shadow .2s, transform .2s; } .dm-hero:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(0,0,0,.55); color: var(--pb-ink); }
.dm-hero-img { display: block; min-height: 280px; background: var(--pb-soft); } .dm-hero-img img, .dm-hero-img .ph { width: 100%; height: 100%; object-fit: cover; display: block; } .dm-hero-img .ph, .dm-img .ph { display: grid; place-items: center; color: var(--main); opacity: .45; font-size: 2.6rem; }
.dm-hero-tx { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem 1.6rem; justify-content: center; } .dm-hero-tx > b { font-size: 1.55rem; line-height: 1.3; } .dm-hero-tx small, .dm-body small { color: #6a756f; font-size: .82rem; }
.dm-tag { align-self: flex-start; background: color-mix(in srgb, var(--main) 12%, #fff); color: var(--main); font-weight: 700; font-size: .78rem; padding: .22rem .7rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.dm-ex { color: #4a5650; line-height: 1.6; font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .dm-more { color: var(--main); font-weight: 700; font-size: .92rem; }
.dm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.dm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-line); border-radius: 1rem; overflow: hidden; text-decoration: none; color: var(--pb-ink); transition: box-shadow .2s, transform .2s; } .dm-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -24px rgba(0,0,0,.55); color: var(--pb-ink); }
.dm-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--pb-soft); overflow: hidden; } .dm-img img, .dm-img .ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; } .dm-card:hover .dm-img img { transform: scale(1.04); }
.dm-star { position: absolute; left: .6rem; top: .6rem; background: #f2b632; color: #14492f; font-style: normal; font-weight: 700; font-size: .72rem; padding: .18rem .55rem; border-radius: 99px; }
.dm-body { display: flex; flex-direction: column; gap: .45rem; padding: .95rem 1.05rem 1.05rem; flex: 1; } .dm-body > b { font-size: 1.04rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .dm-body .dm-ex { font-size: .9rem; -webkit-line-clamp: 3; } .dm-body small { margin-top: auto; padding-top: .3rem; }
@media (max-width: 991px) { .dm-grid { grid-template-columns: repeat(2, 1fr); } .dm-hero { grid-template-columns: 1fr; } .dm-hero-img { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 575px) { .dm-grid { grid-template-columns: 1fr; } .dm-hero-tx { padding: 1.1rem; } .dm-hero-tx > b { font-size: 1.25rem; } }

/* V9 bổ sung 22: nút chấm sao đủ lớn để bấm trên điện thoại */
.bv-stars button{min-width:2rem;min-height:2rem;font-size:1.3rem}

/* V9 bổ sung 28: Câu chuyện của thôn — chữ căn đều hai bên, có lề so với khối */
.gt-story { padding: .25rem 1.5rem 1rem; text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
.gt-story p { margin-bottom: 1rem; }
.gt-story p:last-child { margin-bottom: 0; }
.gt-story .gt-p { line-height: 1.85; font-size: 1.04rem; }
@media (max-width: 767.98px) { .gt-story { padding: .15rem .9rem .8rem; } }

/* V9 bổ sung 28: tag ở cuối bài viết */
.bv-tags-end { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed var(--pb-line, #dbe3ec); align-items: center; }
.bv-tags-end .bv-tags-h { font-size: .85rem; color: #64748b; font-weight: 600; margin-right: .2rem; }

/* V9 bổ sung 32 — footer thu gọn: khoảng cách nhỏ, liên kết xếp ngang, dải tên thôn thấp hơn */
.pub-foot{margin-top:2.5rem!important;padding:1.6rem 0 .8rem!important}
.pub-foot h6{font-size:.9rem!important;margin-bottom:.45rem!important}
.pub-foot p{line-height:1.5}
.pub-foot .pf-lk{display:flex;flex-wrap:wrap;gap:.15rem 1rem;line-height:1.5}
.pub-foot .pf-lk a{padding:0}
.pub-foot .pub-social a{width:1.9rem;height:1.9rem;font-size:.92rem}
.pub-foot .sub{margin-top:1rem!important;padding-top:.65rem!important;font-size:.78rem}
@media (max-width:767.98px){.pub-foot{padding-top:1.2rem!important}.pub-foot .pf-row{--bs-gutter-y:.85rem}.pub-foot .sub{justify-content:center!important;text-align:center}}

/* V10 bổ sung 34: Video YouTube ở mục Hình ảnh & Video — thẻ video, tab, hộp thoại xem */
.vg { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* video dọc: máy tính 4 cột, điện thoại 2 cột (4 video mới = 1 hàng / 2 hàng) */
.vg .vg-i { aspect-ratio: 9 / 16; }
.vg-i .ag-im img { object-fit: cover; }
@media (max-width: 767.98px) { .vg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vg-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(220, 38, 38, .92); color: #fff; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s; }
.vg-i:hover .vg-play { transform: translate(-50%, -50%) scale(1.1); }
.vg-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.vg-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid #d6dde4; background: #fff; color: #33424f; text-decoration: none; font-weight: 600; font-size: .95rem; }
.vg-tab.on { background: var(--main, #15803d); border-color: var(--main, #15803d); color: #fff; }
.vg-n { background: rgba(0,0,0,.12); border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }
.vg-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vd-lb { position: fixed; inset: 0; z-index: 2050; background: rgba(6, 10, 8, .92); display: flex; align-items: center; justify-content: center; padding: 3.6rem 1rem 1rem; overflow-y: auto; } .vd-lb[hidden] { display: none; }
.vd-box { position: relative; width: min(960px, 100%, calc((100vh - 16rem) * var(--vd-r, 1.7778))); min-width: min(300px, 100%); margin: auto; color: #eef2ef; }
.vd-box.vd-doc .vd-t { display: none; } /* khung dọc hẹp: bỏ số giây để thanh tua đủ dài */
.vd-box:fullscreen, .vd-box:-webkit-full-screen { width: 100%; max-width: none; background: #000; display: flex; flex-direction: column; justify-content: center; }
.vd-box:fullscreen .vd-info { display: none; } .vd-box:fullscreen .vd-fr { flex: 1; aspect-ratio: auto; border-radius: 0; }
.vd-x { position: absolute; right: 0; top: -2.9rem; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; }
.vd-x:hover { background: rgba(255,255,255,.28); }
.vd-fr { position: relative; aspect-ratio: var(--vd-ar, 16 / 9); background: #000; border-radius: .8rem .8rem 0 0; overflow: hidden; }
.vd-fr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-poster { position: absolute; inset: 0; } .vd-poster[hidden] { display: none; }
.vd-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .85; } /* ảnh bìa YouTube 4:3: cắt giữa đúng khung video dọc */
.vd-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border: 0; border-radius: 50%; background: rgba(220, 38, 38, .95); color: #fff; font-size: 2.8rem; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.45); }
.vd-ctl { display: flex; align-items: center; gap: .55rem; background: #111814; padding: .45rem .7rem; border-radius: 0 0 .8rem .8rem; }
.vd-b { border: 0; background: transparent; color: #fff; font-size: 1.35rem; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; } .vd-b:hover { background: rgba(255,255,255,.12); } .vd-b[hidden] { display: none; }
.vd-t { font-size: .82rem; font-variant-numeric: tabular-nums; color: #cfd8d2; flex: none; }
.vd-sk { flex: 1; min-width: 60px; accent-color: #dc2626; cursor: pointer; }
.vd-info { padding: .9rem .2rem 0; }
.vd-td { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; color: #fff; line-height: 1.35; }
.vd-mt { white-space: pre-line; font-size: .95rem; color: #d5ddd8; margin: 0 0 .7rem; max-height: 9.5em; overflow-y: auto; }
.vd-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: #cfd8d2; }
.vd-yt { margin-left: auto; color: #fca5a5; font-size: .88rem; text-decoration: none; } .vd-yt:hover { color: #fff; text-decoration: underline; }
@media (max-width: 576px) { .vd-lb { padding: 3.4rem .5rem 1rem; align-items: flex-start; } .vd-box { width: min(100%, calc((100vh - 7.5rem) * var(--vd-r, 1.7778))); width: min(100%, calc((100svh - 7.5rem) * var(--vd-r, 1.7778))); } .vd-x { top: -2.9rem; } .vd-yt { margin-left: 0; width: 100%; } .vd-t { display: none; } .vg-play { width: 46px; height: 46px; font-size: 1.6rem; } }
/* V10 bổ sung 35: hộp thoại xem ảnh (bấm thẻ ảnh là mở luôn) */
.an-lb { flex-direction: column; padding: 3.6rem 4.2rem 1rem; }
.an-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; max-width: 100%; }
.an-fig img { max-width: min(94vw, 1400px); max-height: calc(100vh - 12rem); width: auto; height: auto; object-fit: contain; border-radius: .4rem; }
.an-cap { color: #e8ecea; text-align: center; display: grid; gap: .35rem; justify-items: center; }
.an-cap b { color: #fff; font-size: 1.05rem; } .an-so { opacity: .75; font-size: .88rem; } .an-ct { font-size: .92rem; } .an-ct:empty { display: none; }
.an-lb .ag-n[hidden] { display: none; }
@media (max-width: 576px) { .an-lb { padding: 3.4rem .5rem 1rem; } .an-lb .ag-n { top: auto; bottom: 45%; } .an-fig img { max-height: calc(100vh - 14rem); } }
