/* ==========================================================================
   Oxo Web 4.0 – BASE (phong cách webhd.vn · màu đỏ + cam theo logo OXO)
   ========================================================================== */
:root {
    /* B6 (28/11): nền đỏ có chữ trắng dùng #d4252a (5,13:1; #ec3237 chỉ 4,13) – biến dùng chung cho nút, nhãn, chip, badge, tab đang chọn */
    --oxo-red: #d4252a;
    --oxo-red-hover: #b81f24;
    --oxo-orange: #f48835;
    --oxo-grad: linear-gradient(100deg, #ec3237 0%, #f48835 100%);
    --oxo-primary: #d4252a;
    --oxo-primary-hover: #b81f24;
    --sv-red: #d4252a; /* form báo giá ngoài .oxo-ui (vd. /tuyen-dung/) nhận cùng đỏ nền */
    --sv-red-d: #b81f24;
    --oxo-primary-soft: #fff0ee;
    --oxo-primary-line: #fbd3cf;
    --oxo-orange-soft: #fff4ea;

    --oxo-bg: #ffffff;
    --oxo-surface: #ffffff;
    --oxo-surface-2: #f7f7f8;
    --oxo-border: #ececee;
    --oxo-border-strong: #dcdce0;
    --oxo-text: #1b1d22;
    --oxo-body: #4a4f5a;
    --oxo-muted: #636873; /* chữ nhãn phụ: ≥ 4,5:1 trên nền trắng và nền ấm (#fcf6f5, #fbf6f4…) – trước #6f7480 chỉ 4,37–4,42 (A5-48) */
    --oxo-slate: #737884; /* chữ phụ – đạt tương phản AA (~4,6:1) trên nền trắng; trước #9ea2ab chỉ 2,6:1 */
    --oxo-dark: #0d0d0f;
    --oxo-dark-2: #18181b;
    --oxo-dark-line: rgba(255, 255, 255, .1);
    --oxo-gray-logo: #4b4b4d;

    --oxo-blue: #2563eb;      --oxo-blue-soft: #eef4ff;
    --oxo-green: #12915f;     --oxo-green-soft: #e9f8f1;
    --oxo-amber: #c2700c;     --oxo-amber-soft: #fff6e5;
    --oxo-violet: #7c4ddc;    --oxo-violet-soft: #f3eeff;
    --oxo-zalo: #0068ff;

    --oxo-radius: 12px;
    --oxo-radius-lg: 16px;
    --oxo-radius-sm: 8px;
    --oxo-shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 6px 20px -12px rgba(17, 17, 26, .12);
    --oxo-shadow-lg: 0 18px 40px -24px rgba(17, 17, 26, .25);
    --oxo-shadow-hover: 0 22px 44px -24px rgba(17, 17, 26, .28);
    --oxo-shadow-cta: 0 10px 22px -10px rgba(236, 50, 55, .55);

    --oxo-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --oxo-wrap: 1280px;
    --oxo-gutter: 20px;
    --oxo-section: 96px;
    --oxo-head-h: 80px;
    --oxo-head-bg: rgba(255, 255, 255, .94);
}
@media (max-width: 1023px) { :root { --oxo-head-h: 66px; } }

/* ---------- CHẾ ĐỘ TỐI (nút mặt trời / mặt trăng trên header) ---------- */
html[data-theme="dark"] {
    color-scheme: dark;
    --oxo-bg: #0f1115;
    --oxo-surface: #1a1d24;
    --oxo-surface-2: #14161b;
    --oxo-border: rgba(255, 255, 255, .1);
    --oxo-border-strong: rgba(255, 255, 255, .18);
    --oxo-text: #f3f4f6;
    --oxo-body: rgba(255, 255, 255, .78);
    --oxo-muted: rgba(255, 255, 255, .56);
    --oxo-slate: rgba(255, 255, 255, .6);
    --oxo-primary-soft: rgba(236, 50, 55, .14);
    --oxo-primary-line: rgba(236, 50, 55, .35);
    --oxo-orange-soft: rgba(244, 136, 53, .12);
    --oxo-head-bg: rgba(16, 13, 12, .9);
    --oxo-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 10px 26px -16px rgba(0, 0, 0, .6);
    --oxo-shadow-lg: 0 20px 44px -24px rgba(0, 0, 0, .7);
    --oxo-shadow-hover: 0 24px 48px -24px rgba(0, 0, 0, .8);
}
html[data-theme="dark"] body.oxo-ui { background: var(--oxo-bg); }
/* :where() – không đè các bộ lọc cố ý (icon trắng trên nền cam: .oh-pstat img, .oh-pc.is-active…) */
html[data-theme="dark"] :where(.oxo-ui img) { filter: none; }
@media (max-width: 849px) { :root { --oxo-section: 64px; --oxo-gutter: 16px; } }

/* ---------- Nền & chữ ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body.oxo-ui {
    position: relative; background: var(--oxo-bg); color: var(--oxo-body);
    font-family: var(--oxo-font); font-size: 16.5px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
body.oxo-ui:not(.oxo-home) { background: var(--oxo-surface-2); }
.oxo-ui #wrapper, .oxo-ui #main { position: relative; background: transparent !important; }
.oxo-ui h1, .oxo-ui h2, .oxo-ui h3, .oxo-ui h4, .oxo-ui h5, .oxo-ui h6,
.oxo-ui .heading-font, .oxo-ui .nav > li > a, .oxo-ui .button, .oxo-ui button, .oxo-ui input, .oxo-ui select, .oxo-ui textarea, .oxo-ui .alt-font { font-family: var(--oxo-font); }
.oxo-ui h1, .oxo-ui h2, .oxo-ui h3, .oxo-ui h4, .oxo-ui h5, .oxo-ui h6 { color: var(--oxo-text); font-weight: 700; letter-spacing: -.015em; line-height: 1.28; }
.oxo-ui a { color: var(--oxo-text); transition: color .15s; }
.oxo-ui a:hover { color: #c8232a; } /* đỏ đậm: chữ hover đạt AA (4.9:1) trên nền trắng – đỏ thương hiệu #EC3237 chỉ 4.1 */
html[data-theme="dark"] .oxo-ui a:hover { color: #ff8a8e; }
.oxo-ui strong, .oxo-ui b { font-weight: 700; }
.oxo-ui ::selection { background: #fbd3cf; color: var(--oxo-text); }
.oxo-ui :focus-visible { outline: 2px solid var(--oxo-primary); outline-offset: 2px; border-radius: 6px; }
.oxo-ic { display: inline-block; flex: none; vertical-align: middle; }

.oxo-ui .container, .oxo-ui .row:not(.row-full-width):not(.row-collapse) { max-width: calc(var(--oxo-wrap) + 30px); }

/* ---------- Nút (viên thuốc) ---------- */
.oxo-btn, .oxo-ui .button, .oxo-ui button.button, .oxo-ui input[type="submit"], .oxo-ui .wpcf7-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; margin: 0; padding: 10px 22px;
    border: 1px solid var(--oxo-border-strong); border-radius: 999px;
    background: var(--oxo-surface); color: var(--oxo-text);
    font: 700 15.5px/1.2 var(--oxo-font); letter-spacing: 0; text-transform: none;
    box-shadow: none; cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s;
}
.oxo-btn:hover { border-color: var(--oxo-primary); color: var(--oxo-red-t, #c8232a); }
/* Flatsome viết hoa mọi <button> (button, .button, input[type=submit]): đặt lại cho mọi nút chưa có kiểu riêng (A5-79).
   :where() giữ độ ưu tiên (0,1,0) – thắng rule "button" của Flatsome nhưng vẫn nhường rule riêng của từng khối (khối nào muốn viết hoa tự khai báo) */
.oxo-ui :where(button, input[type="button"], input[type="reset"]) { text-transform: none; }
.oxo-btn--lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.oxo-btn .oxo-ic { transition: transform .15s; }
.oxo-btn:hover .oxo-ic { transform: translateX(2px); }
.oxo-btn--primary, .oxo-ui .button.primary, .oxo-ui .button:not(.is-outline):not(.white):not(.is-link):not(.icon),
.oxo-ui input[type="submit"], .oxo-ui .wpcf7-submit {
    background: var(--oxo-primary); border-color: var(--oxo-primary); color: #fff !important; box-shadow: var(--oxo-shadow-cta);
}
.oxo-btn--primary:hover, .oxo-ui .button.primary:hover, .oxo-ui .button:not(.is-outline):not(.white):not(.is-link):not(.icon):hover,
.oxo-ui input[type="submit"]:hover, .oxo-ui .wpcf7-submit:hover {
    background: var(--oxo-primary-hover); border-color: var(--oxo-primary-hover); color: #fff !important; transform: translateY(-1px);
}
.oxo-btn--light { background: var(--oxo-surface); border-color: #fff; color: var(--oxo-text) !important; }
.oxo-btn--light:hover { background: var(--oxo-primary); border-color: var(--oxo-primary); color: #fff !important; }
.oxo-btn--zalo { background: var(--oxo-zalo); border-color: var(--oxo-zalo); color: #fff !important; }
.oxo-btn--zalo:hover { background: #0057d6; border-color: #0057d6; color: #fff !important; }
.oxo-ui .button.is-outline { border: 1.5px solid var(--oxo-primary-line); background: var(--oxo-surface); color: var(--oxo-primary) !important; }
.oxo-ui .button i { top: 0; font-size: 1em; }
.oxo-ui .button.icon { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }

/* ---------- Ô nhập ---------- */
.oxo-ui input[type="text"], .oxo-ui input[type="email"], .oxo-ui input[type="tel"], .oxo-ui input[type="url"],
.oxo-ui input[type="search"], .oxo-ui input[type="number"], .oxo-ui input[type="password"], .oxo-ui input[type="date"],
.oxo-ui select, .oxo-ui textarea {
    height: 46px; padding: 10px 14px; border: 1px solid var(--oxo-border-strong); border-radius: 10px;
    background-color: var(--oxo-surface); color: var(--oxo-text); font-size: 15px; font-weight: 500; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.oxo-ui textarea { height: auto; min-height: 110px; padding-top: 12px; }
.oxo-ui input:focus, .oxo-ui select:focus, .oxo-ui textarea:focus { border-color: var(--oxo-primary); box-shadow: 0 0 0 4px rgba(236, 50, 55, .1); outline: 0; }
.oxo-ui ::placeholder { color: var(--oxo-slate); opacity: 1; }
.oxo-ui label { color: var(--oxo-text); font-weight: 600; font-size: 14px; }
.oxo-ui .wpcf7 .wpcf7-form-control-wrap { padding-top: 0; }
.oxo-ui .wpcf7 p { margin-bottom: 12px; }
.oxo-ui .wpcf7-not-valid-tip { margin-top: 4px; color: var(--oxo-red); font-size: 12.5px; font-weight: 600; }
.oxo-ui .wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.oxo-ui input[name="captcha-pttuan"] { background: var(--oxo-primary-soft); border-style: dashed; border-color: var(--oxo-primary-line); color: var(--oxo-primary); font-weight: 800; letter-spacing: .08em; text-align: center; }
.oxo-ui input.ho-ten, .oxo-ui input.sdt, .oxo-ui input.email, .oxo-ui input.dia-chi, .oxo-ui textarea.noi-dung { padding-left: 40px; background-repeat: no-repeat; background-size: 16px; background-position: 14px center; }
.oxo-ui input.ho-ten { background-image: url(/wp-content/uploads/2023/01/person-svgrepo-com.svg); }
.oxo-ui input.sdt { background-image: url(/wp-content/uploads/2023/01/phone-svgrepo-com.svg); }
.oxo-ui input.email { background-image: url(/wp-content/uploads/2023/01/envelope-fill-svgrepo-com.svg); }
.oxo-ui input.dia-chi { background-image: url(/wp-content/uploads/2023/01/map-marker-3-svgrepo-com.svg); }
.oxo-ui textarea.noi-dung { background-image: url(/wp-content/uploads/2023/01/note-3-svgrepo-com.svg); background-position: 14px 14px; }
.oxo-ui .wpcf7-spinner { display: none; }

/* ---------- Thành phần Flatsome dùng chung ---------- */
.oxo-ui .img .img-inner, .oxo-ui .box-image, .oxo-ui .image-cover { border-radius: var(--oxo-radius); }
.oxo-ui .is-divider { height: 3px; max-width: 40px; margin: 12px 0; border-radius: 3px; background: var(--oxo-grad); }
.oxo-ui .flickity-page-dots .dot { width: 8px; height: 8px; margin: 0 4px; border: 0; background: #e5d9d7; opacity: 1; border-radius: 99px; transition: width .25s, background .25s; }
.oxo-ui .flickity-page-dots .dot.is-selected { width: 22px; background: var(--oxo-primary); }
.oxo-ui .flickity-prev-next-button { width: 40px; height: 40px; border-radius: 50%; background: var(--oxo-surface); border: 1px solid var(--oxo-border); box-shadow: var(--oxo-shadow); opacity: 1; color: var(--oxo-text); }
.oxo-ui .flickity-prev-next-button svg { padding: 9px; fill: currentColor; }
.oxo-ui .flickity-prev-next-button:hover { background: var(--oxo-primary); color: #fff; }
.oxo-ui table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--oxo-border); border-radius: 12px; overflow: hidden; background: var(--oxo-surface); font-size: 14.5px; }
.oxo-ui th, .oxo-ui td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--oxo-border); color: var(--oxo-body); text-align: left; vertical-align: top; }
.oxo-ui th, .oxo-ui thead td { background: var(--oxo-surface-2); color: var(--oxo-text); font-weight: 700; }
.oxo-ui tr:last-child td { border-bottom: 0; }
.oxo-ui td + td, .oxo-ui th + th { border-left: 1px solid var(--oxo-border); }
.oxo-ui blockquote { position: relative; margin: 0 0 20px; padding: 18px 20px 18px 52px; border: 0; border-left: 3px solid var(--oxo-primary); border-radius: 0 12px 12px 0; background: var(--oxo-primary-soft); color: var(--oxo-body); font-size: 15px; font-style: normal; line-height: 1.6; }
.oxo-ui blockquote::before { content: "\201C"; position: absolute; left: 16px; top: 8px; color: var(--oxo-primary); font: 800 40px/1 Georgia, serif; }
.oxo-ui blockquote p:last-child { margin-bottom: 0; }
.oxo-ui .nav-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.oxo-ui .nav-pagination > li > a, .oxo-ui .nav-pagination > li > span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; margin: 0; border: 1px solid var(--oxo-border); border-radius: 999px; background: var(--oxo-surface); color: var(--oxo-text); font-size: 14px; font-weight: 700; line-height: 1; }
.oxo-ui .nav-pagination > li > a:hover { border-color: var(--oxo-primary); color: var(--oxo-red-t, #c8232a); }
.oxo-ui .nav-pagination > li > .current { background: var(--oxo-primary); border-color: var(--oxo-primary); color: #fff; }

/* Hiệu ứng xuất hiện khi cuộn */
.oxo-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.oxo-reveal.is-in { opacity: 1; transform: none; }
/* Người dùng bật "giảm chuyển động": chỉ tắt hiệu ứng trang trí, vẫn giữ chuyển động chức năng
   (thanh tin mới, dải logo, banner mở/đóng) */
@media (prefers-reduced-motion: reduce) {
    .oxo-reveal { opacity: 1; transform: none; transition: none; }
    .oh-hero::before, .oh-hero__badge, .oxh__cta::after, .oxh__pill .oxo-ic, .oh-copy__dot { animation: none !important; }
}

/* ==========================================================================
   CHỐNG RỚT DÒNG MỒ CÔI – TOÀN WEB
   đoạn văn / mô tả / danh sách: dòng cuối không còn 1 chữ đứng lẻ; tiêu đề: chia dòng đều
   ========================================================================== */
p, li, dd, blockquote, figcaption, small, .oh-desc, .oh-tcard__text, .oh-stg__ex, .oft__info li, .oft__legal li { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6, .oh-title, .oh-hero__lead, .oh-stg__title, .oh-sv__t, .oh-fd__t, .oh-pc h3 { text-wrap: balance; }
/* màu CHỮ đỏ đạt AA (hover/đang chọn) – nền vẫn dùng --oxo-red */
:root { --oxo-red-t: #c8232a; }
html[data-theme="dark"] { --oxo-red-t: #ff8a8e; }
