/*
 * INTERTAX homepage — template-parts/home.php. Everything is scoped under .hx / hx-* so the base template CSS on
 * inner pages is untouched. One brand blue (#024F9E) + its tint ramp (see intertax.css), navy surfaces, white cards.
 */
.hx {
  --hx-blue: #024F9E;
  --hx-blue-600: #2064AA;
  --hx-blue-700: #023E7B;
  --hx-navy: #02458A;
  --hx-deep: #013A75;
  --hx-sky: #8CC3FA;
  --hx-ice: #DCE6F1;
  --hx-bg: #F5F8FC;
  --hx-ink: #0A182B;
  --hx-text: #475A72;
  --hx-line: #E5EBF3;
  --hx-r: 22px;
  --hx-ease: cubic-bezier(.22, .8, .24, 1);
  --trust-h: 112px;                 /* height of the trust strip; JS keeps it in sync so it straddles hero / next section 50-50 */
  font-family: "Be Vietnam Pro", Poppins, system-ui, sans-serif;
  color: var(--hx-text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx :where(h1, h2, h3, p, ul, li, figure, blockquote) { margin: 0; padding: 0; font-family: inherit; border: 0; quotes: none; }
.hx ul { list-style: none; }
:where(.hx a) { text-decoration: none; color: inherit; }
.hx img { max-width: 100%; display: block; }
:where(.hx button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.hx a:focus-visible, .hx button:focus-visible { outline: 3px solid var(--hx-sky); outline-offset: 3px; border-radius: 12px; }
.hx-container { width: min(1240px, 100% - 48px); margin-inline: auto; position: relative; }
.hx-ico { width: 22px; height: 22px; flex: none; }
.hx-arrow { width: 18px; height: 18px; flex: none; transition: transform .35s var(--hx-ease); }

/* ---------- shared bits ---------- */
.hx-section { position: relative; padding: clamp(40px, 5.5vw, 72px) 0; }
/* every light section (not the blue bands / testimonials, + the FDI quote band) = the "Dịch vụ nổi bật" background, never plain white */
.hx-section:not(.hx-dark, .hx-testi) { background: radial-gradient(700px 360px at 8% 0%, rgba(79, 155, 230, .2), transparent 70%), radial-gradient(600px 320px at 100% 100%, rgba(2, 79, 158, .1), transparent 70%), linear-gradient(180deg, #fff 0%, #E9F2FC 100%); }
.hx-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 3.6vw, 44px); }
.hx-head-left { text-align: left; margin-inline: 0; }
.hx-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.hx-head h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.16; font-weight: 700; letter-spacing: -.02em; color: var(--hx-ink); text-wrap: balance; }
.hx-head h2 .hx-grad { white-space: nowrap; }   /* keep the highlighted words on one line ("mọi bài toán", "khách hàng"…) */
.hx-head > p:not(.hx-kicker) { margin-top: 18px; font-size: 17px; line-height: 1.65; }
/* ".hx " prefix on kicker / lead: beats vendor main.min.css p:first-of-type / p:last-of-type { margin: 0 } (0,1,1) */
.hx .hx-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(2, 79, 158, .08); color: var(--hx-blue); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hx-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-blue); box-shadow: 0 0 0 4px rgba(2, 79, 158, .16); }
.hx .hx-kicker-light { background: rgba(255, 255, 255, .1); color: #DCEBFF; }
.hx-kicker-light::before { background: var(--hx-sky); box-shadow: 0 0 0 4px rgba(140, 195, 250, .22); }
.hx-grad { background: linear-gradient(100deg, var(--hx-blue) 0%, #4F9BE6 50%, var(--hx-blue) 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-grad-light { background: linear-gradient(100deg, #FFFFFF 0%, #8CC8FF 35%, #4FA2F7 60%, #FFFFFF 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }

.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-size: 15.5px; font-weight: 600; line-height: 1; white-space: nowrap; border: 1.5px solid transparent; transition: transform .35s var(--hx-ease), box-shadow .35s var(--hx-ease), background-color .25s, color .25s, border-color .25s; }
.hx-btn:hover { transform: translateY(-3px); }
.hx-btn:hover .hx-arrow, .hx-link:hover .hx-arrow, .hx-card:hover .hx-arrow, .hx-news-card:hover .hx-arrow, .hx-panel-list a:hover .hx-arrow { transform: translateX(5px); }
.hx-btn-light { background: #fff; color: var(--hx-blue); box-shadow: 0 10px 30px rgba(1, 58, 117, .3); }
.hx-btn-light:hover { box-shadow: 0 16px 40px rgba(1, 58, 117, .4); color: var(--hx-blue-700); }
.hx-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
.hx-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); }

/* running light around the border on hover (like oxu.com cards): a conic gradient rotated through an animatable angle, cut to a 1.5px ring */
@property --hx-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hx-btn-glow { position: relative; isolation: isolate; }
.hx-btn-glow::before { content: ""; position: absolute; inset: -2px; z-index: 1; border-radius: inherit; padding: 3px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--hx-ang), transparent 0 50%, var(--bm-a, rgba(140, 195, 250, .2)) 60%, var(--bm-b, #8CC3FA) 82%, var(--bm-c, #fff) 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.hx-btn-glow:hover { box-shadow: 0 0 28px rgba(140, 195, 250, .38); }
.hx-btn-ghost.hx-btn-glow:hover { border-color: rgba(255, 255, 255, .12); }
/* white buttons need a beam that reads both on the blue behind them and on their own white face */
.hx-btn-light.hx-btn-glow { --bm-a: rgba(79, 162, 247, .25); --bm-b: #4FA2F7; --bm-c: #8CC8FF; }
/* white buttons sit on blue: ring in light blue/white around them; the outline button sits on white: ring in brand blue */
.hx-btn-outline.hx-btn-glow { --bm-a: rgba(45, 120, 200, .2); --bm-b: #2D78C8; --bm-c: #024F9E; }
.hx-btn-outline.hx-btn-glow:hover { box-shadow: 0 0 24px rgba(2, 79, 158, .22); }
.hx-btn-glow:hover::before { opacity: 1; animation: hx-ang 2.2s linear infinite; }
@keyframes hx-ang { to { --hx-ang: 360deg; } }
.hx-btn-outline { color: var(--hx-blue); border-color: rgba(2, 79, 158, .3); background: #fff; }
.hx-btn-outline:hover { background: var(--hx-blue); color: #fff; border-color: var(--hx-blue); box-shadow: 0 12px 30px rgba(2, 79, 158, .3); }
.hx-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--hx-blue); }

.hx-glass { background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)); border: 1px solid rgba(255, 255, 255, .24); border-radius: 22px; box-shadow: 0 24px 60px rgba(1, 45, 95, .35), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }

/* scroll reveal (only when JS is running: html.hx-js) */
.hx-js .hx-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--hx-ease), transform .9s var(--hx-ease); transition-delay: var(--d, 0ms); }
.hx-js .hx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- header polish (homepage only) ---------- */
body:has(.hx) #header-wrapper { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(238, 246, 255, .8)); border-bottom: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(2, 79, 158, .1), 0 10px 30px rgba(2, 79, 158, .14); }
/* "liquid glass" specular sheen: soft light band along the top edge + a faint diagonal refraction streak */
body:has(.hx) #header-wrapper::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 55%), linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 42%, transparent 54%); }

/* ---------- hero ---------- */
.hx-hero { position: relative; isolation: isolate; color: #fff; background: var(--hx-deep); padding: clamp(64px, 9vw, 120px) 0 calc(var(--trust-h) / 2 + clamp(64px, 7vw, 104px)); overflow: hidden; }
.hx-hero-bg { position: absolute; inset: 0; z-index: -1; }
.hx-hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(1, 58, 117, .92) 0%, rgba(2, 79, 158, .78) 48%, rgba(2, 79, 158, .52) 100%), linear-gradient(180deg, transparent 66%, rgba(1, 58, 117, .48)); }
.hx-orb { position: absolute; z-index: 1; border-radius: 50%; }
.hx-orb-a { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(79, 155, 230, .45), transparent 68%); }
.hx-orb-b { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(140, 195, 250, .22), transparent 68%); }
@keyframes hx-drift { to { transform: translate3d(-60px, 50px, 0) scale(1.15); } }

.hx-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hx-hero-copy { max-width: 1000px; }
.hx h1 { margin-top: 0; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
/* keynote headline (same mechanism as oxu.com/products/drive): slides share one grid cell, the active one fades/slides in, the accent line is a shimmering gradient */
.hx-keynote { display: grid; transition: height .5s cubic-bezier(.2, .7, .2, 1); }
.hx-kslide { grid-area: 1 / 1; align-self: start; display: block; padding-bottom: .14em; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .65s, transform .65s cubic-bezier(.2, .7, .2, 1); }
.hx-kslide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hx-kaccent { display: block; padding-bottom: .1em; line-height: 1.12; background-image: linear-gradient(120deg, #FFFFFF 0%, #A6D3FF 30%, #4FA2F7 60%, #A6D3FF 80%, #FFFFFF 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 900px) { .hx-kaccent { white-space: nowrap; } }   /* accent line stays on one line on desktop */
.hx-kslide.is-active .hx-kaccent { animation: hx-shimmer-text 3.2s ease-in-out 1 both; }
@keyframes hx-shimmer-text { to { background-position: 200% 50%; } }
.hx .hx-lead { margin-top: 24px; max-width: 760px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; color: #D3E3F7; }
.hx-lead strong { color: #fff; font-weight: 600; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* staggered intro */
.hx-hero .hx-in { opacity: 0; transform: translateY(26px); animation: hx-up .9s var(--hx-ease) forwards; }
.hx-hero .hx-hero-copy > :nth-child(2) { animation-delay: .1s; }
.hx-hero .hx-hero-copy > :nth-child(3) { animation-delay: .22s; }
.hx-hero .hx-hero-copy > :nth-child(4) { animation-delay: .34s; }
@keyframes hx-up { to { opacity: 1; transform: none; } }

/* ---------- trust strip ---------- */
.hx-trust { position: relative; z-index: 3; margin: calc(var(--trust-h) / -2) 0; }
.hx-trust-inner { position: relative; display: flex; align-items: center; gap: 36px; padding: 18px 20px 18px 36px; background: linear-gradient(180deg, #fff 0%, #F4F8FE 100%); border-radius: 28px; box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(2, 79, 158, .06), 0 14px 28px rgba(2, 79, 158, .12), 0 40px 80px rgba(2, 79, 158, .22); }
.hx-trust-inner::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -26px; height: 56px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(2, 79, 158, .34), transparent 70%); pointer-events: none; }
.hx-trust-inner p { flex: none; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--hx-ink); }
.hx-trust-pill { display: block; width: max-content; margin-bottom: 8px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, var(--hx-blue), #4F9BE6); }
.hx-badges { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hx-badges li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px; background: linear-gradient(135deg, #E9F2FC, #F7FAFE); border: 1px solid #D7E5F5; transition: transform .4s var(--hx-ease), box-shadow .4s var(--hx-ease), border-color .3s; }
.hx-badges li:hover { transform: translateY(-4px); border-color: rgba(2, 79, 158, .35); box-shadow: 0 16px 34px rgba(2, 79, 158, .16); }
.hx-badges img { height: 52px; width: auto; max-width: 96px; object-fit: contain; flex: none; }
.hx-badges span { font-size: 13.5px; line-height: 1.35; font-weight: 600; color: var(--hx-blue-700); }

/* ---------- services cards ---------- */
.hx-section#dich-vu { padding-top: calc(clamp(40px, 5.5vw, 72px) + var(--trust-h) / 2 + 24px); scroll-margin-top: 70px; }
.hx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hx-line); border-radius: 24px; overflow: hidden; box-shadow: 0 2px 6px rgba(2, 62, 123, .04); transition: transform .5s var(--hx-ease), box-shadow .5s var(--hx-ease), border-color .3s; }
.hx-card:hover { transform: translateY(-10px); border-color: rgba(2, 79, 158, .25); box-shadow: 0 30px 60px rgba(2, 62, 123, .18); }
.hx-card-img { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--hx-ice); }
.hx-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .9s var(--hx-ease); }
.hx-card:hover .hx-card-img img { transform: scale(1.09); }
.hx-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 58, 117, .3) 0%, transparent 38%, rgba(2, 62, 123, .5) 100%); }
.hx-card-img b { position: absolute; z-index: 1; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); }
.hx-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 24px 26px; }
.hx-card-body small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-blue-600); }
.hx-card-body strong { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--hx-ink); letter-spacing: -.01em; }
.hx-card-text { font-size: 14.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.hx-card-body .hx-link { margin-top: auto; padding-top: 12px; }
/* featured services (front page): no photo — number, tag, title, text and link sit on the same rows in all 4 cards (subgrid) */
.hx-cards-flat .hx-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; padding: 28px 26px 24px; }
.hx-cards-flat .hx-card-body { display: contents; }
.hx-cards-flat .hx-card-body small { justify-self: start; align-self: start; }
.hx-card-num { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.02em; background: linear-gradient(135deg, #4F9BE6, var(--hx-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-cards-flat .hx-card-body .hx-link { align-self: end; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--hx-line); }

/* ---------- dark sections ---------- */
.hx-dark { color: #C9DCF3; background: linear-gradient(160deg, var(--hx-deep) 0%, var(--hx-blue) 55%, #0A63BC 100%); overflow: hidden; isolation: isolate; }
.hx-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hx-glow { position: absolute; z-index: -1; width: 640px; height: 640px; left: -200px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 155, 230, .45), transparent 66%); }
.hx-glow-r { left: auto; right: -220px; top: auto; bottom: -260px; }
.hx-dark .hx-head h2 { color: #fff; }
.hx-dark .hx-head > p:not(.hx-kicker) { color: #C0D5EE; }

/* ---------- tabs (solutions + news) ---------- */
.hx-tabs { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.hx-tablist { display: flex; flex-direction: column; gap: 10px; }
.hx-tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 16px; text-align: left; font-size: 15.5px; font-weight: 600; color: #D6E6FA; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .3s, color .3s, transform .35s var(--hx-ease), border-color .3s; }
.hx-tab:hover { background: rgba(255, 255, 255, .14); transform: translateX(4px); }
.hx-tab.is-active { background: #fff; color: var(--hx-blue); border-color: #fff; transform: none; box-shadow: 0 18px 40px rgba(1, 45, 95, .35); }
.hx-panels { min-width: 0; }
.hx-panel[hidden] { display: none; }
.hx-panel.is-active { animation: hx-panel .55s var(--hx-ease); }
@keyframes hx-panel { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hx-solutions .hx-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 30px 70px rgba(1, 45, 95, .4); }
.hx-solutions .hx-panel[hidden] { display: none; }
@media (min-width: 961px) {   /* every panel in the same cell → the block keeps the tallest panel's height, so switching tabs never shifts the page (mobile keeps natural height: a 2-item panel stretched to the 6-item one leaves a big empty band) */
  .hx-solutions .hx-panels { display: grid; }
  .hx-solutions .hx-panel { grid-area: 1 / 1; }
  .hx-solutions .hx-panel[hidden] { display: grid; visibility: hidden; pointer-events: none; }
}
.hx-panel-main { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hx-panel-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #E9F2FC; color: #024F9E; }   /* = .itx-ab-ico on the about page */
.hx-panel-ico .hx-ico { width: 26px; height: 26px; }
.hx-panel-main h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.hx-panel-main p { font-size: 16px; line-height: 1.7; color: #C9DCF3; }
.hx-panel-main .hx-btn { margin-top: 10px; }
.hx-panel-list { padding: clamp(16px, 2vw, 28px) clamp(20px, 2.4vw, 36px); background: rgba(1, 40, 85, .3); display: flex; flex-direction: column; justify-content: center; }
.hx-panel-list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.hx-panel-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 4px; font-size: 16px; font-weight: 500; color: #fff; transition: color .25s, padding .35s var(--hx-ease); }
.hx-panel-list a:hover { color: var(--hx-sky); padding-left: 12px; }

/* ---------- why ---------- */
.hx-why .itx-q-cta { margin: clamp(48px, 6vw, 80px) auto 0; }   /* quote button under the why grid (design/home.php) */
.hx-why-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hx-why-media { position: relative; }
.hx-why-media::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border-radius: 34px; background: linear-gradient(145deg, var(--hx-blue), #4F9BE6); opacity: .14; }
.hx-why-media img { position: relative; width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; border-radius: 30px; box-shadow: 0 40px 80px rgba(2, 62, 123, .28); }
.hx-why-badge { position: absolute; left: -22px; bottom: 32px; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; max-width: 250px; background: linear-gradient(145deg, rgba(2, 79, 158, .88), rgba(1, 46, 92, .88)); }
.hx-why-badge strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.hx-why-badge span { font-size: 13.5px; line-height: 1.45; color: #D3E3F7; }
.hx-why-list { display: flex; flex-direction: column; gap: 16px; }
.hx-why-item { display: flex; gap: 22px; padding: 26px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--hx-line); box-shadow: 0 2px 6px rgba(2, 62, 123, .04), 0 14px 32px rgba(2, 62, 123, .06); transition: transform .45s var(--hx-ease), background-color .3s, box-shadow .45s var(--hx-ease), border-color .3s; }
.hx-why-item:hover { transform: translateX(10px); box-shadow: 0 24px 50px rgba(2, 62, 123, .12); }
.hx-why-n { flex: none; width: 52px; font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--hx-blue-600); padding-top: 4px; }
.hx-why-item h3 { font-size: 20px; font-weight: 700; color: var(--hx-ink); margin-bottom: 8px; letter-spacing: -.01em; }
.hx-why-item p, .hx-why-item li { font-size: 15.5px; line-height: 1.7; }
.hx-why-item ul { display: flex; flex-direction: column; gap: 8px; }
.hx-why-item li { position: relative; padding-left: 22px; }
.hx-why-item li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(145deg, #4F9BE6, var(--hx-blue)); }
.hx-why-item strong { color: var(--hx-blue); }
.hx-why-tam { background: linear-gradient(135deg, var(--hx-blue), var(--hx-blue-700)); border-color: transparent; color: #D6E6FA; }
.hx-why-tam h3, .hx-why-tam strong { color: #fff; }
.hx-why-tam .hx-why-glyph { width: auto; min-width: 84px; font-size: 40px; -webkit-text-stroke: 0; background: linear-gradient(180deg, #fff, var(--hx-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .02em; }

/* ---------- stats ---------- */
.hx-stats { position: relative; padding: clamp(36px, 4.5vw, 56px) 0; color: #fff; background: radial-gradient(900px 300px at 15% 0%, rgba(140, 195, 250, .35), transparent 70%), linear-gradient(120deg, var(--hx-blue-700), var(--hx-blue) 55%, #0A63BC); overflow: hidden; }
.hx-stats::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.hx-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.hx-stat { padding: 12px 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hx-stat + .hx-stat { border-left: 1px solid rgba(255, 255, 255, .22); }
.hx-stat strong { font-size: clamp(48px, 6.4vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #B9D9FA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-stat > span { font-size: 16px; line-height: 1.5; color: #D3E3F7; max-width: 250px; }

/* ---------- testimonials ---------- */
.hx-testi .hx-head { max-width: 900px; }   /* "Niềm tin khách hàng của INTERTAX" on one line on desktop */
#dich-vu .hx-head { max-width: 900px; }   /* "Một đối tác - Đồng hành toàn diện" stays on one line on desktop */
.hx-testi { background: radial-gradient(600px 300px at 90% 0%, rgba(79, 155, 230, .22), transparent 70%), radial-gradient(500px 280px at 0% 100%, rgba(2, 79, 158, .12), transparent 70%), linear-gradient(180deg, #EEF4FB, #DDEAF8); }
.hx-slider { max-width: 1060px; margin-inline: auto; }
.hx-slides { display: grid; }
.hx-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; opacity: 0; visibility: hidden; transform: translateX(30px) scale(.98); transition: opacity .6s var(--hx-ease), transform .7s var(--hx-ease), visibility 0s .7s; }
.hx-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hx-quote { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 52px); border-radius: 28px; color: #D6E6FA; background: radial-gradient(520px 320px at 100% 100%, rgba(140, 195, 250, .38), transparent 70%), linear-gradient(135deg, var(--hx-blue-700) 0%, var(--hx-blue) 55%, #0A63BC 100%); box-shadow: 0 34px 70px rgba(2, 79, 158, .36); overflow: hidden; }
.hx-qmark { position: absolute; z-index: -1; right: 28px; top: -6px; font-family: Georgia, serif; font-size: 190px; line-height: 1; font-weight: 700; color: rgba(255, 255, 255, .14); pointer-events: none; transform: scaleX(-1); }
.hx-stars { display: flex; gap: 5px; }
.hx-stars svg { width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(140, 195, 250, .55)); }
.hx-quote blockquote { position: relative; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.45; font-weight: 600; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.hx-quote figcaption { display: flex; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 14.5px; font-weight: 500; color: #C9DCF3; }
.hx-quote figcaption img { height: 30px; width: auto; }
.hx-quote-img { position: relative; border-radius: 28px; overflow: hidden; min-height: 280px; box-shadow: 0 34px 70px rgba(2, 79, 158, .28); }
.hx-quote-img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.hx-slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.hx-iconbtn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--hx-blue); border: 1px solid var(--hx-line); transition: background-color .25s, color .25s, transform .3s var(--hx-ease), box-shadow .3s; }
.hx-iconbtn:hover { background: var(--hx-blue); color: #fff; transform: scale(1.08); box-shadow: 0 10px 24px rgba(2, 79, 158, .35); }
.hx-iconbtn svg { width: 20px; height: 20px; }
.hx-dots { display: flex; gap: 8px; }
.hx-dots i { width: 9px; height: 9px; border-radius: 999px; background: #B3CAE2; transition: width .4s var(--hx-ease), background-color .3s; }
.hx-dots i.is-active { width: 30px; background: var(--hx-blue); }

/* ---------- local → global ---------- */
.hx-global-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hx-global-copy h2 { font-size: clamp(26px, 3.1vw, 44px); line-height: 1.1; white-space: nowrap; font-weight: 700; letter-spacing: -.03em; color: #fff; margin-bottom: 22px; }
.hx-global-copy p:not(.hx-kicker) { font-size: 17px; line-height: 1.75; color: #C0D5EE; margin-bottom: 32px; max-width: 540px; }
.hx-global-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hx-orbit { position: relative; width: min(100%, 340px); aspect-ratio: 1; display: grid; place-items: center; }
.hx-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(190, 220, 255, .38); }
.hx-ring.r1 { inset: 0; } .hx-ring.r2 { inset: 17%; border-style: solid; border-color: rgba(190, 220, 255, .2); } .hx-ring.r3 { inset: 34%; border-color: rgba(190, 220, 255, .3); }
.hx-core { position: relative; display: grid; place-items: center; width: 24%; aspect-ratio: 1; border-radius: 50%; font-weight: 700; font-size: 18px; color: var(--hx-deep); background: linear-gradient(145deg, #fff, var(--hx-sky)); box-shadow: 0 0 0 10px rgba(140, 195, 250, .2), 0 0 60px rgba(140, 195, 250, .7); animation: hx-pulse 2s ease-in-out infinite; }
.hx-core::before, .hx-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(190, 220, 255, .7); opacity: 0; animation: hx-ripple 2s ease-out infinite; pointer-events: none; }
.hx-core::after { animation-delay: -1s; }
@keyframes hx-ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
@keyframes hx-pulse { 50% { box-shadow: 0 0 0 20px rgba(140, 195, 250, .08), 0 0 90px rgba(140, 195, 250, .9); } }
.hx-orbit i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px rgba(140, 195, 250, .85); }
.hx-orbit .o1 { animation: hx-o1 14s linear infinite; } .hx-orbit .o2 { animation: hx-o2 22s linear infinite; width: 10px; height: 10px; margin: -5px; } .hx-orbit .o3 { display: none; }
@keyframes hx-o1 { from { transform: rotate(0) translateX(170px) rotate(0); } to { transform: rotate(360deg) translateX(170px) rotate(-360deg); } }
@keyframes hx-o2 { from { transform: rotate(120deg) translateX(112px) rotate(-120deg); } to { transform: rotate(480deg) translateX(112px) rotate(-480deg); } }
@keyframes hx-o3 { from { transform: rotate(240deg) translateX(87px) rotate(-240deg); } to { transform: rotate(600deg) translateX(87px) rotate(-600deg); } }
.hx-countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hx-countries li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); transition: background-color .3s, transform .35s var(--hx-ease), border-color .3s; }
.hx-countries li:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); transform: translateY(-4px); }
.hx-countries b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--hx-deep); background: linear-gradient(145deg, #fff, var(--hx-sky)); }

/* ---------- news ---------- */
.hx-news .hx-tabs { display: block; }
.hx-tablist-pills { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hx-tablist-pills .hx-tab { width: auto; padding: 11px 22px; border-radius: 999px; font-size: 15px; color: var(--hx-blue); background: #fff; border-color: var(--hx-line); }
.hx-tablist-pills .hx-tab:hover { background: var(--hx-ice); transform: translateY(-2px); }
.hx-tablist-pills .hx-tab.is-active { background: var(--hx-blue); color: #fff; border-color: var(--hx-blue); transform: none; box-shadow: 0 12px 26px rgba(2, 79, 158, .32); }
.hx-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hx-news-grid[hidden] { display: none; }
.hx-news-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--hx-line); transition: transform .5s var(--hx-ease), box-shadow .5s var(--hx-ease), border-color .3s; }
.hx-news-card:hover { transform: translateY(-8px); border-color: rgba(2, 79, 158, .25); box-shadow: 0 28px 56px rgba(2, 62, 123, .16); }
.hx-news-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hx-ice); }
.hx-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--hx-ease); }
.hx-news-card:hover .hx-news-img img { transform: scale(1.08); }
.hx-news-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--hx-blue), #4F9BE6); }
.hx-news-doc { display: flex; align-items: center; justify-content: center; padding: 24px; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -.01em; text-align: center; color: #fff; }
.hx-news-tag { position: absolute; left: 16px; top: 16px; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--hx-blue); background: rgba(255, 255, 255, .92); }
.hx-news-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 26px; }
.hx-news-body time { font-size: 13px; font-weight: 500; color: #5F7188; }
.hx-news-body strong { font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--hx-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.hx-news-card:hover .hx-news-body strong { color: var(--hx-blue); }
.hx-news-body .hx-link { margin-top: auto; padding-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-tabs { grid-template-columns: 240px minmax(0, 1fr); }
  .hx-solutions .hx-panel { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hx-trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 24px; }
  .hx-trust-inner p br { display: none; }
  .hx-badges { width: 100%; flex: none; }
  .hx-tabs { grid-template-columns: 1fr; }
  .hx-solutions .hx-tablist { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-inline: -24px; padding-inline: 24px; scroll-snap-type: x proximity; }
  .hx-solutions .hx-tablist::-webkit-scrollbar { display: none; }
  .hx-solutions .hx-tab { width: auto; flex: none; white-space: nowrap; scroll-snap-align: start; }
  .hx-solutions .hx-tab:hover, .hx-solutions .hx-tab.is-active { transform: none; }
  .hx-why-grid, .hx-global-grid { grid-template-columns: 1fr; }
  .hx-why-media { max-width: 560px; }
  .hx-why-badge { left: 12px; }
  .hx-slide { grid-template-columns: 1fr; }
  .hx-quote-img { display: none; }
  .hx-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-news-grid .hx-news-card:nth-child(3) { display: none; }
  .hx-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hx-container { width: min(1240px, 100% - 32px); }
  .hx-cards, .hx-news-grid { grid-template-columns: 1fr; }
  .hx-news-grid .hx-news-card:nth-child(3) { display: flex; }
  .hx-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .hx-stat + .hx-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 28px; }
  .hx-btn { width: 100%; }
  .hx-cta .hx-btn { width: 100%; }
  .hx-why-item { padding: 22px 20px; gap: 16px; }
  .hx-why-n { width: 38px; font-size: 22px; }
  .hx-why-tam .hx-why-glyph { min-width: 64px; font-size: 30px; }
  .hx-solutions .hx-tablist { margin-inline: -16px; padding-inline: 16px; }
  .hx-tablist-pills .hx-tab { padding: 10px 18px; }
  .hx-slider-nav { gap: 14px; }
  .hx-badges { grid-template-columns: 1fr; }
  .hx-trust-inner { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition-duration: .01ms !important; }
  .hx-hero-bg video { display: none; }
  .hx-hero .hx-in { opacity: 1; transform: none; }
  .hx-js .hx-reveal { opacity: 1; transform: none; }
}

/* ---------- performance ---------- */
.hx-card:hover .hx-card-img img, .hx-news-card:hover .hx-news-img img { will-change: transform; }
.hx-off, .hx-off *, .hx-off *::before, .hx-off *::after { animation-play-state: paused !important; }  /* JS marks hero/global as .hx-off when they scroll out of view */

/* ---------- colour accents (brand blue family only) ---------- */
.hx-card-img b { background: linear-gradient(135deg, var(--hx-blue), #4F9BE6); border-color: rgba(255, 255, 255, .45); color: #fff; box-shadow: 0 8px 20px rgba(2, 79, 158, .4); }
.hx-card-body small { display: inline-flex; width: max-content; padding: 4px 10px; border-radius: 999px; background: rgba(2, 79, 158, .09); }
.hx-news-tag { background: linear-gradient(135deg, var(--hx-blue), #2D78C8); color: #fff; }
.hx-dots i.is-active { background: linear-gradient(90deg, var(--hx-blue), #4F9BE6); }

@media (max-width: 899px) { .hx-br { display: none; } }   /* desktop: break right after "doanh nghiệp"; small screens wrap naturally */

/* ---------- running-light border on every block that pops on hover (same technique as .hx-btn-glow) ---------- */
:is(.hx-card, .hx-news-card, .hx-why-item, .hx-badges li, .hx-countries li, .hx-tab) { position: relative; --beam-a: rgba(45, 120, 200, .25); --beam-b: #024F9E; }
:is(.hx-why-tam, .hx-countries li, .hx-solutions .hx-tab) { --beam-a: rgba(140, 195, 250, .3); --beam-b: #fff; }
:is(.hx-card, .hx-news-card, .hx-why-item, .hx-badges li, .hx-countries li, .hx-tab)::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 3px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--hx-ang), transparent 0 52%, var(--beam-a) 66%, var(--beam-b) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
:is(.hx-card, .hx-news-card, .hx-why-item, .hx-badges li, .hx-countries li, .hx-tab):hover::before { opacity: 1; animation: hx-ang 2.4s linear infinite; }
.hx-tab.is-active:hover::before { opacity: 0; }   /* the active tab is already a solid white pill */
