/* Cổng thông tin — stylesheet duy nhất.
   Bảng màu lấy theo nhận diện của Ban Quản lý các KCN: xanh navy chủ đạo, vàng nhấn, đỏ dùng tiết chế. */
:root {
  --navy-900: #071c45;
  --navy: #0a2a66;         /* thanh menu, chân trang, tiêu đề */
  --blue: #1557c0;         /* liên kết, nút chính, biểu đồ */
  --blue-600: #0f48a3;
  --blue-50: #eef4ff;
  --gold: #f4b223;         /* điểm nhấn */
  --gold-600: #d99a0c;
  --red: #d62839;
  --ink: #13203a;
  --muted: #5d6b84;
  --line: #e3e8f1;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 102, .06), 0 2px 8px rgba(10, 42, 102, .05);
  --shadow: 0 10px 30px rgba(10, 42, 102, .10);
  --shadow-lg: 0 22px 48px rgba(10, 42, 102, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.3; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 2.2vw, 32px); }

/* ── Nút ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 999px; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { color: #fff; background: var(--blue-600); border-color: var(--blue-600); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 87, 192, .28); }
.btn:active { transform: translateY(0); }
.btn--gold { color: var(--navy-900); background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { color: var(--navy-900); background: #ffc23d; border-color: #ffc23d; box-shadow: 0 8px 20px rgba(244, 178, 35, .35); }
.btn--ghost { color: var(--blue); background: transparent; }
.btn--ghost:hover { color: #fff; background: var(--blue); }

/* ── Thanh trên cùng ─────────────────────────────────────── */
.topbar { font-size: 13px; color: #c9d6ee; background: var(--navy-900); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar__contact li { display: flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--gold); }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }

.lang { position: relative; margin-left: auto; }
.lang summary { display: flex; align-items: center; gap: 7px; padding: 8px 2px; cursor: pointer; list-style: none; white-space: nowrap; color: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; margin: 0 2px 3px 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.lang[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.lang ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 160px; padding: 6px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); }
.lang li a { display: block; padding: 8px 12px; font-size: 14px; color: var(--ink); border-radius: 6px; }
.lang li a:hover { color: var(--blue); background: var(--blue-50); }
.lang li a.is-current { font-weight: 700; color: var(--blue); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* ── Tên cổng + tìm kiếm ─────────────────────────────────── */
.masthead { background: var(--surface); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 18px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__logo { height: 72px; width: auto; }
/* Tên cổng dài → giữ trên một dòng, cỡ chữ co theo bề ngang màn hình (màn hẹp mới cho xuống dòng) */
.brand__name { display: block; font-size: clamp(15px, 1.46vw, 22px); font-weight: 800; text-transform: uppercase; line-height: 1.25; letter-spacing: 0; white-space: nowrap; }
.brand__slogan { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--gold-600); letter-spacing: .04em; text-transform: uppercase; }

.search { display: flex; flex: 0 1 300px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.search input { flex: 1; min-width: 0; padding: 11px 4px 11px 20px; font: inherit; font-size: 14px; color: var(--ink); border: 0; background: none; outline: none; }
.search button { padding: 0 18px; color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .2s var(--ease); }
.search button:hover { color: var(--blue); }
.search:focus-within { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 87, 192, .12); }

/* ── Menu chính ──────────────────────────────────────────── */
.mainnav { position: sticky; top: 0; z-index: 50; background: var(--navy); transition: box-shadow .25s var(--ease); }
.mainnav.is-stuck { box-shadow: 0 6px 24px rgba(7, 28, 69, .28); }
.mainnav__list { display: flex; }
.mainnav__list li { flex: 1 1 auto; }
.mainnav__list a { position: relative; display: block; padding: 17px 12px; font-size: 16px; font-weight: 600; text-align: center; color: #dfe8f8; white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease); }
.mainnav__list a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56%; height: 3px; margin-left: -28%; background: var(--gold); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .28s var(--ease); }
.mainnav__list a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.mainnav__list a:hover::after,
.mainnav__list li.is-active a::after { transform: scaleX(1); }
.mainnav__list li.is-active a { color: #fff; background: rgba(255, 255, 255, .1); }
.mainnav__toggle { display: none; width: 100%; padding: 14px 0; font: inherit; font-weight: 600; text-align: left; color: #fff; background: none; border: 0; cursor: pointer; }

/* ── Banner ──────────────────────────────────────────────── */
.hero { position: relative; display: grid; background: var(--navy-900); overflow: hidden; }
.hero__slide {
  /* các slide chồng lên nhau trong cùng 1 ô grid → chiều cao tự giãn theo slide dài nhất */
  grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: clamp(300px, 40vw, 560px); padding: 48px 0 72px;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s;
}
.hero__slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 28, 69, .86), rgba(7, 28, 69, .08) 65%); }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide.is-active .hero__content > * { animation: rise .7s var(--ease) both; }
.hero__slide.is-active .hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { animation-delay: .24s; }
/* Banner ảnh: giữ đúng tỉ lệ ảnh gốc, chiều cao khối tự theo ảnh */
.hero__slide--image { display: block; min-height: 0; padding: 0; }
.hero__slide--image::before { content: none; }
.hero__slide--image img { width: 100%; height: auto; }
.hero__content { position: relative; color: #fff; }
.hero__content > * { max-width: 760px; }
.hero__tag { display: inline-block; margin-bottom: 12px; padding: 4px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-900); background: var(--gold); border-radius: 999px; }
.hero__title { font-size: clamp(24px, 3vw, 42px); font-weight: 800; }
.hero__desc { margin: 12px 0 0; font-size: 17px; color: #e3ebfa; }
.hero .btn { margin-top: 20px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s var(--ease), background .3s var(--ease); }
.hero__dots button.is-active { width: 30px; background: var(--gold); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── Dòng tin mới ────────────────────────────────────────── */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ticker__inner { display: flex; align-items: center; gap: 18px; min-height: 52px; }
.ticker__label { position: relative; flex: none; padding: 5px 14px 5px 26px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--red); border-radius: 999px; }
.ticker__label::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.ticker__items { display: grid; flex: 1; min-width: 0; }
.ticker__items a {
  grid-area: 1 / 1; font-size: 15px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
.ticker__items a.is-active { opacity: 1; visibility: visible; transform: none; }
.ticker__items a:hover { color: var(--blue); }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* ── Khối nội dung ───────────────────────────────────────── */
.section { margin-top: 56px; margin-bottom: 56px; }
.section--soft { margin: 0; padding: 56px 0; background: linear-gradient(180deg, #edf2fb, var(--bg)); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section__head h2 { position: relative; padding-bottom: 12px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; color: var(--navy); }
.section__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.section__head h2 a { color: inherit; }
.section__head h2 a:hover { color: var(--blue); }
.section__link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.section__link::after { content: "→"; transition: transform .2s var(--ease); }
.section__link:hover::after { transform: translateX(4px); }
.section__more { margin: 28px 0 0; text-align: center; }

/* Tiêu đề trang trong (căn giữa) */
.section__title { position: relative; margin-bottom: 30px; padding-bottom: 16px; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; text-align: center; color: var(--navy); }
.section__title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; margin-left: -32px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.section__title a { color: inherit; }
.bar-title { margin-bottom: 18px; padding-left: 14px; font-size: 20px; font-weight: 700; color: var(--navy); border-left: 4px solid var(--gold); }
.bar-title a { color: inherit; }

.panel { padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Hiện dần khi cuộn tới (JS thêm .is-visible; không có JS thì vẫn hiện bình thường) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .kpi__item.reveal:nth-child(2), .js .quick__item:nth-child(2) { transition-delay: .08s; }
.js .kpi__item.reveal:nth-child(3), .js .quick__item:nth-child(3) { transition-delay: .16s; }
.js .kpi__item.reveal:nth-child(4), .js .quick__item:nth-child(4) { transition-delay: .24s; }

/* ── Tin nổi bật: 1 lớn + 4 nhỏ ──────────────────────────── */
.spot { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 18px; }
.spot__item { position: relative; display: block; overflow: hidden; color: #fff; border-radius: var(--radius); background: linear-gradient(135deg, #1b4fa8, var(--navy)); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.spot__item--lead { grid-column: span 2; grid-row: span 2; }
.spot--1 .spot__item--lead { grid-column: span 4; }
.spot--2 .spot__item, .spot--3 .spot__item:not(.spot__item--lead) { grid-column: span 2; }
.spot--2 .spot__item { grid-row: span 2; }
.spot__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.spot__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 28, 69, .96), rgba(7, 28, 69, .72) 38%, rgba(7, 28, 69, .12) 72%, rgba(7, 28, 69, 0)); transition: opacity .35s var(--ease); }
.spot__item:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.spot__item:hover img { transform: scale(1.07); }
.spot__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; padding: 16px 18px; }
.spot__cat { justify-self: start; padding: 2px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-900); background: var(--gold); border-radius: 999px; }
.spot__title { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot__item--lead .spot__body { padding: 26px 28px; gap: 10px; }
.spot__item--lead .spot__title { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.3; }
.spot__date { font-size: 12px; color: #c9d6ee; }

/* ── Dải số liệu ─────────────────────────────────────────── */
.kpi { position: relative; padding: 64px 0; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(244, 178, 35, .22), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(21, 87, 192, .55), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy)); }
.kpi::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.kpi > .container { position: relative; }
.kpi__head { margin-bottom: 36px; text-align: center; }
.kpi__head h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.kpi__head p { margin: 8px 0 0; font-size: 14px; color: #b9c8e6; }
.kpi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.kpi__item { display: grid; gap: 6px; padding: 26px 24px; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.kpi__item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .12); border-color: rgba(244, 178, 35, .6); }
.kpi__num { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.kpi__label { font-size: 14px; font-weight: 500; color: #dbe5f7; }

/* ── Thẻ bài viết ────────────────────────────────────────── */
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #dbe6f8, #b6cbee); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.07); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.card__title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--blue); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.card__meta a { padding: 1px 9px; font-weight: 600; color: var(--blue); background: var(--blue-50); border-radius: 999px; }
.card__meta a:hover { color: #fff; background: var(--blue); }
.card__summary { margin: 10px 0 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.list { display: grid; gap: 20px; }
.list .card { flex-direction: row; }
.list .card__thumb { flex: 0 0 280px; aspect-ratio: auto; min-height: 180px; }
.list .card__body { justify-content: center; }
.list .card__title { font-size: 19px; }

/* ── Lối tắt cho nhà đầu tư ──────────────────────────────── */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick__item { position: relative; display: block; padding: 28px 24px; color: var(--ink); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease); }
.quick__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--blue), var(--navy)); opacity: 0; transition: opacity .35s var(--ease); }
.quick__item > * { position: relative; }
.quick__item svg { width: 52px; height: 52px; padding: 13px; color: var(--blue); background: var(--blue-50); border-radius: 14px; transition: color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease); }
.quick__item h3 { margin-top: 18px; font-size: 18px; font-weight: 700; color: var(--navy); transition: color .35s var(--ease); }
.quick__item p { margin: 8px 0 0; font-size: 14px; color: var(--muted); transition: color .35s var(--ease); }
.quick__item:hover { color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick__item:hover::before { opacity: 1; }
.quick__item:hover svg { color: var(--navy-900); background: var(--gold); transform: rotate(-6deg) scale(1.05); }
.quick__item:hover h3 { color: #fff; }
.quick__item:hover p { color: #d5e0f5; }

/* ── Thư viện ────────────────────────────────────────────── */
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); justify-content: center; gap: 24px; }
.box { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .35s var(--ease); }
.box:hover { box-shadow: var(--shadow); }
.box__title { margin-bottom: 16px; padding-left: 12px; font-size: 18px; font-weight: 700; border-left: 4px solid var(--gold); }
.box__title a { color: var(--navy); }
.box__media { display: block; align-self: stretch; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background: linear-gradient(135deg, #dbe6f8, #b6cbee); }
.box__media :is(img, iframe, video) { width: 100%; height: 100%; object-fit: cover; border: 0; }
.box__caption { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.box__list { align-self: stretch; flex: 1; }
.box__list li { position: relative; padding: 10px 0 10px 16px; border-bottom: 1px dashed var(--line); }
.box__list li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.box__list a { color: var(--ink); }
.box__list a:hover { color: var(--blue); }
.box .btn { margin-top: 18px; }
.video-link { display: grid; place-items: center; width: 100%; height: 100%; font-size: 18px; color: #fff; background: var(--navy-900); }

/* Thẻ ảnh có chữ nền xanh (danh sách album) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile { display: flex; flex-direction: column; color: var(--ink); background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, #dbe6f8, #b6cbee); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.07); }
.tile__body { display: block; padding: 16px 20px 20px; }
.tile__title { display: block; font-size: 17px; font-weight: 700; color: var(--navy); }
.tile__meta { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ── Trang trong ─────────────────────────────────────────── */
main > .container:first-child { padding-top: 8px; padding-bottom: 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 26px; font-size: 14px; color: var(--muted); }
.breadcrumb > * + *::before { content: "/"; margin-right: 6px; color: #b2bccd; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; margin-bottom: 64px; align-items: start; }
.page-head { margin-bottom: 26px; }
.page-head :is(h1, h2) { position: relative; padding-bottom: 14px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; color: var(--navy); }
.page-head :is(h1, h2)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.page-head p { margin: 12px 0 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.chips a { display: block; padding: 6px 16px; font-size: 14px; font-weight: 500; color: var(--blue); background: var(--blue-50); border-radius: 999px; }
.chips a:hover { color: #fff; background: var(--blue); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.article { padding: clamp(22px, 3vw, 44px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article--page { max-width: 940px; margin: 0 auto 64px; }
.article__title { font-size: clamp(25px, 2.7vw, 36px); font-weight: 800; color: var(--navy); }
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; padding-bottom: 18px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.article__summary { margin: 22px 0 0; padding-left: 18px; font-size: 18px; font-weight: 600; line-height: 1.6; color: var(--ink); border-left: 4px solid var(--gold); }
.article__content { margin-top: 24px; font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.article__content :is(figure, table, img, iframe) { max-width: 100%; }
.article__content img { height: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.article__content figure { margin: 26px 0; }
.article__content figure img { width: 100%; }
.article__content figcaption { margin-top: 10px; font-size: 14px; font-style: italic; text-align: center; color: var(--muted); }
.article__content h2 { margin: 34px 0 12px; font-size: 23px; font-weight: 700; color: var(--navy); }
.article__content h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 700; color: var(--navy); }
.article__content ul { padding-left: 4px; }
.article__content ul li { position: relative; margin: 8px 0; padding-left: 22px; }
.article__content ul li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.article__content table { display: block; overflow-x: auto; border-collapse: collapse; }
.article__content :is(td, th) { padding: 8px 12px; border: 1px solid var(--line); }
.article__content blockquote { margin: 22px 0; padding: 6px 20px; border-left: 4px solid var(--blue); color: var(--muted); background: var(--blue-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article + .section { margin-top: 44px; margin-bottom: 0; }
.layout__main > .section .section__head h2 { font-size: 22px; }

.sidebar { display: grid; gap: 24px; align-content: start; position: sticky; top: 76px; }
.widget { padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.widget__title { margin-bottom: 10px; padding-left: 12px; font-size: 17px; font-weight: 700; color: var(--navy); border-left: 4px solid var(--gold); }
.widget__news li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.widget__news li:last-child, .widget__cats > li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget__news a { display: block; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.widget__news a:hover { color: var(--blue); }
.widget__news time { font-size: 12px; color: var(--muted); }
.widget__cats > li { border-bottom: 1px dashed var(--line); }
.widget__cats a { display: block; padding: 9px 0; font-weight: 500; color: var(--ink); transition: color .2s var(--ease), padding .2s var(--ease); }
.widget__cats a:hover, .widget__cats a[aria-current] { color: var(--blue); padding-left: 6px; }
.widget__cats ul a { padding-left: 16px; font-size: 14px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.pager > * { min-width: 42px; padding: 9px 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.pager a:hover { color: #fff; background: var(--blue); transform: translateY(-2px); }
.pager .is-current { color: #fff; background: var(--navy); }

/* Thư viện ảnh */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 64px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 48px 64px; background: rgba(7, 28, 69, .94); animation: fade .25s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; width: 48px; height: 48px; font-size: 32px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s var(--ease); }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: calc(50% - 24px); }
.lightbox__nav--next { right: 12px; top: calc(50% - 24px); }
@keyframes fade { from { opacity: 0; } }

/* Thư viện video */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; margin-bottom: 64px; }
.video { margin: 0; padding: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.video__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: var(--navy-900); }
.video__frame :is(iframe, video) { width: 100%; height: 100%; border: 0; }
.video figcaption { margin: 12px 4px 2px; font-weight: 600; }

/* Tài liệu */
.docs { display: grid; gap: 18px; max-width: 940px; margin: 0 auto 64px; }
.doc { padding: 24px 28px; background: var(--surface); border-radius: var(--radius); border-left: 5px solid var(--gold); box-shadow: var(--shadow-sm); scroll-margin-top: 90px; transition: box-shadow .3s var(--ease); }
.doc:hover, .doc:target { box-shadow: var(--shadow); }
.doc h2 { font-size: 19px; font-weight: 700; color: var(--navy); }
.doc__content { margin: 10px 0 0; white-space: pre-line; color: var(--muted); }
.doc__files { display: grid; gap: 8px; margin-top: 16px; }
.doc__files a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); background: var(--bg); border-radius: var(--radius-sm); transition: background .2s var(--ease), transform .2s var(--ease); }
.doc__files a:hover { color: var(--blue); background: var(--blue-50); transform: translateX(4px); }
.doc__ext { flex: none; min-width: 48px; padding: 3px 6px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; background: var(--blue); border-radius: 6px; }
.doc__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc__size { flex: none; font-size: 13px; color: var(--muted); }

.error-page { padding: 80px 0 110px; text-align: center; }
.error-page__code { margin: 0; font-size: 120px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin-top: 10px; font-size: 28px; color: var(--navy); }
.error-page p { color: var(--muted); }
.error-page .btn { margin-top: 14px; }

/* ── Số liệu từ hệ thống eHeza: biểu đồ, bảng, bộ lọc ─────── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; justify-content: center; }
.tabs a { padding: 9px 18px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.tabs a:hover { color: #fff; background: var(--blue); transform: translateY(-2px); }
.tabs a.is-current { color: #fff; background: var(--navy); }

.filter { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 30px; padding: 18px 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.filter label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.filter select, .lookup input, .toolbar input { padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #cfd7e6; border-radius: var(--radius-sm); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.filter select:focus, .lookup input:focus, .toolbar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 87, 192, .12); }

.stat { margin-bottom: 44px; padding: 26px 28px 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.source { margin: 8px 0 56px; font-size: 13px; color: var(--muted); }
.notice { padding: 14px 18px; color: var(--muted); background: var(--blue-50); border-left: 4px solid #b9c9e8; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice--error { color: #8a1c26; background: #fdf0f1; border-left-color: var(--red); }

/* Biểu đồ thanh ngang: một màu, mỗi chỉ tiêu một biểu đồ với trục riêng */
.charts { display: grid; gap: 28px 44px; margin-bottom: 24px; }
.panel .charts { margin-bottom: 0; }
.charts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.charts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart { margin: 0; min-width: 0; }
.chart figcaption { margin-bottom: 12px; font-weight: 700; color: var(--navy); }
.chart figcaption small { margin-left: 8px; font-weight: 400; font-size: 13px; color: var(--muted); }
.bars { display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bars__track { display: block; height: 14px; background: var(--blue-50); border-radius: 999px; overflow: hidden; }
.bars__bar { display: block; height: 100%; min-width: 3px; background: linear-gradient(90deg, var(--blue), #3d7fe6); border-radius: 999px; transform-origin: left; }
.js .reveal .bars__bar, .js .stat .bars__bar { transform: scaleX(0); transition: transform 1.1s var(--ease) .15s; }
.js .reveal.is-visible .bars__bar, .js .stat.is-visible .bars__bar { transform: scaleX(1); }
.bars li:hover .bars__bar { background: linear-gradient(90deg, var(--gold-600), var(--gold)); }
.bars__value { min-width: 70px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data td:not(.num) { min-width: 150px; }
table.data thead th { font-weight: 600; color: #fff; background: var(--navy); white-space: nowrap; }
table.data tbody tr { transition: background .15s var(--ease); }
table.data tbody tr:nth-child(even) { background: #f8fafe; }
table.data tbody tr:hover { background: var(--blue-50); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tfoot td { font-weight: 700; color: var(--navy); background: #eef3fb; border-bottom: 0; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.toolbar p { margin: 0; color: var(--muted); }
.toolbar strong { color: var(--navy); }
.toolbar input { flex: 0 1 360px; }

.lookup { max-width: 620px; margin: 0 auto 36px; padding: 26px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.lookup label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--navy); }
.lookup > div { display: flex; gap: 10px; }
.lookup input { flex: 1; min-width: 0; }
.detail { max-width: 880px; margin: 0 auto 28px; background: var(--surface); border-radius: var(--radius); border-left: 5px solid var(--gold); box-shadow: var(--shadow-sm); overflow: hidden; }
.detail > div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.detail > div:last-child { border-bottom: 0; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Trang Liên hệ */
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; margin-bottom: 64px; }
.contact-page > div { padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-page dl { margin: 0; }
.contact-page dl > div { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-page dl > div:last-child { border-bottom: 0; }
.contact-page dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-page dd { margin: 4px 0 0; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.contact-page iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-page > div:only-child { grid-column: 1 / -1; max-width: 720px; margin: 0 auto; width: 100%; }

/* ── Chân trang ──────────────────────────────────────────── */
.footer { position: relative; margin-top: 72px; color: #c9d6ee; background: linear-gradient(160deg, var(--navy), var(--navy-900)); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--red), var(--blue)); }
.is-home .footer { margin-top: 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr .8fr .8fr; gap: 44px; padding-top: 52px; padding-bottom: 44px; }
.footer__inner:has(.footer__map) { grid-template-columns: 1.4fr .7fr .7fr 1.1fr; }
.footer__title { position: relative; margin-bottom: 20px; padding-bottom: 12px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--gold); }
.footer a { color: inherit; transition: color .2s var(--ease), padding .2s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer__list { margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.footer__list dt { color: #8fa3c8; }
.footer__list dd { margin: 0; color: #e6edfa; overflow-wrap: anywhere; }
.footer__links li { margin-bottom: 10px; font-size: 15px; }
.footer__links a:hover { padding-left: 6px; }
.footer__map iframe { width: 100%; height: 220px; border: 0; border-radius: var(--radius-sm); }
.footer__bottom { padding: 16px 0; font-size: 13px; text-align: center; color: #8fa3c8; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ── Nút nổi ─────────────────────────────────────────────── */
.floats { position: fixed; right: 18px; bottom: 24px; z-index: 40; display: grid; gap: 10px; }
.floats a { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; border-radius: 50%; box-shadow: 0 8px 22px rgba(7, 28, 69, .3); transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s; }
.floats a:hover { color: #fff; transform: translateY(-4px) scale(1.06); }
.floats__phone { background: var(--red); animation: ring 2.4s ease-in-out infinite; }
.floats__top { background: var(--blue); }
.js .floats__top { opacity: 0; visibility: hidden; transform: translateY(12px); }
.js .floats__top.is-visible { opacity: 1; visibility: visible; transform: none; }
@keyframes ring { 0%, 100% { box-shadow: 0 8px 22px rgba(7, 28, 69, .3), 0 0 0 0 rgba(214, 40, 57, .45); } 60% { box-shadow: 0 8px 22px rgba(7, 28, 69, .3), 0 0 0 14px rgba(214, 40, 57, 0); } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .spot { grid-auto-rows: 200px; }
  .grid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .tiles--3, .quick { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer__inner, .footer__inner:has(.footer__map) { grid-template-columns: 1fr 1fr; }
  .mainnav__list a { padding: 15px 8px; font-size: 15px; }
}

@media (max-width: 760px) {
  .topbar__contact li:first-child:not(:last-child) { display: none; }
  .masthead__inner { flex-wrap: wrap; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .brand { flex: 1 1 100%; gap: 12px; }
  .brand__name { font-size: 17px; white-space: normal; }
  .brand__logo { height: 52px; }
  .brand__slogan { font-size: 12px; }
  .search { flex: 1 1 100%; }

  .mainnav__toggle { display: block; }
  .mainnav__list { display: none; flex-direction: column; padding-bottom: 10px; }
  .mainnav__list.is-open { display: flex; animation: pop .2s var(--ease); }
  .mainnav__list a { padding: 12px 0; text-align: left; background: none !important; border-top: 1px solid rgba(255, 255, 255, .1); }
  .mainnav__list a::after { display: none; }
  .mainnav__list li.is-active a { color: var(--gold); }

  .section { margin-top: 40px; margin-bottom: 40px; }
  .section--soft { padding: 40px 0; }
  .spot { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
  .spot__item--lead { grid-column: span 2; grid-row: span 1; }
  .spot .spot__item { grid-column: span 1; grid-row: span 1; }
  .spot .spot__item--lead, .spot--2 .spot__item { grid-column: span 2; }
  .spot__item--lead .spot__body { padding: 16px 18px; }
  .kpi { padding: 44px 0; }
  .kpi__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi__item { padding: 18px 12px; }
  .grid, .grid--3, .tiles, .tiles--3, .quick, .sidebar { grid-template-columns: 1fr; }
  .list .card { flex-direction: column; }
  .list .card__thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .charts--2, .charts--3 { grid-template-columns: minmax(0, 1fr); }
  .panel, .stat { padding: 18px; }
  .boxes { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; }
  .detail > div { grid-template-columns: 1fr; gap: 0; }
  .contact-page { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 8px; }
  .footer__inner, .footer__inner:has(.footer__map) { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .footer__list > div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal .bars__bar, .js .stat .bars__bar { transform: none; }
}
