/* Phần bổ sung cho thương hiệu ENOVA: logo, khối giới thiệu và công cụ ước tính. */

/* ---------- Logo ---------- */
.site-header .brand img.enova-wordmark { width: auto; height: 54px; max-width: none; display: block; border-radius: 8px; }
.drawer-brand img.enova-wordmark { width: auto; height: 46px; max-width: none; border-radius: 7px; }
.footer-brand img.enova-wordmark-footer { width: auto; height: 68px; max-width: 100%; border-radius: 10px; }
@media (max-width: 640px) {
  .site-header .brand img.enova-wordmark { height: 42px; }
}

/* ---------- Khối kêu gọi và giới thiệu ---------- */
.enova-intro { text-align: center; max-width: 820px; }
.enova-cta-box { background: #062147; color: #fff; border-radius: 20px; padding: 40px 28px; text-align: center; }
.enova-cta-box h2 { color: #fff; margin: 8px 0 10px; }
.enova-cta-box p { color: #d6e0e7; max-width: 62ch; margin: 0 auto 20px; }
.enova-cta-box .eyebrow { color: #f78522; }

/* ---------- Công cụ ước tính (tiền tố ev- để không đụng CSS chung) ---------- */
.ev-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.ev-wrap *, .ev-wrap *::before, .ev-wrap *::after, .ev-dialog * { box-sizing: border-box; }
.ev-intro { padding-top: 40px; padding-bottom: 8px; }
.ev-intro h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; color: #062147; max-width: 22em; }
.ev-intro p { margin: 0; color: #52627a; font-size: 16.5px; max-width: 66ch; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 24px; align-items: start; padding-top: 24px; padding-bottom: 40px; color: #10233f; }
@media (max-width: 920px) { .ev-grid { grid-template-columns: minmax(0, 1fr); } }
.ev-form { background: #fff; border: 1px solid #d9dfe7; border-radius: 18px; padding: 4px 22px 18px; }
.ev-step { padding: 18px 0; border-bottom: 1px solid #d9dfe7; }
.ev-step:last-child { border-bottom: 0; }
.ev-step h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0 0 12px; color: #062147; }
.ev-n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #062147; color: #fff; font-size: 13px; }
.ev-label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.ev-hint { font-size: 13px; color: #5b6b82; margin: 4px 0 0; }
.ev-form select, .ev-form input[type="number"] { width: 100%; font: inherit; font-size: 16px; color: #10233f; background: #fff; border: 1.5px solid #d9dfe7; border-radius: 10px; padding: 11px 12px; }
.ev-form input[type="range"] { width: 100%; accent-color: #f78522; height: 30px; margin: 4px 0 0; }
.ev-billval { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev-billval span { font-size: 15px; font-weight: 600; color: #5b6b82; }
.ev-chips, .ev-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-chip { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 13px; border-radius: 999px; border: 1.5px solid #d9dfe7; background: #fff; color: #10233f; cursor: pointer; }
.ev-chip[aria-pressed="true"], .ev-chip[aria-selected="true"] { background: #062147; border-color: #062147; color: #fff; }
.ev-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .ev-opts { grid-template-columns: minmax(0, 1fr); } }
.ev-opt { position: relative; display: block; border: 1.5px solid #d9dfe7; border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; }
.ev-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.ev-opt b { display: block; font-size: 15px; }
.ev-opt small { display: block; color: #5b6b82; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.ev-opt:has(input:checked) { border-color: #f78522; background: #fef1e4; box-shadow: inset 0 0 0 1px #f78522; }
.ev-opt:has(input:focus-visible), .ev-chip:focus-visible, .ev-btn:focus-visible { outline: 3px solid #f78522; outline-offset: 2px; }
.ev-dayrow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #5b6b82; }

.ev-result { position: sticky; top: 100px; background: #062147; color: #f0f5f7; border-radius: 20px; padding: 24px; }
@media (max-width: 920px) { .ev-result { position: static; } }
.ev-result.ev-loading .ev-price, .ev-result.ev-loading .ev-kpis, .ev-result.ev-loading .ev-bars { opacity: .55; }
.ev-result h2 { margin: 0; font-size: 15px; font-weight: 600; color: #b1c2cd; }
.ev-price { margin: 6px 0 2px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ev-sep { color: #b1c2cd; font-weight: 500; margin: 0 6px; }
.ev-result .ev-note { font-size: 13px; color: #b1c2cd; margin: 8px 0 0; }
.ev-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-block: 1px solid #254464; }
.ev-kpis > div { padding: 13px 10px 13px 0; }
.ev-kpis > div + div { padding-left: 12px; border-left: 1px solid #254464; }
.ev-kpis strong { display: block; font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; }
.ev-kpis strong.ev-good { color: #a2d4eb; }
.ev-kpis span { font-size: 12.5px; color: #b1c2cd; }
@media (max-width: 420px) { .ev-kpis strong { font-size: 17px; } .ev-result { padding: 18px; } }
.ev-chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ev-chart-head h3 { margin: 0; font-size: 15px; color: #fff; }
.ev-legend { display: flex; gap: 12px; font-size: 12.5px; color: #b1c2cd; }
.ev-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.ev-key-save { background: #f78522; }
.ev-key-pay { background: #6b869c; }
.ev-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; height: 170px; margin-top: 12px; }
.ev-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 0; }
.ev-bar i { display: block; width: 100%; flex: none; }
.ev-bar i:first-child { border-radius: 4px 4px 0 0; margin-bottom: 2px; }
.ev-bar span { font-size: 10.5px; color: #b1c2cd; text-align: center; margin-top: 5px; }
.ev-spec { margin: 16px 0 0; border-top: 1px solid #254464; }
.ev-spec > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #254464; font-size: 14px; }
.ev-spec dt { color: #b1c2cd; }
.ev-spec dd { margin: 0; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.ev-spec dd small { display: block; font-weight: 400; color: #b1c2cd; }
.ev-result .ev-alert { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; background: #4a3310; color: #ffd9a0; font-size: 14px; }
.ev-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .ev-cta { grid-template-columns: 1fr; } }
.ev-btn { display: flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; }
.ev-btn-primary { background: #f78522; color: #1f1003; }
.ev-btn-primary:disabled { opacity: .6; cursor: wait; }
.ev-btn-ghost { background: transparent; color: #fff; border-color: #41698e; }
.ev-btn-plain { background: #fff; color: #10233f; border-color: #d9dfe7; }

.ev-dialog { border: 0; border-radius: 18px; padding: 0; width: calc(100% - 28px); max-width: 460px; max-height: calc(100dvh - 28px); color: #10233f; }
.ev-dialog::backdrop { background: rgba(3, 17, 34, .6); }
.ev-dialog form { padding: 22px; }
.ev-dialog h3 { margin: 0 0 6px; font-size: 20px; }
.ev-dialog p { margin: 0 0 12px; font-size: 14px; color: #5b6b82; }
.ev-dialog input:not([type="checkbox"]) { width: 100%; font: inherit; font-size: 16px; border: 1.5px solid #d9dfe7; border-radius: 10px; padding: 11px 12px; margin-bottom: 10px; }
.ev-dialog .ev-honey { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ev-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; }
.ev-consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.ev-dialog .ev-err { min-height: 20px; margin: 8px 0; color: #b4441f; font-size: 13.5px; }
.ev-dialog .ev-err.ev-ok { color: #1b6ea1; }
.ev-row { display: flex; justify-content: flex-end; gap: 10px; }

.ev-combo { padding-bottom: 56px; color: #10233f; }
.ev-combo h2 { color: #062147; margin: 0 0 6px; }
.ev-sub { color: #52627a; margin: 0 0 6px; max-width: 78ch; }
.ev-table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid #d9dfe7; border-radius: 14px; background: #fff; }
.ev-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; background: #fff; }
.ev-table :is(thead, tbody, tr) { background: transparent; }
.ev-table td { background: #fff; color: #1e293b; }
.ev-table tbody tr:nth-child(even) td { background: #fafbfc; }
.ev-table td, .ev-table th { font-size: 14px; }
.ev-table th, .ev-table td { padding: 11px 12px; border-bottom: 1px solid #e6ebf1; text-align: left; vertical-align: top; }
.ev-table thead th { background: #062147; color: #fff; font-size: 13px; }
.ev-table tbody th { white-space: nowrap; background: #f6f8fa; color: #062147; font-weight: 700; position: sticky; left: 0; }
.ev-table small { display: block; color: #5b6b82; }
.ev-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Trang nội dung dạng bài (giới thiệu, chính sách) ---------- */
.enova-prose { max-width: 880px; }
.enova-prose h1 { color: #062147; font-size: clamp(26px, 3.6vw, 38px); }
.enova-prose, .ct-prose { line-height: 1.75; color: #1e293b; overflow-wrap: anywhere; }
.enova-prose h2, .ct-prose h2 { font-size: 21px; color: #062147; margin: 24px 0 8px; }
.enova-prose h3, .ct-prose h3 { font-size: 18px; margin: 18px 0 6px; }
.enova-prose img, .ct-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.ct-prose iframe, .enova-prose iframe { max-width: 100%; border: 0; border-radius: 10px; }
.enova-prose table, .ct-prose table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.enova-prose td, .enova-prose th, .ct-prose td, .ct-prose th { border: 1px solid #d9dfe7; padding: 8px 10px; }
.enova-prose a, .ct-prose a { color: #1569cc; text-decoration: underline; }

/* ---------- Sản phẩm (tiền tố ct-) ---------- */
.ct-page { padding-top: 24px; padding-bottom: 56px; color: #10233f; }
.ct-page h1 { color: #062147; font-size: clamp(23px, 3vw, 33px); line-height: 1.25; margin: 10px 0 6px; }
.ct-crumbs { font-size: 13.5px; color: #5b6b82; display: flex; flex-wrap: wrap; gap: 6px; }
.ct-crumbs a { color: #1569cc; }
.ct-crumbs b { font-weight: 600; }
.ct-count { margin: 0 0 14px; color: #5b6b82; font-size: 14px; }
.ct-search { display: flex; gap: 10px; max-width: 620px; }
.ct-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border: 1.5px solid #d9dfe7; border-radius: 10px; }
.ct-chips, .ct-sort, .ct-allcats > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips { margin-top: 16px; }
.ct-chips a, .ct-allcats a { padding: 7px 13px; border-radius: 999px; border: 1.5px solid #d9dfe7; background: #fff; font-size: 14px; color: #10233f; }
.ct-chips a[aria-current], .ct-allcats a[aria-current] { background: #062147; border-color: #062147; color: #fff; }
.ct-allcats { margin-top: 14px; }
.ct-allcats summary { cursor: pointer; font-weight: 600; color: #1569cc; padding: 6px 0; }
.ct-allcats > div { margin-top: 10px; max-height: 320px; overflow-y: auto; }
.ct-sort { margin-top: 14px; align-items: center; font-size: 14px; }
.ct-sort span { color: #5b6b82; }
.ct-sort a { padding: 5px 10px; border-radius: 8px; color: #10233f; }
.ct-sort a[aria-current] { background: #ecf1f5; color: #1569cc; font-weight: 700; }
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 1050px) { .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ct-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e1e7ee; border-radius: 14px; overflow: hidden; min-width: 0; }
.ct-card:hover { box-shadow: 0 10px 26px rgba(6, 33, 71, .12); }
.ct-card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; }
.ct-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.ct-off, .ct-badge { position: absolute; top: 8px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ct-off { left: 8px; background: #d9480f; color: #fff; }
.ct-badge { right: 8px; background: #062147; color: #fff; }
.ct-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 14px; flex: 1; }
.ct-brand { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #7b8a9f; }
.ct-card h3 { margin: 0; font-size: 14.5px; line-height: 1.4; flex: 1; }
.ct-card h3 a { color: #10233f; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ct-price strong { color: #c2410c; font-size: 16.5px; }
.ct-price s { color: #8b97a8; font-size: 13px; }
.ct-price em { color: #1569cc; font-style: normal; font-weight: 700; font-size: 14px; }
.ct-price span { font-size: 13px; color: #5b6b82; }
.ct-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.ct-pager a, .ct-pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.ct-pager a { border: 1.5px solid #d9dfe7; color: #10233f; }
.ct-pager a[aria-current] { background: #062147; border-color: #062147; color: #fff; }
.ct-empty { margin-top: 28px; }
.ct-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .ct-detail { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.ct-main { border: 1px solid #e1e7ee; border-radius: 16px; background: #fff; aspect-ratio: 1; overflow: hidden; }
.ct-main img { width: 100%; height: 100%; object-fit: contain; }
.ct-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.ct-thumbs button { flex: none; width: 72px; height: 72px; padding: 3px; border: 2px solid #e1e7ee; border-radius: 10px; background: #fff; cursor: pointer; }
.ct-thumbs button[aria-current] { border-color: #f78522; }
.ct-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.ct-info h1 { margin-top: 0; }
.ct-meta { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.ct-meta span { color: #5b6b82; margin-right: 6px; }
.ct-price-lg { background: #fdf3ea; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.ct-price-lg strong { font-size: 28px; }
.ct-price-lg strong.ct-ask { font-size: 21px; color: #1569cc; }
.ct-off-inline { background: #d9480f; color: #fff !important; border-radius: 6px; padding: 2px 8px; font-weight: 700; }
.ct-variants { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.ct-variants th, .ct-variants td { border: 1px solid #e1e7ee; padding: 7px 10px; text-align: left; }
.ct-specs { padding-left: 20px; line-height: 1.8; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ct-btn-line { border: 1.5px solid #062147; color: #062147; }
.ct-note { font-size: 13px; color: #5b6b82; }
.ct-desc { margin-top: 36px; max-width: 900px; }
.ct-quote { margin-top: 36px; max-width: 720px; border: 1px solid #e1e7ee; border-radius: 16px; padding: 20px; background: #f8fafb; scroll-margin-top: 110px; }
.ct-quote h2, .ct-related h2, .ct-desc > h2 { color: #062147; margin-top: 0; }
.ct-related { margin-top: 40px; }

/* ---------- Ghi đè CSS gốc ---------- */
/* Logo chữ nhật: CSS gốc ép logo thành ô vuông nhỏ trên điện thoại. */
.site-header .header-main .brand { flex: 0 0 auto; }
.site-header .header-main .brand img.enova-wordmark { width: 139px !important; height: 54px !important; min-width: 139px; object-fit: contain; }
.drawer-content .drawer-brand img.enova-wordmark { width: 118px !important; height: 46px !important; min-width: 118px; object-fit: contain; }
@media (max-width: 640px) {
  .site-header .header-main .brand img.enova-wordmark { width: 108px !important; height: 42px !important; min-width: 108px; }
}
@media (max-width: 359px) {
  .site-header .header-main .brand img.enova-wordmark { width: 92px !important; height: 36px !important; min-width: 92px; }
}
/* Ảnh sản phẩm luôn nằm gọn trong khung vuông. */
.ct-card .ct-card-img { height: 0; padding-bottom: 100%; aspect-ratio: auto; flex: none; }
.ct-card .ct-card-img img.card-photo { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; margin: 0; border-radius: 0; transform: none !important; }

/* Trợ lý AI đang ẩn: thanh dưới trên điện thoại còn hai nút, chia đều. */
.mobile-sticky-bottom:not(:has(.m-btn-chat)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-sticky-bottom:not(:has(.m-btn-chat)) .m-bottom-btn { flex: 1 1 0; }

/* Bảng nằm trong NỘI DUNG do người dùng soạn (mô tả sản phẩm, danh mục, bài viết, trang giới thiệu...):
   nền sáng, chữ tối. styles.css mặc định tô tối mọi bảng cho các bảng thiết kế sẵn trên nền tối
   (.tech-table-wrap), nên chỉ ghi đè trong các vùng nội dung này. Style ghi thẳng trong HTML vẫn được ưu tiên. */
:is(.ct-prose, .enova-prose, .article-markdown-content) .table-wrap:not(.tech-table-wrap) { background: transparent; border: 0; border-radius: 0; }
:is(.ct-prose, .enova-prose, .article-markdown-content) table { min-width: 0; background: #fff; }
:is(.ct-prose, .enova-prose, .article-markdown-content) :is(thead, tbody, tfoot, tr) { background: transparent; }
:is(.ct-prose, .enova-prose, .article-markdown-content) :is(th, td),
.ct-variants :is(th, td) { background: #fff; color: #1e293b; border: 1px solid #d9dfe7; padding: 9px 12px; font-size: 14px; line-height: 1.55; white-space: normal; }
:is(.ct-prose, .enova-prose, .article-markdown-content) th,
.ct-variants th { background: #f1f5f9; color: #0f172a; font-weight: 700; }
:is(.ct-prose, .enova-prose, .article-markdown-content) :is(th, td) > :is(p, ul, ol) { margin-block: 0; }
.ct-variants, .ct-variants :is(thead, tbody, tr) { min-width: 0; background: #fff; }

/* ---------- Khối trang chủ dựng trong admin (Trang chủ) ---------- */
.hb-slider { position: relative; background: #062147; }
.hb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.hb-slide picture, .hb-slide img { display: block; width: 100%; height: clamp(360px, 42vw, 600px); object-fit: cover; }
.hb-slide-link { display: block; }
.hb-slide-text { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; background: linear-gradient(90deg, rgba(4, 22, 45, .82) 0%, rgba(4, 22, 45, .55) 45%, rgba(4, 22, 45, 0) 75%); }
.hb-slide-text .container > * { max-width: 560px; pointer-events: auto; }
.hb-slide-text .hb-eyebrow { display: block; color: #f3bf53; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hb-slide-text .hb-title { color: #fff; font-size: clamp(26px, 4vw, 46px); line-height: 1.2; margin: 10px 0; }
.hb-slide-text p { color: #ebeff5; font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.hb-slide-text .btn { display: inline-flex; width: auto; }
.hb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #062147; font-size: 28px; line-height: 1; cursor: pointer; }
.hb-prev { left: 14px; }
.hb-next { right: 14px; }
.hb-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.hb-dots button { width: 28px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hb-dots button::before { content: ''; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.hb-dots button[aria-current="true"]::before { background: #f3bf53; }

.hb-section { padding-top: 44px; padding-bottom: 8px; }
.hb-heading { text-align: center; color: #062147; font-size: clamp(23px, 3vw, 32px); margin: 0 0 22px; }
.hb-more { text-align: center; margin: 22px 0 0; }
.hb-banners { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-banners.hb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hb-banners.hb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hb-banner { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #ebeef1; }
.hb-banner img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s; }
a.hb-banner:hover img { transform: scale(1.04); }
.hb-banner-text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 34px 16px 14px; color: #fff; background: linear-gradient(0deg, rgba(4, 22, 45, .86), rgba(4, 22, 45, 0)); }
.hb-banner-text small { font-size: 13px; color: #ebeff5; }
.hb-banner-text strong { font-size: 18px; line-height: 1.3; }
.hb-banner-btn { background: #fff; color: #062147; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; }
.hb-about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hb-about img { width: 100%; height: auto; border-radius: 16px; object-fit: cover; }
.hb-about-reverse img { order: 2; }
.hb-about h2 { color: #062147; font-size: clamp(23px, 3vw, 32px); margin: 0 0 12px; }
.hb-about p { color: #334155; font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
@media (max-width: 900px) {
  .hb-banners, .hb-banners.hb-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hb-slide picture, .hb-slide img { height: 440px; }
  .hb-slide-text { align-items: flex-end; padding-bottom: 44px; background: linear-gradient(0deg, rgba(4, 22, 45, .88) 0%, rgba(4, 22, 45, .5) 50%, rgba(4, 22, 45, 0) 80%); }
  .hb-slide-text p { font-size: 14px; }
  .hb-arrow { display: none; }
  .hb-section { padding-top: 30px; }
  .hb-about { grid-template-columns: 1fr; gap: 18px; }
  .hb-about-reverse img { order: 0; }
  /* Nhóm banner trên điện thoại: vuốt ngang. */
  .hb-banners, .hb-banners.hb-cols-2, .hb-banners.hb-cols-4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .hb-banner { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- Trình sửa trang trực quan ---------- */
[data-sx-hidden] { display: none !important; }
.hb-cards { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-card { border: 1px solid #e2e7e9; border-radius: 14px; background: #fff; padding: 20px; }
.hb-card h3 { margin: 0 0 8px; color: #062147; font-size: 18px; }
.hb-card p { margin: 0; color: #334155; line-height: 1.7; font-size: 15px; }
.hb-text { max-width: 860px; }
.hb-text p { color: #334155; font-size: 16px; line-height: 1.8; margin: 0 0 14px; }
.hb-faq { max-width: 860px; }
.hb-faq details { border: 1px solid #e2e7e9; border-radius: 12px; background: #fff; padding: 14px 18px; margin-bottom: 10px; }
.hb-faq summary { cursor: pointer; font-weight: 700; color: #062147; }
.hb-faq details p { margin: 10px 0 0; color: #334155; line-height: 1.7; }
.hb-cta { text-align: center; background: #062147; border-radius: 18px; padding: 36px 20px; }
.hb-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); }
.hb-cta p { color: #e0e8f0; margin: 0 auto 20px; max-width: 640px; line-height: 1.7; }
.hb-cta .btn { display: inline-flex; width: auto; }
.hb-figure { margin: 0; text-align: center; }
.hb-figure img { width: 100%; height: auto; border-radius: 16px; }
.hb-figure figcaption { margin-top: 10px; color: #64748b; font-size: 14px; }
@media (max-width: 700px) { .hb-cards { grid-template-columns: 1fr; } }
