/*
 * An Giang Mới — Theme V6 (copy từ wireframe, bỏ thanh review). Wireframe V4 "Đảo Ngọc · Thất Sơn".
 * Layout riêng cho trang tin địa phương (không dùng lại bố cục phuthomoi-v9).
 * Token vẫn dùng prefix --agm-* để sau này port sang theme.
 */

.theme-v4 {
  --agm-primary: #2D2A4A;      /* tím than – Thất Sơn về đêm */
  --agm-primary-deep: #1D1B33;
  --agm-jade: #0F8A83;         /* ngọc lam Phú Quốc (chỉ trang trí) */
  --agm-jade-deep: #0B6B66;    /* ngọc lam đậm (chữ, nút) */
  --agm-jade-pale: #E3F4F1;
  --agm-mist: #8E86B8;         /* sương núi (chỉ trang trí) */
  --agm-mist-deep: #5B5287;
  --agm-mist-pale: #EFEDF7;
  --agm-pearl: #E4B860;        /* ngọc trai, nắng hoàng hôn (chỉ trang trí) */
  --agm-pearl-deep: #8A6116;
  --agm-pearl-pale: #FBF3E0;
  --agm-sand: #FAF7F1;         /* cát trắng */
  --agm-ink: #1B1C26;
  --agm-muted: #5D6070;
  --agm-line: #E4E1EA;
  --agm-hot: #C2362B;
  --agm-serif: 'Lora', Georgia, serif;
  --agm-sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --agm-shadow: 0 8px 26px rgba(29, 27, 51, .10);
  --ph-sea: linear-gradient(160deg, #8FD9CF 0%, #0F8A83 55%, #0B4F5C 100%);
  --ph-sunset: linear-gradient(180deg, #F6D28B 0%, #E4B860 35%, #C76B4A 70%, #2D2A4A 100%);
  --ph-mount: linear-gradient(180deg, #D3CEEA 0%, #8E86B8 45%, #2D2A4A 100%);
  --ph-field: linear-gradient(135deg, #EBDB9F 0%, #9DBB7A 55%, #3F6B4A 100%);
  --ph-temple: linear-gradient(135deg, #E4B860 0%, #C2362B 60%, #5B2A2A 100%);
  --ph-city: linear-gradient(135deg, #DDE0E8 0%, #8A93A8 50%, #3A4258 100%);
}

/* ---------- Nền tảng ---------- */
* { box-sizing: border-box; }
body.theme-v4 { margin: 0; background: var(--agm-sand); color: var(--agm-ink); font-family: var(--agm-sans); font-size: 16px; line-height: 1.55; }
.theme-v4 a { color: inherit; text-decoration: none; }
.theme-v4 a:hover { color: var(--agm-jade-deep); }
.theme-v4 button, .theme-v4 input, .theme-v4 select, .theme-v4 textarea { font: inherit; }
.theme-v4 button { cursor: pointer; }
.theme-v4 h1, .theme-v4 h2, .theme-v4 h3, .theme-v4 p { overflow-wrap: anywhere; }
.theme-v4 :focus-visible { outline: 3px solid var(--agm-pearl); outline-offset: 2px; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; }
.skip-link { position: absolute; z-index: 300; top: -100px; left: 16px; padding: 10px 14px; background: #fff; }
.skip-link:focus { top: 12px; }


/* Placeholder ảnh & quảng cáo */
.thumb { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--ph-sea); aspect-ratio: 16 / 9; }
.thumb::after { position: absolute; right: 8px; bottom: 6px; color: rgba(255,255,255,.92); content: attr(data-size); font-size: 10px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.thumb--32 { aspect-ratio: 3 / 2; }
.thumb--43 { aspect-ratio: 4 / 3; }
.thumb--sq { aspect-ratio: 1; }
.ph-sea { background: var(--ph-sea); }
.ph-sunset { background: var(--ph-sunset); }
.ph-mount { background: var(--ph-mount); }
.ph-field { background: var(--ph-field); }
.ph-temple { background: var(--ph-temple); }
.ph-city { background: var(--ph-city); }
.ad { display: flex; max-width: 100%; margin: 0 auto; align-items: center; justify-content: center; border: 1px dashed #b7b3c4; background: repeating-linear-gradient(45deg, #f1eff5, #f1eff5 10px, #e9e6ef 10px, #e9e6ef 20px); color: #66637a; font-size: 12px; font-weight: 700; text-align: center; }
.ad-wrap { padding: 18px 0; text-align: center; }
.ad-label { margin: 0 0 6px; color: var(--agm-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ad--970 { width: 970px; height: 250px; }
.ad--728 { width: 728px; height: 90px; }
.ad--300 { width: 300px; height: 250px; }
.ad--300x600 { width: 300px; height: 600px; }

/* Nhãn chung */
.kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--agm-jade-deep); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.region-chip { display: inline-block; border-radius: 3px; background: var(--agm-mist-pale); color: var(--agm-mist-deep); padding: 1px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.region-chip--sea { background: var(--agm-jade-pale); color: var(--agm-jade-deep); }
.meta { color: var(--agm-muted); font-size: 12px; }
.sapo { margin: 0; color: var(--agm-muted); font-size: 15px; }
.tag-pill { display: inline-block; border: 1px solid var(--agm-line); border-radius: 999px; background: #fff; padding: 4px 11px; color: var(--agm-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-pill::before { color: var(--agm-jade); content: '#'; margin-right: 1px; }
.tag-pill:hover { border-color: var(--agm-jade); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--agm-jade-deep); border-radius: 6px; background: var(--agm-jade-deep); color: #fff; padding: 8px 16px; font-size: 14px; font-weight: 700; }
.theme-v4 .btn:hover { background: #08524e; color: #fff; }
.btn--ghost { border-color: var(--agm-line); background: #fff; color: var(--agm-ink); }
.theme-v4 .btn--ghost:hover { border-color: var(--agm-primary); background: #fff; color: var(--agm-primary); }

/* ---------- Header ---------- */
.v4-topbar { background: var(--agm-primary-deep); color: #D9D6EA; font-size: 12px; }
.v4-topbar__inner { display: flex; min-height: 36px; align-items: center; gap: 18px; }
.v4-topbar__inner > span:first-child { flex: none; white-space: nowrap; }
.v4-topbar__weather { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.v4-topbar__weather b { color: #fff; }
.v4-topbar__links { display: flex; gap: 16px; margin-left: auto; white-space: nowrap; }
.v4-topbar__links a:hover { color: var(--agm-pearl); }
.v4-topbar__hot { color: var(--agm-pearl); font-weight: 700; }

.v4-masthead { background: #fff; }
.v4-masthead__inner { display: grid; min-height: 96px; grid-template-columns: auto minmax(220px, 420px) auto; align-items: center; justify-content: space-between; gap: 24px; }
.v4-logo { display: flex; align-items: center; gap: 12px; }
.v4-logo__mark { width: 66px; height: 66px; flex: none; }
.v4-logo__title { display: block; color: var(--agm-primary); font-family: var(--agm-serif); font-size: 32px; font-weight: 700; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.v4-logo__title em { color: var(--agm-jade-deep); font-style: normal; }
.v4-logo__tagline { display: block; margin-top: 6px; color: var(--agm-mist-deep); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.v4-search { display: flex; border: 1px solid var(--agm-line); border-radius: 999px; background: var(--agm-sand); padding: 4px 4px 4px 16px; }
.v4-search input { min-width: 0; flex: 1; border: 0; background: transparent; outline: 0; font-size: 14px; }
.v4-search button { border: 0; border-radius: 999px; background: var(--agm-primary); color: #fff; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.v4-masthead__actions { display: flex; align-items: center; gap: 10px; }
.v4-icon-btn { display: none; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--agm-primary); font-size: 22px; }
.v4-icon-btn:hover { background: var(--agm-mist-pale); }
.v4-burger, .v4-burger::before, .v4-burger::after { display: block; width: 20px; height: 2px; background: currentColor; content: ''; }
.v4-burger { position: relative; }
.v4-burger::before { position: absolute; top: -6px; }
.v4-burger::after { position: absolute; top: 6px; }

.v4-nav { position: sticky; z-index: 60; top: 0; border-top: 1px solid var(--agm-line); border-bottom: 3px solid var(--agm-primary); background: #fff; }
.v4-nav__inner { display: flex; align-items: stretch; }
.v4-menu { display: flex; flex: 1; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.v4-menu > li { position: static; }
.v4-menu > li.v4-has-drop { position: relative; }
.v4-menu > li > a { position: relative; display: flex; height: 50px; align-items: center; gap: 6px; padding: 0 12px; color: var(--agm-primary); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.v4-menu > li > a::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; background: transparent; content: ''; }
.v4-menu > li:hover > a::after, .v4-menu > li:focus-within > a::after, .v4-menu > li.is-current > a::after { background: var(--agm-pearl); }
.v4-menu__home a { font-size: 18px !important; }
.v4-menu .is-hub-sea > a { color: var(--agm-jade-deep); }
.v4-menu .is-hub-mount > a { color: var(--agm-mist-deep); }
.v4-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.v4-dot--sea { background: var(--agm-jade); }
.v4-dot--mount { background: var(--agm-mist); }
.v4-caret { font-size: 9px; opacity: .7; }
.v4-drop { position: absolute; z-index: 80; top: 100%; left: 0; display: none; min-width: 240px; margin: 0; padding: 8px 0; border-top: 3px solid var(--agm-pearl); background: #fff; box-shadow: var(--agm-shadow); list-style: none; }
.v4-drop a { display: block; padding: 9px 16px; font-size: 14px; font-weight: 600; }
.v4-drop a:hover { background: var(--agm-sand); }
.v4-drop .v4-drop__tag a::before { color: var(--agm-jade); content: '#'; margin-right: 2px; }
.v4-drop__note { margin: 6px 16px 2px; color: var(--agm-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.v4-menu li:hover > .v4-drop, .v4-menu li:focus-within > .v4-drop { display: block; }
.v4-mega { position: absolute; z-index: 80; top: 100%; right: 0; left: 0; display: none; border-top: 3px solid var(--agm-pearl); background: #fff; box-shadow: var(--agm-shadow); }
.v4-menu li:hover > .v4-mega, .v4-menu li:focus-within > .v4-mega { display: block; }
.v4-mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 20px 0 22px; }
.v4-mega__item { display: block; border-left: 3px solid var(--agm-mist); padding: 4px 12px; }
.v4-mega__item.is-sea { border-left-color: var(--agm-jade); }
.v4-mega__item strong { display: block; color: var(--agm-primary); font-size: 15px; }
.v4-mega__item span { display: block; margin-top: 2px; color: var(--agm-muted); font-size: 12.5px; line-height: 1.45; }
.v4-mega__item:hover strong { color: var(--agm-jade-deep); }
.v4-nav__cta { display: flex; align-items: center; gap: 8px; padding-left: 10px; }
.v4-nav__all { display: inline-flex; height: 36px; align-items: center; gap: 8px; border: 1px solid var(--agm-line); border-radius: 6px; background: #fff; padding: 0 12px; color: var(--agm-primary); font-size: 13px; font-weight: 700; }
.v4-nav__report { min-height: 36px; padding: 6px 12px; font-size: 13px; }

.v4-topics { border-bottom: 1px solid var(--agm-line); background: var(--agm-sand); }
.v4-topics__inner { display: flex; min-height: 50px; align-items: center; gap: 10px; }
.v4-topics__label { flex: none; color: var(--agm-hot); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.v4-topics__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }

/* Drawer: toàn bộ chuyên mục, khu vực, chủ đề */
.v4-drawer { position: fixed; z-index: 200; inset: 0; display: none; background: rgba(15, 14, 30, .55); }
.v4-drawer.is-open { display: block; }
.v4-drawer__panel { width: min(420px, 92vw); height: 100%; overflow-y: auto; background: #fff; box-shadow: var(--agm-shadow); }
.v4-drawer__head { position: sticky; top: 0; display: flex; min-height: 60px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--agm-line); background: #fff; padding: 0 16px; color: var(--agm-primary); font-family: var(--agm-serif); font-size: 19px; font-weight: 700; }
.v4-drawer__head .v4-icon-btn { display: inline-grid; }
.v4-drawer__body { padding: 8px 16px 32px; }
.v4-drawer__search { margin: 10px 0 14px; }
.v4-drawer h3 { margin: 18px 0 8px; color: var(--agm-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.v4-tree { margin: 0; padding: 0; list-style: none; }
.v4-tree > li { border-bottom: 1px solid var(--agm-line); padding: 10px 0; }
.v4-tree > li > a { color: var(--agm-primary); font-weight: 800; }
.v4-tree ul { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--agm-muted); font-size: 13.5px; }
.v4-drawer__chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Cảnh báo địa phương ---------- */
.v4-alert { margin-top: 18px; }
.v4-alert__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border: 1px solid #F0DDB0; border-left: 5px solid var(--agm-hot); border-radius: 6px; background: var(--agm-pearl-pale); padding: 10px 14px; font-size: 14px; }
.v4-alert__label { color: var(--agm-hot); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.v4-alert__text { flex: 1; min-width: 240px; font-weight: 600; }
.v4-alert__more { color: var(--agm-jade-deep); font-size: 13px; font-weight: 700; }

/* ---------- Khối tin chính: lead + 2 tin + dòng sự kiện 24h ---------- */
.v4-top { padding: 22px 0 8px; }
.v4-top__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(280px, 3fr); gap: 24px; }
.v4-lead h1 { margin: 10px 0 8px; font-family: var(--agm-serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; }
.v4-lead .kicker { margin-top: 14px; }
.v4-related { display: grid; gap: 6px; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--agm-line); list-style: none; font-size: 14px; font-weight: 600; }
.v4-related li::before { color: var(--agm-jade); content: '▸ '; }
.v4-stack { display: grid; align-content: start; gap: 18px; }
.v4-card h3 { margin: 6px 0 0; font-family: var(--agm-serif); font-size: 18px; line-height: 1.38; }
.v4-card .kicker { margin-top: 10px; }
.v4-card .sapo { margin-top: 6px; font-size: 14px; }
.v4-timeline { align-self: start; border: 1px solid var(--agm-line); border-radius: 8px; background: #fff; }
.v4-timeline__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--agm-line); padding: 12px 16px; }
.v4-timeline__head h2 { margin: 0; color: var(--agm-primary); font-size: 15px; font-weight: 800; text-transform: uppercase; }
.v4-live { display: inline-flex; align-items: center; gap: 6px; color: var(--agm-hot); font-size: 11px; font-weight: 800; }
.v4-live::before { width: 8px; height: 8px; border-radius: 50%; background: var(--agm-hot); content: ''; }
.v4-timeline ol { position: relative; max-height: 520px; overflow-y: auto; margin: 0; padding: 6px 16px 10px 34px; list-style: none; }
.v4-timeline ol::before { position: absolute; top: 14px; bottom: 14px; left: 20px; width: 2px; background: var(--agm-line); content: ''; }
.v4-timeline li { position: relative; padding: 10px 0; border-bottom: 1px dashed var(--agm-line); }
.v4-timeline li:last-child { border-bottom: 0; }
.v4-timeline li::before { position: absolute; top: 15px; left: -18px; width: 10px; height: 10px; border: 2px solid var(--agm-jade); border-radius: 50%; background: #fff; content: ''; }
.v4-timeline time { color: var(--agm-jade-deep); font-size: 12px; font-weight: 800; }
.v4-timeline h3 { margin: 2px 0 4px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.v4-timeline__all { display: block; border-top: 1px solid var(--agm-line); padding: 10px 16px; color: var(--agm-jade-deep); font-size: 13px; font-weight: 700; text-align: center; }

/* ---------- Tiện ích địa phương ---------- */
.v4-utils { padding: 18px 0 6px; }
.v4-utils__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.v4-util { display: flex; flex-direction: column; border: 1px solid var(--agm-line); border-top: 4px solid var(--agm-jade); border-radius: 8px; background: #fff; padding: 12px 14px; }
.v4-util--mount { border-top-color: var(--agm-mist); }
.v4-util--pearl { border-top-color: var(--agm-pearl); }
.v4-util--hot { border-top-color: var(--agm-hot); }
.v4-util h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--agm-primary); font-size: 13.5px; font-weight: 800; text-transform: uppercase; }
.v4-util__icon { display: inline-grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--agm-sand); font-size: 14px; }
.v4-util dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; margin: 0; font-size: 13px; }
.v4-util dt { color: var(--agm-muted); }
.v4-util dd { margin: 0; font-weight: 700; text-align: right; }
.v4-util__more { margin-top: auto; padding-top: 8px; color: var(--agm-jade-deep); font-size: 12.5px; font-weight: 700; }

/* ---------- Bố cục 2 cột: nội dung + sidebar ---------- */
.v4-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 18px 0 40px; }
.v4-body > *, .v4-block-head > * { min-width: 0; }
.v4-block { margin-bottom: 38px; }
.v4-block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; border-bottom: 1px solid var(--agm-ink); }
.v4-block-head h2 { position: relative; margin: 0; padding-bottom: 8px; color: var(--agm-primary); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.v4-block-head h2::after { position: absolute; right: 0; bottom: -2px; left: 0; height: 4px; background: var(--agm-pearl); content: ''; }
.v4-block-head nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 8px; color: var(--agm-muted); font-size: 13.5px; font-weight: 600; }
.v4-block-head--sm h2 { font-size: 17px; }
.v4-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; }
.v4-row h3.v4-big { margin: 8px 0 6px; font-family: var(--agm-serif); font-size: 24px; line-height: 1.3; }
.v4-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--agm-line); }
.v4-mini { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
.v4-mini h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.42; }
.v4-mini .kicker { margin-bottom: 3px; font-size: 10px; }
.v4-links { margin: 0; padding: 0; list-style: none; }
.v4-links li { border-top: 1px solid var(--agm-line); padding: 10px 0; font-size: 15px; font-weight: 600; line-height: 1.42; }
.v4-links li:first-child { border-top: 0; }
.v4-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.v4-col__title { display: block; margin-bottom: 10px; border-left: 3px solid var(--agm-jade); padding-left: 8px; color: var(--agm-primary); font-size: 14px; font-weight: 800; }
.v4-col .v4-links { margin-top: 8px; }
.v4-col .v4-links li { font-size: 14px; }
.v4-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }

/* Sidebar */
.v4-side { display: grid; align-content: start; gap: 26px; }
.v4-side > * { min-width: 0; }
.v4-widget { border: 1px solid var(--agm-line); border-radius: 8px; background: #fff; padding: 14px 16px; }
.v4-widget__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.v4-widget h2 { margin: 0; color: var(--agm-primary); font-size: 15px; font-weight: 800; text-transform: uppercase; }
.v4-tabs { display: flex; gap: 4px; border-radius: 6px; background: var(--agm-sand); padding: 3px; }
.v4-tabs button { border: 0; border-radius: 4px; background: transparent; color: var(--agm-muted); padding: 4px 9px; font-size: 12px; font-weight: 700; }
.v4-tabs button[aria-selected='true'] { background: #fff; color: var(--agm-primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.v4-rank { counter-reset: rank; margin: 0; padding: 0; list-style: none; }
.v4-rank li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--agm-line); padding: 10px 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.v4-rank li:first-child { border-top: 0; }
.v4-rank li::before { color: var(--agm-mist); content: counter(rank); counter-increment: rank; font-family: var(--agm-serif); font-size: 26px; font-weight: 700; line-height: 1; }
.v4-rank[hidden] { display: none; }
.v4-events { margin: 0; padding: 0; list-style: none; }
.v4-events li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--agm-line); padding: 10px 0; }
.v4-events li:first-child { border-top: 0; }
.v4-date { display: grid; place-items: center; border-radius: 6px; background: var(--agm-mist-pale); color: var(--agm-mist-deep); padding: 6px 2px; font-size: 10.5px; font-weight: 700; line-height: 1.25; text-align: center; }
.v4-date b { display: block; color: var(--agm-primary); font-size: 13.5px; white-space: nowrap; }
.v4-date--sea { background: var(--agm-jade-pale); color: var(--agm-jade-deep); }
.v4-events h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; line-height: 1.4; }

/* ---------- Section nhận diện: Đảo Ngọc | Thất Sơn ---------- */
.v4-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); color: #fff; }
.v4-duo__panel { position: relative; overflow: hidden; padding: 40px max(24px, calc((100vw - 1240px) / 2)) 120px; }
.v4-duo__panel--sea { padding-right: 32px; background: linear-gradient(160deg, #0B6B66 0%, #0B4F5C 100%); }
.v4-duo__panel--mount { padding-left: 32px; background: linear-gradient(200deg, #2D2A4A 0%, #1D1B33 100%); }
.v4-duo__art { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 110px; pointer-events: none; }
.v4-duo__art .w1 { fill: rgba(143, 217, 207, .25); }
.v4-duo__art .w2 { fill: rgba(143, 217, 207, .14); }
.v4-duo__art .m1 { fill: rgba(142, 134, 184, .35); }
.v4-duo__art .m2 { fill: rgba(142, 134, 184, .18); }
.v4-duo__art .pearl { fill: var(--agm-pearl); }
.v4-duo__eyebrow { margin: 0; color: var(--agm-pearl); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.v4-duo h2 { margin: 4px 0 6px; font-family: var(--agm-serif); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.v4-duo__desc { max-width: 520px; margin: 0 0 20px; color: rgba(255,255,255,.82); font-size: 14.5px; }
.v4-duo__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.v4-overlay { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.v4-overlay .thumb { border-radius: 0; aspect-ratio: 4 / 3; }
.v4-overlay__text { position: absolute; right: 0; bottom: 0; left: 0; padding: 40px 14px 14px; background: linear-gradient(to top, rgba(10, 10, 25, .85), transparent); }
.v4-overlay__text h3 { margin: 4px 0 0; color: #fff; font-family: var(--agm-serif); font-size: 19px; line-height: 1.32; }
.v4-overlay__text .kicker { color: var(--agm-pearl); }
.v4-duo .v4-links li { border-top-color: rgba(255,255,255,.18); color: #fff; font-size: 14.5px; }
.theme-v4 .v4-duo a:hover { color: var(--agm-pearl); }
.v4-duo__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.v4-duo__chips a { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.08); padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
.v4-duo__more { position: relative; z-index: 1; display: inline-block; margin-top: 16px; color: var(--agm-pearl); font-size: 14px; font-weight: 800; }

/* ---------- Tin theo khu vực ---------- */
.v4-regions { padding: 44px 0 20px; }
.v4-regions__grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; align-items: start; }
.v4-map { border: 1px solid var(--agm-line); border-radius: 10px; background: #fff; padding: 10px; }
.v4-map svg { display: block; width: 100%; height: auto; }
.v4-map .sea { fill: #EAF5F4; }
.v4-map .land { fill: #fff; stroke: #B9B4CC; stroke-width: 1.5; cursor: pointer; transition: fill .15s; }
.v4-map .land:hover, .v4-map .land:focus { fill: var(--agm-mist-pale); outline: none; }
.v4-map .land.is-sea { fill: #D3EEEA; stroke: #7CBFB8; }
.v4-map .land.is-active { fill: var(--agm-pearl-pale); stroke: var(--agm-pearl-deep); stroke-width: 2.5; }
.v4-map .river { fill: none; stroke: #4FA9C2; stroke-width: 5; stroke-linecap: round; opacity: .75; pointer-events: none; }
.v4-map .border { fill: none; stroke: var(--agm-hot); stroke-width: 1.5; stroke-dasharray: 6 4; pointer-events: none; }
.v4-map text { fill: var(--agm-primary); font-family: var(--agm-sans); font-size: 10.5px; font-weight: 700; pointer-events: none; }
.v4-map text.lbl-muted { fill: var(--agm-muted); font-size: 10px; font-style: italic; font-weight: 600; letter-spacing: .08em; }
.v4-map__caption { margin: 6px 4px 0; color: var(--agm-muted); font-size: 11.5px; }
.v4-region-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.v4-region-tabs button { border: 1px solid var(--agm-line); border-radius: 999px; background: #fff; color: var(--agm-primary); padding: 6px 13px; font-size: 13px; font-weight: 700; }
.v4-region-tabs button[aria-selected='true'] { border-color: var(--agm-primary); background: var(--agm-primary); color: #fff; }
.v4-region-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.v4-region-panel__head h3 { margin: 0; font-family: var(--agm-serif); font-size: 24px; }
.v4-region-panel__head p { margin: 0; color: var(--agm-muted); font-size: 13.5px; }
.v4-region-panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }

/* ---------- Văn hóa – Du lịch: longform + thẻ ---------- */
.v4-mag { padding: 30px 0 10px; }
.v4-longform { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.v4-longform .thumb { border-radius: 0; aspect-ratio: 21 / 8; }
.v4-longform__text { position: absolute; bottom: 0; left: 0; max-width: 720px; padding: 28px 32px; color: #fff; }
.v4-longform::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,40,.82) 0%, rgba(20,18,40,.35) 55%, transparent 80%); content: ''; }
.v4-longform__text { z-index: 1; }
.v4-badge { display: inline-block; border-radius: 3px; background: var(--agm-pearl); color: var(--agm-primary-deep); padding: 2px 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.v4-longform h3 { margin: 10px 0 8px; font-family: var(--agm-serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.22; }
.v4-longform p { margin: 0; color: rgba(255,255,255,.85); }
.v4-cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }

/* ---------- Multimedia ---------- */
.v4-media { margin-top: 36px; background: var(--agm-primary-deep); color: #fff; padding: 40px 0 46px; }
.v4-media .v4-block-head { border-bottom-color: rgba(255,255,255,.35); }
.v4-media .v4-block-head h2 { color: #fff; }
.v4-media .v4-block-head nav { color: rgba(255,255,255,.75); }
.v4-media__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 26px; }
.v4-player { position: relative; display: block; }
.v4-play { position: absolute; top: 50%; left: 50%; display: grid; width: 68px; height: 68px; place-items: center; transform: translate(-50%, -50%); border: 2px solid var(--agm-pearl); border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; }
.v4-media h3.v4-big { margin: 14px 0 4px; font-family: var(--agm-serif); font-size: 24px; line-height: 1.3; }
.v4-media .meta { color: rgba(255,255,255,.7); }
.v4-playlist { display: grid; align-content: start; gap: 14px; margin: 0; padding: 0; list-style: none; }
.v4-playlist li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; }
.v4-playlist h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.v4-duration { position: absolute; z-index: 1; bottom: 6px; left: 6px; border-radius: 3px; background: rgba(0,0,0,.65); padding: 1px 5px; font-size: 10.5px; font-weight: 700; }
.v4-playlist .v4-type { color: var(--agm-pearl); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.theme-v4 .v4-media a:hover { color: var(--agm-pearl); }

/* ---------- Bạn đọc phản ánh ---------- */
.v4-reports { padding: 44px 0 50px; }
.v4-reports__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 30px; }
.v4-report { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 14px; border-bottom: 1px solid var(--agm-line); padding: 14px 0; }
.v4-report__bar { border-radius: 3px; background: var(--agm-mist); }
.v4-report.is-done .v4-report__bar { background: var(--agm-jade); }
.v4-report.is-sent .v4-report__bar { background: var(--agm-pearl); }
.v4-report h3 { margin: 6px 0 4px; font-family: var(--agm-serif); font-size: 18px; line-height: 1.35; }
.v4-status { display: inline-block; border-radius: 3px; padding: 1px 7px; font-size: 11px; font-weight: 800; }
.v4-status--checking { background: var(--agm-mist-pale); color: var(--agm-mist-deep); }
.v4-status--sent { background: var(--agm-pearl-pale); color: var(--agm-pearl-deep); }
.v4-status--done { background: var(--agm-jade-pale); color: var(--agm-jade-deep); }
.v4-report__reply { margin: 6px 0 0; border-left: 2px solid var(--agm-jade); padding-left: 10px; color: var(--agm-muted); font-size: 13.5px; }
.v4-form { border: 1px solid var(--agm-line); border-radius: 10px; background: #fff; padding: 20px; }
.v4-form h3 { margin: 0 0 4px; color: var(--agm-primary); font-family: var(--agm-serif); font-size: 21px; }
.v4-form p { margin: 0 0 12px; color: var(--agm-muted); font-size: 13.5px; }
.v4-form label { display: block; margin: 10px 0 4px; font-size: 12.5px; font-weight: 700; }
.v4-form input, .v4-form select, .v4-form textarea { width: 100%; border: 1px solid var(--agm-line); border-radius: 6px; background: var(--agm-sand); padding: 9px 11px; font-size: 14px; }
.v4-form textarea { min-height: 84px; resize: vertical; }
.v4-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v4-form .btn { width: 100%; margin-top: 14px; }
.v4-form__hotline { margin-top: 12px; border-top: 1px dashed var(--agm-line); padding-top: 10px; color: var(--agm-muted); font-size: 13px; text-align: center; }

/* ---------- Footer ---------- */
.v4-footer { border-top: 4px solid var(--agm-jade); background: var(--agm-primary-deep); color: #CFCBE3; font-size: 14px; }
.v4-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 42px 0 34px; }
.v4-footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-family: var(--agm-serif); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.v4-footer__brand svg { width: 52px; height: 52px; }
.v4-footer p { margin: 0 0 8px; }
.v4-footer h2 { margin: 4px 0 12px; color: var(--agm-pearl); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.v4-footer ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.theme-v4 .v4-footer a:hover { color: var(--agm-pearl); }
.v4-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0 22px; font-size: 12.5px; }
.v4-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.v4-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- Thanh điều hướng đáy (mobile) ---------- */
.v4-bottom-nav { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: none; border-top: 1px solid var(--agm-line); background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.v4-bottom-nav ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.v4-bottom-nav a, .v4-bottom-nav button { display: flex; width: 100%; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--agm-primary); font-size: 10.5px; font-weight: 700; }
.v4-bottom-nav span[aria-hidden] { font-size: 18px; line-height: 1; }
.v4-bottom-nav .is-current { color: var(--agm-jade-deep); }
.v4-bottom-nav .is-report { color: var(--agm-hot); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .v4-menu > li > a { padding: 0 9px; font-size: 13.5px; }
  .v4-nav__all span.lbl { display: none; }
  .v4-top__grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
  .v4-stack { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-row: 2; }
  .v4-utils__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v4-regions__grid { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .v4-nav { display: none; }
  .v4-icon-btn { display: inline-grid; }
  .v4-masthead__inner { min-height: 72px; grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .v4-masthead .v4-search, .v4-masthead__actions .btn { display: none; }
  .v4-masthead.is-search-open .v4-search { display: flex; grid-column: 1 / -1; order: 3; margin-bottom: 12px; }
  .v4-logo { justify-content: center; }
  .v4-topics { position: sticky; z-index: 50; top: 0; }
  .v4-body { grid-template-columns: minmax(0, 1fr); }
  .v4-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-side .ad-wrap { grid-column: 1 / -1; }
  .v4-duo { grid-template-columns: minmax(0, 1fr); }
  .v4-duo__panel--sea, .v4-duo__panel--mount { padding: 34px 16px 110px; }
  .v4-regions__grid { grid-template-columns: minmax(0, 1fr); }
  .v4-map { max-width: 520px; }
  .v4-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-media__grid, .v4-reports__grid { grid-template-columns: minmax(0, 1fr); }
  .v4-footer__grid { grid-template-columns: 1fr 1fr; }
  .ad--970 { width: 728px; height: 90px; }
}

@media (max-width: 760px) {
  .v4-top__grid { grid-template-columns: minmax(0, 1fr); }
  .v4-block-head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; border-bottom: 0; }
  .v4-block-head h2 { align-self: flex-start; }
  .v4-block-head::before { order: 1; height: 1px; margin-top: -8px; background: var(--agm-ink); content: ''; }
  .v4-block-head nav { order: 2; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .v4-media .v4-block-head::before { background: rgba(255,255,255,.35); }
}

@media (max-width: 680px) {
  body.theme-v4 { padding-bottom: 60px; }
  .container { width: min(100% - 28px, 1240px); }
  .v4-topbar__links { display: none; }
  .v4-logo { gap: 8px; }
  .v4-logo__mark { width: 44px; height: 44px; }
  .v4-logo__title { font-size: 21px; }
  .v4-logo__tagline { margin-top: 3px; font-size: 8.5px; letter-spacing: .08em; }
  .v4-stack { grid-template-columns: minmax(0, 1fr); }
  .v4-utils__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .v4-util { min-width: 78%; scroll-snap-align: start; }
  .v4-row, .v4-cols, .v4-split, .v4-mini-grid, .v4-side, .v4-duo__grid, .v4-region-panel__grid, .v4-cards4, .v4-footer__grid, .v4-form__row { grid-template-columns: minmax(0, 1fr); }
  .v4-mini { grid-template-columns: 96px minmax(0, 1fr); }
  .v4-longform .thumb { aspect-ratio: 4 / 5; }
  .v4-longform__text { padding: 20px; }
  .v4-playlist li { grid-template-columns: 112px minmax(0, 1fr); }
  .ad--970, .ad--728 { width: 320px; height: 100px; }
  .v4-bottom-nav { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .v4-map .land { transition: none; }
}
