/* ==========================================================================
   Landing page biên tập dùng chung (lp-*) — rút từ trang /abac/ (2026-10-13 21:30)
   Nạp khi nội dung trang có class "lp-" (inc/assets-split.php). Chỉ dùng trong .heza-layout-prod.
   Không chạm header / footer / trang chủ. Màu lấy từ biến HEZA trong heza-gov.css.
   Thành phần: lp-intro (thẻ chồng hero) · lp-facts · lp-btn · lp-section(--tint|--tight|--partners) · lp-wrap · lp-head · lp-eyebrow · lp-h2/h3 · lp-lead
              lp-flags · lp-venue/lp-map · lp-grid-main/lp-accordion/lp-qa/lp-aside/lp-card · lp-banner · lp-diagrams/lp-diagram · lp-chart
              lp-docs/lp-doc · lp-booths/lp-spot · lp-gallery · lp-news · lp-logos · lp-media
   ========================================================================== */
.heza-layout-prod {
  --lp-blue: var(--heza-c-blue, #007BB0);
  --lp-navy: var(--heza-c-dark, #001832);
  --lp-ink: #26323D;
  --lp-muted: #5B6B78;
  --lp-tint: #EEF6FA;
  --lp-line: #DCE6EC;
  --lp-radius: 12px;
  --lp-wrap: 1240px;
  --lp-gap: clamp(48px, 6vw, 80px);
}

.lp-intro { box-sizing: border-box; max-width: var(--lp-wrap) !important; margin-inline: auto !important; padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 72px) clamp(28px, 3.5vw, 48px); border-radius: var(--lp-radius); background: var(--lp-blue); color: #fff; box-shadow: 0 18px 40px rgba(0, 24, 50, .18) !important; }
.lp-intro .lp-eyebrow { color: rgba(255, 255, 255, .78); }
.lp-intro__title { max-width: 980px; margin: 10px 0 14px; color: #fff; font-family: var(--heza-font__main); font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1.25; text-transform: none; }
.lp-intro__title::before { content: none !important; }
.lp-intro__en { max-width: 900px; margin: 0 0 28px; color: rgba(255, 255, 255, .86); font-family: var(--heza-font__body); font-size: 16px; line-height: 1.6; }
.lp-intro__en strong { color: #fff; font-weight: 600; }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .28); list-style: none; }
.lp-facts li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-content: start; margin: 0; padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .28); }
.lp-facts li:first-child { padding-left: 0; border-left: 0; }
.lp-facts .heza-fa { grid-row: 1 / span 3; margin-top: 2px; color: #fff; font-size: 22px; }
.lp-facts__k { color: rgba(255, 255, 255, .72); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.lp-facts__v { color: #fff; font-family: var(--heza-font__main); font-size: 20px; font-weight: 700; line-height: 1.3; }
.lp-facts__s { color: rgba(255, 255, 255, .72); font-size: 13px; }
.lp-intro__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: var(--lp-blue) !important; font-family: var(--heza-font__main); font-size: 15px; font-weight: 700; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.lp-btn:hover { background: transparent; color: #fff !important; }
.lp-btn--ghost { background: transparent; color: #fff !important; }
.lp-btn--ghost:hover { background: #fff; color: var(--lp-blue) !important; }
.lp-btn .heza-fa { font-size: 16px; color: currentColor; }

/* ---------- Khung chung ---------- */
.lp-section, .lp-flags { margin-inline: calc(50% - 50vw) !important; padding-block: var(--lp-gap); }
.lp-section--tight { padding-block: calc(var(--lp-gap) / 2); }
.lp-section--tint { background: var(--lp-tint); }
.lp-wrap { box-sizing: border-box; max-width: var(--lp-wrap); margin-inline: auto; padding-inline: 20px; }
.wp-block-post-content > :is(.lp-section, .lp-flags) { margin-block-start: 0 !important; }
.lp-head { max-width: 780px; margin: 0 0 32px; }
.lp-head--center { margin-inline: auto; text-align: center; }
.lp-eyebrow { margin: 0; color: var(--lp-blue); font-family: var(--heza-font__body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-h2 { position: relative; margin: 8px 0 0; padding: 0; color: var(--lp-navy); font-family: var(--heza-font__main); font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; line-height: 1.3; text-transform: none; }
.lp-h2::before { content: none !important; }
.lp-h3 { margin: 0 0 12px; color: var(--lp-navy); font-family: var(--heza-font__main); font-size: 19px; font-weight: 700; line-height: 1.4; }
.lp-lead { margin: 12px 0 0; color: var(--lp-muted); font-size: 17px; line-height: 1.7; }
.lp-link { color: var(--lp-blue); font-weight: 600; text-decoration: none; }
.lp-link:hover { color: var(--heza-c-primary); }
.lp-link .heza-fa { margin-left: 6px; font-size: 13px; color: currentColor; }

/* Ảnh: bỏ quy tắc ảnh toàn cục (0,5,1 !important) */
.heza-layout-prod .wp-block-post-content :is(.lp-media, .lp-banner, .lp-diagram, .lp-card, .lp-gallery, .lp-logos, .lp-spot__logo, .lp-flags__list) img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { display: block; max-width: 100% !important; height: auto !important; margin: 0 !important; border-radius: 0; }
.lp-media, .lp-banner, .lp-diagram { margin: 0; }
.lp-media > a, .lp-media > img { display: block; overflow: hidden; border-radius: var(--lp-radius); }
.heza-layout-prod .wp-block-post-content .lp-media img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 100% !important; transition: transform .4s ease; }
.lp-media a:hover img { transform: scale(1.02); }
.lp-media figcaption, .lp-diagram figcaption { margin-top: 10px; color: var(--lp-muted); font-size: 14px; line-height: 1.5; }

/* ---------- Cờ các nền kinh tế ---------- */
.lp-flags { padding-block: 28px; border-bottom: 1px solid var(--lp-line); text-align: center; }
.lp-flags__label { margin: 0 0 14px; color: var(--lp-muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lp-flags__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; max-width: 1080px; margin: 0 auto; padding: 0 20px; list-style: none; }
.lp-flags__list li { margin: 0; }
.heza-layout-prod .wp-block-post-content .lp-flags__list img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 48px !important; height: 32px !important; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

/* ---------- Địa điểm ---------- */
.lp-venue { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.heza-layout-prod .wp-block-post-content .lp-venue .lp-media img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { height: 100% !important; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-map { overflow: hidden; min-height: 320px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }
.lp-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------- Mục tiêu & định hướng: hỏi đáp + thẻ bên ---------- */
.lp-grid-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.lp-accordion { border-top: 1px solid var(--lp-line); }
.lp-qa { margin: 0; border-bottom: 1px solid var(--lp-line); }
.lp-qa > summary { display: grid; grid-template-columns: 44px 1fr 24px; gap: 8px; align-items: start; padding: 22px 0; list-style: none; cursor: pointer; }
.lp-qa > summary::-webkit-details-marker { display: none; }
.lp-qa > summary::after { content: ""; width: 12px; height: 12px; margin: 8px 0 0 6px; border-right: 2px solid var(--lp-blue); border-bottom: 2px solid var(--lp-blue); transform: rotate(45deg); transition: transform .2s ease; }
.lp-qa[open] > summary::after { margin-top: 13px; transform: rotate(225deg); }
.lp-qa__n { color: var(--lp-blue); font-family: var(--heza-font__main); font-size: 15px; font-weight: 700; line-height: 28px; }
.lp-qa__q { color: var(--lp-navy); font-family: var(--heza-font__main); font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.4; }
.lp-qa > summary:hover .lp-qa__q { color: var(--lp-blue); }
.lp-qa__a { max-width: 760px; padding: 0 0 26px 52px; color: var(--lp-ink); font-family: var(--heza-font__body); font-size: 16px; line-height: 1.75; }
.lp-qa__a p { margin: 0 0 14px; }
.lp-qa__a p:last-child { margin-bottom: 0; }
.lp-qa__a b, .lp-qa__a strong { color: var(--lp-navy); }
.lp-aside { display: grid; gap: 20px; position: sticky; top: 90px; }
.lp-card { overflow: hidden; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; }
.heza-layout-prod .wp-block-post-content .lp-card > img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 100% !important; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-card__body { padding: 18px 20px 20px; }
.lp-card__title { margin: 0; color: var(--lp-navy); font-family: var(--heza-font__main); font-size: 18px; font-weight: 700; line-height: 1.4; }
.lp-card__text { margin-top: 10px; color: var(--lp-muted); font-size: 15px; line-height: 1.65; }
.lp-card__text p { margin: 0 0 8px; }

/* ---------- Ấn phẩm ---------- */
.lp-banner { overflow: hidden; border-radius: var(--lp-radius); box-shadow: 0 10px 30px rgba(0, 24, 50, .08); }
.heza-layout-prod .wp-block-post-content .lp-banner img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 100% !important; }

/* ---------- Sơ đồ & đăng ký ---------- */
.lp-diagrams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-diagram { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; }
.lp-diagram > a { display: flex; align-items: center; justify-content: center; height: 300px; overflow: hidden; }
.heza-layout-prod .wp-block-post-content .lp-diagram img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: auto !important; max-height: 300px !important; object-fit: contain; }
.lp-diagram figcaption { margin-top: 12px; color: var(--lp-navy); font-weight: 600; text-align: center; }
.lp-chart { margin-top: 24px; padding: 24px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; }
.lp-chart .aiha-chart { margin: 0; }
.lp-chart .aiha-chart figcaption { color: var(--lp-muted); font-size: 14px; }
.lp-chart .aiha-chart__visual svg { display: block; width: 100%; height: auto; max-height: 420px; }

/* ---------- Tài liệu ---------- */
.lp-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-docs li { margin: 0; }
.lp-doc { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; height: 100%; box-sizing: border-box; padding: 18px 20px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.lp-doc:hover { border-color: var(--lp-blue); box-shadow: 0 8px 24px rgba(0, 123, 176, .12); }
.lp-doc .heza-fa { grid-row: 1 / span 2; color: #E16D84; font-size: 34px; }
.lp-doc__t { color: var(--lp-navy); font-family: var(--heza-font__main); font-size: 16px; font-weight: 700; }
.lp-doc__s { color: var(--lp-muted); font-size: 14px; }

/* ---------- Gian hàng ---------- */
.lp-booths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.heza-layout-prod .wp-block-post-content .lp-booths .lp-media img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { aspect-ratio: 3 / 2; object-fit: cover; }
.lp-spot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(18px, 2.5vw, 28px); border-radius: var(--lp-radius); background: #fff; }
.heza-layout-prod .wp-block-post-content .lp-spot .lp-media img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { aspect-ratio: 3 / 2; object-fit: cover; }
.lp-spot__logo { display: inline-block; margin-bottom: 18px; }
.heza-layout-prod .wp-block-post-content .lp-spot__logo img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 200px !important; }
.lp-spot__facts { margin: 0 0 22px; padding: 0; list-style: none; }
.lp-spot__facts li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--lp-line); color: var(--lp-ink); font-size: 15px; line-height: 1.6; }
.lp-spot__facts strong { color: var(--lp-navy); }
.lp-spot p { margin: 0; }

/* ---------- Hình ảnh ---------- */
.lp-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-gallery li { margin: 0; overflow: hidden; border-radius: var(--lp-radius); }
.heza-layout-prod .wp-block-post-content .lp-gallery img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 100% !important; height: 100% !important; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.lp-gallery a:hover img { transform: scale(1.03); }

/* ---------- Tin tức ---------- */
.lp-news .heza-posts--thumbs { margin: 0; padding: 0; }
.heza-layout-prod .lp-news ul.heza-posts--thumbs > li.heza-posts__item { display: flex; flex-direction: row; align-items: center; gap: 18px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--lp-line); }
.heza-layout-prod .lp-news ul.heza-posts--thumbs > li.heza-posts__item > a.heza-posts__thumb { flex: 0 0 160px; width: 160px; height: 100px !important; margin: 0 !important; overflow: hidden; border-radius: 8px; }
.heza-layout-prod .lp-news .heza-posts__thumb img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 160px !important; height: 100px !important; max-width: none !important; margin: 0 !important; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.heza-layout-prod .lp-news .heza-posts__title { color: var(--lp-navy); font-family: var(--heza-font__main); font-size: 17px; font-weight: 600; line-height: 1.45; text-align: left; text-decoration: none; }
.heza-layout-prod .lp-news .heza-posts__title:hover { color: var(--lp-blue); }

/* ---------- Đối tác ---------- */
.lp-section--partners { border-top: 1px solid var(--lp-line); }
.lp-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-logos li { margin: 0; }
.lp-logos :is(a, span) { display: flex; align-items: center; justify-content: center; height: 110px; padding: 16px 24px; box-sizing: border-box; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.lp-logos a:hover { border-color: var(--lp-blue); box-shadow: 0 8px 24px rgba(0, 123, 176, .12); }
.heza-layout-prod .wp-block-post-content .lp-logos img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: auto !important; max-height: 70px !important; object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lp-grid-main, .lp-venue, .lp-spot { grid-template-columns: 1fr; }
  .lp-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-diagrams, .lp-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .lp-intro { border-radius: 0; }
  .lp-facts { grid-template-columns: 1fr; gap: 16px; }
  .lp-facts li, .lp-facts li:first-child { padding: 0; border-left: 0; }
  .lp-aside, .lp-diagrams, .lp-docs, .lp-booths { grid-template-columns: 1fr; }
  .lp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-logos :is(a, span) { height: 84px; padding: 12px; }
  .lp-qa > summary { grid-template-columns: 34px 1fr 20px; }
  .lp-qa__a { padding-left: 0; }
  .heza-layout-prod .lp-news ul.heza-posts--thumbs > li.heza-posts__item > a.heza-posts__thumb { flex-basis: 110px; width: 110px; height: 72px !important; }
  .heza-layout-prod .lp-news .heza-posts__thumb img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { width: 110px !important; height: 72px !important; }
  .lp-diagram > a { height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .lp-media img, .lp-gallery img, .lp-qa > summary::after { transition: none !important; } }

/* ---------- Tinh chỉnh sau khi xem trực tiếp ---------- */
.heza-layout-prod .lp-news ul.heza-posts--thumbs { display: block; }
.lp-logos :is(a, span) { width: 100%; }
.lp-media figcaption, .lp-diagram figcaption { font-style: normal; }
.lp-spot__body { text-align: left; }
.lp-venue > .lp-media, .lp-venue > .lp-media > a { height: 100%; }
.heza-layout-prod .wp-block-post-content .lp-venue .lp-media img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { min-height: 320px; }
.lp-chart .aiha-chart, .lp-chart .aiha-chart__visual { width: 100%; max-width: none; text-align: left; }
.heza-layout-prod .wp-block-post-content .lp-chart .aiha-chart__visual svg { width: 100% !important; height: auto !important; max-width: none !important; }
.heza-layout-prod :is(.heza-page-main, .heza-single-kcn-main):has(.lp-section--partners) { padding-bottom: 0 !important; }

/* Thắng quy tắc toàn cục heza-gov.css (§4–5: a bọc ảnh fit-content + căn giữa, figcaption nghiêng/căn giữa — đều !important) */
.heza-layout-prod .wp-block-post-content :is(.lp-media, .lp-diagram, .lp-gallery li, .lp-spot__body) > a:has(> img:not(.emoji):not(.wp-smiley)) { width: 100% !important; margin: 0 !important; text-align: initial !important; }
.heza-layout-prod .wp-block-post-content .lp-spot__body > a.lp-spot__logo:has(> img:not(.emoji):not(.wp-smiley)) { display: inline-block !important; width: auto !important; margin: 0 0 18px !important; }
.heza-layout-prod .wp-block-post-content .lp-diagram > a:has(> img:not(.emoji):not(.wp-smiley)) { display: flex !important; }
.heza-layout-prod .wp-block-post-content .lp-logos li > a:has(> img:not(.emoji):not(.wp-smiley)) { display: flex !important; width: 100% !important; margin: 0 !important; }
.heza-layout-prod .wp-block-post-content :is(.lp-media, .lp-diagram) > figcaption { margin: 10px 0 0 !important; font-size: 14px !important; font-style: normal !important; }
.heza-layout-prod .wp-block-post-content .lp-media > figcaption { color: var(--lp-muted) !important; text-align: left !important; }
.heza-layout-prod .wp-block-post-content .lp-diagram > figcaption { color: var(--lp-navy) !important; font-weight: 600 !important; text-align: center !important; }

/* ---------- Sửa 2026-10-13 22:00 (góp ý trực tiếp) ---------- */
/* Quy tắc toàn cục ép figure margin 24px → ảnh địa điểm lệch so với bản đồ */
.heza-layout-prod .wp-block-post-content figure:is(.lp-media, .lp-banner, .lp-diagram) { margin: 0 !important; }
.heza-layout-prod .wp-block-post-content .lp-booths figure.lp-media, .heza-layout-prod .wp-block-post-content .lp-spot figure.lp-media { margin: 0 !important; }

/* Hỏi đáp + thẻ: thẻ bên dài hơn cột hỏi đáp → để lại khoảng trắng lớn.
   Hỏi đáp chiếm một cột đọc (≤ 880px), các thẻ xếp thành hàng 3 cột đều nhau bên dưới. */
.lp-grid-main { display: block; }
.lp-accordion { max-width: 880px; }
.lp-aside { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; margin-top: clamp(32px, 4vw, 48px); }
.lp-card { display: flex; flex-direction: column; }
.lp-card__body { flex: 1 1 auto; }
@media (max-width: 1024px) { .lp-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .lp-aside { grid-template-columns: 1fr; } }
/* Thẻ chỉ có tiêu đề (không mô tả): ảnh giãn hết chiều cao hàng, không để khoảng trống */
.heza-layout-prod .wp-block-post-content .lp-card:not(:has(.lp-card__text)) > img:not(.emoji):not(.wp-smiley):not([width="16"]):not([height="16"]) { flex: 1 1 auto; height: 100% !important; min-height: 220px; aspect-ratio: auto; }
.lp-card:not(:has(.lp-card__text)) > .lp-card__body { flex: 0 0 auto; }
