/* Giảm nghèo Tam Nông — giao diện công khai (CSS thuần, không build) */
:root {
  --primary: #A4161A;
  --primary-dark: #7A1013;
  --primary-tint: #F7E8E8;
  --accent: #D4A017;
  --navy: #1C2B3A;
  --navy-2: #243649;
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --text: #1F2328;
  --muted: #5F6670;
  --border: #E4E2DC;
  --radius: 6px;
  --gutter: 16px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 960px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg); overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--surface); color: var(--primary); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1248px) { .container { max-width: 1248px; } }

/* ---------- Header ---------- */
.topbar { background: var(--primary-dark); color: #fff; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.topbar a:hover { color: #FFE7A3; }
.topbar .icon { width: 15px; height: 15px; }
.topbar__date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .hide-sm { display: none; } }
@media (max-width: 399px) {
  .hide-xs { display: none; }
  .brand .brand__in { gap: 8px; }
  .brand .brand__link { gap: 8px; }
  .brand .brand__logo { width: 44px; height: 44px; }
  .brand .brand__l1 { font-size: 10.5px; letter-spacing: 0; }
  .brand .brand__l2 { font-size: 15.5px; }
}

.brand { background: var(--surface); border-bottom: 1px solid var(--border); }
.brand__in { display: flex; align-items: center; gap: 12px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.brand__link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.brand__link:hover { color: inherit; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__l1 { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.brand__l2 { font-size: 15px; font-weight: 700; color: var(--primary); text-transform: uppercase; line-height: 1.25; letter-spacing: 0; }
@media (min-width: 640px) {
  .brand__logo { width: 64px; height: 64px; }
  .brand__l1 { font-size: 14px; }
  .brand__l2 { font-size: 22px; }
}
@media (min-width: 960px) {
  .brand__in { min-height: 96px; }
  .brand__logo { width: 72px; height: 72px; }
  .brand__l2 { font-size: 26px; }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); cursor: pointer; color: var(--text);
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn .icon { width: 22px; height: 22px; }

.search { display: flex; align-items: stretch; width: 100%; }
.search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--bg); font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.search button {
  width: 48px; height: 44px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--primary-dark); }
.brand .search { display: none; max-width: 340px; }
.brand__search-link { display: inline-flex; }
@media (min-width: 960px) {
  .brand .search { display: flex; }
  .brand__search-link, .menu-btn { display: none !important; }
}

.mainnav { background: var(--primary); color: #fff; display: none; position: sticky; top: 0; z-index: 30; }
@media (min-width: 960px) { .mainnav { display: block; } }
.mainnav ul { list-style: none; display: flex; flex-wrap: nowrap; justify-content: space-between; }
.mainnav a {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 9px; font-weight: 600; font-size: 14px; color: #fff; white-space: nowrap;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
@media (min-width: 1200px) { .mainnav a { padding: 0 14px; font-size: 15px; } }
.mainnav a:hover { background: var(--primary-dark); color: #fff; }
.mainnav a.is-active { background: var(--primary-dark); border-bottom-color: var(--accent); }
.mainnav .icon { width: 18px; height: 18px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 20, 25, .5); z-index: 60; opacity: 0; visibility: hidden; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); background: var(--surface); z-index: 70;
  transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; visibility: hidden;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--primary); color: #fff; }
.drawer__head strong { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.drawer__head .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.drawer__body { overflow-y: auto; padding: 16px; flex: 1; }
.drawer__body .search { margin-bottom: 12px; }
.drawer__nav { list-style: none; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border-bottom: 1px solid var(--border); font-weight: 600; }
.drawer__nav a.is-active { color: var(--primary); }
.drawer__nav .icon { color: var(--primary); }
.drawer__contact { margin-top: 16px; font-size: 14px; color: var(--muted); }
.drawer__contact a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text); font-weight: 600; }

/* ---------- Main & common blocks ---------- */
main { display: block; padding: 20px 0 40px; }
@media (min-width: 960px) { main { padding: 28px 0 56px; } }
.section { margin-bottom: 32px; }
@media (min-width: 960px) { .section { margin-bottom: 40px; } }

.sec-title {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.sec-title h2, .sec-title h1 {
  font-size: 19px; text-transform: uppercase; letter-spacing: .02em; color: var(--primary);
  padding-bottom: 8px; margin-bottom: -1px; border-bottom: 3px solid var(--accent);
}
@media (min-width: 960px) { .sec-title h2, .sec-title h1 { font-size: 21px; } }
.sec-title h2 a:hover { color: var(--primary-dark); }
.sec-title__more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sec-title__more .icon { width: 16px; height: 16px; }

.page-head { margin-bottom: 20px; }
.page-head p { color: var(--muted); margin: 8px 0 0; }

.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
@media (min-width: 960px) { .box { padding: 20px; } }

.layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
@media (min-width: 1200px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } }
.sidebar > * + * { margin-top: 28px; }
@media (min-width: 960px) { .sidebar__sticky { position: sticky; top: 64px; } }

/* Thumbnails */
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #ECEAE4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a:hover .thumb img, .thumb:hover img { transform: scale(1.03); }
.thumb__play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  background: rgba(164, 22, 26, .92); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.thumb__play .icon { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.thumb__play--sm { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.thumb__play--sm .icon { width: 16px; height: 16px; margin-left: 2px; }

/* Cards */
.label {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  color: var(--primary); margin-bottom: 4px;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { width: 14px; height: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__excerpt { color: var(--muted); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--lead .card__title { font-size: 21px; line-height: 1.4; }
@media (min-width: 960px) { .card--lead .card__title { font-size: 24px; } }

.row-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 640px) { .row-card { grid-template-columns: 150px minmax(0, 1fr); } }
.row-card .thumb { border-radius: 4px; }
.row-card__title { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 4px; }
.row-card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stack > * + * { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

.grid-cards { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-cards--full { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-cards--full { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Home: featured */
.featured { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .featured { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; } }
.featured__lead .card__excerpt { -webkit-line-clamp: 4; }
.featured__side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* Home: quick links */
.quick { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.quick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 112px; padding: 16px 10px; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: 15px; line-height: 1.35;
}
.quick a:hover { border-color: var(--primary); color: var(--primary); }
.quick__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.quick__icon .icon { width: 24px; height: 24px; }

/* Home: category block */
.cat-block__body { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cat-block__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.cat-block__body .row-card { grid-template-columns: 110px minmax(0, 1fr); }
@media (min-width: 640px) and (max-width: 1199px) { .cat-block__body .row-card { grid-template-columns: 100px minmax(0, 1fr); } }

/* Home: video block */
.video-block { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .video-block { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; } }
.video-block .row-card { grid-template-columns: 128px minmax(0, 1fr); }
@media (min-width: 640px) and (max-width: 1199px) { .video-block .row-card { grid-template-columns: 1fr; } }

/* Notices */
.notice-list { list-style: none; }
.notice-list li + li { border-top: 1px solid var(--border); }
.notice-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; min-height: 44px; }
.notice-item__date {
  flex: none; width: 52px; text-align: center; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--surface);
}
.notice-item__date b { display: block; background: var(--primary); color: #fff; font-size: 16px; line-height: 26px; }
.notice-item__date small { display: block; font-size: 11px; line-height: 22px; color: var(--muted); }
.notice-item__title { font-size: 15px; font-weight: 600; line-height: 1.45; }
.notice-item__title:hover { color: var(--primary); }
.notice-item .meta { margin-top: 2px; }

/* Popular (numbered) */
.popular { list-style: none; counter-reset: pop; }
.popular li { counter-increment: pop; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.popular li + li { border-top: 1px solid var(--border); }
.popular li::before {
  content: counter(pop); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--primary); background: var(--primary-tint); font-size: 15px;
}
.popular li:nth-child(-n+3)::before { background: var(--primary); color: #fff; }
.popular a { font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* Article */
.article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; }
@media (min-width: 640px) { .article { padding: 28px; } }
@media (min-width: 1200px) { .article { padding: 36px 40px; } }
.article__title { font-size: 25px; line-height: 1.35; margin-bottom: 12px; }
@media (min-width: 960px) { .article__title { font-size: 32px; } }
.article__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; margin-bottom: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.article__excerpt { font-weight: 600; font-size: 18px; line-height: 1.65; margin-bottom: 20px; }
@media (min-width: 960px) { .article__excerpt { font-size: 19px; } }
.article__source { margin-top: 24px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 14px; color: var(--muted); word-break: break-word; }
.article__source a { color: var(--primary); text-decoration: underline; }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text);
}
.share__btn:hover { border-color: var(--primary); color: var(--primary); }
.share__btn .icon { width: 18px; height: 18px; }
.share__btn--fb { color: #1877F2; }
.share__btn--zalo { color: #0068FF; }
.share__btn span { display: none; }
@media (min-width: 640px) { .share__btn span { display: inline; } }

.prose { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
@media (min-width: 960px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: 1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 1.3em; margin-top: 1.5em; }
.prose h3 { font-size: 1.15em; margin-top: 1.3em; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; margin: 0 auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 15px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--bg); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; font-size: .9em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #ECEAE4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.attachment {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 16px; min-height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); font-weight: 600; color: var(--primary);
}

/* Video player */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ddd; padding: 16px; text-align: center; }

/* Pagination */
.pager { margin-top: 32px; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 15px;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .is-current span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .is-disabled span { color: #B4B8BE; }
.pager__info { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.pager .icon { width: 18px; height: 18px; }

/* Empty / 404 */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty .icon { width: 40px; height: 40px; color: #B9BCC1; margin-bottom: 8px; }
.empty p { margin: 0; }
.empty--sm { padding: 20px 12px; font-size: 15px; }
.error-page { text-align: center; max-width: 560px; margin: 24px auto; padding: 32px 16px; }
.error-page__code { font-size: 72px; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: .04em; }
.error-page h1 { font-size: 24px; margin: 12px 0; }
.error-page p { color: var(--muted); }
.error-page .search { max-width: 420px; margin: 20px auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 600; border: 0; cursor: pointer;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface); color: var(--primary); border-color: var(--primary); }

/* Search page */
.search--lg input { height: 52px; font-size: 17px; background: #fff; }
.search--lg button { height: 52px; width: 64px; }
.search-result { padding: 16px 0; border-bottom: 1px solid var(--border); }
.search-result mark { background: #FCEFC7; color: inherit; padding: 0 2px; border-radius: 2px; }

/* Contact */
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.contact-list li + li { border-top: 1px solid var(--border); }
.contact-list__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.contact-list a, .contact-list strong { font-weight: 600; font-size: 16px; word-break: break-word; }
.contact-list a { color: var(--primary); }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #ECEAE4; border: 1px solid var(--border); }
@media (min-width: 960px) { .map { aspect-ratio: auto; height: 100%; min-height: 380px; } }
.map iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D2DC; font-size: 15px; border-top: 4px solid var(--primary); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFE7A3; }
.footer__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 28px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; } }
.footer__org { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer__org img { width: 52px; height: 52px; flex: none; }
.footer__org strong { color: #fff; font-size: 17px; text-transform: uppercase; line-height: 1.4; }
.footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer__info { list-style: none; }
.footer__info li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.footer__info .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.footer__info a { min-height: 32px; word-break: break-word; }
.footer__menu { list-style: none; columns: 2; column-gap: 16px; }
@media (min-width: 960px) { .footer__menu { columns: 1; } }
.footer__menu a { display: inline-flex; align-items: center; min-height: 40px; color: #C9D2DC; }
.footer__fb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); font-weight: 600; margin-top: 4px; }
.footer__note { margin-top: 14px; font-size: 14px; }
.footer__bottom { background: #15212D; font-size: 13px; color: #9AA6B2; }
.footer__bottom .container { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* Back to top & toast */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); max-width: calc(100vw - 32px);
  background: var(--text); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 15px; opacity: 0; visibility: hidden; transition: all .2s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Print ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .topbar, .brand .search, .brand__search-link, .menu-btn, .mainnav, .drawer, .drawer-backdrop, .site-footer, .sidebar,
  .share, .related, .to-top, .toast, .breadcrumb, .no-print, .skip-link { display: none !important; }
  .brand { border-bottom: 2px solid #000; }
  .brand__in { min-height: 0; padding: 0 0 8px; }
  main { padding: 12px 0 0; }
  .container { max-width: none; padding: 0; }
  .layout { display: block; }
  .article { border: 0; padding: 0; }
  .article__title { font-size: 20pt; }
  .prose { font-size: 12pt; line-height: 1.55; }
  .prose a { color: #000; text-decoration: none; }
  .prose img, figure { break-inside: avoid; max-height: 120mm; width: auto; }
  .article__source a::after { content: " (" attr(href) ")"; }
}

/* Home: video hướng dẫn dịch vụ công (đầu trang) */
.vfeat { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .vfeat { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; } }
.vfeat .player { margin-bottom: 12px; }
.vfeat__title { font-size: 19px; font-weight: 700; line-height: 1.4; }
@media (min-width: 960px) { .vfeat__title { font-size: 22px; } }
.vfeat__title a:hover { color: var(--primary); }
.vfeat__list { list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: grid; gap: 4px; align-content: start; }
.vfeat__item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 6px; border-left: 3px solid transparent; }
.vfeat__item:hover { background: var(--primary-tint); }
.vfeat__item.is-active { background: var(--primary-tint); border-left-color: var(--primary); }
.vfeat__item.is-active .vfeat__name { color: var(--primary); }
.vfeat__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #ECEAE4; }
.vfeat__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfeat__play { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(164, 22, 26, .9); color: #fff; display: flex; align-items: center; justify-content: center; }
.vfeat__play .icon { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.vfeat__name { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Bố cục trang chủ: truy cập nhanh 5 ô một hàng trên PC, không lẻ ô */
@media (min-width: 960px) { .quick { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 959px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .quick li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.quick a { min-height: 104px; }
/* Danh sách video cao bằng khung phát trên PC */
@media (min-width: 960px) {
  .vfeat__list { grid-auto-rows: 1fr; align-content: stretch; height: calc(100% - 0px); }
  .vfeat__main { display: flex; flex-direction: column; }
}

/* Danh sách video trang chủ: cao bằng khung phát, nhiều video thì cuộn */
@media (min-width: 960px) {
  .vfeat__list { contain: size; height: auto; grid-auto-rows: auto; align-content: start; overflow-y: auto; }
}