/*
 * FTH homepage + shared header/footer.
 * Thiết kế gốc rộng 1600px; khung nội dung 1140px.
 * Phông (đo từ thiết kế): Barlow cho H1 và nhãn in hoa, Roboto cho tiêu đề section và nội dung.
 * Chuyển động: khai báo ở cuối file, tất cả nằm trong prefers-reduced-motion: no-preference.
 */
.fth-site {
    --chot-font: Roboto, Arial, sans-serif;
    --chot-display: Barlow, Roboto, Arial, sans-serif;
    --chot-slate: #5e6873;
    --chot-slate-deep: #47515c;
    --chot-ink: #3d454e;
    --chot-muted: #6d7680;
    --chot-line: #aac2c8;
    --chot-paper:
        linear-gradient(55deg, transparent 74%, #a4aab30d 75%, transparent 76%, transparent 82%, #9299a411 83%, transparent 84%),
        linear-gradient(55deg, #fbfbfc 7%, #dbdde1 27%, #eceef1 43%, #fafbfc 67%, #e8e9ed 100%);
    --chot-ease: cubic-bezier(.22, .8, .24, 1);
    --chot-ease-soft: cubic-bezier(.3, .6, .2, 1);
    --chot-nav-pad: clamp(8px, calc(3.1vw - 23px), 26px);
}
.fth-homepage, .fth-site .chot-footer {
    color: var(--chot-ink);
    font: 400 17px/1.55 var(--chot-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.chot-home :is(h1, h2, h3, p), .chot-footer :is(h2, p) { margin: 0; font-family: inherit; }
.chot-home :is(button, input), .chot-footer button { font-family: inherit; }
.chot-home a, .chot-footer a { color: inherit; }
.chot-home a:hover, .chot-footer a:hover { color: inherit; text-decoration: none; }
.chot-home img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chot-shell { width: min(1140px, calc(100% - 48px)); margin-inline: auto; }

@media (min-width: 992px) {
    body.fth-site:not(.modal-open):not(.over-hidden) { overflow-x: clip; }
    .fth-site header.full-header {
        position: sticky;
        top: 0;
        z-index: 1050;
        transition: box-shadow .35s ease;
    }
    .fth-site header.full-header.is-scrolled { border-bottom-color: transparent; box-shadow: 0 8px 24px #1f2a3614; }
    .chot-home [id] { scroll-margin-top: 76px; }
}

/* ---------- Header ---------- */
.fth-site header.full-header .logo-search-hotline > .container { width: 100%; max-width: none; padding: 0 19px; }
.fth-site header.full-header .logo-search-hotline .logo-group a { width: 72px; height: 65px; transition: opacity .25s ease; }
.fth-site header.full-header .logo-search-hotline .logo-group a:hover { opacity: .82; }
.fth-site header.full-header .logo-search-hotline .logo-group img { max-width: 100%; }
.fth-site header.full-header .logo-search-hotline .menu-address { flex: 1 1 auto; min-width: 0; }
.fth-site header.full-header .logo-search-hotline .menubar { justify-content: flex-start !important; }
.fth-site header.full-header .logo-search-hotline .navbar {
    padding: 0;
    /* Canh chữ menu đầu tiên thẳng lề trái của khung 1140px. */
    margin-left: max(0px, calc(50vw - 570px - 91px - var(--chot-nav-pad)));
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item { margin: 0; }
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link {
    position: relative;
    color: var(--chot-slate);
    font: 500 16.5px/65px var(--chot-font);
    padding-inline: var(--chot-nav-pad);
    text-transform: none;
    white-space: nowrap;
    transition: color .25s ease;
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link.has-sub::before { display: none; }
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link::after {
    content: '';
    display: block;
    position: absolute;
    left: var(--chot-nav-pad);
    right: var(--chot-nav-pad);
    bottom: 15px;
    width: auto;
    height: 2px;
    border-radius: 2px;
    background: var(--chot-slate);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .34s var(--chot-ease);
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item:hover > .nav-link,
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link:focus-visible,
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link.active {
    color: #2c343d;
    font-weight: 500;
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item:hover > .nav-link::after,
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link:focus-visible::after {
    transform: scaleX(1);
}
.fth-site header.full-header .logo-search-hotline .lang-box { display: none !important; }

/* Menu con: thẻ trắng, thay cho khối đỏ của giao diện cũ. */
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item ul {
    min-width: 236px; margin-top: 0; padding: 8px; border: 0; border-radius: 10px; background: #fff;
    box-shadow: 0 18px 40px #1f2a3626, 0 2px 6px #1f2a3614;
    transform: translate3d(0, 10px, 0);
    transition: opacity .24s ease, visibility .24s, transform .38s var(--chot-ease);
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item ul::before { display: none; }
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item li:hover > ul,
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item:hover > ul {
    transform: none;
    box-shadow: 0 18px 40px #1f2a3626, 0 2px 6px #1f2a3614;
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item ul li { border: 0; background: transparent; }
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item ul li > a {
    display: block; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent;
    color: var(--chot-ink); font: 400 16px/1.5 var(--chot-font); text-transform: none;
    transition: background-color .22s ease, color .22s ease, padding-left .3s var(--chot-ease);
}
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item ul li:hover > a,
.fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item ul li > a:focus-visible {
    padding-left: 16px; background: #f0f1f3; color: #2c343d;
}

.chot-header-actions {
    flex: 0 0 auto; display: flex; align-items: center; gap: 4px; padding: 4px;
    background: #f0f1f3; border-radius: 6px; font-family: var(--chot-font);
}
.chot-header-actions .chot-quote {
    display: flex; align-items: center; gap: 10px; padding: 8px clamp(8px, 1.6vw, 22px);
    color: var(--chot-ink); font: 600 18px/21px var(--chot-display); text-transform: uppercase; white-space: nowrap;
    border-radius: 4px; transition: background-color .25s ease, color .25s ease;
}
.chot-header-actions .chot-quote i { font-size: 12px; transition: transform .35s var(--chot-ease); }
.chot-header-actions .chot-quote:hover { color: var(--chot-ink); background: #fff; }
.chot-header-actions .chot-quote:hover i { transform: translateX(2px) rotate(-8deg); }
.chot-search { position: relative; }
.chot-search summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 8px 16px; border-radius: 4px; color: white; background: var(--chot-slate);
    font-size: 16px; font-weight: 500; line-height: 21px; list-style: none; cursor: pointer; user-select: none;
    transition: background-color .25s ease;
}
.chot-search summary i { font-size: 12px; transition: transform .35s var(--chot-ease); }
.chot-search summary:hover, .chot-search[open] summary { background: var(--chot-slate-deep); }
.chot-search summary:hover i { transform: scale(1.14); }
.chot-search summary::-webkit-details-marker { display: none; }
.chot-search-form {
    position: absolute; z-index: 30; top: calc(100% + 10px); right: 0;
    display: flex; gap: 6px; padding: 6px; width: min(340px, 90vw);
    background: white; border-radius: 8px; box-shadow: 0 16px 36px #1f2a3626;
}
.chot-search-form input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 0; font: 400 14px var(--chot-font); color: var(--chot-ink); outline: none; }
.chot-search-form button {
    width: 40px; border: 0; border-radius: 5px; background: var(--chot-slate); color: white; cursor: pointer;
    transition: background-color .25s ease;
}
.chot-search-form button:hover { background: var(--chot-slate-deep); }

/* ---------- Hero ---------- */
.chot-hero {
    --chot-hero-h: clamp(480px, 42.7vw, 820px);
    position: relative; isolation: isolate; overflow: hidden; color: white; background: #415960;
}
.chot-hero-swiper { width: 100%; min-height: var(--chot-hero-h); }
.chot-hero .swiper-wrapper { align-items: stretch; }
.chot-hero .chot-hero-slide {
    position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; height: auto;
    min-height: var(--chot-hero-h); background: #415960;
}
.chot-hero-slide picture, .chot-hero-slide::before, .chot-hero-slide::after { position: absolute; inset: 0; z-index: -1; }
.chot-hero-slide picture { display: block; transform: translate3d(0, var(--chot-hero-y, 0), 0); }
.chot-hero-slide picture img { object-position: center; }
.chot-hero-slide::before {
    content: ''; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, #3f5a65f7 0, #3f5b65f2 36%, #3d6168b8 50%, #3a646a4d 60%, transparent 72%);
}
.chot-hero-slide::after {
    content: ''; z-index: 0; pointer-events: none;
    clip-path: polygon(40% 0, 65% 0, 55% 30%, 47% 100%, 36% 100%, 52% 30%);
    background: linear-gradient(160deg, #6fb6ba2e, #6fb6ba0d);
}
.chot-hero-copy { position: relative; z-index: 1; padding-block: 72px; }
.chot-hero-copy .chot-hero-eyebrow { font-size: 24px; font-weight: 500; line-height: 1.4; margin-bottom: 14px; }
.chot-hero-title {
    max-width: 760px; margin: 0; color: white; text-wrap: balance; font: 600 clamp(42px, 3.5vw, 62px)/1.17 var(--chot-display);
    text-shadow: 0 2px 14px #1b2c3333;
}
.chot-hero .chot-hero-text {
    /* Nội dung nhập từ quản trị có thể dài: giữ tối đa 3 dòng để hero không bị vỡ. */
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
    max-width: 640px; margin-top: 18px; font-size: 17px; line-height: 1.5; opacity: .9;
}
/* Điều khiển slide */
.chot-hero-controls {
    position: absolute; z-index: 5; left: 50%; bottom: clamp(18px, 2vw, 34px); transform: translateX(-50%);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: none;
}
.chot-hero-controls > * { pointer-events: auto; }
.chot-hero .chot-hero-pagination { position: static; display: flex; gap: 6px; width: auto; transform: none; }
.chot-hero .chot-hero-pagination .swiper-pagination-bullet {
    position: relative; display: block; width: 44px; height: 16px; margin: 0; padding: 0; border-radius: 0; opacity: 1; cursor: pointer;
    background: linear-gradient(#ffffff59, #ffffff59) center / 100% 3px no-repeat;
}
.chot-hero .chot-hero-pagination .swiper-pagination-bullet::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: white;
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--chot-ease);
}
.chot-hero .chot-hero-pagination .swiper-pagination-bullet:is(.swiper-pagination-bullet-active, :hover)::after { transform: scaleX(1); }
.chot-hero-arrows { display: flex; gap: 10px; }
.chot-hero-arrows button {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff99; border-radius: 50%;
    background: #1f2a3659; color: white; font-size: 14px; cursor: pointer; backdrop-filter: blur(4px);
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .4s var(--chot-ease);
}
.chot-hero-arrows button:hover { background: white; border-color: white; color: var(--chot-slate-deep); transform: scale(1.06); }
.chot-hero-arrows button:focus { outline: none; }
.chot-hero-arrows button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.chot-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: clamp(24px, 3vw, 46px); }
.chot-actions a {
    display: flex; gap: 10px; align-items: center; padding: 5px 5px 5px 20px;
    background: white; color: #333b44; font-size: 17px; font-weight: 500; border-radius: 100px;
    box-shadow: 0 0 0 0 #17263100;
    transition: transform .4s var(--chot-ease), box-shadow .4s ease, background-color .3s ease;
}
.chot-actions a:hover { color: #333b44; }
.chot-actions a + a { background: #5e6873e6; color: white; }
.chot-actions a + a:hover { color: white; background: var(--chot-slate-deep); }
.chot-actions i {
    display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%;
    background: var(--chot-slate); color: white; font-size: 14px;
    transition: transform .4s var(--chot-ease), background-color .3s ease;
}
.chot-actions i::before { display: block; transition: transform .4s var(--chot-ease); }
.chot-actions a + a i { background: white; color: var(--chot-slate); }
.chot-actions a:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 12px 26px #17263140; }
.chot-actions a:is(:hover, :focus-visible) i { transform: scale(1.06); }
.chot-actions a:first-child:is(:hover, :focus-visible) i::before { transform: translateX(3px); }
.chot-actions a + a:is(:hover, :focus-visible) i::before { transform: translateY(-1px) scale(1.08); }

/* ---------- Dải cam kết ---------- */
/* Mục active rộng gấp đôi. Cột và khối nền tối cùng chuyển động nên luôn khớp nhau. */
.chot-features {
    --pad: 2cqw; --icon: 40px; --icon-font: 34px; --gap: 13px;
    --active-pad: 3.4cqw; --active-icon: 66px; --active-icon-font: 58px; --active-gap: 18px; --active-title: 164px;
    --swap: .62s var(--chot-ease);
    position: relative; container-type: inline-size; display: grid; background: #fcfcfc;
    transition: grid-template-columns var(--swap);
}
.chot-features, .chot-features[data-active="2"] { grid-template-columns: 1fr 1fr 2fr 1fr; }
.chot-features[data-active="0"] { grid-template-columns: 2fr 1fr 1fr 1fr; }
.chot-features[data-active="1"] { grid-template-columns: 1fr 2fr 1fr 1fr; }
.chot-features[data-active="3"] { grid-template-columns: 1fr 1fr 1fr 2fr; }
.chot-feature-indicator {
    position: absolute; top: 0; bottom: 0; left: 40%; width: 40%; background: var(--chot-slate);
    transition: left var(--swap);
}
.chot-features[data-active="0"] .chot-feature-indicator { left: 0; }
.chot-features[data-active="1"] .chot-feature-indicator { left: 20%; }
.chot-features[data-active="3"] .chot-feature-indicator { left: 60%; }
.chot-feature {
    position: relative; z-index: 1; display: flex; align-items: center; gap: var(--gap); overflow: hidden;
    min-width: 0; min-height: 140px; padding: 12px 0 12px var(--pad); color: var(--chot-ink); cursor: default;
    transition: padding-left var(--swap), gap var(--swap), color .3s ease;
}
.chot-feature > :is(i, img) {
    flex: 0 0 auto; width: var(--icon); height: var(--icon); object-fit: contain;
    font-size: var(--icon-font); line-height: var(--icon); text-align: center; color: var(--chot-slate);
    transition: width var(--swap), height var(--swap), font-size var(--swap), line-height var(--swap), color .3s ease;
}
/* Chữ giữ độ rộng cố định theo trạng thái để không nhảy dòng khi cột đang giãn. */
.chot-feature-text {
    flex: 0 0 auto; width: calc(20cqw - var(--pad) - var(--icon) - var(--gap) - 16px);
    font-size: 16px; line-height: 1.38; text-wrap: pretty;
}
.chot-feature strong { font-weight: 500; }
.chot-feature strong em { font-style: normal; }
.chot-feature.is-active { gap: var(--active-gap); padding-left: var(--active-pad); color: white; }
.chot-feature.is-active > :is(i, img) {
    width: var(--active-icon); height: var(--active-icon); font-size: var(--active-icon-font); line-height: var(--active-icon); color: white;
}
.chot-feature.is-active .chot-feature-text {
    display: grid; grid-template-columns: var(--active-title) minmax(0, 1fr); align-items: center; column-gap: var(--active-gap);
    width: calc(40cqw - var(--active-pad) - var(--active-icon) - var(--active-gap) - 24px);
}
.chot-feature.is-active strong { font: 600 25px/1.28 var(--chot-display); text-transform: uppercase; }
.chot-feature.is-active strong em { display: none; }
.chot-feature.is-active span { color: #eef0f2; font-size: 18px; line-height: 1.45; }
.chot-feature.is-active span::first-letter { text-transform: uppercase; }
.chot-features[data-count="1"] { grid-template-columns: 1fr; }
.chot-features[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chot-features[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chot-features:not([data-count="4"]) .chot-feature-indicator { display: none; }
.chot-features:not([data-count="4"]) .chot-feature.is-active { background: var(--chot-slate); }
.chot-features:not([data-count="4"]) .chot-feature-text { flex: 1 1 0; width: auto; min-width: 0; padding-right: 12px; }
.chot-features:not([data-count="4"]) .chot-feature.is-active .chot-feature-text { grid-template-columns: 1fr; }
/* Vạch chấm nằm giữa hai mục thường liền nhau; sát mục active thì ẩn. */
.chot-feature::after {
    content: ''; position: absolute; right: 0; top: 20%; bottom: 20%; border-right: 1px dotted #8a939d;
    opacity: 0; transition: opacity .3s ease;
}
.chot-feature:not(.is-active):not(:last-child):not(:has(+ .is-active))::after { opacity: 1; }

/* ---------- Tiêu đề section ---------- */
.chot-heading {
    display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 68px;
    width: min(1050px, calc(100% - 48px)); margin: 0 auto;
}
.chot-label {
    position: relative; align-self: start; justify-self: end; margin: 18px 0 0;
    min-width: 121px; padding: 6px 20px; color: var(--chot-slate); background: white; text-align: center;
    box-shadow: 0 5px 15px #2222; border-radius: 100px; font: 600 18px/21px var(--chot-display); text-transform: uppercase;
}
.chot-heading > div { position: relative; padding-top: 22px; }
.chot-heading > div::before { content: ''; position: absolute; top: 0; left: -42px; height: 128px; border-left: 1px solid var(--chot-line); opacity: .72; }
.chot-heading > div::after { content: ''; position: absolute; top: 62px; left: -128px; width: min(445px, 78%); border-top: 1px solid var(--chot-line); opacity: .72; }
.chot-heading > div:only-child { grid-column: 1 / -1; }
.chot-heading > div:only-child::before, .chot-heading > div:only-child::after { display: none; }
.chot-heading p { font-size: 17.5px; line-height: 1.42; font-weight: 400; color: var(--chot-ink); }
.chot-heading h2 { margin: 37px 0 0; color: var(--chot-slate); font-size: clamp(30px, 2.125vw, 36px); line-height: 1.4; font-weight: 600; }
.chot-heading h2:first-child { margin-top: 0; }

/* ---------- Sản phẩm ---------- */
.chot-products { background: var(--chot-paper); padding-top: clamp(44px, 5.25vw, 84px); }
.chot-product-grid { display: grid; grid-template-columns: repeat(var(--chot-category-count, 4), minmax(0, 1fr)); gap: 23px; padding: 22px 23px 30px; margin-top: 42px; background: #fff; }
.chot-product-grid:has(> :only-child) { grid-template-columns: 1fr; }
.chot-product { position: relative; display: block; border-radius: 12px; height: clamp(270px, 30.3vw, 550px); }
.chot-product-media { display: block; height: 100%; overflow: hidden; border-radius: inherit; background: #eef0f2; }
.chot-product img { transition: transform .9s var(--chot-ease); }
/* Khấc trắng góc dưới trái: có 2 góc lõm nối vào ảnh ở phía trên và bên phải. */
.chot-product-notch {
    --chot-fillet: radial-gradient(circle at 100% 0, transparent 11.5px, #fff 12px);
    position: absolute; left: 0; bottom: 0; width: 90%; padding: 11px 10px 0 0;
    background: #fff; border-top-right-radius: 14px;
}
.chot-product-notch::before, .chot-product-notch::after {
    content: ''; position: absolute; width: 12px; height: 12px; background: var(--chot-fillet); pointer-events: none;
}
.chot-product-notch::before { left: 0; bottom: 100%; }
.chot-product-notch::after { left: 100%; bottom: 0; }
.chot-product-copy {
    min-height: 96px; padding: 18px 6px 18px 20px; border-radius: 10px;
    background: #fff; box-shadow: 0 3px 14px #1f2a361f;
    transition: background-color .4s ease, box-shadow .4s ease;
}
.chot-product-copy h3 { font: 700 clamp(19px, 1.44vw, 24px)/1.22 var(--chot-display); text-transform: uppercase; color: var(--chot-slate); transition: color .3s ease, transform .5s var(--chot-ease); }
.chot-product-copy p { margin-top: 6px; font-size: 16.5px; line-height: 1.4; color: var(--chot-ink); transition: color .3s ease, transform .5s var(--chot-ease) .03s; }
/* Khấc trắng góc trên phải: hiện ra từ góc khi hover, chứa nút mũi tên. */
.chot-product::before {
    content: ''; position: absolute; z-index: 1; top: 0; right: 0; width: 52px; height: 50px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 50' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0-1V0C8 0 13 6 13 14 13 29 20 40 34 40 45 40 52 43 52 50H53V-1Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: scale(0); transform-origin: 100% 0;
    transition: transform .5s var(--chot-ease);
}
.chot-product-arrow {
    position: absolute; z-index: 2; top: 5px; right: 4px; display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: 50%; color: white; background: var(--chot-slate); font-size: 11px;
    box-shadow: 0 0 0 2px #eceef1; opacity: 0; transform: scale(.5) rotate(-45deg);
    transition: opacity .25s ease .05s, transform .5s var(--chot-ease) .05s; pointer-events: none;
}
.chot-product:focus-visible img { transform: scale(1.05); }
.chot-product:focus-visible .chot-product-copy { background-color: var(--chot-slate); }
.chot-product:focus-visible :is(h3, p) { color: white; transform: translateX(9px); }
.chot-product:focus-visible::before { transform: none; }
.chot-product:focus-visible .chot-product-arrow { opacity: 1; transform: none; }
@media (hover: hover) {
    .chot-product:hover img { transform: scale(1.05); }
    .chot-product:hover .chot-product-copy { background-color: var(--chot-slate); }
    .chot-product:hover :is(h3, p) { color: white; transform: translateX(9px); }
    .chot-product:hover p { color: #e3e6ea; }
    .chot-product:hover::before { transform: none; }
    .chot-product:hover .chot-product-arrow { opacity: 1; transform: none; }
}

/* ---------- Giải pháp ---------- */
.chot-solutions {
    padding: clamp(55px, 6.2vw, 100px) 0;
    background:
        linear-gradient(54deg, transparent 68%, #27364618 68.5%, transparent 70%, transparent 76%, #27364644 76.4%, transparent 77.5%),
        linear-gradient(54deg, transparent 80%, #27364616 80.5%, transparent 81.1%, #27364619 82%, transparent 83%, #27364612 85%, transparent 86%),
        radial-gradient(ellipse at 7% 80%, #525d6a 0, transparent 37%),
        radial-gradient(ellipse at 52% 66%, #5a6471 0, transparent 69%),
        linear-gradient(119deg, #394654 0, #596370 51%, #56616e 76%, #384654 100%);
    color: white;
}
.chot-solutions .chot-heading p { color: #e7eaed; }
.chot-solutions h2 { color: #eef0f3; font-size: clamp(28px, 2vw, 34px); font-weight: 500; line-height: 1.42; }
.chot-solutions .chot-heading { --chot-line: #2a7486; }
.chot-solution-grid {
    display: grid; grid-template-columns: 1fr 3.23fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 22px; margin-top: clamp(36px, 4.5vw, 72px);
}
.chot-solution-grid .chot-solution-choice {
    position: relative; isolation: isolate; display: grid; place-items: center; padding: 16px 24px; min-height: 88px;
    text-align: center; text-wrap: balance; font: 500 17px/1.42 var(--chot-font);
    color: var(--chot-ink); border: 0; border-radius: 10px; cursor: pointer; background: none;
    /* Dùng drop-shadow vì bóng phải chạy theo phần khoét của thẻ đang chọn. */
    filter: drop-shadow(0 12px 12px #131b2766);
    transition: transform .45s var(--chot-ease), filter .45s ease, color .3s ease;
}
.chot-solution-choice::before, .chot-solution-choice::after {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
}
.chot-solution-choice::before { background: radial-gradient(at 50% 82%, #f9e9e7, transparent 72%), linear-gradient(18deg, #e2e8ef, #fff 63%); }
.chot-solution-choice::after {
    opacity: 0;
    background:
        radial-gradient(ellipse 42% 70% at 52% 46%, #7d6e6f80, transparent),
        radial-gradient(at 0 100%, #4d648066, transparent 58%),
        linear-gradient(170deg, #636b75, #59626d);
    transition: opacity .4s ease;
}
.chot-solution-choice:hover { transform: translateY(-4px); filter: drop-shadow(0 18px 16px #131b2780); }
.chot-solution-choice:focus { outline: none; }
.chot-solution-choice:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.chot-solution-choice-0 { grid-area: 1 / 1; }
.chot-solution-choice-1 { grid-area: 2 / 1; }
.chot-solution-choice-2 { grid-area: 1 / 3; }
.chot-solution-choice-3 { grid-area: 2 / 3; }
/* Số ô theo số bản ghi trong quản trị: ô cuối giãn kín cột, không để lại chỗ trống. */
@media (min-width: 651px) {
    .chot-solution-choice-2:last-of-type { grid-area: 1 / 3 / 3 / 4; }
    .chot-solution-choice-0:last-of-type { grid-area: 1 / 1 / 3 / 2; }
    .chot-solution-grid:not(:has(.chot-solution-choice-2)) { grid-template-columns: 1fr 4.23fr; }
}
.chot-solution-grid .chot-solution-choice[aria-pressed="true"] { color: white; font: 700 22px/1.3 var(--chot-display); text-transform: uppercase; padding-inline: 30px; }
/* Phần khoét bán nguyệt ở cạnh thẻ đang chọn, có 2 góc lõm nối vào cạnh thẻ. */
.chot-solution-choice[aria-pressed="true"]::before, .chot-solution-choice[aria-pressed="true"]::after {
    --chot-notch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 84' preserveAspectRatio='none'%3E%3Cpath d='M-1-1H31V11H30C30 17 27 21 22 21A21 21 0 0 0 22 63C27 63 30 67 30 73H31V85H-1Z'/%3E%3C/svg%3E");
    -webkit-mask:
        linear-gradient(#000 0 0) 0 0 / calc(100% - 29.5px) 100% no-repeat,
        linear-gradient(#000 0 0) 100% 0 / 30px calc(50% - 41.5px) no-repeat,
        linear-gradient(#000 0 0) 100% 100% / 30px calc(50% - 41.5px) no-repeat,
        var(--chot-notch) 100% 50% / 30px 84px no-repeat;
    mask:
        linear-gradient(#000 0 0) 0 0 / calc(100% - 29.5px) 100% no-repeat,
        linear-gradient(#000 0 0) 100% 0 / 30px calc(50% - 41.5px) no-repeat,
        linear-gradient(#000 0 0) 100% 100% / 30px calc(50% - 41.5px) no-repeat,
        var(--chot-notch) 100% 50% / 30px 84px no-repeat;
}
.chot-solution-choice:is(.chot-solution-choice-2, .chot-solution-choice-3)::before,
.chot-solution-choice:is(.chot-solution-choice-2, .chot-solution-choice-3)::after { transform: scaleX(-1); }
.chot-solution-choice[aria-pressed="true"]::after { opacity: 1; }
.chot-solution-choice i {
    position: absolute; right: -5px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px;
    border-radius: 50%; background: white; color: #4a5563; font-size: 11px;
    box-shadow: 0 0 0 8px #3b465280;
    opacity: 0; transform: translate(-8px, -50%) scale(.5);
    transition: opacity .25s ease, transform .5s var(--chot-ease);
}
.chot-solution-choice:is(.chot-solution-choice-2, .chot-solution-choice-3) i { right: auto; left: -5px; transform: translate(8px, -50%) scale(.5) rotate(180deg); }
.chot-solution-choice[aria-pressed="true"] i { opacity: 1; transform: translate(0, -50%); }
.chot-solution-choice:is(.chot-solution-choice-2, .chot-solution-choice-3)[aria-pressed="true"] i { transform: translate(0, -50%) rotate(180deg); }
.chot-solution-panels { position: relative; grid-area: 1 / 2 / 3; min-width: 0; min-height: clamp(235px, 23vw, 370px); border-radius: 10px; overflow: hidden; background: #263e40; box-shadow: 0 18px 30px #131b2755; }
.chot-solution-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.chot-solution-panel.is-active { opacity: 1; visibility: visible; transition: opacity .55s ease; }
.chot-solution-media { position: relative; display: block; height: 100%; overflow: hidden; }
.chot-solution-panel img { position: absolute; inset: 0; transform: scale(1.06); transition: transform 1.2s var(--chot-ease); }
.chot-solution-panel.is-active img { transform: none; }
.chot-solution-panel.is-active a:hover img { transform: scale(1.035); }
.chot-solution-media > div { position: absolute; inset: auto 0 0; padding: 40px 10% 24px; background: linear-gradient(transparent, #03272aa6 38%, #03272ae0); transform: translateY(12px); opacity: 0; transition: transform .7s var(--chot-ease) .05s, opacity .5s ease .05s; }
.chot-solution-panel.is-active .chot-solution-media > div { transform: none; opacity: 1; }
.chot-solution-panel strong { display: block; font-size: clamp(56px, 6.5vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -.02em; opacity: .62; font-variant-numeric: tabular-nums; }
.chot-solution-panel span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; max-width: 620px; margin-top: 4px; font-size: 17px; line-height: 1.42; text-wrap: pretty; }

/* ---------- Quy trình ---------- */
.chot-process { padding-top: clamp(55px, 6.6vw, 106px); background: var(--chot-paper); }
.chot-steps {
    display: grid; grid-template-columns: repeat(var(--chot-step-count, 6), minmax(0, 1fr)); position: relative;
    list-style: none; margin: clamp(32px, 4.6vw, 74px) 0 0; padding: 0 2.5%;
    background: linear-gradient(transparent 50%, #fff 50%);
}
.chot-steps::before { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: linear-gradient(90deg, transparent, #478b95, transparent); }
.chot-steps li { position: relative; display: grid; grid-template-rows: 1fr 1fr; justify-items: center; align-items: center; min-height: 330px; padding: 0 8px; text-align: center; }
.chot-steps li::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 19px; height: 19px; margin: -9.5px 0 0 -9.5px;
    background: var(--chot-slate); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--chot-slate);
    transition: transform .45s var(--chot-ease), background-color .3s ease;
}
.chot-steps li:hover::before { transform: scale(1.22); background-color: var(--chot-slate-deep); }
.chot-steps li:nth-child(even) .chot-step-icon { grid-row: 2; }
.chot-steps li:nth-child(even) .chot-step-copy { grid-row: 1; grid-column: 1; }
.chot-step-icon { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; }
.chot-step-icon::after {
    content: ''; position: absolute; inset: 0; border: 2px solid var(--chot-slate); border-left-color: transparent; border-radius: 50%;
    transition: border-color .3s ease;
}
.chot-steps li:hover .chot-step-icon::after { border-color: var(--chot-slate-deep); border-left-color: transparent; }
.chot-step-icon span {
    /* Canh theo mép phải và giữa vòng tròn để số rộng hẹp nào cũng thẳng hàng. */
    position: absolute; z-index: 0; top: 50%; right: calc(100% - 20px); transform: translateY(-50%);
    color: #c8ccd2; font: 700 76px/1 var(--chot-display); font-variant-numeric: lining-nums; text-align: right;
    transition: color .35s ease;
}
.chot-steps li:hover .chot-step-icon span { color: #aeb4bc; }
.chot-step-icon i {
    position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border: 4px solid #d8dbde;
    color: white; background: var(--chot-slate); border-radius: 50%; font-size: 19px; box-shadow: 1px 4px 10px #1f2a3633;
    transition: transform .5s var(--chot-ease), background-color .3s ease, box-shadow .4s ease;
}
.chot-steps li:hover .chot-step-icon i { transform: scale(1.04); background-color: var(--chot-slate-deep); box-shadow: 1px 8px 18px #1f2a3640; }
.chot-step-copy { display: grid; justify-items: center; max-width: 244px; }
.chot-step-copy h3 { text-wrap: balance; font: 600 19.5px/1.26 var(--chot-display); color: var(--chot-slate); text-transform: uppercase; transition: color .3s ease; }
.chot-steps li:hover .chot-step-copy h3 { color: var(--chot-slate-deep); }
.chot-step-copy p { max-width: 226px; margin-top: 8px; font-size: 16.5px; line-height: 1.36; color: var(--chot-muted); }

/* ---------- Đăng ký ---------- */
.chot-subscribe { padding-block: clamp(35px, 3.9vw, 62px) 0; }
.chot-subscribe-banner {
    min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    border-radius: 10px; padding: 32px 9%; color: white;
    background: linear-gradient(90deg, #020b12d6 8%, #031321a1 61%, #123c5650), url('../../upload/partner/695420180129-142519-1067x800.webp') center 54% / cover;
}
.chot-subscribe-banner h2 { margin: 0 0 16px 18px; font-size: clamp(28px, 2.125vw, 36px); font-weight: 500; line-height: 1.3; }
.chot-subscribe-banner form {
    position: relative; display: flex; align-items: center; gap: 4px; padding: 7px 8px 7px 7px; border-radius: 10px;
    width: min(550px, 100%); background: white; box-shadow: 0 0 0 0 #ffffff00;
    transition: box-shadow .35s ease;
}
.chot-subscribe-banner form:focus-within { box-shadow: 0 0 0 4px #ffffff40; }
.chot-subscribe-banner .form-group { flex: 1; min-width: 0; margin: 0; }
.chot-subscribe-banner .form-control { height: 40px; padding: 0 12px; border: none; box-shadow: none; background: transparent; color: var(--chot-ink); font: 400 16.5px/40px var(--chot-font); }
.chot-subscribe-banner .form-control::placeholder { color: var(--chot-muted); opacity: 1; }
.chot-subscribe-banner .btn {
    height: 40px; padding: 0 28px; border-radius: 7px; background: var(--chot-slate); color: white;
    font: 600 17px/40px var(--chot-display); text-transform: uppercase; box-shadow: none;
    transition: background-color .25s ease, transform .35s var(--chot-ease), box-shadow .3s ease;
}
.chot-subscribe-banner .btn:hover { color: white; background: var(--chot-slate-deep); transform: translateY(-1px); box-shadow: 0 6px 14px #1f2a3640; }
.chot-subscribe-banner .btn:active { transform: none; }
.chot-subscribe-banner .help-block { color: #ac2020; margin: 0 10px; font-size: 12px; }
.chot-subscribe-banner .alert { width: 100%; margin: 0; }

/* ---------- Dự án ---------- */
.chot-project-area {
    background:
        linear-gradient(#f8f9fa00 82%, #f7f8fa 100%),
        linear-gradient(#fff 0, #ffffff00 24%),
        radial-gradient(ellipse at 0 45%, #d5e1ed 0, transparent 44%),
        radial-gradient(ellipse at 33% 32%, #efe7ec 0, transparent 48%),
        radial-gradient(ellipse at 65% 30%, #fff7f3 0, transparent 56%),
        linear-gradient(112deg, #e2e3e7, #f6f6f8 43%, #fbfbfc 79%, #e9ebef);
}
.chot-projects { padding-block: clamp(48px, 5.2vw, 83px) 45px; }
.chot-project-track { margin-top: clamp(32px, 4.2vw, 67px); --chot-project-height: clamp(310px, 32.7vw, 525px); }
.chot-project-track:not(.owl-loaded):not(.owl-loading) { display: flex; gap: 20px; overflow-x: auto; padding-inline: max(24px, calc((100% - 1150px) / 2)); }
.chot-project-track:not(.owl-loaded) .chot-project { flex: 0 0 min(370px, 84vw); }
.chot-project-track .owl-stage-outer { cursor: grab; }
.chot-project-track .owl-grab .owl-stage-outer, .chot-project-track .owl-stage-outer:active { cursor: grabbing; }
.chot-project-track .owl-item { display: flex; align-items: center; height: var(--chot-project-height); }
.chot-project {
    position: relative; display: block; width: 100%; height: var(--chot-project-height);
    border-radius: 9px; overflow: hidden; background: var(--chot-slate);
    transition: height .76s var(--chot-ease);
}
.chot-project:hover { color: white; }
.chot-project-track .owl-item:not(.center) .chot-project { height: 72%; }
@media (min-width: 992px) {
    .chot-project-track .owl-item:has(+ .center) .chot-project,
    .chot-project-track .center + .owl-item .chot-project { height: 100%; }
}
.chot-project img { transition: transform 1.1s var(--chot-ease); pointer-events: none; }
.chot-project:is(:hover, :focus-visible) img { transform: scale(1.04); }
.chot-project > div { position: absolute; inset: auto 0 0; padding: 36px 26px 18px; color: white; background: linear-gradient(transparent, #5a6470c9 42%, #505a65f0); }
.chot-project h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 600 20px/1.32 var(--chot-display); text-align: left; }
.chot-project p {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    max-height: 0; margin-top: 0; font-size: 15.5px; line-height: 1.45; text-align: left; color: #e6e9ec; opacity: 0;
    transition: max-height .6s var(--chot-ease), margin-top .6s var(--chot-ease), opacity .4s ease;
}
/* Chỉ thẻ giữa (hoặc thẻ đang hover) mới mở phần mô tả. */
.chot-project-track .owl-item.center .chot-project p,
.chot-project-track .chot-project:is(:hover, :focus-visible) p,
.chot-project-track:not(.owl-loaded) .chot-project p { max-height: 3.2em; margin-top: 6px; opacity: 1; }
.chot-project-track .owl-dots { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.chot-project-track .owl-dots .owl-dot {
    position: relative; appearance: none; border: 0; padding: 0;
    width: min(48px, 9vw); height: 14px; background: linear-gradient(#c3c6cb, #c3c6cb) center / 100% 3px no-repeat;
    transition: background-size .25s ease;
}
.chot-project-track .owl-dots .owl-dot::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--chot-slate);
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--chot-ease);
}
.chot-project-track .owl-dots .owl-dot:is(.active, :hover, :focus-visible)::after { transform: scaleX(1); }
.chot-project-track .owl-dots .owl-dot:focus { outline: none; box-shadow: none; }

/* ---------- Kiến thức ---------- */
.chot-news { padding: clamp(45px, 5.7vw, 92px) 0 clamp(55px, 6.6vw, 106px); background: linear-gradient(#f7f8fa, #f7f8fa00 150px), var(--chot-paper); }
.chot-label { width: max-content; }
.chot-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 21px; margin-top: clamp(32px, 3.3vw, 53px); }
.chot-news-image { display: block; overflow: hidden; }
.chot-news-image img { transition: transform .9s var(--chot-ease); }
.chot-news article:hover .chot-news-image img { transform: scale(1.06); }
.chot-news-featured {
    grid-row: span 4; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
    border: 1px solid #cdd2d8; background: #fff; box-shadow: 0 6px 14px #1e2a381a;
    transition: transform .5s var(--chot-ease), box-shadow .5s ease, border-color .3s ease;
}
.chot-news-featured:hover { transform: translateY(-5px); border-color: #b8bfc7; box-shadow: 0 20px 34px #1e2a3826; }
.chot-news-featured .chot-news-image { aspect-ratio: 1.75; }
.chot-news-featured .chot-news-copy { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 16px; gap: 10px; }
.chot-news h3 { color: var(--chot-ink); font-size: 19.5px; line-height: 1.38; font-weight: 500; }
.chot-news h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--chot-ease), color .25s ease; }
.chot-news article:hover h3 a { color: var(--chot-slate-deep); background-size: 100% 1px; }
.chot-news-featured p { font-size: 16.5px; line-height: 1.55; color: var(--chot-muted); }
.chot-news-copy p, .chot-news-small h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.chot-news-meta { display: block; margin-top: auto; font-size: 15px; font-style: italic; color: var(--chot-muted); }
.chot-news-small { display: grid; grid-template-columns: 34% 1fr; gap: 16px; }
.chot-news-small.chot-news-without-image { grid-template-columns: 1fr; }
.chot-news-small .chot-news-image { aspect-ratio: 1.35; border-radius: 5px; }
.chot-news-small h3 { font-size: 16.5px; line-height: 1.36; font-weight: 500; }
.chot-news-small .chot-news-copy { display: flex; flex-direction: column; gap: 5px; }
.chot-news-small .chot-news-meta { font-size: 14px; }

/* ---------- Footer ---------- */
.fth-site .chot-footer {
    padding: clamp(48px, 5.3vw, 86px) 0 clamp(52px, 6.8vw, 109px); color: white;
    background:
        radial-gradient(ellipse at 27% 36%, #534a56 0, transparent 49%),
        radial-gradient(ellipse at 100% 43%, #24465e 0, transparent 52%),
        linear-gradient(156deg, #5e686e 0, #5e6060 20%, #5b535a 34%, #3e3f53 54%, #182d4a 78%, #002949 100%);
}
.chot-footer a { transition: color .25s ease, opacity .25s ease; }
.chot-footer-logo { display: table; margin: 0 auto 64px; text-align: center; line-height: .85; transition: opacity .3s ease, transform .5s var(--chot-ease); }
.chot-footer-logo:hover { opacity: .85; transform: translateY(-2px); color: white; }
.chot-footer-logo img { display: block; max-width: min(205px, 70vw); max-height: 115px; width: auto; height: auto; object-fit: contain; }
.chot-footer-grid { display: grid; gap: 40px 24px; }
.chot-footer-grid h2 { margin-bottom: 18px; font: 600 23px/1.35 var(--chot-display); text-transform: uppercase; }
.chot-footer-grid p span { text-wrap: pretty; }
.chot-footer-grid p { display: flex; gap: 12px; margin-bottom: 11px; font-size: 17px; line-height: 1.5; }
.chot-footer-grid p i { flex: 0 0 14px; width: 14px; padding-top: 5px; font-size: 12px; text-align: center; }
.chot-footer-grid ul { padding-left: 14px; margin: 0; }
.chot-footer-grid li { list-style-type: disc; margin: 0 0 11px; font-size: 17px; line-height: 1.5; }
.chot-footer-grid li::marker { font-size: 9px; }
.chot-footer-grid li a {
    display: inline; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .4s var(--chot-ease), color .25s ease;
}
.chot-footer-grid li a:hover { color: white; background-size: 100% 1px; }
.chot-footer-grid p a { text-decoration: underline; text-underline-offset: 2px; }
.chot-footer-grid p a:hover { color: #d9e3ea; text-decoration: underline; }
.chot-hotline h2 { font-size: 19px; margin: 3px 0 6px; }
.chot-hotline p { font-size: 15.5px; opacity: .85; }
.chot-hotline span { display: block; margin-top: 24px; font-size: 16.5px; font-weight: 500; }
.chot-hotline span i { margin-right: 4px; }
.chot-hotline > a { display: inline-block; white-space: nowrap; font: 600 30px/1.25 var(--chot-display); text-decoration: underline; text-underline-offset: 3px; transition: transform .4s var(--chot-ease), color .25s ease; }
.chot-hotline > a:hover { color: white; text-decoration: underline; transform: translateX(3px); }
.chot-footer-bottom { margin-top: 44px; padding-top: 36px; border-top: 1px solid #ffffff5c; display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.chot-footer-bottom p { font-size: 16px; font-style: italic; opacity: .92; }
.chot-socials { display: flex; gap: 16px; }
.chot-socials a {
    display: grid; place-items: center; border: 1px solid white; border-radius: 50%; width: 30px; height: 30px; font-size: 13px;
    transition: background-color .3s ease, color .3s ease, transform .45s var(--chot-ease);
}
.chot-socials a:hover { color: var(--chot-slate-deep); background: white; transform: translateY(-3px); }
.chot-home a:focus-visible, .chot-footer a:focus-visible { outline: 2px solid #39879a; outline-offset: 3px; }

@media (min-width: 992px) {
    .fth-homepage .bottom-support-online { display: none; }
    /* Cột đầu chạm mép trái, cột cuối chạm mép phải khung; phần dư chia đều giữa các cột. */
    .chot-footer-grid { display: flex; justify-content: space-between; align-items: flex-start; }
    .chot-footer-grid > section { flex: 0 1 auto; min-width: 0; }
    .chot-footer-grid > section:first-child { flex-basis: 340px; }
    .chot-footer-grid > .chot-hotline { flex-shrink: 0; }
}

/* ---------- Trang con: cùng hệ phông và cỡ chữ với trang chủ ---------- */
:root { --fth-font-heading: Barlow, Roboto, Arial, sans-serif; }
.fth-site .ubuntu, .fth-site .widget-title, .fth-site .widget-title span { font-family: var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) { font-family: var(--chot-font); font-size: 17px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* Tiêu đề trang */
body.fth-site:not(.fth-homepage) .navbar-banner .header-title { font: 600 42px/1.2 var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) .breadcrumb li, body.fth-site:not(.fth-homepage) .breadcrumb a { font-size: 17px !important; }
body.fth-site:not(.fth-homepage) h1.title { font: 600 36px/1.25 var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) p.title.utmfb { font: 600 24px/1.3 var(--chot-display) !important; }
/* Nội dung bài viết và mô tả sản phẩm */
body.fth-site:not(.fth-homepage) :is(.content-style, .editor-box, .content-news) :is(p, li, td, th, blockquote, .size-16) { font-size: 17.5px !important; line-height: 1.65 !important; }
body.fth-site:not(.fth-homepage) .content-style :is(p, li, td, th) :is(strong, b, a, span:not([class*="size-"])) { font-size: inherit !important; }
body.fth-site:not(.fth-homepage) .content-style h1 { font-size: 31px !important; line-height: 1.3 !important; }
body.fth-site:not(.fth-homepage) .content-style h2 { font-size: 27px !important; line-height: 1.32 !important; }
body.fth-site:not(.fth-homepage) .content-style h3 { font-size: 23px !important; line-height: 1.35 !important; }
body.fth-site:not(.fth-homepage) .content-style h4 { font-size: 20px !important; line-height: 1.4 !important; }
body.fth-site:not(.fth-homepage) .er_toc_title { font-size: 18px !important; }
html body.fth-site:not(.fth-homepage) .er_toc .er_toc_content ol li, html body.fth-site:not(.fth-homepage) .er_toc .er_toc_content ol li a { font-size: 16px !important; line-height: 1.5 !important; }
body.fth-site:not(.fth-homepage) .cat-date .date, body.fth-site:not(.fth-homepage) .price-more span { font-size: 16px !important; }
body.fth-site:not(.fth-homepage) .news-latest .font-weight-bold { font-size: 19px !important; }
body.fth-site:not(.fth-homepage) .news-latest .item-title { font-size: 18px !important; line-height: 1.45 !important; }
/* Thanh bên */
body.fth-site:not(.fth-homepage) .widget-title, body.fth-site:not(.fth-homepage) .widget-title span { font-size: 24px !important; font-weight: 600 !important; line-height: 1.3 !important; }
body.fth-site:not(.fth-homepage) .widget-box li a { font-size: 17px !important; line-height: 1.45 !important; }
body.fth-site:not(.fth-homepage) .post-content .title a, body.fth-site:not(.fth-homepage) a.pasternak1 { font-size: 16.5px !important; line-height: 1.42 !important; }
body.fth-site:not(.fth-homepage) .post-content :is(.date, .cat-url) { font-size: 14px !important; }
body.fth-site:not(.fth-homepage) .hotline_cart p { font-size: 20px !important; }
body.fth-site:not(.fth-homepage) .hotline_cart span { font-size: 16px !important; }
/* Danh sách sản phẩm và tin tức */
body.fth-site:not(.fth-homepage) .product-box .product-name { font: 600 21px/1.3 var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) .product-box .brief, body.fth-site:not(.fth-homepage) .product-box .brief * { font-size: 16.5px !important; line-height: 1.5 !important; }
body.fth-site:not(.fth-homepage) .product-box .btn-more { font-size: 16.5px !important; }
body.fth-site:not(.fth-homepage) .item-body .item-title, body.fth-site:not(.fth-homepage) .item-body .item-title a { font: 600 21px/1.35 var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) .item-body .content { font-size: 17px !important; line-height: 1.55 !important; }
body.fth-site:not(.fth-homepage) .item-body .date { font-size: 15px !important; }
/* Liên hệ */
body.fth-site:not(.fth-homepage) .contact-info-box h5 { font: 600 36px/1.25 var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) .contact-info-box .desc, body.fth-site:not(.fth-homepage) .contact-info-box .desc b { font-size: 19px !important; }
body.fth-site:not(.fth-homepage) .contact-info-box .item .head { font: 600 24px/1.3 var(--chot-display) !important; }
body.fth-site:not(.fth-homepage) .contact-info-box .item :is(.in, .in a) { font-size: 17px !important; }
body.fth-site:not(.fth-homepage) form :is(input, textarea, select, button).form-control, body.fth-site:not(.fth-homepage) form .btn-submit { font-size: 16px !important; }
@media (max-width: 767px) {
    body.fth-site:not(.fth-homepage) { font-size: 16px; }
    body.fth-site:not(.fth-homepage) .navbar-banner .header-title { font-size: 30px !important; }
    body.fth-site:not(.fth-homepage) .breadcrumb li, body.fth-site:not(.fth-homepage) .breadcrumb a { font-size: 15px !important; }
    body.fth-site:not(.fth-homepage) h1.title, body.fth-site:not(.fth-homepage) .contact-info-box h5 { font-size: 28px !important; }
    body.fth-site:not(.fth-homepage) :is(.content-style, .editor-box, .content-news) :is(p, li, td, th, blockquote, .size-16) { font-size: 16.5px !important; line-height: 1.6 !important; }
    body.fth-site:not(.fth-homepage) .content-style h1 { font-size: 26px !important; }
    body.fth-site:not(.fth-homepage) .content-style h2 { font-size: 23px !important; }
    body.fth-site:not(.fth-homepage) .content-style h3 { font-size: 20px !important; }
    body.fth-site:not(.fth-homepage) .content-style h4 { font-size: 18px !important; }
    body.fth-site:not(.fth-homepage) .item-body .item-title, body.fth-site:not(.fth-homepage) .item-body .item-title a, body.fth-site:not(.fth-homepage) .product-box .product-name { font-size: 19px !important; }
    body.fth-site:not(.fth-homepage) .contact-info-box .desc, body.fth-site:not(.fth-homepage) .contact-info-box .desc b { font-size: 17px !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .fth-site { --chot-nav-pad: clamp(8px, calc(2.4vw - 16px), 18px); }
    .fth-site header.full-header .menubar #narbarMainMenu .navbar-collapse ul > li.nav-item > .nav-link { font-size: 15.5px; }
    .chot-header-actions .chot-quote { font-size: 16px; }
}
@media (max-width: 1199px) {
    /* Màn hẹp: nhãn dài vẫn nằm trọn trong trang, mọi section giữ chung một lề. */
    .chot-heading { grid-template-columns: 190px minmax(0, 1fr); gap: 56px; }
    .chot-label { padding-inline: 14px; font-size: 15.5px; }
    .chot-features { --pad: 1.4cqw; --icon: 28px; --icon-font: 24px; --gap: 8px; --active-pad: 1.8cqw; --active-icon: 44px; --active-icon-font: 40px; --active-gap: 10px; --active-title: 124px; }
    .chot-feature-text { width: calc(20cqw - var(--pad) - var(--icon) - var(--gap) - 8px); font-size: 14.5px; }
    .chot-feature.is-active strong { font-size: 20px; }
    .chot-feature.is-active span { font-size: 15.5px; line-height: 1.38; }
    .chot-header-actions .chot-quote { font-size: 16px; }
    .chot-step-copy h3 { font-size: 17px; }
    .chot-step-copy p { font-size: 15px; }
    .chot-footer-grid :is(p, li) { font-size: 15.5px; }
    .chot-hotline > a { font-size: 25px; }
    .chot-search summary { padding-inline: 10px; }
}
@media (max-width: 991px) {
    .chot-features { --active-icon: 30px; --active-icon-font: 27px; --active-gap: 8px; }
    .chot-feature.is-active .chot-feature-text { grid-template-columns: minmax(0, 1fr); width: calc(40cqw - var(--active-pad) - var(--active-icon) - var(--active-gap) - 10px); }
    .chot-feature-text { font-size: 14px; }
    .chot-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chot-product { height: clamp(230px, 49vw, 440px); }
    .chot-product-copy h3 { font-size: 16px; }
    .chot-solution-grid { gap: 12px; }
    .chot-solution-grid .chot-solution-choice { padding: 12px 16px; }
    .chot-solution-grid .chot-solution-choice { font-size: 15px; }
    .chot-solution-grid .chot-solution-choice[aria-pressed="true"] { padding-inline: 26px; font-size: 17px; }
    .chot-footer-grid { grid-template-columns: 1fr 1fr; }
    .chot-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chot-news-featured { grid-row: auto; }
    .chot-steps li { min-height: 310px; }
}
@media (max-width: 650px) {
    /* Điện thoại: lưới 2x2 cố định, chỉ đổi màu mục được chạm. */
    .chot-features, .chot-features[data-active] { --pad: 10px; --active-pad: 10px; --active-icon: 26px; --active-icon-font: 22px; grid-template-columns: 1fr 1fr; }
    .chot-features[data-count="1"] { grid-template-columns: 1fr; }
    .chot-features[data-count="3"] { grid-template-columns: 1fr 1fr; }
    .chot-feature-indicator, .chot-feature::after { display: none; }
    .chot-feature { min-height: 132px; padding-block: 12px; padding-right: 8px; transition: background-color .35s ease, color .3s ease; }
    .chot-feature.is-active { background: var(--chot-slate); gap: var(--gap); }
    .chot-feature-text, .chot-feature.is-active .chot-feature-text { flex: 1 1 0; width: auto; min-width: 0; font-size: 14.5px; }
    .chot-feature.is-active strong { font-size: 16.5px; line-height: 1.22; }
    .chot-feature.is-active span { font-size: 14px; line-height: 1.32; }
    .chot-shell, .chot-heading { width: calc(100% - 32px); }
    .chot-hero { --chot-hero-h: 500px; }
    .chot-hero-copy { padding-block: 45px 68px; }
    .chot-hero-slide::before { background: linear-gradient(90deg, #29434ce8, #29434c76); }
    .chot-hero-slide::after { display: none; }
    .chot-hero-title { font-size: clamp(32px, 9vw, 42px); line-height: 1.18; }
    .chot-hero .chot-hero-text { margin-top: 12px; font-size: 15.5px; -webkit-line-clamp: 4; }
    .chot-hero-arrows { display: none; }
    .chot-hero .chot-hero-pagination .swiper-pagination-bullet { width: 34px; }
    .chot-hero-copy .chot-hero-eyebrow { font-size: 18px; }
    .chot-actions { gap: 8px; }
    .chot-actions a { padding-left: 14px; font-size: 15px; }
    .chot-actions i { width: 30px; height: 30px; font-size: 12px; }
    .chot-heading { grid-template-columns: 1fr; gap: 12px; }
    .chot-label { justify-self: start; margin: 0; }
    .chot-heading > div { padding: 0; }
    .chot-heading > div::before, .chot-heading > div::after { display: none; }
    .chot-heading h2 { margin-top: 9px; font-size: 25px; line-height: 1.34; }
    .chot-solutions h2 { font-size: 24px; }
    .chot-heading p { font-size: 15.5px; }
    .chot-label { font-size: 16px; }
    .chot-product-grid { gap: 14px; padding-inline: 16px; margin-top: 28px; }
    .chot-product-notch { width: 92%; padding: 6px 6px 0 0; }
    .chot-product-copy { min-height: 0; padding: 10px 8px 10px 10px; }
    .chot-product-copy h3 { font-size: 16px; }
    .chot-product-copy p { font-size: 14px; margin-top: 3px; }
    .chot-solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .chot-solution-grid .chot-solution-choice { grid-area: auto; min-height: 66px; font-size: 15px; }
    .chot-solution-grid .chot-solution-choice:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
    .chot-solution-grid .chot-solution-choice[aria-pressed="true"] { font-size: 17px; padding-inline: 14px; }
    .chot-solution-choice[aria-pressed="true"]::before, .chot-solution-choice[aria-pressed="true"]::after { -webkit-mask: none; mask: none; }
    .chot-solution-grid .chot-solution-choice i,
    .chot-solution-choice:is(.chot-solution-choice-2, .chot-solution-choice-3) i {
        top: auto; right: auto; bottom: -11px; left: 50%; width: 22px; height: 22px; font-size: 9px; box-shadow: 0 0 0 3px #3b465280;
        transform: translate(-50%, -6px) scale(.6) rotate(90deg);
    }
    .chot-solution-grid .chot-solution-choice[aria-pressed="true"] i,
    .chot-solution-choice:is(.chot-solution-choice-2, .chot-solution-choice-3)[aria-pressed="true"] i { transform: translateX(-50%) rotate(90deg); }
    .chot-solution-panels { grid-area: auto; grid-column: 1 / -1; }
    .chot-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; background: none; }
    .chot-steps li { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
    .chot-steps::before, .chot-steps li::before { display: none; }
    .chot-step-icon { width: 76px; height: 76px; }
    .chot-step-icon i { width: 54px; height: 54px; font-size: 16px; }
    .chot-step-icon span { font-size: 58px; right: calc(100% - 16px); }
    .chot-subscribe-banner { min-height: 200px; padding: 22px 15px; }
    .chot-subscribe-banner h2 { margin-left: 0; }
    .chot-subscribe-banner .btn { padding-inline: 12px; font-size: 15px; }
    .chot-subscribe-banner h2 { font-size: 24px; }
    .chot-subscribe-banner .form-control { font-size: 15px; padding-inline: 8px; }
    .chot-news-grid, .chot-footer-grid { grid-template-columns: 1fr; }
    .chot-news-small .chot-news-image { max-height: 98px; }
    .chot-news-small h3 { font-size: 15.5px; }
    .chot-footer-logo { margin-bottom: 40px; }
    .chot-footer-bottom { align-items: flex-start; flex-direction: column; }
}

/* ---------- Chuyển động ---------- */
@keyframes chot-enter {
    from { opacity: 0; transform: translate3d(0, 26px, 0); }
    to { opacity: 1; transform: none; }
}
@keyframes chot-hero-settle {
    from { transform: scale(1.09); }
    to { transform: none; }
}
@keyframes chot-shard {
    from { opacity: 0; transform: translate3d(-5%, 0, 0); }
    to { opacity: 1; transform: none; }
}
@keyframes chot-pop-down {
    from { opacity: 0; transform: translate3d(0, -8px, 0) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes chot-feature-swap {
    from { opacity: 0; transform: translate3d(8px, 0, 0); }
    to { opacity: 1; transform: none; }
}
@keyframes chot-dot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
    html:has(.chot-home) { scroll-behavior: smooth; }

    /* Hero: chạy ngay khi tải trang, không phụ thuộc JS. */
    /* Ảnh thu nhẹ về cỡ thật trong suốt thời gian slide hiển thị, giữ nguyên lúc đang chuyển để không giật. */
    .chot-hero-slide picture img { transform: scale(1.08); transition: transform 0s linear 1.1s; }
    .chot-hero-slide.swiper-slide-active picture img, .chot-hero.is-static .chot-hero-slide picture img { transform: none; transition: transform 8s cubic-bezier(.2, .5, .3, 1); }
    .chot-hero-slide::after { opacity: 0; transform: translate3d(-5%, 0, 0); transition: opacity .3s ease, transform 0s linear .3s; }
    .chot-hero-slide.swiper-slide-active::after, .chot-hero.is-static .chot-hero-slide::after { opacity: 1; transform: none; transition: opacity 1.2s ease .2s, transform 1.7s var(--chot-ease) .2s; }
    /* Chữ của slide cũ tắt nhanh, chữ slide mới hiện lần lượt. */
    .chot-js .chot-hero:not(.is-static) .chot-hero-copy > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .22s ease, transform 0s linear .22s; }
    .chot-js .chot-hero:not(.is-static) .swiper-slide-active .chot-hero-copy > * { opacity: 1; transform: none; transition: opacity .8s ease .3s, transform 1s var(--chot-ease) .3s; }
    .chot-js .chot-hero:not(.is-static) .swiper-slide-active .chot-hero-title { transition-delay: .4s; }
    .chot-js .chot-hero:not(.is-static) .swiper-slide-active .chot-hero-text { transition-delay: .5s; }
    .chot-js .chot-hero:not(.is-static) .swiper-slide-active .chot-actions { transition-delay: .6s; }

    .chot-search[open] .chot-search-form { animation: chot-pop-down .32s var(--chot-ease) both; }

    .chot-feature.is-swapping .chot-feature-text { animation: chot-feature-swap .5s var(--chot-ease) .06s both; }

    /* Khối xuất hiện khi cuộn, so le theo --chot-i. Khi đã xong (.is-settled) trả transition về cho hover. */
    .chot-js :is(.chot-feature, .chot-feature-indicator, .chot-product, .chot-solution-choice, .chot-solution-panels, .chot-subscribe-banner, .chot-project-track, .chot-news-grid > article):not(.is-settled) {
        transition:
            opacity .8s ease calc(var(--chot-i, 0) * 80ms),
            transform 1s var(--chot-ease) calc(var(--chot-i, 0) * 80ms);
    }
    .chot-js :is(.chot-feature, .chot-feature-indicator, .chot-product, .chot-solution-choice, .chot-solution-panels, .chot-subscribe-banner, .chot-project-track, .chot-news-grid > article):not(.is-in) {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    .chot-js :is(.chot-feature, .chot-feature-indicator):not(.is-in) { transform: translate3d(0, 16px, 0); }

    /* Tiêu đề: hai đường kẻ tự vẽ rồi chữ hiện lên. */
    .chot-js .chot-heading > div::before { transform-origin: top; transition: transform 1.1s var(--chot-ease); }
    .chot-js .chot-heading > div::after { transform-origin: left; transition: transform 1.1s var(--chot-ease) .1s; }
    .chot-js .chot-heading:not(.is-in) > div::before { transform: scaleY(0); }
    .chot-js .chot-heading:not(.is-in) > div::after { transform: scaleX(0); }
    .chot-js .chot-heading :is(.chot-label, p, h2) { transition: opacity .8s ease, transform 1s var(--chot-ease); }
    .chot-js .chot-heading p { transition-delay: .12s; }
    .chot-js .chot-heading h2 { transition-delay: .22s; }
    .chot-js .chot-heading:not(.is-in) .chot-label { opacity: 0; transform: translate3d(-14px, 0, 0); }
    .chot-js .chot-heading:not(.is-in) :is(p, h2) { opacity: 0; transform: translate3d(0, 18px, 0); }

    /* Quy trình: trục chạy từ trái sang, từng mốc hiện theo. */
    .chot-js .chot-steps::before { transform-origin: left; transition: transform 1.8s var(--chot-ease-soft); }
    .chot-js .chot-steps:not(.is-in)::before { transform: scaleX(0); }
    .chot-js .chot-steps:not(.is-settled) li::before { transition: transform .5s var(--chot-ease) calc(var(--chot-i, 0) * 190ms + .1s); }
    .chot-js .chot-steps:not(.is-in) li::before { transform: scale(0); }
    .chot-js .chot-steps:not(.is-settled) :is(.chot-step-icon, .chot-step-copy) {
        transition:
            opacity .7s ease calc(var(--chot-i, 0) * 190ms + .15s),
            transform .9s var(--chot-ease) calc(var(--chot-i, 0) * 190ms + .15s);
    }
    .chot-js .chot-steps:not(.is-in) .chot-step-icon { opacity: 0; transform: scale(.8); }
    .chot-js .chot-steps:not(.is-in) li:nth-child(odd) .chot-step-copy { opacity: 0; transform: translate3d(0, -12px, 0); }
    .chot-js .chot-steps:not(.is-in) li:nth-child(even) .chot-step-copy { opacity: 0; transform: translate3d(0, 12px, 0); }

    /* Carousel: thanh của slide đang chạy thể hiện thời gian tự chuyển. */
    .chot-project-track.has-autoplay .owl-dots .owl-dot.active::after { animation: chot-dot-progress 5.5s linear both; }
    .chot-project-track.has-autoplay:hover .owl-dots .owl-dot.active::after { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
    .chot-home *, .chot-home *::before, .chot-home *::after, .chot-home .owl-stage { transition-duration: 0s !important; animation: none !important; }
    .chot-product img, .chot-project img, .chot-solution-choice, .chot-news-featured { transform: none !important; }
}
