/* =====================================================================
   OPACONTROL — giao diện công khai
   ===================================================================== */
:root {
  --blue: #1b8046;
  --blue-600: #146a39;
  --blue-50: #edf7f0;
  --navy: #0b3b29;
  --navy-900: #062619;
  --red: #e8710a;
  --red-600: #c45c04;
  --ink: #142033;
  --text: #2d3a4d;
  --muted: #64748b;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 59, 41, .06), 0 2px 8px rgba(11, 59, 41, .05);
  --shadow: 0 10px 30px -10px rgba(11, 59, 41, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 59, 41, .30);
  --container: 1240px;
  --header-h: 52px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  overflow-x: clip;
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(27, 128, 70, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: radial-gradient(1200px 500px at 85% -10%, rgba(27, 128, 70, .45), transparent), var(--navy); color: #c9d6e8; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(232, 113, 10, .6); }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-600); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Topbar & Header ---------- */
/* ---------- Đầu trang: thanh trên · hàng logo · thanh menu (chỉ thanh menu dính lại khi cuộn) ---------- */
.topbar { background: var(--navy-900); color: #bcd5c6; font-size: .8rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: #d7e9dd; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; opacity: .85; }
.topbar__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.topbar__links a { font-weight: 500; }
.topbar__contact { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar__contact strong { color: #fff; letter-spacing: .02em; }
.topbar__social { width: 26px; height: 26px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }

.header { --main-h: 92px; position: sticky; top: calc(-1 * var(--main-h)); z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header__main .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--main-h); }
.logo { flex: none; display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 0; }
.logo img { height: 62px; width: auto; }
.logo__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.25; padding-left: 14px; border-left: 2px solid var(--blue-50); min-width: 0; }
.logo__text small { font-size: .74rem; font-weight: 600; letter-spacing: .12em; color: var(--blue); }
.logo__text strong { font-size: 1.02rem; font-weight: 800; color: var(--navy); letter-spacing: .01em; }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__cta svg { width: 18px; height: 18px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

.navbar { background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%); }
.navbar .container { display: flex; align-items: center; height: var(--header-h); }
.navbar__mini { width: 0; overflow: hidden; opacity: 0; transition: width .3s var(--ease), opacity .3s, margin .3s; display: flex; align-items: center; }
.header.is-scrolled .navbar__mini { width: 35px; opacity: 1; margin-right: 10px; }
.navbar__mini img { height: 32px; width: auto; }
.nav { flex: 1; min-width: 0; }
.nav > ul { display: flex; align-items: stretch; justify-content: space-between; list-style: none; margin: 0; padding: 0; height: var(--header-h); position: relative; }
.nav li { position: relative; }
.nav > ul > li { display: flex; }
.nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 0 10px; color: #eaf7ee; font-weight: 700; font-size: .76rem; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s; }
.nav > ul > li > a:hover, .nav > ul > li.is-active > a, .nav > ul > li:focus-within > a { color: #fff; background: rgba(255,255,255,.12); }
.nav > ul > li.is-active > a { box-shadow: inset 0 -3px 0 #f6a03b; }
.nav__home svg { width: 18px; height: 18px; }
.nav .has-children > a::after { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 3px; opacity: .7; }
.nav .submenu { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px; border-top: 3px solid #f6a03b;
  box-shadow: var(--shadow-lg); padding: 8px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; z-index: 5; }
/* Menu xổ của các mục cuối thanh: canh theo mép phải để không thò ra ngoài màn hình (gây thanh cuộn ngang ở 1280–1536px) */
.nav > ul > li:nth-last-child(-n+3) > .submenu:not(.submenu--mega) { left: auto; right: 0; }
.nav li:hover > .submenu, .nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .submenu a { display: block; padding: 9px 12px; color: var(--text); font-size: .9rem; border-radius: 8px; transition: background .15s, color .15s, padding .15s; }
.nav .submenu a:hover { background: var(--blue-50); color: var(--blue); padding-left: 16px; }
/* Menu lớn (3 cấp): mỗi mục cấp 2 là một cột, mục cấp 3 nằm dưới */
.nav .has-children:has(.submenu--mega) { position: static; }
.nav .submenu--mega { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 6px 18px; padding: 18px 20px 14px; left: 0; right: 0; width: auto; }
.mega-col { min-width: 0; padding: 0 0 8px; }
.mega-col ul { list-style: none; margin: 4px 0 0; padding: 0; }
.nav .mega-col__head { font-weight: 800; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 9px; border-bottom: 2px solid var(--blue-50); border-radius: 0; margin-bottom: 4px; }
.nav .mega-col__head:hover { padding-left: 10px; background: none; color: var(--blue); }
.nav .mega-col li a { padding: 7px 10px; font-size: .88rem; }
.drawer nav .submenu .submenu { margin-left: 4px; }
.drawer nav .submenu .has-children > .sub-toggle { top: 0; }

.search-panel { position: fixed; inset: 0; z-index: 200; background: rgba(7, 28, 56, .6); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s linear .22s; }
.search-panel.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.search-panel form { width: min(720px, 100%); display: flex; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: translateY(-14px) scale(.97); opacity: 0; transition: transform .32s var(--ease), opacity .2s ease; }
.search-panel.is-open form { transform: none; opacity: 1; }
.search-panel input { flex: 1; border: 0; padding: 20px 24px; font-size: 1.15rem; outline: none; min-width: 0; }
.search-panel button { border: 0; background: var(--blue); color: #fff; padding: 0 26px; cursor: pointer; font-weight: 600; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; transition: visibility 0s linear .38s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(7, 28, 56, .55); opacity: 0; transition: opacity .3s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; box-shadow: -18px 0 40px -20px rgba(7, 28, 56, .5); }
.drawer.is-open .drawer__panel { transform: none; }
/* Các mục menu hiện lần lượt khi mở */
.drawer nav > ul > li { opacity: 0; transform: translateX(18px); transition: opacity .3s ease, transform .4s var(--ease); }
.drawer.is-open nav > ul > li { opacity: 1; transform: none; transition-delay: calc(.06s + var(--i, 0) * .03s); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul { padding: 8px 12px; }
.drawer nav a { display: block; padding: 12px 10px; color: var(--ink); font-weight: 600; border-radius: 8px; }
.drawer nav .submenu { height: 0; overflow: hidden; padding-left: 12px; border-left: 2px solid var(--line); margin-left: 10px; opacity: 0; visibility: hidden;
  transition: height .3s var(--ease), opacity .25s ease, visibility 0s linear .3s; }
.drawer nav .submenu a { font-weight: 500; font-size: .93rem; padding: 8px 10px; color: var(--text); }
.drawer nav li.is-open > .submenu { height: auto; opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer nav .has-children { position: relative; }
.drawer nav .sub-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; }
.drawer nav .sub-toggle::before { content: ''; display: block; margin: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.drawer nav li.is-open > .sub-toggle::before { transform: rotate(-135deg); }
.drawer__foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #d6e2f3; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; transform: scale(1.06); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(7, 28, 56, .97) 0%, rgba(11, 59, 41, .9) 45%, rgba(27, 128, 70, .55) 100%); }
.hero::after { content: ''; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(84, 183, 48, .28), transparent 65%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff6b6b, #ffb199); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.1rem; max-width: 600px; }
.hero .eyebrow { color: #b8f0c9; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero__card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 28px; backdrop-filter: blur(10px); }
.hero__card h2 { color: #fff; font-size: 1.25rem; }
.lookup-inline { display: flex; gap: 8px; margin-top: 12px; }
.lookup-inline input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .95); color: var(--ink); }
.trust-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.trust-list li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(46, 204, 113, .18); color: #4ade80; display: grid; place-items: center; font-size: .75rem; font-weight: 700; margin-top: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: -48px; position: relative; z-index: 2; }
.stat { background: #fff; padding: 26px 22px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); color: var(--blue); line-height: 1.1; font-weight: 800; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.service-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden; }
.service-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--red)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin: 6px 0 0; font-size: 1.15rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .95); color: var(--blue); font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-size: 1.05rem; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 10px; font-size: .82rem; color: var(--muted); display: flex; gap: 14px; }
.post-card--h { flex-direction: row; }
.post-card--h .post-card__media { width: 38%; aspect-ratio: auto; min-height: 120px; flex: none; }
.post-card--h .post-card__body { padding: 14px 16px; }
.post-card--h .post-card__title { font-size: .98rem; -webkit-line-clamp: 2; }
.no-image { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), #fdecec); color: var(--blue); font-weight: 800; letter-spacing: .1em; }

.news-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
/* Dịch vụ nổi bật: thẻ có ảnh */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature-card:hover .feature-card__img img { transform: scale(1.05); }
.feature-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.feature-card h3 { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.feature-card .link-arrow { margin-top: auto; font-size: .88rem; }
/* Giải pháp theo lĩnh vực: ô ảnh có chữ */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Số ô chia 4 dư 3 (vd 11 lĩnh vực): ô đầu rộng gấp đôi để các hàng luôn đầy */
.sector-tile:first-child:nth-last-child(4n+3) { grid-column: span 2; }
@media (max-width: 1024px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } .sector-tile:first-child:nth-last-child(4n+3) { grid-column: auto; } .sector-tile:first-child:nth-last-child(3n+2) { grid-column: span 2; } }
.sector-tile { position: relative; display: flex; align-items: flex-end; min-height: 150px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; background: var(--navy); }
.sector-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.sector-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,38,25,0) 30%, rgba(6,38,25,.85) 100%); }
.sector-tile span { padding: 14px 16px; font-weight: 700; font-size: .98rem; line-height: 1.35; }
.sector-tile:hover { color: #fff; }
.sector-tile:hover img { transform: scale(1.06); }
/* Dải tài liệu dưới tin tổng hợp */
.docs-strip { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.docs-strip h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink); white-space: nowrap; }
.docs-strip h3 svg { width: 18px; height: 18px; color: var(--blue); }
.docs-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.docs-strip li a { display: block; color: var(--text); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-strip li a:hover { color: var(--blue); }
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } .docs-strip { grid-template-columns: 1fr; } .docs-strip ul { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .feature-card__body { padding: 12px; } .feature-card h3 { font-size: .9rem; } .sector-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .sector-tile { min-height: 120px; } .sector-tile:first-child:nth-last-child(3n+2) { grid-column: auto; } .sector-tile:first-child:nth-last-child(2n+1) { grid-column: span 2; } }
.news-layout__list { display: grid; gap: 16px; }
.news-layout .post-card--featured .post-card__media { aspect-ratio: 16 / 9; }
.news-layout .post-card--featured .post-card__title { font-size: 1.35rem; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { position: relative; }
/* Trình chiếu ảnh văn phòng */
.gallery { position: relative; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.split__media .gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; opacity: 0; transition: opacity .9s var(--ease); }
.split__media .gallery img.is-active { opacity: 1; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 1; }
.gallery__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.gallery__dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }
.split__media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; }
.split__media .badge-float { position: absolute; left: -20px; bottom: 28px; background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.badge-float strong { font-size: 1.8rem; color: var(--red); line-height: 1; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process__item { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.process__item::before { counter-increment: step; content: '0' counter(step); display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process__item h3 { font-size: 1.1rem; }
.process__item p { margin: 0; font-size: .93rem; }

/* Clients marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: all .3s; }
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA + forms */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__contact { display: grid; gap: 14px; margin-top: 24px; }
.cta__contact a { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; font-size: 1.05rem; }
.cta__contact span.ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.form-card { background: #fff; color: var(--text); border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-lg); }
.form-card h3 { margin-bottom: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27, 128, 70, .12); }
.field textarea { min-height: 110px; resize: vertical; }
.field .error { color: var(--red); font-size: .82rem; margin-top: 4px; display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 500; display: none; }
.form-msg.is-ok { display: block; background: #e8f8ef; color: #12733d; }
.form-msg.is-err { display: block; background: #fdecec; color: var(--red-600); }

/* ---------- Page header & breadcrumbs ---------- */
.page-hero { position: relative; background: linear-gradient(120deg, var(--navy-900), var(--navy) 55%, var(--blue-600)); color: #c9d6e8; padding: clamp(36px, 5vw, 64px) 0; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(84, 183, 48, .28), transparent 65%); }
.page-hero h1 { color: #fff; margin: 12px 0 10px; max-width: 900px; }
.page-hero p { max-width: 760px; margin: 0; font-size: 1.05rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .85rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; opacity: .5; }
.breadcrumbs a { color: #9fc3ea; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; opacity: .85; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .88rem; font-weight: 500; }
.chips a:hover, .chips a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-hero .chips { margin-top: 22px; }
.page-hero .chips a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #e1eaf6; }
.page-hero .chips a:hover, .page-hero .chips a.is-active { background: #fff; color: var(--navy); }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 24px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget h2, .widget h3 { font-size: 1.02rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.widget--cta { background: linear-gradient(140deg, var(--navy), var(--blue-600)); color: #d6e2f3; border: 0; }
.widget--cta h3 { color: #fff; border-color: rgba(255, 255, 255, .15); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.mini-posts { display: grid; gap: 14px; }
.mini-post { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; }
.mini-post img, .mini-post .no-image { width: 78px; height: 58px; object-fit: cover; border-radius: 8px; font-size: .6rem; }
.mini-post a { color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-post a:hover { color: var(--blue); }

/* ---------- Article / prose ---------- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--red)); z-index: 150; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; color: #a9bdd8; margin-top: 14px; }
.article-cover { margin: -40px 0 28px; position: relative; z-index: 2; }
.article-cover img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); max-height: 520px; object-fit: cover; }
.prose { font-size: 1.04rem; line-height: 1.8; color: #263345; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.8em 0 .7em; padding-left: 14px; border-left: 4px solid var(--blue); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
/* Bài gốc hay căn đều (justify) cả tiêu đề → giãn chữ xấu; tiêu đề luôn căn trái. Tiêu đề căn giữa thì bỏ vạch trái */
.prose :is(h2, h3, h4, h5, h6)[style*="justify"] { text-align: left !important; }
.prose h2[style*="center"] { border-left: 0; padding-left: 0; }
.prose :is(h2, h3, h4) [style*="font-size"] { font-size: inherit !important; }
@media (max-width: 640px) { .prose [style*="justify"] { text-align: left !important; } }
.prose h3 { margin: 1.5em 0 .6em; color: var(--navy); }
.prose h4 { margin: 1.3em 0 .5em; }
.prose img { border-radius: 12px; margin: 1.4em auto; height: auto !important; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: -.6em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(27, 128, 70, .35); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th, .prose tr:first-child td strong { background: var(--bg-soft); color: var(--ink); }
.prose tbody tr:nth-child(even) td { background: #fafcfe; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
/* Khung xem tài liệu (Google Drive): khổ dọc, cao tối đa gần một màn hình */
.prose .doc-embed { margin: 1.4em 0 1.8em; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.prose .doc-embed iframe { display: block; width: 100%; aspect-ratio: 1 / 1.3; max-height: 82vh; min-height: 420px; border-radius: 10px; background: #fff; }
.prose .doc-embed figcaption { display: flex; justify-content: flex-end; margin-top: 10px; }
.prose .doc-embed figcaption .btn { margin: 0; padding: 9px 18px; font-size: .9em; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
/* Tuỳ chỉnh từ bộ công cụ soạn thảo (ảnh, liên kết) */
.prose .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.prose figure.aligncenter, .prose img.aligncenter { display: block; }
.prose figure.alignleft img, .prose figure.alignright img, .prose figure.aligncenter img { margin: 0; width: 100%; }
.prose figure figcaption { margin-top: .6em; }
.prose h2, .prose h3, .prose h4, .prose table, .prose .table-wrap, .prose hr { clear: both; }
.prose .img-rounded { border-radius: 16px; }
.prose .img-square { border-radius: 0; }
.prose .img-circle { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.prose .img-shadow { box-shadow: 0 14px 34px -12px rgba(11, 59, 41, .35); }
.prose .img-border { border: 1px solid var(--line); padding: 4px; background: #fff; }
.prose a.btn { text-decoration: none; margin: .3em .3em .3em 0; }
.prose a.btn--primary, .prose a.btn--blue { color: #fff; }
.prose a.link-plain { text-decoration: none; }
.prose a.link-bold { font-weight: 700; }
@media (max-width: 640px) { .prose .alignleft, .prose .alignright { float: none; max-width: 100%; margin: 1.2em auto; } }
.prose .callout { margin: 1.6em 0; padding: 16px 20px; border-radius: 12px; background: var(--blue-50); border-left: 4px solid var(--blue); }
.prose .callout-warning { background: #fff8e6; border-left-color: #d97706; }
.prose .callout-success { background: #eaf7ee; border-left-color: #15803d; }
.prose .callout > :first-child { margin-top: 0; }
.prose .callout > :last-child { margin-bottom: 0; }
/* Hộp tải tài liệu: chữ bên trái, nút bên phải; điện thoại xếp dọc */
.prose .callout-file { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); box-shadow: 0 10px 26px -18px rgba(11, 59, 41, .45); }
.prose .callout-file::before { content: 'PDF'; flex: none; display: grid; place-items: center; width: 46px; height: 54px; border-radius: 6px 14px 6px 6px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.prose .callout-file > p { margin: 0; }
.prose .callout-file > p:first-of-type { flex: 1 1 220px; line-height: 1.45; color: #5b6b80; font-size: .92em; }
.prose .callout-file > p:first-of-type strong { color: var(--ink); font-size: 1.08em; }
.prose .callout-file a.btn { margin: 0; }
/* Thanh chuyển nhanh tới các phần trong trang: dính dưới đầu trang khi cuộn, mục đang xem được tô đậm */
.prose .link-tabs { position: sticky; isolation: isolate; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; gap: 6px; margin: 1.2em 0 1.6em; padding: 6px; list-style: none; overflow-x: auto; scrollbar-width: none; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 22px -16px rgba(11, 59, 41, .5); }
.prose .link-tabs::-webkit-scrollbar { display: none; }
.prose .link-tabs li { margin: 0; flex: none; }
.prose .link-tabs li::marker { content: none; }
.prose .link-tabs a { display: block; padding: 7px 14px; border-radius: 999px; color: var(--ink); font-size: .9em; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.prose .link-tabs a:hover { background: var(--blue-50); color: var(--blue); }
.prose .link-tabs a.is-active { background: var(--blue); color: #fff; }
.prose .link-tabs.has-pill a.is-active { background: transparent; }
.prose .link-tabs li, .prose .link-tabs a { position: relative; z-index: 1; }
.prose .link-tabs .link-tabs__pill { position: absolute; z-index: 0; top: 6px; left: 0; height: calc(100% - 12px); width: 1px; border-radius: 999px; background: var(--blue);
  transform-origin: 0 0; pointer-events: none; opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .2s; }
.prose .link-tabs .link-tabs__pill.is-on { opacity: 1; }
/* Khi bấm chuyển mục, chừa chỗ cho cả đầu trang lẫn thanh chuyển nhanh để tiêu đề không bị che */
html:has(.prose .link-tabs) { scroll-padding-top: calc(var(--header-h) + 84px); }

.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 28px; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); }
.toc[open] summary::after { content: '−'; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; display: grid; gap: 4px; }
.toc li { font-size: .93rem; }
.toc li.lv3 { padding-left: 18px; font-size: .88rem; }
.toc a { color: var(--text); display: block; padding: 4px 8px; border-radius: 6px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.is-active { color: var(--blue); background: #fff; border-left-color: var(--blue); }
.sidebar .toc { margin: 0; max-height: calc(100vh - var(--header-h) - 60px); overflow-y: auto; }

.share { display: flex; align-items: center; gap: 10px; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.share span { font-weight: 600; color: var(--ink); margin-right: 4px; }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.share svg { width: 18px; height: 18px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.post-nav a small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav a:hover { border-color: var(--blue); color: var(--blue); }
.post-nav .next { text-align: right; }
.service-cta { margin: 36px 0; padding: 28px; border-radius: 18px; background: linear-gradient(130deg, var(--navy), var(--blue-600)); color: #d6e2f3; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.service-cta h2 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; border: 0; padding: 0; }
.service-cta p { margin: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: #fff; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .gap { border: 0; background: none; }

/* Lookup — tra cứu giấy chứng nhận */
.lookup-box { max-width: 880px; margin: -60px auto 0; position: relative; z-index: 3; }
.lookup-form { display: flex; gap: 10px; }
.lookup-form input { flex: 1; min-width: 0; padding: 16px 18px; font-size: 1.05rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); letter-spacing: .02em; }
.lookup-form input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27, 128, 70, .12); }
.lookup-tips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .88rem; color: var(--muted); }
.lookup-tips li { position: relative; padding-left: 22px; }
.lookup-tips svg { position: absolute; left: 0; top: .3em; width: 15px; height: 15px; color: #16a34a; }
.lookup-tips b { color: var(--ink); font-weight: 600; }
.lookup-help { margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.cert-result { margin-top: 22px; display: none; }
.cert-result.is-show { display: block; animation: fade .3s; }
.cert-loading { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--bg-soft); color: var(--muted); font-weight: 500; }
.cert-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--blue); animation: cert-spin .8s linear infinite; flex: none; }
@keyframes cert-spin { to { transform: rotate(360deg); } }

.cert-card { --tone: #15803d; --tone-bg: #ecfdf3; --tone-line: #bbf7d0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.cert-card.is-warn { --tone: #b45309; --tone-bg: #fff7e6; --tone-line: #fde2b0; }
.cert-card.is-bad { --tone: var(--red-600); --tone-bg: #fdecec; --tone-line: #f8c9cb; }
.cert-card.is-none { --tone: var(--muted); --tone-bg: var(--bg-soft); --tone-line: var(--line); }
.cert-ico { display: inline-grid; place-items: center; flex: none; }
.cert-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cert-card__status { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--tone-bg); border-bottom: 1px solid var(--tone-line); color: var(--tone); }
.cert-card__status > .cert-ico { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--tone); color: #fff; box-shadow: 0 8px 18px -8px var(--tone); }
.cert-card__status-text { display: grid; gap: 2px; min-width: 0; }
.cert-card__status strong { font-size: 1.08rem; line-height: 1.35; color: var(--tone); }
.cert-card__status span { font-size: .9rem; color: var(--text); opacity: .85; }
.cert-card.is-compact .cert-card__status { border-bottom: 0; }

.cert-card__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.cert-card__top:has(> :only-child) { grid-template-columns: 1fr; }
.cert-card__id { display: grid; gap: 4px; min-width: 0; }
.cert-card__id small { color: var(--muted); font-size: .82rem; }
.cert-no { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; color: var(--navy); letter-spacing: .01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cert-card__service { justify-self: start; margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-size: .85rem; font-weight: 600; }

.cert-validity { padding: 16px 18px; border-radius: 14px; background: var(--bg-soft); }
.cert-validity__ends { display: flex; justify-content: space-between; gap: 12px; }
.cert-validity__ends > div { display: grid; }
.cert-validity__ends > div:last-child { text-align: right; }
.cert-validity__ends small { color: var(--muted); font-size: .78rem; }
.cert-validity__ends b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cert-validity__track { height: 8px; margin: 10px 0 8px; border-radius: 99px; background: #dfe7f1; overflow: hidden; }
.cert-validity__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--tone)); }
.cert-validity__note { margin: 0; font-size: .85rem; font-weight: 600; color: var(--tone); }

.cert-fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cert-field { padding: 14px 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.cert-field:nth-child(odd):not(.is-wide) { border-right: 1px solid var(--line); }
.cert-field.is-wide { grid-column: 1 / -1; }
.cert-field dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 3px; font-size: .84rem; color: var(--muted); }
.cert-field dt small { font-size: .76rem; font-style: italic; opacity: .8; }
.cert-field dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.cert-field dd.is-strong { font-size: 1.08rem; font-weight: 700; color: var(--navy); }
.cert-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--tone-bg); color: var(--tone); border: 1px solid var(--tone-line); font-size: .88rem; font-weight: 700; }
.cert-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.cert-sites { padding: 20px 22px 6px; }
.cert-sites h3 { margin: 0 0 12px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cert-sites__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cert-sites__list li { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfe; }
.cert-sites__no { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 700; }
.cert-sites__list li > div { min-width: 0; }
.cert-sites__fn { display: inline-block; margin-bottom: 2px; font-size: .78rem; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .04em; }
.cert-sites__addr { margin: 0; color: var(--ink); font-weight: 500; }
.cert-sites__en { margin: 2px 0 0; font-size: .88rem; color: var(--muted); font-style: italic; }

.cert-card__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 22px 4px; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.cert-card__actions .cert-ico { width: 17px; height: 17px; }
.cert-card__foot { display: flex; gap: 10px; align-items: flex-start; margin: 14px 22px 22px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-size: .84rem; line-height: 1.55; }
.cert-card__foot .cert-ico { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }
.cert-card__foot p { margin: 0; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
a.contact-card { color: var(--text); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.contact-card h2 { font-size: .95rem; margin: 0 0 4px; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.contact-card strong { color: var(--blue); font-size: 1.15rem; }
.contact-card small { color: var(--muted); }
.contact-card .ic--qr { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 2px; }
.contact-card .ic--qr img { width: 100%; height: 100%; object-fit: contain; }
.contact-visit { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.contact-visit h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); margin: 0 0 8px; }
.contact-visit h2 svg { width: 20px; height: 20px; color: var(--blue); }
.contact-visit p { margin: 0; }
.contact-offices { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.contact-offices li { display: grid; }
.contact-offices strong { color: var(--navy); text-transform: uppercase; font-size: .8rem; letter-spacing: .03em; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .ic { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .95rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Footer */
.footer { background: var(--navy-900); color: #a9c7b6; font-size: .93rem; position: relative; }
.footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), #54b730, #f6a03b); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr; gap: 48px; padding: 64px 0 40px; }
.footer h2 { color: #fff; font-size: .95rem; margin: 0 0 18px; letter-spacing: .06em; text-transform: uppercase; }
.footer a { color: #cfe5d7; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__logo { display: inline-block; margin-bottom: 14px; }
.footer__logo img { height: 80px; width: auto; display: block; }
.footer .footer__org { font-size: 1.02rem; line-height: 1.45; letter-spacing: .02em; max-width: 30ch; }
.footer__offices { gap: 14px !important; }
.footer__offices li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.footer__offices li::before { content: '✧'; position: absolute; left: 0; top: 0; color: #f6a03b; }
.footer__offices strong { color: #fff; text-transform: uppercase; font-size: .84rem; letter-spacing: .04em; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: transform .2s, color .2s; }
.footer__links a::before { content: ''; width: 6px; height: 6px; border-top: 2px solid #f6a03b; border-right: 2px solid #f6a03b; transform: rotate(45deg); }
.footer__links a:hover { transform: translateX(3px); }
.footer__fanpage { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.footer__fanpage svg { width: 22px; height: 22px; flex: none; color: #fff; }
.footer__contact { gap: 14px !important; }
.footer__contact li { display: grid; gap: 2px; }
.footer__contact small { color: #a9c7b6; font-size: .8rem; }
.footer__contact a { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.footer__qr { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer__qr img { width: 92px; height: 92px; border-radius: 10px; background: #fff; padding: 4px; }
.footer__qr span { font-size: .85rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer__social { display: inline-flex; align-items: center; gap: 14px; }
.footer__social svg { width: 18px; height: 18px; }

/* Nút liên hệ nổi: thu gọn mặc định, bấm để bung các kênh liên hệ (không che nội dung) */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.fab__toggle { pointer-events: auto; }
/* Khung menu thu gọn vẫn chiếm chỗ phía trên nút — không được chặn chạm vào nội dung bên dưới */
.fab__menu, .fab__item { pointer-events: none; }
.fab.is-open .fab__item { pointer-events: auto; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__item { display: flex; align-items: center; gap: 10px; color: #fff; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.6); transform-origin: right bottom;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
.fab.is-open .fab__item { opacity: 1; visibility: visible; transform: none; transition-delay: calc(var(--k, 0) * 45ms), calc(var(--k, 0) * 45ms), 0s; }
.fab.is-open .fab__item:nth-last-child(1) { --k: 0; } .fab.is-open .fab__item:nth-last-child(2) { --k: 1; } .fab.is-open .fab__item:nth-last-child(3) { --k: 2; }
.fab__label { padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); }
.fab__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.fab__item:hover .fab__ic { transform: scale(1.08); }
.fab__item:hover { color: #fff; }
.fab__ic svg { width: 22px; height: 22px; }
.fab__ic--zalo { background: #0068ff; font-weight: 800; font-size: .76rem; }
.fab__ic--mess { background: linear-gradient(135deg, #00b2ff, #006aff); }
.fab__ic--call { background: var(--red); }
.fab__toggle { position: relative; width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: 0 12px 26px -10px rgba(11, 59, 41, .7); transition: transform .2s, background .3s; }
.fab__toggle:hover { transform: scale(1.06); }
.fab__toggle svg { width: 24px; height: 24px; }
.fab__open, .fab__close { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.fab__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab.is-open .fab__open { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .fab__close { opacity: 1; transform: none; }
.fab.is-open .fab__toggle { background: var(--ink); }
.fab__top { position: absolute; right: 68px; bottom: 6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.fab__top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__top { opacity: 0; pointer-events: none; }
.fab__top svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .fab { right: 12px; bottom: 12px; } .fab__toggle { width: 52px; height: 52px; } .fab__ic { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .fab__item, .fab__open, .fab__close { transition: none; } }

/* 404 */
.notfound { text-align: center; padding: 80px 0 40px; }
.notfound .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
.topbar .container, .header .container { max-width: 1400px; }
.logo__short { display: none; }
@media (max-width: 1439px) {
  .nav > ul > li > a { font-size: .71rem; padding: 0 7px; letter-spacing: 0; }
}
@media (max-width: 1360px) {
  .nav > ul > li > a { font-size: .68rem; padding: 0 6px; }
  .nav .has-children > a::after { margin-left: 1px; }
}
@media (max-width: 1279px) {
  .navbar { display: none; }
  .header { top: 0; }
  .menu-toggle { display: grid; }
}
@media (max-width: 900px) {
  .header { --main-h: 72px; }
  .logo img { height: 48px; }
  .logo__text strong { display: none; }
  .logo__short { display: block; font-size: 1.05rem; font-weight: 800; color: var(--navy); }
  .header__cta { display: none; }
}
@media (max-width: 1024px) {
  .hero .container, .split, .cta, .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .grid--4, .process { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .news-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
}
@media (max-width: 640px) {
  :root { --header-h: 52px; }
  .container { padding: 0 16px; }
  .topbar__links, .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .logo img { height: 42px; }
  .logo__text { padding-left: 10px; }
  .grid--3, .grid--2, .grid--4, .process, .footer__top { grid-template-columns: 1fr; }
  .form-grid, .check-list { grid-template-columns: 1fr; }
  .post-card--h .post-card__media { width: 40%; }
  .lookup-form, .lookup-inline { flex-direction: column; }
  .cert-card__top, .cert-fields { grid-template-columns: 1fr; }
  .cert-field:nth-child(odd):not(.is-wide) { border-right: 0; }
  .cert-card__status, .cert-card__top, .cert-field, .cert-sites, .cert-card__actions { padding-left: 16px; padding-right: 16px; }
  .cert-card__foot { margin: 14px 16px 16px; }
  .lookup-tips { flex-direction: column; }
  .service-cta { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  /* Điện thoại: ảnh nhỏ, huy hiệu nổi sẽ che mất ảnh → đặt ngay dưới ảnh, chỉ chạm nhẹ mép */
  .split__media .badge-float { position: relative; left: auto; bottom: auto; width: fit-content; max-width: calc(100% - 32px); margin: -18px 16px 0; padding: 12px 16px; }
  .split__media .badge-float strong { font-size: 1.5rem; }
  .hero__card { padding: 20px; }
}
/* Tới mục (#lichsu…): tiêu đề loé nền nhẹ để mắt bắt đúng chỗ */
.is-arrived { animation: arrive 1.4s ease-out; border-radius: 8px; }
@keyframes arrive { 0%, 25% { background-color: rgba(27, 128, 70, .14); box-shadow: 0 0 0 8px rgba(27, 128, 70, .14); } 100% { background-color: transparent; box-shadow: 0 0 0 8px transparent; } }

/* Chuyển trang (View Transitions giữa hai trang): trang cũ mờ đi, trang mới trượt lên nhẹ; đầu trang đứng yên.
   Trình duyệt chưa hỗ trợ thì chuyển trang bình thường. Chỉ dùng opacity/transform → chạy trên GPU. */
@view-transition { navigation: auto; }
.header { view-transition-name: site-header; }
.fab { view-transition-name: site-fab; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .8, .2, 1) .04s both; }
::view-transition-group(site-header), ::view-transition-group(site-fab) { animation-duration: .3s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
/* Ảnh bài viết: thẻ bài ở trang danh sách "bay" thành ảnh bìa của bài */
.article-cover img { view-transition-name: post-cover; }
html.is-locked { overflow: hidden; scrollbar-gutter: stable; }
::view-transition-group(post-cover) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(post-cover), ::view-transition-new(post-cover) { height: 100%; object-fit: cover; overflow: hidden; }

/* Xem ảnh lớn trong bài */
.prose img.is-zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 400; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(7, 18, 36, .9); opacity: 0; transition: opacity .3s ease; }
.lightbox.is-open .lightbox__bg { opacity: 1; }
.lightbox__img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; border-radius: 6px; cursor: zoom-out; will-change: transform; transition: transform .38s var(--ease); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.lightbox__cap { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(760px, 92vw); color: #e8eef6; font-size: .92rem; text-align: center; opacity: 0; transition: opacity .3s ease .15s; }
.lightbox.is-open .lightbox__cap { opacity: 1; }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .25s ease, background .2s; }
.lightbox.is-open .lightbox__close { opacity: 1; }
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }

/* Người dùng bật "giảm chuyển động" (vd. Windows tắt "Show animations in Windows"): theo khuyến nghị trợ năng,
   GIẢM chứ không bỏ hết — bỏ trượt / phóng / xoay / chuyển động lặp, giữ mờ dần ngắn để vẫn có cảm giác chuyển cảnh. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Chuyển trang: chỉ mờ chéo, không trượt; ảnh bìa không "bay" */
  ::view-transition-old(root) { animation: vt-fade-out .18s ease both; }
  ::view-transition-new(root) { animation: vt-fade-in .26s ease both; }
  .article-cover img { view-transition-name: none; }
  /* Xuất hiện khi cuộn: chỉ mờ dần */
  .reveal, .reveal-stagger > * { transform: none !important; transition-duration: .5s; }
  /* Hộp thoại: mờ dần thay cho trượt */
  .search-panel form { transform: none; }
  .drawer__panel { transform: none; opacity: 0; transition: opacity .22s ease; }
  .drawer.is-open .drawer__panel { opacity: 1; }
  .drawer nav > ul > li { transform: none; }
  .nav .submenu { transform: none; }
  .lightbox__img { transition: opacity .22s ease; }
  /* Chuyển động lặp / trang trí: tắt */
  .fab__call::after, .marquee__track { animation: none; }
  .service-card:hover, .post-card:hover, .btn:hover, .opa-org__node:hover { transform: none; }
}
@media print {
  .topbar, .header, .footer, .fab, .sidebar, .share, .service-cta, .read-progress { display: none !important; }
  .layout { display: block; }
  /* Tra cứu giấy chứng nhận: chỉ in phiếu kết quả A4 riêng (.cert-print), không in trang web */
  html.has-cert-print body > :not(.cert-print) { display: none !important; }
  html.has-cert-print body { background: #fff !important; margin: 0; }
  html.has-cert-print .cert-print { display: block; }
}

/* ---------- Phiếu in kết quả tra cứu (A4, vừa một trang) ---------- */
/* Lề trang đặt trong phiếu (@page margin 0): trình duyệt không in thêm dòng tiêu đề, ngày giờ, đường dẫn ở mép giấy */
@page cert { size: A4 portrait; margin: 0; }
.cert-print { display: none; page: cert; width: 210mm; padding: 13mm 13mm 12mm; box-decoration-break: clone; -webkit-box-decoration-break: clone; box-sizing: border-box; background: #fff; color: #111827;
  font: 9.4pt/1.42 'Be Vietnam Pro', Arial, sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  --tone: #15803d; --tone-bg: #effaf3; --tone-line: #bbe5c9; }
.cert-print.is-measuring { display: block; position: absolute; left: -10000px; top: 0; visibility: hidden; }
.cert-print.is-warn { --tone: #b45309; --tone-bg: #fff8eb; --tone-line: #f5d9a8; }
.cert-print.is-bad { --tone: #b91c1c; --tone-bg: #fef2f2; --tone-line: #f5c2c2; }
.cert-print * { box-sizing: border-box; }
.cert-print p, .cert-print h1, .cert-print h2 { margin: 0; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 8mm; padding-bottom: 3.2mm; border-bottom: .7mm solid #0b3b29; }
.cp-logo { height: 14mm; width: auto; display: block; flex: none; }
.cp-org { text-align: right; font-size: 7.8pt; line-height: 1.5; color: #4b5563; max-width: 105mm; }
.cp-org b { display: block; font-size: 9pt; color: #0b3b29; text-transform: uppercase; letter-spacing: .02em; }
.cp-org span { display: block; }
.cp-title { text-align: center; margin: 6mm 0 5mm; }
.cp-kicker { font-size: 7.6pt; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #1b8046; }
.cp-title h1 { font-size: 16pt; line-height: 1.25; font-weight: 800; color: #0b3b29; text-transform: uppercase; letter-spacing: .02em; margin-top: 1mm; }
.cp-en { font-size: 8.4pt; font-style: italic; color: #6b7280; margin-top: .6mm !important; }
.cp-summary { display: grid; grid-template-columns: 1.05fr 1fr; border: .3mm solid #d1d5db; border-radius: 2.5mm; overflow: hidden; margin-bottom: 4.5mm; }
.cp-no { padding: 3.6mm 4.5mm; }
.cp-no small { display: block; font-size: 7.4pt; color: #6b7280; }
.cp-no b { display: block; font-size: 19pt; line-height: 1.15; font-weight: 800; color: #0b3b29; letter-spacing: .01em; margin: .6mm 0 .4mm; word-break: break-all; }
.cp-no span { display: block; font-size: 8.4pt; color: #374151; }
.cp-status { display: flex; align-items: center; gap: 3mm; padding: 3.6mm 4.5mm; background: var(--tone-bg); border-left: .3mm solid var(--tone-line); color: var(--tone); }
.cp-status .cert-ico { width: 9mm; height: 9mm; border-radius: 50%; background: var(--tone); color: #fff; display: grid; place-items: center; flex: none; }
.cp-status .cert-ico svg { width: 5mm; height: 5mm; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cp-status b { display: block; font-size: 10.4pt; line-height: 1.3; }
.cp-status span { display: block; font-size: 8.4pt; color: #374151; margin-top: .5mm; }
.cp-table { width: 100%; border-collapse: collapse; }
.cp-table th, .cp-table td { padding: 1.7mm 2.4mm; border-bottom: .25mm solid #e5e7eb; text-align: left; vertical-align: top; }
.cp-table tr:first-child th, .cp-table tr:first-child td { border-top: .25mm solid #e5e7eb; }
.cp-table th { width: 50mm; font-weight: 600; color: #1f2937; background: #f8fafc; }
.cp-table th small { display: block; font-size: 7.2pt; font-weight: 400; font-style: italic; color: #8a94a6; }
.cp-table td { white-space: pre-line; }
.cp-table tr:first-child td { font-weight: 700; color: #0b3b29; }
.cp-h2 { font-size: 8.6pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0b3b29; margin: 4.5mm 0 1.6mm !important; }
.cp-sites { list-style: none; margin: 0; padding: 0; border-top: .25mm solid #e5e7eb; }
.cp-sites li { display: flex; gap: 2.4mm; padding: 1.4mm 2.4mm; border-bottom: .25mm solid #e5e7eb; font-size: 8.6pt; break-inside: avoid; }
.cp-sites.is-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5mm; }
.cp-sites.is-cols li { font-size: 8pt; }
.cp-sites__no { flex: none; width: 5mm; text-align: center; font-weight: 700; color: #1b8046; }
.cp-sites b { display: block; font-size: 7.4pt; font-weight: 700; color: #1b8046; text-transform: uppercase; letter-spacing: .03em; }
.cp-sites span:not(.cp-sites__no) { display: block; }
.cp-sites em { display: block; font-size: 7.4pt; color: #6b7280; }
.cp-foot { display: flex; gap: 4.5mm; align-items: center; margin-top: 5mm; padding-top: 3.5mm; border-top: .3mm solid #d1d5db; break-inside: avoid; }
.cp-qr { flex: none; text-align: center; }
.cp-qr svg { width: 23mm; height: 23mm; display: block; }
.cp-qr small { display: block; font-size: 6.6pt; color: #6b7280; margin-top: .4mm; }
.cp-foot__text { font-size: 7.8pt; line-height: 1.5; color: #4b5563; display: grid; gap: 1mm; }
.cp-url { color: #0b3b29; font-weight: 600; word-break: break-all; }
.cp-note { font-style: italic; color: #6b7280; }

/* Kích thước icon nội tuyến */
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; flex: none; }
.cta__contact .ic svg, .contact-card .ic svg { width: 22px; height: 22px; }
.icon-btn svg, .fab svg { flex: none; }
.lookup-form .btn svg, .widget .btn svg { width: 18px; height: 18px; }

/* Tránh phần tử con (bảng, ảnh) đẩy rộng lưới */
.layout > *, .split > *, .cta > *, .news-layout > *, .grid > * { min-width: 0; }
/* Nội dung cũ từ WordPress có thể gắn width cố định (wp-caption) */
.prose figure, .prose img, .prose [style*="width"] { max-width: 100% !important; }
.prose figure img { width: auto; }
/* ===== VNCE: banner & trang chủ ===== */
/* ---------- Banner trình chiếu (dựng lại 7 banner của site cũ) ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.hs-track { display: grid; grid-template-columns: minmax(0, 1fr); }
.hs-slide { grid-area: 1 / 1; min-width: 0; position: relative; min-height: clamp(440px, 34vw, 560px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hs-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hs-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transform: scale(1.08); transition: transform 8s linear; filter: saturate(.8); }
.hs-slide.is-active .hs-bg img { transform: scale(1); }
.hs-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6, 38, 25, .96) 0%, rgba(11, 59, 41, .88) 38%, rgba(27, 128, 70, .62) 70%, rgba(84, 183, 48, .45) 100%); }
.hs-bg::before { content: ''; position: absolute; z-index: 1; right: -8%; top: -30%; width: 46%; height: 160%; background: linear-gradient(180deg, rgba(84,183,48,.22), rgba(84,183,48,0)); transform: skewX(-18deg); pointer-events: none; }
.hs-inner { position: relative; width: 100%; padding-top: 56px; padding-bottom: 72px; }
.hs-title { text-wrap: balance; color: #fff; font-size: clamp(1.7rem, 1rem + 2.4vw, 2.9rem); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px; }
.hs-title--xl { font-size: clamp(2rem, 1.1rem + 3vw, 3.4rem); }
.hs-sub { font-size: clamp(1rem, .9rem + .35vw, 1.22rem); color: #dff2e6; max-width: 640px; margin: 0 0 22px; }
.hs--cards .hs-head { text-align: center; margin-bottom: 28px; }
.hs--cards .hs-sub { margin: 0 auto; font-style: italic; }
.hs-cards { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 16px; }
.hs-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.96); color: var(--navy); box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hs-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(0,0,0,.7); color: var(--navy); }
.hs-card__img { aspect-ratio: 16 / 11; overflow: hidden; background: #dfeee5; }
.hs-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.hs-card:hover .hs-card__img img { transform: scale(1.07); }
.hs-card__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 12px 14px; text-align: center; background: linear-gradient(180deg, #fff, #eef8f1); }
.hs-card__body b { font-size: .92rem; line-height: 1.35; font-weight: 700; }
.hs-card__body small { font-size: .78rem; color: #4f6b5c; line-height: 1.35; font-style: italic; }
.hs--cards:first-child .hs-card__body { background: linear-gradient(180deg, #2f9a55, #1b8046); }
.hs--cards:first-child .hs-card__body b { color: #fff; font-weight: 600; }
.hs-btn { margin-top: 26px; background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.hs-btn:hover { background: #f6a03b; color: #fff; }
.hs--cards .hs-btn { display: table; margin-left: auto; margin-right: auto; }
.hs-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.hs-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hs-checks { list-style: none; margin: 0; padding: 22px 26px; display: grid; gap: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; backdrop-filter: blur(8px); }
.hs-checks.is-two { grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.hs-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 1rem; line-height: 1.4; color: #f0faf3; }
.hs-checks svg { width: 20px; height: 20px; flex: none; color: #7ee08f; margin-top: 1px; }
.hs-quote { margin: 0; padding: 6px 0 6px 22px; border-left: 3px solid #f6a03b; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); font-style: italic; line-height: 1.55; color: #f1fbf4; max-width: 520px; justify-self: end; }
.hs-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hs-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; width: 100%; margin: 14px 0 18px; }
.hs-chips span { display: grid; place-items: center; min-height: 92px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--blue); font-weight: 700; font-size: 1rem; line-height: 1.3; box-shadow: 0 16px 34px -20px rgba(0,0,0,.6); transition: transform .3s var(--ease), background .3s; }
.hs-chips span:hover { transform: translateY(-5px); background: #fff; }
.hs-note { font-style: italic; color: #dff2e6; margin: 0; }
.hs--tiles .hs-split { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.hs-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hs-tile { display: flex; flex-direction: column; gap: 14px; min-height: 160px; padding: 20px 18px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); transition: transform .3s var(--ease), background .3s; }
.hs-tile:hover { transform: translateY(-5px); background: rgba(255,255,255,.22); }
.hs-tile svg { width: 30px; height: 30px; color: #fff; }
.hs-tile span { font-size: .98rem; line-height: 1.4; color: #fff; }
/* Chữ trên slide hiện dần khi chuyển slide */
.hs-anim { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hs-slide.is-active .hs-anim { opacity: 1; transform: none; }
.hs-slide.is-active .hs-anim:nth-child(2) { transition-delay: .12s; }
.hs-slide.is-active .hs-anim:nth-child(3) { transition-delay: .24s; }
.hs-slide.is-active .hs-anim:nth-child(4) { transition-delay: .36s; }
.hs-nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(6,38,25,.35); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, opacity .2s; opacity: .75; }
.hs-nav:hover { background: rgba(255,255,255,.2); opacity: 1; }
.hs-nav svg { width: 22px; height: 22px; }
.hs-nav--prev { left: 18px; }
.hs-nav--next { right: 18px; }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hs-dots button { position: relative; width: 34px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.3); cursor: pointer; overflow: hidden; }
.hs-dots button i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hs-dots button.is-active i { animation: hs-progress var(--hs-dur, 7s) linear forwards; }
.hero-slider.is-paused .hs-dots button.is-active i { animation-play-state: paused; }
@keyframes hs-progress { to { transform: scaleX(1); } }

/* ---------- Khối trang chủ ---------- */
.sec-head { text-align: center; max-width: 860px; margin: 0 auto 36px; }
.sec-head .lead { margin: 12px auto 0; max-width: 820px; }
.sec-head--row { text-align: left; max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-title { position: relative; margin: 0; color: var(--navy); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; padding-bottom: 14px; }
.sec-title::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; margin-left: -32px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #54b730); }
.sec-head--row .sec-title::after, .home-about .sec-title::after { left: 0; margin-left: 0; }
.sec-more { text-align: right; margin: 20px 0 0; }
.home-about .split { align-items: center; }
.home-about p { color: var(--text); }
.stats-band { padding: 0 0 8px; margin-top: -20px; }
.stats-band .stats { position: relative; z-index: 2; }
.feature-card__body h3 a { color: var(--ink); }
.feature-card__body h3 a:hover { color: var(--blue); }
.feature-card__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 7px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: .85rem; transition: background .2s, color .2s; }
.feature-card__btn svg { width: 15px; height: 15px; transition: transform .2s; }
.feature-card__btn:hover { background: var(--blue); color: #fff; }
.feature-card__btn:hover svg { transform: translateX(3px); }
.feature-card__img { display: block; }
.lookup-band { padding: 8px 0 clamp(48px, 6vw, 80px); }
.lookup-band__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center; padding: 26px 30px; border-radius: 22px;
  background: radial-gradient(600px 200px at 0% 0%, rgba(84,183,48,.35), transparent), linear-gradient(110deg, var(--navy-900), var(--navy)); color: #d7ecdf; box-shadow: var(--shadow-lg); }
.lookup-band__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #f6c26b; }
.lookup-band__icon svg { width: 34px; height: 34px; }
.lookup-band h2 { color: #fff; font-size: 1.35rem; margin: 0 0 4px; }
.lookup-band p { margin: 0; font-size: .95rem; }
.lookup-band .lookup-inline { display: flex; gap: 10px; }
.lookup-band .lookup-inline input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: #fff; font-size: 1rem; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -8px rgba(27,128,70,.8); }
.clients-band { padding: 40px 0; border-top: 1px solid var(--line); background: #fff; }
.clients-band .marquee img { height: 84px; width: 84px; object-fit: contain; filter: none; opacity: 1; border-radius: 12px; }
.cta__contact a > span:last-child { display: grid; line-height: 1.3; }
.cta__contact small { font-weight: 500; font-size: .8rem; color: #a9c7b6; }

/* ---------- Khối nội dung cx-* (dùng trong trình soạn thảo: trang Giới thiệu…) ---------- */
.prose .cx-banner { margin: 0 0 32px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.prose .cx-banner img { width: 100%; display: block; margin: 0; border-radius: 0; }
.prose .cx-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 24px; }
.prose .cx-intro__col { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.prose .cx-intro__col h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); }
.prose .cx-intro__col p { margin: 0; }
.prose .cx-intro .btn { color: #fff; text-decoration: none; }
.prose .cx-subnav { position: sticky; top: calc(var(--header-h) + 10px); z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 40px; padding: 8px; border-radius: 18px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgba(11,59,41,.5); }
.prose .cx-subnav a { padding: 8px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); text-decoration: none; transition: background .2s, color .2s; }
.prose .cx-subnav a:hover, .prose .cx-subnav a.is-current { background: var(--blue); color: #fff; }
.prose .cx-section { padding: 8px 0 28px; scroll-margin-top: calc(var(--header-h) + 84px); }
html:has(.cx-subnav) { scroll-padding-top: calc(var(--header-h) + 84px); }
.prose .cx-section > h2, .prose .cx-intro h2 { border-left: 0; padding-left: 0; }
.prose .cx-section > h2 { margin-top: 0; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); text-transform: uppercase; color: var(--navy); padding-bottom: 12px; margin-bottom: 18px; position: relative; }
.prose .cx-section > h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #54b730); }
.prose .cx-timeline { list-style: none; margin: 26px 0 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 18px; }
.prose .cx-timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--blue), #54b730); border-radius: 2px; }
.prose .cx-timeline > li { position: relative; margin: 0; padding: 16px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.prose .cx-timeline > li::before { content: ''; position: absolute; left: -26px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.prose .cx-timeline > li:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: rgba(27,128,70,.35); }
.prose .cx-timeline > li > strong { display: inline-block; color: var(--blue); font-size: 1.02rem; margin-bottom: 4px; }
.prose .cx-timeline > li > p { margin: 0; }
.prose .cx-laws { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.prose .cx-laws li { margin: 0; padding: 14px 16px 14px 46px; position: relative; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; color: var(--navy); line-height: 1.45; transition: border-color .2s, background .2s; }
.prose .cx-laws li::before { content: '§'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: .8rem; }
.prose .cx-laws li:hover { border-color: rgba(27,128,70,.4); background: #fff; }
.prose .cx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 18px 0; }
.prose .cx-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .cx-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.prose .cx-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), #54b730); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.prose .cx-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prose .cx-card:hover::before { transform: scaleX(1); }
.prose .cx-card__icon { width: 60px; height: 60px; object-fit: contain; margin: 0 0 8px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--blue) 60%, #54b730); box-shadow: 0 10px 20px -12px rgba(11,59,41,.7); transition: transform .3s var(--ease); }
.prose .cx-card:hover .cx-card__icon { transform: rotate(-6deg) scale(1.06); }
.prose .opa-star { max-width: 440px !important; margin: 1.4em auto; }
.prose .opa-wheel { max-width: 520px !important; margin: 1.6em auto; }
.prose .cx-values .cx-card.is-hl { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prose .cx-values .cx-card.is-hl::before { transform: scaleX(1); }
.prose .cx-card h3 { margin: 0 0 4px; font-size: 1.08rem; color: var(--navy); }
.prose .cx-card p, .prose .cx-card ul { margin: 0; font-size: .96rem; }
.prose .cx-card ul { padding-left: 1.1em; margin-top: 6px; }
.prose .cx-values .cx-card h3 { color: var(--blue); }
.prose .cx-values .cx-card:nth-child(1) h3 { color: #3d8f99; } .prose .cx-values .cx-card:nth-child(2) h3 { color: #c98a1d; }
.prose .cx-values .cx-card:nth-child(3) h3 { color: #c94a4a; } .prose .cx-values .cx-card:nth-child(4) h3 { color: #b8703f; }
.prose .cx-values .cx-card:nth-child(5) h3 { color: #4b8c72; } .prose .cx-values .cx-card:nth-child(6) h3 { color: #7a6283; }
.prose .cx-sign { text-align: right; margin-top: 24px; color: var(--navy); }
.page--wide .prose { max-width: none; }
/* Lưới thẻ bài viết (chuyển từ khối "danh sách bài viết" của Flatsome) */
.prose .cx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 22px 0 32px; }
.prose .cx-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.prose .cx-post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prose .cx-post__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.prose .cx-post__img img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; margin: 0; border-radius: 0; transition: transform .6s var(--ease); }
.prose .cx-post:hover .cx-post__img img { transform: scale(1.06); }
.prose .cx-post__title { display: block; padding: 14px 16px 6px; font-weight: 700; color: var(--ink); line-height: 1.4; text-decoration: none; font-size: 1rem; }
.prose .cx-post__title:hover { color: var(--blue); }
.prose .cx-post p { margin: 0; padding: 0 16px 16px; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.prose a.btn { text-decoration: none; color: #fff; margin: 6px 4px; }
.prose a.btn:hover { color: #fff; }

@media (max-width: 1100px) {
  .hs-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-split { grid-template-columns: 1fr; gap: 24px; }
  .hs-quote { justify-self: start; }
  .lookup-band__inner { grid-template-columns: auto 1fr; }
  .lookup-band .lookup-inline { grid-column: 1 / -1; }
  .prose .cx-cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hs-slide { min-height: 520px; }
  .hs-inner { padding-top: 36px; padding-bottom: 64px; }
  .hs-checks.is-two { grid-template-columns: 1fr; }
  .hs-chips { grid-template-columns: 1fr 1fr; }
  .hs-chips span { min-height: 64px; font-size: .92rem; }
  .hs-tiles { grid-template-columns: 1fr 1fr; }
  .hs-tile { min-height: 120px; padding: 16px 14px; }
  .lookup-band__inner { grid-template-columns: 1fr; padding: 22px; text-align: center; }
  .lookup-band__icon { margin: 0 auto; }
  .lookup-band .lookup-inline { flex-direction: column; }
  .prose .cx-intro, .prose .cx-cards-3 { grid-template-columns: 1fr; }
  .prose .cx-subnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .prose .cx-subnav a { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-bg img { transition: none; transform: none; }
  .hs-anim { opacity: 1; transform: none; transition: none; }
}
/* ===== Banner mở đầu (bổ sung) ===== */
/* Slide 1 "intro": cột chữ (nhãn, tiêu đề, khẩu hiệu, nút gọi + tra cứu, số liệu) | lưới 6 thẻ dịch vụ */
.hs--intro .hs-bg img { opacity: .42; }
.hs-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 52px; align-items: center; }
.hs-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #bfe8cc; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.45; }
.hs-kicker::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 3px; background: #f6a03b; }
.hs-intro .hs-title { margin-bottom: 10px; }
.hs-intro .hs-sub { font-style: italic; margin-bottom: 0; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hs-actions .hs-btn { margin: 0; }
.hs-btn svg { width: 18px; height: 18px; }
.hs-btn--accent { background: #f6a03b; color: #fff; border-color: #f6a03b; text-align: left; line-height: 1.15; padding-top: 9px; padding-bottom: 9px; }
.hs-btn--accent span { display: flex; flex-direction: column; font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; }
.hs-btn--accent small { font-size: .7rem; font-weight: 600; opacity: .92; letter-spacing: 0; }
.hs-btn--accent:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; }
.hs-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.hs-stats dd { margin: 0; font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hs-stats dt { font-size: .74rem; line-height: 1.3; color: #cfe9d8; }
.hs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hs-gcard { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 16px; overflow: hidden; background: #0d4a32; box-shadow: 0 18px 36px -20px rgba(0,0,0,.7); isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.hs-gcard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hs-gcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,38,25,0) 30%, rgba(6,38,25,.55) 58%, rgba(8,60,38,.96)); }
.hs-gcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; color: #fff; font-size: .9rem; font-weight: 700; line-height: 1.3; }
.hs-gcard span::before { content: ""; display: block; width: 22px; height: 3px; margin-bottom: 7px; border-radius: 3px; background: #7ee08f; transition: width .35s var(--ease); }
.hs-gcard:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -20px rgba(0,0,0,.8); color: #fff; }
.hs-gcard:hover img { transform: scale(1.08); }
.hs-gcard:hover span::before { width: 40px; }
.hs-nav:focus-visible, .hs-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1100px) {
  .hs-intro { grid-template-columns: 1fr; gap: 26px; }
  .hs-intro__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hs-actions { justify-content: center; }
  .hs-stats { width: 100%; max-width: 640px; }
}
@media (max-width: 640px) {
  .hs-slide { min-height: 0; }
  .hs-inner { padding-top: 30px; padding-bottom: 70px; }
  .hs-kicker, .hs-stats { display: none; }
  .hs-intro { gap: 18px; }
  .hs-intro .hs-sub { font-size: .95rem; }
  .hs-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 16px; }
  .hs-actions .hs-btn { justify-content: center; padding-left: 10px; padding-right: 10px; font-size: .84rem; min-height: 48px; }
  .hs-btn--accent small { display: none; }
  .hs-btn--accent span { font-size: .95rem; }
  .hs-grid { gap: 8px; }
  .hs-gcard { aspect-ratio: 1 / 1.08; border-radius: 12px; }
  .hs-gcard span { padding: 8px 8px 9px; font-size: .7rem; line-height: 1.25; }
  .hs-gcard span::before { width: 16px; height: 2px; margin-bottom: 5px; }
  /* Thẻ ảnh (slide 2): lưới 3 cột gọn, không cuộn ngang → vuốt ở đâu cũng chuyển được banner */
  .hs--cards .hs-head { margin-bottom: 16px; }
  .hs-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hs-card { flex: 0 0 calc((100% - 16px) / 3); border-radius: 12px; }
  .hs-card__body { padding: 7px 6px 8px; }
  .hs-card__body b { font-size: .74rem; }
  .hs-card__body small { display: none; }
  .hs-btn { margin-top: 18px; }
  /* Danh sách tích: gọn để banner không cao quá màn hình */
  .hs-checks { padding: 14px 16px; gap: 7px; }
  .hs-checks li { font-size: .86rem; line-height: 1.32; gap: 8px; }
  .hs-checks svg { width: 17px; height: 17px; }
  .hs-split { gap: 18px; }
  .hs-split .hs-btn { margin-top: 14px; }
  .hs-sub { margin-bottom: 0; }
  /* Ô kính (slide Kiểm kê khí nhà kính): 1 cột chữ + lưới 2×2, biểu tượng nằm cạnh chữ */
  .hs--tiles .hs-split { grid-template-columns: 1fr; }
  .hs-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hs-tile { min-height: 0; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; }
  .hs-tile svg { width: 22px; height: 22px; flex: none; }
  .hs-tile span { font-size: .82rem; line-height: 1.35; }
  .hs-quote { font-size: 1rem; }
  /* Điều hướng: hai nút tròn hai bên dải chấm ở đáy banner */
  .hs-nav { top: auto; bottom: 12px; margin: 0; width: 40px; height: 40px; opacity: 1; background: rgba(6,38,25,.55); }
  .hs-nav svg { width: 20px; height: 20px; }
  .hs-nav--prev { left: 14px; } .hs-nav--next { right: 14px; }
  .hs-dots { left: 64px; right: 64px; bottom: 12px; height: 40px; align-items: center; gap: 4px; }
  .hs-dots button { width: 26px; height: 24px; background: none; }
  .hs-dots button::before { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 4px; background: rgba(255,255,255,.3); }
  .hs-dots button i { left: 3px; right: 3px; top: 50%; bottom: auto; height: 5px; margin-top: -2.5px; border-radius: 4px; }
}
@media (max-width: 380px) {
  .hs-actions { grid-template-columns: 1fr; }
  .hs-tiles { grid-template-columns: 1fr; }
}
/* ===== hết banner bổ sung ===== */
/* ===== Hộp giới thiệu dịch vụ (cx-svc) ===== */
/* Dựng lại đúng thiết kế hộp "vnce-iso-cta / vnce-qtl" trên site cũ: thẻ trắng bo góc, hai dải chéo xanh lá ở góc phải,
   dòng nhãn có vạch xiên, tiêu đề lớn, dấu tích tròn, nút gọi + Zalo, 3 ô số liệu */
.prose .cx-svc { --g: #1c7d56; --gd: #0c5c3d; --gl: #70bf54; --lime: #b2d235; --ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); position: relative; isolation: isolate; overflow: hidden; margin: 22px 0 30px; padding: 30px 34px 26px;
  color: #183029; background: #fff; border: 1px solid rgba(28, 125, 86, .15); border-radius: 22px; box-shadow: 0 16px 44px rgba(20, 72, 53, .11); text-align: left; }
.prose .cx-svc::before, .prose .cx-svc::after { content: ""; position: absolute; z-index: -1; top: -160px; width: 140px; height: 720px; transform: rotate(33deg); pointer-events: none; }
.prose .cx-svc::before { right: -34px; background: linear-gradient(180deg, var(--lime), var(--gl)); }
.prose .cx-svc::after { right: -142px; background: linear-gradient(180deg, var(--gl), var(--g)); }
.prose .cx-svc__copy { position: relative; max-width: min(760px, calc(100% - 190px)); }
.prose .cx-svc p { margin: 0; text-align: left !important; }
.prose .cx-svc__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px !important; color: var(--g); font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.prose .cx-svc__kicker::before { content: ""; flex: none; width: 9px; height: 22px; background: linear-gradient(180deg, var(--lime), var(--gl)); clip-path: polygon(0 0, 100% 0, 58% 100%, 0 100%); }
.prose .cx-svc__title { margin-bottom: 12px !important; color: var(--gd); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
.prose .cx-svc__hl { color: var(--g); }
.prose .cx-svc__lead { margin-bottom: 16px !important; color: #33473f; font-size: 1.02rem; line-height: 1.55; }
.prose .cx-svc__benefits { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0; list-style: none; }
.prose .cx-svc__benefits li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: #244c3b; font-size: .92rem; font-weight: 700; }
.prose .cx-svc__benefits li::marker { content: none; }
.prose .cx-svc__benefits li::before { content: "✓"; position: static; flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--gl); border: 0; border-radius: 50%; font-size: 12px; font-weight: 900; transform: none; }
.prose .cx-svc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.prose a.cx-svc__btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 10px 20px; border: 2px solid var(--g); border-radius: 11px;
  font-size: .95rem; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.prose a.cx-svc__btn:hover { transform: translateY(-2px); }
.prose a.cx-svc__btn--call { color: #fff; background: var(--g); box-shadow: 0 8px 20px rgba(28, 125, 86, .22); }
.prose a.cx-svc__btn--call::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ic-phone) center / contain no-repeat; mask: var(--ic-phone) center / contain no-repeat; }
.prose a.cx-svc__btn--call:hover { background: var(--gd); color: #fff; }
.prose a.cx-svc__btn--zalo { color: var(--g); background: #fff; }
.prose a.cx-svc__btn--zalo:hover { color: var(--gd); background: #f2f9f5; }
.prose .cx-svc__zalo { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 26px; color: #fff; background: var(--g); border-radius: 6px; font-size: 10px; font-weight: 900; }
.prose .cx-svc__facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: rgba(28, 125, 86, .18); border: 1px solid rgba(28, 125, 86, .18); border-radius: 16px; }
.prose .cx-svc__fact { padding: 16px 18px; background: #f7fbf8; transition: background .25s; }
.prose .cx-svc__fact:hover { background: #fff; }
.prose .cx-svc__fact strong { display: block; margin-bottom: 5px; color: var(--g); font-size: 1.45rem; line-height: 1.1; font-weight: 800; }
.prose .cx-svc__fact-t { display: block; color: #385147; font-size: .84rem; line-height: 1.4; }
.prose .cx-svc__fact-n { display: block; margin-top: 4px; color: #718078; font-size: .72rem; }
@media (max-width: 820px) { .prose .cx-svc__copy { max-width: none; } .prose .cx-svc::before, .prose .cx-svc::after { opacity: .28; } .prose .cx-svc::before { right: -120px; } .prose .cx-svc::after { right: -230px; } }
@media (max-width: 640px) {
  .prose .cx-svc { padding: 22px 18px 18px; border-radius: 18px; }
  .prose .cx-svc__title { font-size: 1.55rem; }
  .prose .cx-svc__lead { font-size: .95rem; }
  .prose .cx-svc__benefits { display: grid; gap: 8px; }
  .prose .cx-svc__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
  .prose a.cx-svc__btn { width: 100%; margin: 0; }
  .prose .cx-svc__facts { grid-template-columns: 1fr; }
  .prose .cx-svc__fact { padding: 13px 16px; }
  .prose .cx-svc__fact strong { margin-bottom: 3px; font-size: 1.15rem; }
}

/* Giới thiệu dịch vụ ở đầu trang danh mục (mô tả danh mục của site cũ): khung bài viết, thu gọn khi dài */
.cat-intro { position: relative; margin: 0 0 40px; padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg, 20px); box-shadow: var(--shadow); }
.cat-intro__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cat-intro__label::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--blue); }
.cat-intro__body { position: relative; }
.cat-intro.is-clamped .cat-intro__body { max-height: 560px; overflow: hidden; }
.cat-intro.is-clamped .cat-intro__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 88%); pointer-events: none; }
.cat-intro__more { display: none; align-items: center; gap: 8px; margin: 10px auto 0; padding: 10px 22px; border: 1.5px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s; }
.cat-intro__more:hover { background: var(--blue); color: #fff; }
.cat-intro.is-clampable .cat-intro__more { display: flex; }
.cat-intro__more svg { width: 18px; height: 18px; transition: transform .3s; }
.cat-intro:not(.is-clamped) .cat-intro__more svg { transform: rotate(180deg); }
.cat-intro .prose > h2:first-child { margin-top: 0; }
@media (max-width: 640px) { .cat-intro { padding: 20px 16px; border-radius: 16px; } .cat-intro.is-clamped .cat-intro__body { max-height: 480px; } }
/* Hàng tiêu đề mục + liên kết "Xem chi tiết" (trang tổng hợp) */
.prose .cx-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 2em 0 1em; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.prose .cx-sechead > :is(h2, h3, h4) { margin: 0; }
.prose a.cx-sechead__more { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--blue-50, #eaf5ee); color: var(--blue); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; transition: background .2s, color .2s; }
.prose a.cx-sechead__more::after { content: "→"; transition: transform .2s; }
.prose a.cx-sechead__more:hover { background: var(--blue); color: #fff; }
.prose a.cx-sechead__more:hover::after { transform: translateX(3px); }
@media (max-width: 640px) { .prose .cx-sechead { align-items: flex-start; flex-direction: column; gap: 8px; } }
/* ===== hết cx-svc ===== */
/* ===== Điện thoại: đầu trang ===== */
@media (max-width: 640px) {
  /* .topbar a { display: inline-flex } mạnh hơn .hide-sm → phải ẩn rõ trong thanh trên */
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; min-height: 32px; }
  .header { --main-h: 64px; }
  .header__main .container { gap: 10px; }
  .logo { gap: 8px; flex: 1 1 auto; min-width: 0; }
  .logo img { height: 40px; }
  .logo__text { padding-left: 8px; min-width: 0; }
  .logo__text small { font-size: .6rem; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo__short { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header__actions { gap: 6px; }
  .header__actions .icon-btn { width: 38px; height: 38px; }
  /* Khối mở đầu trang giới thiệu: tiêu đề nằm trọn một dòng, nút tải xuống xuống dưới */
  .prose .cx-intro__col { flex-wrap: wrap; padding: 18px 20px; }
  .prose .cx-intro__col h2 { flex: 1 1 100%; }
}
@media (max-width: 359px) {
  .logo__text small { display: none; }
  .logo img { height: 36px; }
  .logo__short { font-size: .86rem; }
  .header__actions { gap: 4px; }
  .header__actions .icon-btn { width: 36px; height: 36px; }
}

/* ---------- Nút máy ảnh trong ô tra cứu + khung quét mã QR ---------- */
.lookup-field { position: relative; flex: 1; min-width: 0; display: flex; }
.lookup-field input { flex: 1; width: 100%; min-width: 0; }
.lookup-form .lookup-field input { padding-right: 60px; }
.lookup-band .lookup-field input { padding-right: 56px; }
.lookup-scan { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--blue); cursor: pointer; transition: background .2s, color .2s; }
.lookup-scan[hidden] { display: none; }
.lookup-scan svg { width: 25px; height: 25px; }
.lookup-scan:hover { background: rgba(27, 128, 70, .1); color: var(--blue-600, #146b39); }
.lookup-scan:focus-visible { outline: 3px solid rgba(27, 128, 70, .35); outline-offset: 0; }
.lookup-band .lookup-scan { right: 5px; width: 42px; height: 42px; border-radius: 50%; }
.lookup-form .lookup-field input:not(:placeholder-shown) + .lookup-scan { color: var(--muted); }

.qr-scan { width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: auto; }
.qr-scan::backdrop { background: rgba(6, 18, 12, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.qr-scan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 20px; }
.qr-scan__head h2 { margin: 0; font-size: 1.15rem; }
.qr-scan__close { width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); cursor: pointer; }
.qr-scan__close svg { width: 20px; height: 20px; }
.qr-scan__close:hover { background: var(--line); }
.qr-scan__view { position: relative; margin: 0 16px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d3a2b, #0b1711); }
.qr-scan__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.qr-scan.is-live video { opacity: 1; }
.qr-scan__frame { --k: 38px; --t: 4px; --c: #fff; position: absolute; inset: 15%; border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .38);
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--k) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left top / var(--t) var(--k) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--k) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right top / var(--t) var(--k) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--k) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--k) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--k) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--k) no-repeat; }
.qr-scan__frame i { position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px; background: #54b730; box-shadow: 0 0 12px 2px rgba(84, 183, 48, .8); opacity: 0; }
.qr-scan.is-live .qr-scan__frame i { opacity: 1; animation: qr-line 2.2s ease-in-out infinite alternate; }
@keyframes qr-line { to { top: 92%; } }
@media (prefers-reduced-motion: reduce) { .qr-scan.is-live .qr-scan__frame i { animation: none; top: 50%; } }
.qr-scan__state { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .9rem; line-height: 1.45; text-align: center; }
.qr-scan__state[hidden] { display: none; }
.qr-scan__state[data-tone="warn"] { background: rgba(154, 72, 6, .94); }
.qr-scan__help { margin: 12px 20px 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.qr-scan__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px 18px; }
.qr-scan__actions .btn { flex: 1 1 180px; justify-content: center; }
.qr-scan__actions .btn[hidden] { display: none; }
.qr-scan__actions svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .qr-scan__head { padding-left: 16px; }
  .qr-scan__view { margin: 0 12px; }
  .qr-scan__help { margin: 10px 16px 0; font-size: .86rem; }
  .qr-scan__actions { padding: 12px 12px 14px; }
}

/* ---------- Chat trực tiếp (khung chat của khách) ---------- */
.fab.is-open .fab__item:nth-last-child(4) { --k: 3; }
.fab__item { font: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
.fab__ic--live { position: relative; background: linear-gradient(140deg, #22a05a, var(--blue) 55%, var(--navy)); }
.fab__dot { position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; border: 2px solid #fff; }
.fab__dot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #4ade80; animation: lc-ping 1.8s ease-out infinite; }
.fab__dot[hidden] { display: none; }
@keyframes lc-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.fab__badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(232, 113, 10, .45); animation: lc-pop .3s var(--ease); }
.fab__badge[hidden] { display: none; }
@keyframes lc-pop { from { transform: scale(.4); } }

.lc { position: fixed; right: 18px; bottom: 86px; z-index: 250; display: flex; flex-direction: column; width: 384px; height: min(640px, calc(100vh - 110px)); height: min(640px, calc(100dvh - 110px)); border-radius: 22px; overflow: hidden; background: #fff; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
  box-shadow: 0 30px 80px -20px rgba(6, 38, 25, .45), 0 0 0 1px rgba(11, 59, 41, .06); transform-origin: right bottom; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .22s var(--ease), transform .28s var(--ease); }
.lc.is-open { opacity: 1; transform: none; }
.lc[hidden] { display: none; }
.lc-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lc-ic--xs { width: 13px; height: 13px; }

.lc-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 12px 16px 18px; color: #fff;
  background: radial-gradient(260px 120px at 0% 0%, rgba(84, 183, 48, .45), transparent 70%), linear-gradient(120deg, var(--navy-900), var(--navy) 55%, var(--blue)); }
.lc-logo { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.lc-logo img { width: 26px; height: auto; }
.lc-logo__dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #94a3b8; border: 2.5px solid var(--navy); }
.lc.is-online .lc-logo__dot { background: #4ade80; }
.lc-head__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lc-head__who strong { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.lc-head__sub { display: flex; align-items: center; gap: 6px; color: #cfe9d8; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-head__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex: none; }
.lc-dot.is-on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.lc-hbtn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; flex: none; }
.lc-hbtn:hover { background: rgba(255, 255, 255, .12); }
.lc-menu { position: absolute; right: 52px; top: 58px; z-index: 3; min-width: 230px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.lc-menu[hidden] { display: none; }
.lc-menu button, .lc-menu a { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.lc-menu button:hover, .lc-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.lc-menu button[hidden] { display: none; }

.lc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 8px; background: linear-gradient(180deg, #eef6f1, var(--bg-soft) 120px); }
.lc-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.lc-intro[hidden], .lc-list[hidden], .lc-compose[hidden] { display: none; }
.lc-hero { position: relative; padding: 18px 18px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.lc-hero__wave { position: absolute; right: 16px; top: 14px; font-size: 26px; animation: lc-wave 2.4s ease-in-out 1; transform-origin: 70% 70%; }
@keyframes lc-wave { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: none; } }
.lc-hero h3 { margin: 0 0 4px; color: var(--ink); font-size: 19px; }
.lc-hero p { margin: 0; color: var(--text); font-size: 14px; }
.lc-hello { margin-top: 12px; padding: 16px 18px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.lc-hello__lbl { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.lc-seg { display: flex; gap: 6px; margin-bottom: 10px; }
.lc-seg button { flex: 1; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink); font: 600 14px var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.lc-seg button[aria-checked="true"] { background: var(--blue-50); border-color: var(--blue); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.lc-input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); font: 15px var(--font); }
.lc-input:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27, 128, 70, .12); }
.lc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lc-err { margin: 8px 0 0; color: #b91c1c; font-size: 13px; }
.lc-err[hidden] { display: none; }
.lc-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 12px; border: 0; border-radius: 12px; background: var(--red); color: #fff; font: 700 15px var(--font); cursor: pointer; box-shadow: 0 12px 24px -12px rgba(232, 113, 10, .9); transition: background .15s, transform .1s; }
.lc-btn:hover { background: var(--red-600); }
.lc-btn:active { transform: translateY(1px); }
.lc-btn.is-busy { opacity: .7; pointer-events: none; }
.lc-btn--ghost { background: #fff; color: var(--blue); border: 1px solid var(--blue); box-shadow: none; height: 42px; }
.lc-btn--ghost:hover { background: var(--blue-50); }
.lc-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.lc-alt { display: flex; gap: 8px; margin-top: 12px; }
.lc-alt__it { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.lc-alt__it:hover { border-color: var(--blue); color: var(--blue); }
.lc-alt__it .lc-ic { width: 17px; height: 17px; color: var(--red); }
.lc-alt__it--zalo b { display: grid; place-items: center; height: 22px; padding: 0 6px; border-radius: 6px; background: #0068ff; color: #fff; font-size: 10.5px; }

.lc-list { display: flex; flex-direction: column; gap: 2px; }
.lc-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 100%; }
.lc-msg.is-grouped { margin-top: 3px; }
.lc-msg.is-me { justify-content: flex-end; }
.lc-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.lc-av.is-bot { background: linear-gradient(140deg, #22a05a, var(--blue)); }
.lc-av .lc-ic { width: 17px; height: 17px; }
.lc-av.is-ghost { visibility: hidden; }
.lc-col { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; min-width: 0; }
.lc-msg.is-me .lc-col { align-items: flex-end; }
.lc-who { margin: 0 4px 3px; color: var(--muted); font-size: 11.5px; }
.lc-bubble { padding: 9px 13px; border-radius: 18px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgba(11, 59, 41, .08); border-bottom-left-radius: 6px; }
.lc-msg.is-bot .lc-bubble { border: 1px solid #d8ebe0; }
.lc-bubble a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lc-msg.is-me .lc-bubble { background: linear-gradient(135deg, #22a05a, var(--blue)); color: #fff; border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
.lc-msg.is-me .lc-bubble a { color: #fff; }
.lc-msg.is-pending .lc-bubble { opacity: .65; }
.lc-msg.is-failed .lc-bubble { background: #b91c1c; }
.lc-seen { display: inline-flex; align-items: center; gap: 3px; margin: 3px 4px 0; color: var(--muted); font-size: 11px; }
.lc-sys { align-self: center; margin: 10px 0 4px; padding: 4px 12px; border-radius: 999px; background: rgba(11, 59, 41, .06); color: var(--muted); font-size: 12px; text-align: center; }
.lc-sys--err { background: #fee2e2; color: #b91c1c; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px 38px; }
.lc-chip { padding: 7px 13px; border: 1px solid #bfe0cc; border-radius: 999px; background: #fff; color: var(--blue); font: 600 13px var(--font); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.lc-chip:hover { background: var(--blue-50); border-color: var(--blue); }
.lc-chip:active { transform: scale(.97); }
.lc-chip.is-handoff { border-color: rgba(232, 113, 10, .45); color: var(--red-600); }
.lc-chip.is-handoff:hover { background: #fff4ea; border-color: var(--red); }
.lc-typing { display: flex; align-items: center; gap: 4px; margin: 8px 0 2px 38px; color: var(--muted); font-size: 12.5px; }
.lc-typing[hidden] { display: none; }
.lc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fb3a8; animation: lc-dots 1.2s infinite ease-in-out; }
.lc-typing i:nth-child(2) { animation-delay: .15s; }
.lc-typing i:nth-child(3) { animation-delay: .3s; }
.lc-typing span { margin-left: 6px; }
@keyframes lc-dots { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.lc-end { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 16px 0 6px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; font-size: 13.5px; color: var(--muted); }
.lc-end strong { color: var(--ink); font-size: 15px; }
.lc-rate { display: flex; gap: 8px; margin: 4px 0; }
.lc-rate button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.lc-rate button:hover { border-color: var(--blue); color: var(--blue); }
.lc-rate .lc-ic { width: 17px; height: 17px; }

.lc-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.lc-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-soft); color: var(--ink); font: 15px/1.45 var(--font); resize: none; }
.lc-compose textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(27, 128, 70, .1); }
.lc-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 10px 20px -10px rgba(232, 113, 10, .9); transition: background .15s, transform .1s; }
.lc-send:hover { background: var(--red-600); }
.lc-send:active { transform: scale(.94); }
.lc-foot { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 0; padding: 0 0 8px; background: #fff; color: #94a3b8; font-size: 11px; }

@media (max-width: 600px) {
  .lc { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; transform-origin: center bottom; }
  .lc-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .lc-foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .lc-menu { right: 12px; }
  html.lc-lock, html.lc-lock body { overflow: hidden; }
  .lc-compose textarea { font-size: 16px; }
  .lc-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lc { transition: none; }
  .fab__dot::after, .lc-hero__wave { animation: none; }
}
