/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

:root {
    /* Colors */
    --color-primary-text: #1a1a1a;
    --color-light-text: #ffffff;
    --color-primary: var(--fs-color-primary);
    --color-secondary: var(--fs-color-secondary);
    --color-linear-1: var(--fs-color-success);
    --color-linear-2: var(--fs-color-alert);
    --color-background-light: #fafafa;
    --color-background-primary-icon: #f0f5ff;
    --color-background-secondary-icon: #ffebd6;
    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Font Sizes (Base 16px) */
    /* --- HEADING (Giảm mạnh ~50-60% khi xuống mobile) --- */
    /* Desktop: 72px -> Mobile: ~40px */
    --fs-72: clamp(1.875rem, 3.5vw + 1rem, 4.5rem);

    /* Desktop: 60px -> Mobile: ~36px */
    --fs-60: clamp(1.25rem, 1.25vw + 1rem, 3.75rem);

    --fs-56: clamp(1.25rem, 5vw + 1rem, 3.5rem);
    --fs-48: clamp(.9375rem, 3vw + .5rem, 3rem);

    /* Desktop: 40px -> Mobile: ~28px */
    --fs-40: clamp(1.25rem, 2.25vw + 1rem, 2.5rem);

    /* --- SUB-HEADING (Giảm vừa ~20-30%) --- */
    /* Desktop: 36px -> Mobile: ~26px */
    --fs-36: clamp(1.625rem, 1.25vw + 1rem, 2.25rem);

    /* Desktop: 32px -> Mobile: ~24px */
    --fs-32: clamp(1.5rem, 2vw + 1rem, 2rem);

    /* Desktop: 28px -> Mobile: ~22px */
    --fs-28: clamp(1.375rem, 1.8vw + 0.8rem, 1.75rem);

    /* --- BODY TEXT (Giảm ít hoặc giữ nguyên) --- */
    /* Desktop: 24px -> Mobile: ~20px */
    --fs-24: clamp(1.25rem, 1.5vw + 0.8rem, 1.5rem);

    /* Desktop: 20px -> Mobile: ~18px */
    --fs-20: clamp(1.125rem, 1vw + 0.8rem, 1.25rem);

    /* Desktop: 18px -> Mobile: ~16px */
    --fs-18: clamp(1rem, .5vw + 0.8rem, 1.125rem);

    /* --- SMALL TEXT (Giữ nguyên để đọc được) --- */
    --fs-16: clamp(0.9375rem, 0.5vw + 0.8rem, 1rem);
    --fs-15: 0.9375rem;
    --fs-14: 0.875rem;
    --fs-13: 0.8125rem;
    --fs-12: 0.75rem;

    --space-4: 0.25rem;
    --space-8: 0.5rem;
    --space-10: 0.625rem;

    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-20: 1.25rem;
    --space-24: 1.5rem;
    --space-28: 1.75rem;
    --space-32: 2rem;
    --space-36: 2.25rem;
    --space-40: 2.5rem;
    --space-44: 2.75rem;
    --space-48: 3rem;
    --space-52: 3.25rem;
    --space-56: 3.5rem;
    --space-60: 3.75rem;
    --space-64: 4rem;
    --space-70: 4.375rem;
}

body {
    font-family: 'Montserrat', sans-serif !important;
    font-size: var(--fs-14) !important;
    font-weight: var(--fw-medium) !important;
    line-height: 1.6;
}

.absolute-footer.dark.medium-text-center.small-text-center {
    display: none;
}

.roboto {
    font-family: 'Roboto', sans-serif !important;
}

.capitalize {
    text-transform: capitalize;
}

.custom-container {
    max-width: 1200px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/*
* CONFIGS
*/
.banner-button {
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
}

/* CF7 */
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: red;
}

.wpcf7 input[type="submit"] {
    margin: 0 !important;
}

.wpcf7-form {
    margin: 0 !important;
}

.wpcf7-spinner {
    display: none !important;
}

/* ICON-Box Left */
.icon-box.custom-icon-box.icon-box-left.text-left {
    align-items: center;
    margin-bottom: 0.25rem;
}

.icon-box.custom-icon-box.icon-box-left.text-left .icon-box-img img {
    padding-top: 0 !important;
}

/* Custom Button */
.button-normal,
.button-custom-ywa,
.button-custom-pwa,
.button-custom-outline-pwa {
    transition: all .5s ease;
    position: relative;
    overflow: hidden;
}

.button-normal>span,
.button-custom-ywa>span,
.button-custom-pwa>span,
.button-custom-outline-pwa>span {
    transition: all .5s ease;
    position: relative;
    z-index: 2;
}

.button-custom-ywa>span,
.button-custom-pwa>span,
.button-custom-outline-pwa>span {
    padding-right: 1.5rem;
}

.button-normal::before,
.button-custom-ywa::before,
.button-custom-pwa::before,
.button-custom-outline-pwa::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: all .5s ease;
}

/* hover */
.button-custom-ywa:hover::before,
.button-normal:hover::before,
.button-custom-pwa:hover::before,
.button-custom-outline-pwa:hover::before {
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

.button-custom-ywa:hover>span,
.button-normal:hover>span {
    color: var(--color-secondary);
}

.button-custom-pwa:hover>span {
    color: var(--color-secondary);
}

/* 1. Vàng - primary - không */
/* 2. Vàng - trắng - có arrow*/
/* 3. Primary - trắng - có arrow*/
/* 4. Outline Primary - bg Trắng - có arrow*/
.button-custom-ywa:hover,
.button-normal:hover {
    border: 1px solid var(--color-light-text) !important;
    box-shadow: 0 0 .5rem var(--color-linear-2) !important;
}

.button-custom-ywa::before,
.button-normal::before {
    background-color: #fff;
}

/*  */
.button-custom-pwa:hover {
    border: 1px solid var(--color-secondary) !important;
}

.button-custom-pwa::before {
    background-color: var(--color-secondary);
}

.button-custom-ywa>span::before,
.button-custom-pwa>span::before,
.button-custom-outline-pwa>span::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: all 1s ease;
}

.button-custom-ywa>span::before,
.button-custom-pwa>span::before {
    background-image: url(./../../uploads/2026/05/arrow-white.png);
}

.button-custom-outline-pwa>span::before {
    background-image: url(./../../uploads/2026/05/arrow-primary.png);
}

.button-custom-ywa:hover>span::before,
.button-custom-pwa:hover>span::before,
.button-custom-outline-pwa:hover>span::before {
    opacity: 0;
    right: -2rem;
}

.button-custom-ywa>span::after,
.button-custom-pwa>span::after,
.button-custom-outline-pwa>span::after {
    content: "";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: all 1s ease;
}

.button-custom-ywa>span::after {
    background-image: url(./../../uploads/2026/05/arrow-yellow.png);
}

.button-custom-pwa>span::after,
.button-custom-outline-pwa>span::after {
    background-image: url(./../../uploads/2026/05/arrow-white.png);
}


.button-custom-ywa:hover>span::after,
.button-custom-pwa:hover>span::after,
.button-custom-outline-pwa:hover>span::after {
    opacity: 1;
    right: 0;
}

.button-custom-pwa:hover>span,
.button-custom-outline-pwa:hover>span {
    color: var(--color-light-text);
}

/* ====================
*   Button Banner - Home/Services
*  ==================== */
.btn-banner-cs {
    color: var(--color-light-text) !important;
    border-color: var(--color-light-text) !important;
}

.btn-banner-cs>span {
    padding-left: 1.75rem !important;
    transition: all 1s ease;
    color: var(--color-light-text) !important;
}

.btn-banner-cs>span::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url(./../../uploads/2026/05/play-button.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: all 1s ease;
}

.btn-banner-cs>span::after {
    content: "";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    background-image: url(./../../uploads/2026/05/right.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: all 1s ease;
}

.btn-banner-cs:hover>span::before {
    opacity: 0;
}

.btn-banner-cs:hover>span::after {
    opacity: 1;
    right: 1rem;
}

.btn-banner-cs:hover>span {
    color: var(--color-light-text) !important;
    padding-left: 0 !important;
    padding-right: 1.75rem !important;
}

.btn-banner-cs.white.is-outline:hover {
    border-color: var(--color-secondary) !important;
    background-color: var(--color-secondary) !important;
}

/* End custom button */

/* Header Navigation Specific */
.header-nav {
    gap: 1rem;
}

.header-nav>li>a,
.main-menu>li>a,
#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    font-family: 'Roboto', sans-serif;
    font-size: var(--fs-15) !important;
    font-weight: var(--fw-medium);
    color: var(--color-primary-text) !important;
}

.header-nav .sub-menu>.menu-item>a,
.header-nav>.menu-item>a {
    position: relative;
}

.header-nav .sub-menu>.menu-item>a::before,
.header-nav>.menu-item:not(.has-dropdown)>a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: all .5s ease;
}

.header-nav .sub-menu>.menu-item:hover>a::before,
.header-nav>.menu-item:hover>a::before,
.header-nav>.menu-item.current-menu-item>a::before,
.header-nav>.current-menu-ancestor>a::before,
.header-nav .sub-menu>.menu-item.current-menu-item>a::before {
    width: 100%;
}

.header-nav .sub-menu>.menu-item:hover>a,
.header-nav>.menu-item:hover>a,
.header-nav>.menu-item.current-menu-item>a,
.header-nav>.current-menu-ancestor>a,
.header-nav .sub-menu>.menu-item.current-menu-item>a {
    color: var(--color-primary) !important;
}

.header-nav>.menu-item.has-dropdown>.sub-menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-radius: .5rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.2);
}

.nav-dropdown.nav-dropdown-default>li>a {
    border-bottom: none !important;
}

.nav-dropdown-has-arrow li.current-dropdown.has-dropdown:after,
.nav-dropdown-has-arrow li.current-dropdown.has-dropdown:before {
    display: none;
}

/* BẮT ĐẦU CSS TỪ ĐÂY */
/* Custom List type */
.list-simple-tick,
.list-tick-circle,
.list-arrow-simple,
.list-cross-circle {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.list-simple-tick li,
.list-arrow-simple li,
.list-tick-circle li,
.list-cross-circle li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.list-simple-tick li::before,
.list-arrow-simple li::before,
.list-tick-circle li::before,
.list-cross-circle li::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-light-text);

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.list-simple-tick li::before {
    content: "✓";
    background-color: transparent;
    border: none;
    color: var(--color-primary);
}

.list-arrow-simple li::before {
    content: ">";
    color: var(--color-primary);
    background-color: transparent;
    border: none;
}

.list-tick-circle li::before {
    content: "✓";
}

.list-cross-circle li::before {
    content: "✕";
}

/* PARTNER */
/* ====================
*   Partner
*  ====================
*/
.partner-slick {
    overflow: hidden;
}

.partner-slick .col {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.partner-slick .col .img-inner img {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16/9;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
}

.logo-item {
    border: 1px solid #ccc;
    border-radius: 1rem;
    padding: .5rem;
}

/* ============================= */
/* News - Blog Post - Tin tức */
/* ============================= */
.blog-posts-wrapper .badge.post-date {
    top: 2% !important;
    left: auto !important;
    right: 2% !important;
}

.blog-posts-wrapper .badge-inner {
    border-radius: .5rem;
}

.blog-posts-wrapper .box-blog-post {
    background-color: #fff !important;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .2) !important;
    border-radius: 3%;
}

.blog-posts-wrapper .box-text {
    padding: .75rem 1.25rem;
}

.blog-posts-wrapper .box-text .cat-label,
.blog-posts-wrapper .button.primary.is-link {
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: none;
    opacity: 1 !important;
}

.blog-posts-wrapper .box-text h5.post-title a {
    font-size: 1rem !important;
}

.blog-posts-wrapper .is-divider {
    display: none !important;
}

.blog-posts-wrapper .button.primary.is-link {
    margin: 0 !important;
    padding-right: 1rem !important;
    transition: all .5s ease;
}

.blog-posts-wrapper .button.primary.is-link::before {
    content: "\f344";
    font-family: "dashicons";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    color: var(--color-primary);
    transition: all .5s ease;
}

.blog-posts-wrapper .button.primary.is-link:hover {
    transform: translateY(-10%);
}

.blog-posts-wrapper .button.primary.is-link:hover::before {
    transform: translateY(-50%) translateX(2px);
}

/* ĐỒNG BỘ CHIỀU CAO POST ITEM (Không làm mất ảnh) */
.blog-posts-wrapper .col {
    display: flex;
}

.blog-posts-wrapper .col-inner {
    width: 100%;
}

.blog-posts-wrapper .box-blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Sửa lỗi mất ảnh: Ngăn không cho phần chứa ảnh bị bóp méo/xẹp khi dùng flex */
.blog-posts-wrapper .box-image {
    flex: none;
    width: 100%;
}

/* Phần chữ (meta) giãn lấp khoảng trống */
.blog-posts-wrapper .box-text,
.blog-posts-wrapper .box-text-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Đẩy nút Đọc thêm sát xuống đáy và không bị giãn full ngang */
.blog-posts-wrapper .button.primary.is-link {
    margin-top: auto !important;
    align-self: flex-start;
}

/* =================== */
/* News / Case study Tabs/Nav */
/* Tabs Navigation */
.bigro-tabs-nav-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    /* Để tránh mất shadow/border */
}

/* Ẩn scrollbar ngang */
.bigro-tabs-nav-container::-webkit-scrollbar {
    height: 4px;
}

.bigro-tabs-nav-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.bigro-tabs-nav {
    width: 100%;
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    padding: 0 0.25rem;
    justify-content: center;
}

.bigro-tab-btn {
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    /* Viên thuốc */
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    outline: none;
}

.bigro-tab-btn:hover {
    border-color: var(--color-primary);
    background-color: rgba(0, 0, 0, 0.02);
}

.bigro-tab-btn.active {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* CSS Grid Layout */
.bigro-tabs-content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 cột trên PC */
    gap: 1.5rem;
}

/* View More Button */
.bigro-tabs-footer {
    text-align: center;
    margin-top: 2rem;
}

.bigro-load-more-btn {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bigro-load-more-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.bigro-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   CASE STUDY HORIZONTAL SWIPER
   ========================================================================== */
.bigro-cs-hz-swiper {
    padding: 0 1.25rem;
}

.cs-hz-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 2rem;
    color: var(--color-primary);
    height: auto !important;
    aspect-ratio: 16/9;
    box-shadow: 0 0 .125rem rgba(0, 0, 0, .3);
}

.bigro-cs-hz-swiper .swiper-button-next {
    right: 0;
}

.bigro-cs-hz-swiper .swiper-button-prev {
    left: 0;
}

.bigro-cs-hz-swiper .swiper-button-next,
.bigro-cs-hz-swiper .swiper-button-prev {
    width: 3.5rem;
    height: auto;
    padding: .625rem 1.125rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all .3s ease;
}

.bigro-cs-hz-swiper .swiper-button-next:hover,
.bigro-cs-hz-swiper .swiper-button-prev:hover {
    background-color: var(--color-primary);
    color: var(--color-light-text);
}

/* ================== */
/* CF7 */
/* Contact onPage */
/* ================== */
.wpcf7 .contact-onpage-wrapper {
    padding: 2rem;
    background: #fff;
    border-radius: 1.5rem;
}

/* Tùy chỉnh hiển thị ô nhập liệu */
.wpcf7 .contact-onpage-wrapper input[type="text"],
.wpcf7 .contact-onpage-wrapper input[type="email"],
.wpcf7 .contact-onpage-wrapper input[type="tel"],
.wpcf7 .contact-onpage-wrapper textarea {
    padding: 1rem !important;
    border-radius: .375rem !important;
    font-weight: var(--fw-medium);
}

.wpcf7 .contact-onpage-wrapper textarea {
    min-height: 5rem !important;
}

/* Hiệu ứng khi click vào ô nhập */
.wpcf7 .contact-onpage-wrapper input:focus,
.wpcf7 .contact-onpage-wrapper textarea:focus {
    border-color: var(--color-secondary) !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}

/* Tùy chỉnh Text Label */
.wpcf7 .contact-onpage-wrapper label {
    font-weight: 600;
    color: var(--color-primary);
    width: 100%;
    font-size: var(--fs-15);
}

/* Tùy chỉnh Nút Submit */
.wpcf7 .contact-onpage-wrapper input.button {
    background-color: var(--color-secondary) !important;
    border-radius: .5rem !important;
    font-weight: bold !important;
    text-transform: none !important;
    padding: .75rem 0 !important;
    line-height: 1;
}

.wpcf7 .contact-onpage-wrapper input.button:hover {
    background-color: var(--color-secondary) !important;
}

.contact-onpage-wrapper .security-notice>div:first-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.wpcf7 .contact-onpage-wrapper svg {
    width: 1.5rem !important;
    height: auto !important;
}

/* Common Banner */
.common-banner {}

.common-banner-icon>.col {
    padding-bottom: 0 !important;
}

.common-banner-icon>.col:not(:last-child)::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 1rem;
    background: #cccccc2e;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.common-banner .banner .fill.banner-bg::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(30deg, var(--color-primary) 15%, var(--color-linear-1) 25%, transparent)
}

.common-banner .banner .text-box {
    z-index: 2;
}

/* =================== */
/* ABOUT & SERVICES */
/* =================== */
.block-section-about .row.row-collapse {
    max-width: 100% !important;
}

/* 04 */
.about-img-04 .img-inner {
    overflow: visible !important;
}

.about-img-04 img {
    border-radius: 0 15%;
    box-shadow: 0 0 1.5rem 0.75rem rgba(0, 0, 0, .25) !important;

}

/* 05 */
.about-banner-05,
.about-banner-05 img {
    border-radius: .75rem 0 0 .75rem !important;
}

.about-quotes-img>.ux-logo-link {
    padding: 0 !important;
}

/* ============== */
/* Footer */
/* ============== */
.footer-wrapper .ux-menu-link {
    font-size: var(--fs-15) !important;
}

.footer-wrapper .ux-menu-link:hover>a,
.footer-wrapper .ux-menu-link--active>a {
    color: var(--color-secondary) !important;
}

.facebook-wrapper iframe {
    border-radius: .5rem !important;
    box-shadow: 0 0 1.5rem 0.75rem rgba(0, 0, 0, .1) !important;
    margin-bottom: 1rem;
}

.facebook-wrapper iframe #u_0_5_U1 {
    display: none !important;
}

/* ================== */
/* ==== Table of Contents */
/* ================== */
/* Bao bọc bên ngoài TOC */
#ez-toc-container {
    background-color: var(--color-background-primary-icon);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-shadow: none;
}

.entry-content a:not(.ez-toc-link),
.entry-content a:not(.ez-toc-link) * {
    color: var(--color-light-text) !important;
}

/* Tiêu đề mục lục */
#ez-toc-container p.ez-toc-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: .75rem;
}

/* Danh sách các mục */
#ez-toc-container ul.ez-toc-list {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-bottom: 0;
}

/* Khoảng cách và màu chữ của các link */
#ez-toc-container ul.ez-toc-list li {
    margin-bottom: .625rem;
}

#ez-toc-container ul.ez-toc-list li a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: .875rem;
    transition: all 0.2s ease;
}

/* Hiệu ứng Hover */
#ez-toc-container ul.ez-toc-list li a:hover {
    color: var(--color-secondary);
}

/* Thụt lề cho mục con (H3, H4) */
#ez-toc-container ul.ez-toc-list ul {
    padding-left: 1.25rem !important;
    margin-top: .5rem;
}

/* Animation */
@keyframes dash-move-left-to-right {
    to {
        background-position: 32px 0;
    }
}

@keyframes rippleEffect {
    0% {
        opacity: .4;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* ==========================================================================
   FLOATING CONTACT WIDGET
   ========================================================================== */
.bigro-floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.f-contact-item {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--color-secondary);
    /* Màu đỏ nổi bật */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 60, 78, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    position: relative;
}

.f-contact-item::after {
    content: "";
    background: var(--color-secondary);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: 2s 1s infinite rippleEffect;
}

.f-contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(239, 60, 78, 0.6);
}

.f-contact-item img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

/* Tùy chỉnh icon OA: Viền đỏ, nền trắng để nổi bật Logo bên trong */
.f-contact-item.f-oa {
    background-color: #fff;
    border: 2px solid #ef3c4e;
    box-shadow: 0 4px 15px rgba(239, 60, 78, 0.2);
}

.f-contact-item.f-oa:hover {
    box-shadow: 0 6px 20px rgba(239, 60, 78, 0.4);
}

.f-contact-item.f-oa img {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    /* OA logo usually circle */
}


/* ==========================================================================
   MOBILE SIDEBAR CUSTOMIZATION (Fullwidth + Circle Animation)
   ========================================================================== */
.off-canvas-left .mfp-content,
.off-canvas-right .mfp-content {
    transition: opacity 1s;
}

.mfp-content {
    width: 100% !important;
}

.mfp-content .mobile-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background-color: transparent !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    /* Ghi đè animation trượt mặc định của Flatsome để dùng hiệu ứng vòng tròn */
    transform: none !important;
    left: 0 !important;
    right: 0 !important;
}

/* Đảm bảo các menu item và nội dung nằm trên cùng, không bị vòng tròn đè */
.mfp-content .mobile-sidebar .mobile-sidebar-inner,
.mfp-content .mobile-sidebar .sidebar-menu-no-wrap,
.mfp-content .mobile-sidebar .nav-sidebar {
    position: relative;
    z-index: 10;
}

/* Khai báo biến Tailwind và thiết lập 2 vòng tròn */
.mfp-content .mobile-sidebar::before,
.mfp-content .mobile-sidebar::after {
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 0;
    --tw-scale-y: 0;
    content: "";
    position: absolute;
    /* Đặt tâm ở góc trái trên (top-left) */
    top: -150vh;
    left: -150vh;
    width: 240vh;
    height: 275vh;
    border-radius: 50%;
    transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1);
}

/* Hình 1: Màu linear 2, nở ra trước chiếm 100% */
.mfp-content .mobile-sidebar::before {
    background-color: var(--color-linear-2);
    z-index: 1;
}

/* Hình 2: Màu nền sáng (để chữ dễ đọc), nở sau hình 1 một chút, chiếm khoảng 85% */
.mfp-content .mobile-sidebar::after {
    background-color: var(--color-background-secondary-icon);
    z-index: 2;
    transition-delay: 0.15s;
}

/* Kích hoạt animation khi menu được mở (.mfp-ready) */
.mfp-ready .mobile-sidebar::before {
    --tw-scale-x: 1;
    /* Phóng to đủ che màn hình */
    --tw-scale-y: 1;
}

.mfp-ready .mobile-sidebar::after {
    --tw-scale-x: 0.85;
    /* Nở khoảng 85% so với hình 1 */
    --tw-scale-y: 0.85;
}

/* Hiệu ứng thu lại (Shrink) khi đóng menu thay vì biến mất ngay lập tức */
/* Flatsome mặc định có 300ms removalDelay, ta ép animation thu lại vừa khít 300ms (0.3s) */
.mfp-removing .mobile-sidebar::before,
.mfp-removing .mobile-sidebar::after {
    --tw-scale-x: 0 !important;
    --tw-scale-y: 0 !important;
    transition: transform 1s cubic-bezier(0.4, 0, 1, 1) !important;
}

.mfp-removing .mobile-sidebar-inner {
    opacity: 0;
    transition: opacity 1s ease !important;
}

/* Hiệu ứng xoay cho nút Close (X) */
.mfp-content .mfp-close {
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center;
}

.mfp-content .mfp-close:hover {
    transform: rotate(90deg);
}

.mfp-content .mfp-close:active {
    transform: rotate(180deg) scale(0.9);
}

/* Styling menu items */
.mobile-sidebar .nav-sidebar>li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-sidebar .nav-sidebar>li:last-child {
    border-bottom: none;
}

/* Màu chữ thường là Primary */
.mobile-sidebar .nav-sidebar>li>a {
    color: var(--color-primary) !important;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-transform: none;
}

/* Cấp con */
.mobile-sidebar .nav-sidebar ul.children>li>a,
.mobile-sidebar .nav-sidebar ul.sub-menu>li>a {
    color: var(--color-primary) !important;
    opacity: 0.85;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.8rem 2rem 0.8rem 3rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-sidebar .nav-sidebar ul.sub-menu>li:last-child>a {
    border-bottom: none;
}

/* Active / Hover là Secondary */
.mobile-sidebar .nav-sidebar>li.current-menu-item>a,
.mobile-sidebar .nav-sidebar>li.current-menu-ancestor>a,
.mobile-sidebar .nav-sidebar>li.active>a,
.mobile-sidebar .nav-sidebar>li>a:hover,
.mobile-sidebar .nav-sidebar ul.sub-menu>li>a:hover,
.mobile-sidebar .nav-sidebar ul.sub-menu>li.current-menu-item>a {
    color: var(--color-secondary) !important;
    background-color: transparent;
    transform: translateX(10px);
    /* Hiệu ứng đẩy nhẹ text khi hover */
    opacity: 1;
}

/* Tùy chỉnh icon dropdown (Toggle) */
.mobile-sidebar .toggle {
    color: var(--color-primary);
    transition: color 0.3s ease;
    right: 1.5rem;
}

.mobile-sidebar .nav-sidebar>li.active>.toggle,
.mobile-sidebar .nav-sidebar>li:hover>.toggle {
    color: var(--color-secondary);
}

/* Search form trong mobile menu */
.mobile-sidebar .searchform {
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-sidebar .searchform input[type="search"] {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-primary-text);
    border-radius: 2rem 0 0 2rem;
}

.mobile-sidebar .searchform button {
    border-radius: 0 2rem 2rem 0;
    background-color: var(--color-secondary);
}

.mobile-sidebar .searchform button:hover {
    background-color: var(--color-primary);
}

/* ==========================================================================
   ISOLATED MEDIA QUERIES (Tránh đè cấu hình Responsive của UX Builder)
   ========================================================================== */

@media screen and (max-width: 1025px) {

    /* TABS NAV của Blog/News/Case Study */
    .bigro-tabs-nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .bigro-tabs-content-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /*  */
}

/* 1. Nest Hub & Máy tính bảng ngang lớn (822px - 1025px) */
@media screen and (min-width: 822px) and (max-width: 1025px) {

    /* Code CSS chỉ áp dụng cho Nest Hub / Tablet ngang ở đây */
    /* 05 */
    .about-banner-05 {
        padding-top: 85% !important;
    }

    .about-banner-05 .row .col {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 821px) {
    .about-banner-05 img {
        border-radius: 0 !important;
    }
}

/* 2. iPad & Máy tính bảng đứng phổ thông (770px - 821px) */
@media screen and (min-width: 770px) and (max-width: 821px) {
    /* Code CSS chỉ áp dụng cho iPad đứng ở đây */
}

@media (max-width: 769px) {

    /* TABS NAV của Blog/News/Case Study */
    .bigro-tabs-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /*  */

    /* Swiper Case Study */
    .cs-hz-card {
        /* padding: 2rem; */
    }

    .cs-hz-content {
        max-width: 100%;
    }

    .cs-hz-overlay {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 75%);
    }

    .cs-hz-title {
        font-size: 1.5rem !important;
    }

    /* Floating */
    .bigro-floating-contact {
        bottom: 1rem;
        right: 1rem;
        gap: 0.75rem;
    }

    .f-contact-item {
        width: 3rem;
        height: 3rem;
    }

    .f-contact-item img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .f-contact-item.f-oa img {
        width: 1.8rem;
        height: 1.8rem;
    }
}

/* 3. iPad Mini & Tablet nhỏ / Điện thoại xoay ngang (432px - 769px) */
@media screen and (min-width: 432px) and (max-width: 769px) {

    /* Code CSS chỉ áp dụng cho iPad Mini ở đây */
    .about-banner-05 {
        padding-top: 50% !important;
    }
}

@media screen and (max-width: 431px) {
    /* TABS NAV của Blog/News/Case Study */

    .bigro-tab-btn {
        margin: 0;
        padding: .25rem .75rem;
    }

    .bigro-tabs-content-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    /* GTranslator */
    .gt_float_switcher .gt-selected .gt-current-lang {
        padding: .5rem !important;
        color: #333;
        font-weight: 500 !important;
        font-size: .875rem;
    }

    .gt_float_switcher img {
        width: 1.5rem !important;
    }
}

/* 4. iPhone 14 Pro Max & Điện thoại lớn (377px - 431px) */
@media screen and (min-width: 377px) and (max-width: 431px) {
    /* Code CSS chỉ áp dụng cho iPhone 14 Pro Max ở đây */
}

/* 5. Thiết bị di động siêu nhỏ (Dưới 377px như iPhone SE, 5S, 8) */
@media screen and (max-width: 376px) {

    /* Code CSS chỉ áp dụng cho màn hình nhỏ ở đây */

    /* TABS NAV của Blog/News/Case Study */

    .bigro-tabs-nav {
        gap: .5rem .25rem;
    }

    .bigro-tab-btn {
        margin: 0;
        padding: .125rem .5rem;
    }


}

/* Case Study Meta Custom Styling */
.case-study-meta {
    margin-top: 1.5rem;
}

.case-study-meta-item {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.case-study-link {
    color: red !important;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.case-study-link:hover {
    color: var(--color-secondary) !important;
    text-decoration: underline;
}