/*
 * Legal documents library (archive-itx_vanban.php, single-itx_vanban.php via design/vanban-shared.php): dark photo hero (same look as
 * the /gioi-thieu banner) with search / key dates, field tabs, /van-ban numbered status group cards ("upcoming" cards,
 * active / expired lists), document list, status badges, info tiles, PDF viewer and side list. Same palette / typography as blog.css
 * (loaded first: the variables come from .itx-blog), scoped under .itx-vb so Flatsome's CSS is only overridden here.
 */

/* ---------- hero (photo + blue overlay, parallax on desktop) + search ---------- */
.itx-vb-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 3.2vw, 48px) 0; color: #D3E3F7; background: linear-gradient(100deg, rgba(1, 38, 82, .94) 0%, rgba(2, 62, 123, .86) 45%, rgba(2, 79, 158, .62) 100%), url(../../../../uploads/2018/11/20180104120242_c2.jpg) center / cover no-repeat; background-attachment: scroll, fixed; }
.itx-vb-hero::after { content: ""; position: absolute; z-index: -1; right: -140px; bottom: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140, 195, 250, .32), transparent); }
.itx-vb-hero .itx-blog-crumb, .itx-vb-hero .itx-blog-crumb a { color: #BFD4EE; }
.itx-vb-hero .itx-blog-crumb a:hover, .itx-vb-hero .itx-blog-crumb span { color: #fff; }
.itx-vb-hero .itx-blog-crumb > * + *::before { color: rgba(255, 255, 255, .4); }
.itx-vb-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #DCEBFF; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.itx-vb-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8CC3FA; box-shadow: 0 0 0 4px rgba(140, 195, 250, .22); }
.itx-vb .itx-vb-hero h1 { max-width: 980px; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.itx-vb .itx-vb-hero.is-detail h1 { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -.015em; }
.itx-vb-grad { background: linear-gradient(100deg, #fff 0%, #8CC8FF 35%, #4FA2F7 60%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.itx-vb-lead { max-width: 760px; margin: 14px 0 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: #D3E3F7; }
.itx-vb-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; }
.itx-vb-hero-meta > span:not(.itx-vb-badge) { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); font-size: 14px; color: #BFD4EE; }
.itx-vb-hero-meta b { font-weight: 600; color: #fff; }
.itx-vb-hero-meta .itx-vb-badge { padding: 6px 14px; font-size: 13.5px; }
/* detail hero timeline: ban hành → hiệu lực → hết hiệu lực; filled dot = đã diễn ra, hollow = sắp tới */
.itx-vb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; margin: 22px 0 0; }   /* số hiệu + trạng thái + timeline on one line */
.itx-vb-row .itx-vb-hero-meta { margin: 0; }
.itx-vb-tl { display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.itx-vb-tl li { position: relative; min-width: 280px; padding: 20px 24px 0 0; }
.itx-vb-tl li::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid #8CC3FA; background: transparent; }
.itx-vb-tl li.is-done::before { background: #8CC3FA; box-shadow: 0 0 0 4px rgba(140, 195, 250, .22); }
.itx-vb-tl li::after { content: ""; position: absolute; left: 22px; right: 8px; top: 6px; height: 2px; background: rgba(255, 255, 255, .22); }
.itx-vb-tl li.is-done:not(:last-child)::after { background: linear-gradient(90deg, #8CC3FA, rgba(255, 255, 255, .22)); }
.itx-vb-tl li.is-now::before { left: 2px; top: 2px; width: 10px; height: 10px; border: 0; background: #fff; animation: itx-vb-blink 1.4s ease-in-out infinite; }   /* "hôm nay": smaller dot, blinking */
@keyframes itx-vb-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 50% { opacity: .35; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .itx-vb-tl li.is-now::before { animation: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .28); } }
.itx-vb-tl li.is-now small { color: #fff; font-weight: 700; }
.itx-vb-tl li.is-now:not(:last-child)::after { background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .22)); }
.itx-vb-tl li:last-child::after { display: none; }
.itx-vb-tl small { display: block; font-size: 12px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: #BFD4EE; }
.itx-vb-tl b { display: block; margin-top: 1px; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: #fff; }
@media (max-width: 640px) { .itx-vb-tl { flex-direction: column; flex-wrap: wrap; } .itx-vb-tl li { min-width: 0; padding: 0 0 18px 28px; } .itx-vb-tl li:last-child { padding-bottom: 0; } .itx-vb-tl li::before { top: 4px; } .itx-vb-tl li.is-now::before { top: 6px; left: 2px; } .itx-vb-tl li::after { left: 6px; right: auto; top: 20px; bottom: -4px; width: 2px; height: auto; } .itx-vb-tl li:last-child::after { display: none; } }
.itx-vb-search { display: flex; gap: 8px; max-width: 720px; margin: 22px 0 0; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(1, 30, 66, .35); }
.itx-vb-search input[type=search] { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; background: none; box-shadow: none; font: 500 15.5px/1 inherit; color: var(--ink); }
.itx-vb-search input[type=search]:focus { outline: 2px solid rgba(2, 79, 158, .25); outline-offset: 0; box-shadow: none; }
.itx-vb-search button { flex: none; min-height: 48px; margin: 0; padding: 0 26px; border: 0; border-radius: 999px; font: 600 15px/1 inherit; letter-spacing: 0; text-transform: none; color: #fff; background: linear-gradient(135deg, var(--b7), var(--b) 55%, #0A63BC); box-shadow: 0 12px 30px rgba(2, 79, 158, .3); cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.itx-vb-search button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(2, 79, 158, .38); }

/* ---------- field tabs (scroll sideways on small screens) ---------- */
.itx-vb-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 4px 2px 18px; }   /* wraps onto more rows: no pill is cut at the edge */
/* same pills as the front-page news tabs (home.css .hx-tablist-pills) */
.itx-vb-tabs a { flex: none; max-width: 100%; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--b); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s, transform .35s var(--ease), box-shadow .3s; }
.itx-vb-tabs a:hover { background: var(--ice); transform: translateY(-2px); }
.itx-vb-tabs a.is-active { border-color: var(--b); background: var(--b); color: #fff; transform: none; box-shadow: 0 12px 26px rgba(2, 79, 158, .32); }

/* ---------- body under the hero + /van-ban numbered status group cards (upcoming cards: effective date in the future) ---------- */
.itx-vb-body { display: flow-root; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }   /* flow-root: the group cards' margins stay inside the background (no white strip above the footer) */
.itx-vb-group { margin: clamp(32px, 4vw, 56px) 0; padding: clamp(22px, 3.5vw, 44px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(2, 62, 123, .04), 0 24px 50px rgba(2, 62, 123, .08); scroll-margin-top: var(--top); }
.itx-vb-group.is-expired { background: #FBFCFE; box-shadow: none; }
.itx-vb-group.is-expired .itx-vb-item { opacity: .7; }
.itx-vb-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.itx-vb-n { flex: none; font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px #2064AA; }
.itx-vb .itx-vb-group h2 { width: auto; font-size: clamp(22px, 2.4vw, 30px); }   /* Flatsome: h2 { width: 100% } */
.itx-vb-count { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: rgba(2, 79, 158, .08); color: var(--b); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.itx-vb-group .itx-vb-item:last-child { padding-bottom: 0; border-bottom: 0; }
.itx-vb .itx-vb-list h2 { margin-bottom: 20px; font-size: clamp(22px, 2.4vw, 28px); }
.itx-vb-up-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.itx-vb-up { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; overflow: hidden; padding: 26px 28px; border-radius: 20px; background: linear-gradient(160deg, #F2F7FD 0%, #fff 65%); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.itx-vb-up::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--b7), #4F9BE6); }
.itx-vb-up:hover { transform: translateY(-4px); border-color: rgba(2, 79, 158, .25); box-shadow: 0 24px 50px rgba(2, 62, 123, .12); }
.itx-vb-up-date { font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.itx-vb-up-left { font-size: 14px; font-weight: 600; color: var(--b); }
.itx-vb-up-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.itx-vb-up-title b { display: block; font-weight: 700; color: var(--ink); }   /* "<type> <number>" on its own line */

/* ---------- document list ---------- */
.itx-vb-list { padding: clamp(32px, 4vw, 48px) 0 clamp(40px, 5.5vw, 64px); }
.itx-vb-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.itx-vb .itx-vb-item h3 { font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.itx-vb-item h3 a { color: var(--ink); transition: color .25s; }
.itx-vb-item h3 a:hover { color: var(--b); }
.itx-vb-item b { color: var(--b7); }
.itx-vb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 8px 0 0; font-size: 14px; color: var(--text); }
.itx-vb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.itx-vb-chips a { padding: 4px 11px; border-radius: 999px; background: rgba(2, 79, 158, .08); color: var(--b); font-size: 12.5px; font-weight: 600; transition: background-color .25s, color .25s; }
.itx-vb-chips a:hover { background: var(--b); color: #fff; }

/* ---------- status badge ---------- */
.itx-vb-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.itx-vb-badge.is-upcoming { background: var(--ice); color: var(--b7); }
.itx-vb-badge.is-active { background: #fff; color: var(--b); box-shadow: inset 0 0 0 1.5px var(--b); }
.itx-vb-badge.is-expired { background: #EEF1F5; color: #6B7A8F; }

/* ---------- detail: cards (info tiles, summary, file) on a light background ---------- */
.itx-vb .itx-post { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.itx-vb-card { margin-bottom: 24px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(2, 62, 123, .04), 0 24px 50px rgba(2, 62, 123, .08); }
.itx-vb .itx-vb-card h2 { margin: 0 0 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b); }
.itx-vb-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.itx-vb-info dl > div { padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.itx-vb-info :is(dt, dd) { display: block; float: none; text-transform: none; letter-spacing: 0; }   /* undo Flatsome dl styles */
.itx-vb-info dt { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: #5F7188; }
.itx-vb-info dd { margin: 0; overflow-wrap: anywhere; font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.itx-vb-info dd a { color: var(--b); }
.itx-vb-info dd a:hover { color: var(--b7); }
.itx-vb-file { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.itx-vb .itx-vb-file h2 { margin-bottom: 2px; }
.itx-vb-pdf { display: block; width: 100%; height: min(1100px, 130vh); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.itx-vb-download { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; font-size: 15.5px; font-weight: 600; line-height: 1.2; text-align: center; color: #fff; background: linear-gradient(135deg, var(--b7), var(--b) 55%, #0A63BC); box-shadow: 0 12px 30px rgba(2, 79, 158, .3); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.itx-vb-download:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(2, 79, 158, .38); }
.itx-vb-pages { width: 100%; max-width: 900px; margin: 0 auto 20px; }   /* PDF drawn page by page (assets/pdf-viewer.js) */
.itx-vb-pages[hidden], .itx-vb-pages-msg[hidden] { display: none; }
.itx-vb-pages-msg { margin: 0; padding: 24px 0; color: var(--mute, #5B6B82); text-align: center; }
.itx-vb-holder { position: relative; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.itx-vb-holder .textLayer { --user-unit: 1; --total-scale-factor: calc(var(--scale-factor) * var(--user-unit)); position: absolute; inset: 0; z-index: 1; overflow: clip; line-height: 1; text-align: initial; text-size-adjust: none; -webkit-text-size-adjust: none; transform-origin: 0 0; }   /* PDF.js transparent text layer */
.itx-vb-holder .textLayer :is(span, br) { position: absolute; color: transparent; white-space: pre; cursor: text; transform-origin: 0 0; }
.itx-vb-holder .textLayer span.markedContent { top: 0; height: 0; }
.itx-vb-holder .textLayer ::selection { background: rgba(2, 79, 158, .3); }
.itx-vb-holder .textLayer .endOfContent { position: absolute; inset: 100% 0 0; z-index: 0; display: block; cursor: default; -webkit-user-select: none; user-select: none; }
.itx-vb-holder .textLayer.selecting .endOfContent { top: 0; }
.itx-vb-page { display: block; width: 100%; height: auto; }
.itx-vb-holder { position: relative; }
.textLayer { position: absolute; inset: 0; overflow: clip; line-height: 1; text-align: initial; -webkit-text-size-adjust: none; text-size-adjust: none; transform-origin: 0 0; z-index: 0; }   /* PDF.js text layer: transparent text over the canvas (find / select / copy) */
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0 0; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) { z-index: 1; }
.textLayer span.markedContent { top: 0; height: 0; }
.textLayer ::selection { background: rgba(0, 0, 255, .25); }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; -webkit-user-select: none; user-select: none; }
.textLayer.selecting .endOfContent { top: 0; }
.itx-vb-nofile { margin: 0; padding: 18px 22px; border-radius: 16px; border: 1px dashed var(--line); background: var(--bg); font-size: 15px; color: #5F7188; }

/* ---------- detail aside ---------- */
.itx-vb-side { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.itx-vb-side:last-child { padding-bottom: 0; border-bottom: 0; }
.itx-vb-side strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); transition: color .25s; }
.itx-vb-side:hover strong { color: var(--b); }
.itx-vb-side time { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: #5F7188; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .itx-vb-hero { background-attachment: scroll; }
}
@media (max-width: 768px) {
  .itx-vb-up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itx-vb-pdf { height: 70vh; }
}
@media (max-width: 640px) {
  .itx-vb-search button { padding: 0 18px; }
  .itx-vb-info dl { grid-template-columns: minmax(0, 1fr); }
  .itx-vb-count { margin-left: 0; }
}
@media (max-width: 480px) {
  .itx-vb-up-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) { .itx-vb-tabs { gap: 8px; } .itx-vb-tabs a { padding: 8px 15px; font-size: 13.5px; } }   /* compact pills: the wrapped rows stay short on a phone */
