/* =====================================================
   KEHETO HEADER / FOOTER
===================================================== */

:root {
    --keheto-primary: #28cb8b;
    --keheto-primary-dark: #1f9f70;
    --keheto-primary-soft: #e8f8f1;
    --keheto-secondary: #263238;
    --keheto-white: #ffffff;
    --keheto-border: #e8eeec;
    --keheto-radius: 10px;
    --keheto-shadow: 0 12px 35px rgba(38, 50, 56, 0.10);
}

.header,
.header * {
    box-sizing: border-box;
}


/* =====================================================
   KHUNG HEADER
===================================================== */

.header {
    position: relative;
    z-index: 999;
}

.header .header-wrapper,
.header .header-bg-container,
.header .header-bg-image,
.header .header-bg-color {
    background: transparent;
}

.header .header-main {
    height: 88px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(38, 50, 56, 0.07);
    box-shadow: 0 6px 24px rgba(38, 50, 56, 0.06);
    transition:
        height 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.header .header-inner {
    width: 100%;
    max-width: 1440px;
    height: 88px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    overflow: visible;
}


/* =====================================================
   BỐ CỤC DESKTOP
===================================================== */

.header .header-inner>.hide-for-medium.flex-left.flex-grow {
    display: none;
}

.header .header-inner>.hide-for-medium.flex-right {
    flex: 1 1 auto;
    justify-content: flex-end;
}


/* =====================================================
   LOGO NỔI NHIỀU LỚP
===================================================== */

.header .logo {
    position: relative;
    z-index: 20;
    width: 245px;
    min-width: 245px;
    height: 88px;
    margin: 0 40px 0 0;
    display: flex;
    align-items: center;
    overflow: visible;
}

.header .logo::before,
.header .logo::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 6px;
    width: calc(100% - 12px);
    height: 82px;
    border-radius: var(--keheto-radius);
    pointer-events: none;
    transition:
        height 0.3s ease,
        top 0.3s ease,
        transform 0.3s ease;
}

.header .logo::before {
    z-index: 1;
    background: rgba(40, 203, 139, 0.18);
    transform: translate(13px, 12px) skewX(-8deg);
}

.header .logo::after {
    z-index: 2;
    background: rgba(38, 50, 56, 0.08);
    transform: translate(6px, 6px) skewX(-8deg);
}

.header .logo>a {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 92px;
    margin-top: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--keheto-white);
    border: 1px solid rgba(40, 203, 139, 0.28);
    border-radius: var(--keheto-radius);
    box-shadow: var(--keheto-shadow);
    transform: skewX(-8deg);
    transition:
        height 0.3s ease,
        margin-top 0.3s ease,
        padding 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.header .logo>a::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -35px;
    width: 90px;
    height: 90px;
    background: rgba(40, 203, 139, 0.10);
    border-radius: 50%;
}


.header .logo img {
    width: auto;
    max-width: 180px;
    max-height: 58px;
    object-fit: contain;
    transform: skewX(8deg);
    transition: transform 0.3s ease;
}

/* =====================================================
   LOGO HOVER - CHUẨN BỊ CHO GSAP
===================================================== */

.header .logo>a:hover {
    box-shadow: 0 18px 42px rgba(38, 50, 56, 0.15);
}

.header .logo>a:hover img {
    transform: skewX(8deg);
}

@media screen and (max-width: 849px) {
    .header .logo>a:hover img {
        transform: none;
    }
}

/* =====================================================
   MENU DESKTOP
===================================================== */

.header .header-nav {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.header .header-nav>li {
    margin: 0 2px;
}

.header .header-nav>li>.nav-top-link {
    position: relative;
    height: 48px;
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--keheto-secondary);
    border-radius: var(--keheto-radius);
    font-size: 18px;
    /* font-weight: 600; */
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.header .header-nav>li>.nav-top-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--keheto-primary);
    border-radius: var(--keheto-radius);
    opacity: 0;
    transform: translateX(-50%);
    transition:
        width 0.25s ease,
        opacity 0.25s ease;
}

.header .header-nav>li:hover>.nav-top-link {
    color: var(--keheto-primary-dark);
    background: rgba(40, 203, 139, 0.08);
    transform: translateY(-1px);
}

.header .header-nav>li:not(.current-menu-item):not(.current_page_item):not(.current-menu-ancestor):not(.current_page_ancestor):not(.active):hover>.nav-top-link::after {
    width: 20px;
    opacity: 1;
}


/* =====================================================
   MENU ACTIVE
===================================================== */

.header .header-nav>.current-menu-item>.nav-top-link,
.header .header-nav>.current_page_item>.nav-top-link,
.header .header-nav>.current-menu-ancestor>.nav-top-link,
.header .header-nav>.current_page_ancestor>.nav-top-link,
.header .header-nav>.active>.nav-top-link {
    color: var(--keheto-primary-dark);
    background: rgba(40, 203, 139, 0.12);
    font-weight: 700;
}

.header .header-nav>.current-menu-item>.nav-top-link::after,
.header .header-nav>.current_page_item>.nav-top-link::after,
.header .header-nav>.current-menu-ancestor>.nav-top-link::after,
.header .header-nav>.current_page_ancestor>.nav-top-link::after,
.header .header-nav>.active>.nav-top-link::after {
    width: 0;
    opacity: 0;
}


/* =====================================================
   NÚT LIÊN HỆ
===================================================== */

.header .header-button-1 {
    margin-left: 14px;
}

.header .header-button-1 .header-button {
    margin: 0;
}

.header .header-button-1 .button.primary {
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    color: var(--keheto-white);
    background: linear-gradient(135deg,
            var(--keheto-primary) 0%,
            var(--keheto-primary-dark) 100%);
    border: 0;

    /*
     * HTML hiện tại có style="border-radius:99px".
     * Chỉ giữ duy nhất !important tại đây để ghi đè inline style.
     */
    border-radius: var(--keheto-radius) !important;

    box-shadow: 0 10px 24px rgba(40, 203, 139, 0.28);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.header .header-button-1 .button.primary::after {
    content: "→";
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--keheto-primary-dark);
    background: var(--keheto-white);
    border-radius: var(--keheto-radius);
    font-size: 16px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.header .header-button-1 .button.primary:hover {
    color: var(--keheto-white);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(40, 203, 139, 0.38);
}

.header .header-button-1 .button.primary:hover::after {
    transform: translateX(3px);
}


/* =====================================================
   STICKY HEADER
===================================================== */

.header .header-wrapper.stuck .header-main {
    height: 74px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 35px rgba(38, 50, 56, 0.12);
}

.header .header-wrapper.stuck .header-inner,
.header .header-wrapper.stuck .logo {
    height: 74px;
}

.header .header-wrapper.stuck .logo>a {
    height: 70px;
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header .header-wrapper.stuck .logo::before,
.header .header-wrapper.stuck .logo::after {
    top: 5px;
    height: 64px;
}

.header .header-wrapper.stuck .logo::before {
    transform: translate(10px, 8px) skewX(-8deg);
}

.header .header-wrapper.stuck .logo::after {
    transform: translate(5px, 4px) skewX(-8deg);
}

.header .header-wrapper.stuck .logo img {
    max-height: 48px;
}

.header .header-wrapper.stuck .header-nav>li>.nav-top-link {
    height: 46px;
    min-height: 46px;
}


/* =====================================================
   DESKTOP VỪA
===================================================== */

@media screen and (min-width: 1181px) and (max-width: 1360px) {

    .header .header-inner {
        padding-right: 22px;
        padding-left: 22px;
    }

    .header .logo {
        width: 225px;
        min-width: 225px;
        margin-right: 24px;
    }

    .header .logo img {
        max-width: 165px;
    }

    .header .header-nav {
        gap: 1px;
    }

    .header .header-nav>li {
        margin: 0 1px;
    }

    .header .header-nav>li>.nav-top-link {
        padding-right: 11px;
        padding-left: 11px;
        font-size: 16px;
    }

    .header .header-button-1 {
        margin-left: 8px;
    }

    .header .header-button-1 .button.primary {
        padding-right: 17px;
        padding-left: 17px;
        font-size: 14px;
    }
}


/* =====================================================
   TABLET NGANG
===================================================== */

@media screen and (min-width: 850px) and (max-width: 1180px) {

    .header .header-inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .header .logo {
        width: 190px;
        min-width: 190px;
        margin-right: 14px;
    }

    .header .logo img {
        max-width: 145px;
    }

    .header .header-nav {
        gap: 0;
    }

    .header .header-nav>li {
        margin: 0;
    }

    .header .header-nav>li>.nav-top-link {
        padding-right: 7px;
        padding-left: 7px;
        font-size: 14px;
    }

    .header .header-button-1 {
        margin-left: 5px;
    }

    .header .header-button-1 .button.primary {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 12px;
    }

    .header .header-button-1 .button.primary::after {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
}


/* =====================================================
   MOBILE HEADER
===================================================== */

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

    .header .header-main {
        height: 68px;
        border-bottom: 1px solid var(--keheto-border);
        box-shadow: 0 5px 20px rgba(38, 50, 56, 0.08);
    }

    .header .header-inner {
        position: relative;
        height: 68px;
        min-height: 68px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header .logo {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 5;
        width: 170px;
        min-width: 0;
        height: 56px;
        margin: 0;
        transform: translate(-50%, -50%);
    }

    .header .logo::before,
    .header .logo::after {
        display: none;
    }

    .header .logo>a {
        width: 170px;
        height: 56px;
        margin: 0;
        padding: 7px 16px;
        border-radius: var(--keheto-radius);
        box-shadow: 0 7px 20px rgba(38, 50, 56, 0.10);
        transform: none;
    }

    .header .logo>a:hover {
        transform: none;
    }

    .header .logo img {
        max-width: 140px;
        max-height: 42px;
        transform: none;
    }

    .header .logo>a:hover img {
        transform: scale(1.02);
    }

    .header .show-for-medium.flex-left,
    .header .show-for-medium.flex-right {
        position: relative;
        z-index: 10;
        flex: 0 0 46px;
    }

    .header .show-for-medium.flex-left {
        order: 1;
        justify-content: flex-start;
    }

    .header .show-for-medium.flex-right {
        order: 3;
        justify-content: flex-end;
    }

    .header .mobile-nav {
        width: 46px;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .header .mobile-nav>li {
        margin: 0;
    }

    .header .mobile-nav .nav-icon>a,
    .header .mobile-nav .header-search>a {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--keheto-secondary);
        background: #f4f7f6;
        border: 1px solid rgba(38, 50, 56, 0.08);
        border-radius: var(--keheto-radius);
        box-shadow: none;
        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease;
    }

    .header .mobile-nav .nav-icon>a:hover,
    .header .mobile-nav .header-search>a:hover {
        color: var(--keheto-white);
        background: var(--keheto-primary);
        border-color: var(--keheto-primary);
    }

    .header .mobile-nav i {
        font-size: 20px;
    }


    /* =================================================
       TÌM KIẾM MOBILE
    ================================================= */

    .header .header-search .nav-dropdown {
        top: calc(100% + 12px);
        right: 0;
        left: auto;
        width: calc(100vw - 28px);
        min-width: 0;
        max-width: 380px;
        padding: 12px;
        background: var(--keheto-white);
        border: 1px solid var(--keheto-border);
        border-radius: var(--keheto-radius);
        box-shadow: 0 18px 45px rgba(38, 50, 56, 0.16);
    }

    .header .header-search-form-wrapper {
        padding: 0;
    }

    .header .searchform {
        overflow: hidden;
        border: 1px solid var(--keheto-border);
        border-radius: var(--keheto-radius);
    }

    .header .searchform .search-field {
        height: 46px;
        padding: 0 14px;
        background: #f8faf9;
        border: 0;
        box-shadow: none;
        font-size: 14px;
    }

    .header .searchform .ux-search-submit {
        width: 48px;
        height: 46px;
        min-height: 46px;
        margin: 0;
        padding: 0;
        color: var(--keheto-white);
        background: var(--keheto-primary);
        border: 0;
        border-radius: 0;
    }


    /* =================================================
       STICKY MOBILE
    ================================================= */

    .header .header-wrapper.stuck .header-main,
    .header .header-wrapper.stuck .header-inner {
        height: 64px;
        min-height: 64px;
    }

    .header .header-wrapper.stuck .logo {
        height: 52px;
    }

    .header .header-wrapper.stuck .logo>a {
        width: 160px;
        height: 52px;
        margin: 0;
    }

    .header .header-wrapper.stuck .logo img {
        max-width: 132px;
        max-height: 38px;
    }
}


/* =====================================================
   MOBILE NHỎ
===================================================== */

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

    .header .header-inner {
        padding-right: 10px;
        padding-left: 10px;
    }

    .header .logo,
    .header .logo>a {
        width: 150px;
    }

    .header .logo img {
        max-width: 125px;
    }

    .header .header-wrapper.stuck .logo>a {
        width: 145px;
    }

    .header .mobile-nav .nav-icon>a,
    .header .mobile-nav .header-search>a {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
    }
}

/* =====================================================
   GSAP SLICED LOGO REVEAL
===================================================== */

.header .logo>a {
    isolation: isolate;
}

.header .logo>a>img {
    position: relative;
    z-index: 2;
}

.keheto-logo-slices {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;

    pointer-events: none;
    overflow: visible;

    transform:
        translate(-50%, -50%) skewX(8deg);

    transform-origin: center center;
}

.keheto-logo-slice {
    position: absolute;
    inset: 0;

    display: block;
    overflow: hidden;

    opacity: 0;
    will-change: transform, opacity, filter;
}

.keheto-logo-slice img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;

    display: block;
    object-fit: contain;

    transform: none;
}

.header .logo>a.keheto-logo-is-animating {
    pointer-events: none;
}

@media screen and (max-width: 849px) {
    .keheto-logo-slices {
        transform: translate(-50%, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .keheto-logo-slices {
        display: none;
    }
}





/* =====================================================
   KEHETO - MOBILE SIDEBAR MENU
   Chỉ áp dụng trên màn hình nhỏ hơn 850px
===================================================== */

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

    /* =================================================
       NỀN OVERLAY PHÍA SAU SIDEBAR
    ================================================= */

    .mfp-wrap:has(#main-menu.mobile-sidebar)+.mfp-bg,
    body:has(.mfp-wrap #main-menu.mobile-sidebar) .mfp-bg {
        background: rgba(18, 30, 26, 0.76);
        opacity: 1;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }


    /* =================================================
       KHUNG POPUP FLATSOME
    ================================================= */

    .mfp-container:has(#main-menu.mobile-sidebar) {
        padding: 0;
        text-align: left;
    }

    .mfp-content:has(> #main-menu.mobile-sidebar) {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        display: block;
        vertical-align: top;
    }


    /* =================================================
       PANEL SIDEBAR BÊN TRÁI
    ================================================= */

    #main-menu.mobile-sidebar {
        position: relative;
        width: min(86vw, 350px);
        max-width: 350px;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;

        color: var(--keheto-secondary);

        background:
            linear-gradient(180deg,
                #ffffff 0%,
                #f9fcfb 100%);

        border-radius:
            0 var(--keheto-radius) var(--keheto-radius) 0;

        box-shadow:
            16px 0 45px rgba(22, 42, 35, 0.20),
            3px 0 10px rgba(22, 42, 35, 0.08);

        animation:
            keheto-mobile-menu-open 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    }


    /* =================================================
       LOGO ĐẦU SIDEBAR
       Logo được căn giữa toàn bộ chiều rộng panel
    ================================================= */

    #main-menu.mobile-sidebar::before {
        content: "";
        position: relative;
        z-index: 2;

        display: block;
        width: 100%;
        height: 88px;

        background-color: #ffffff;
        background-image:
            url("/wp-content/uploads/2026/07/LOGO-KEHETO.png");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 150px auto;

        border-bottom:
            1px solid rgba(38, 50, 56, 0.07);
    }


    /* =================================================
       HỌA TIẾT TRANG TRÍ PHÍA TRÊN
    ================================================= */

    #main-menu.mobile-sidebar::after {
        content: "";
        position: absolute;
        top: -55px;
        right: -48px;
        z-index: 1;

        width: 150px;
        height: 150px;

        pointer-events: none;

        background:
            radial-gradient(circle,
                rgba(40, 203, 139, 0.15) 0%,
                rgba(40, 203, 139, 0) 70%);

        border-radius: 50%;
    }


    /* =================================================
       VÙNG CUỘN NỘI DUNG MENU
    ================================================= */

    #main-menu .sidebar-menu {
        position: relative;
        z-index: 3;

        height: calc(100dvh - 88px);

        padding:
            18px 15px calc(28px + env(safe-area-inset-bottom));

        overflow-x: hidden;
        overflow-y: auto;

        background: transparent;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }


    /* =================================================
       THANH CUỘN SIDEBAR
    ================================================= */

    #main-menu .sidebar-menu::-webkit-scrollbar {
        width: 4px;
    }

    #main-menu .sidebar-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    #main-menu .sidebar-menu::-webkit-scrollbar-thumb {
        background: rgba(40, 203, 139, 0.30);
        border-radius: var(--keheto-radius);
    }


    /* =================================================
       DANH SÁCH MENU
    ================================================= */

    #main-menu .nav-sidebar {
        width: 100%;
        margin: 0;
        padding: 0;

        display: flex;
        flex-direction: column;
        gap: 8px;

        background: transparent;
    }


    /* =================================================
       XÓA GIAO DIỆN MẶC ĐỊNH CỦA FLATSOME
    ================================================= */

    #main-menu .nav-sidebar>li {
        width: 100%;
        margin: 0;
        padding: 0;

        background: transparent;
        border: 0;
    }

    #main-menu .nav-sidebar>li.menu-item {
        position: relative;
    }


    /* =================================================
       GIAO DIỆN MỖI MỤC MENU
    ================================================= */

    #main-menu .nav-sidebar>li.menu-item>a {
        position: relative;

        width: 100%;
        min-height: 58px;

        padding:
            0 48px 0 56px;

        display: flex;
        align-items: center;

        color: var(--keheto-secondary);

        background:
            linear-gradient(135deg,
                #ffffff 0%,
                #f8fbfa 100%);

        border:
            1px solid rgba(38, 50, 56, 0.07);

        border-radius: var(--keheto-radius);

        box-shadow:
            0 4px 14px rgba(38, 50, 56, 0.04);

        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: 0.1px;
        text-transform: uppercase;

        overflow: hidden;

        -webkit-tap-highlight-color: transparent;

        transition:
            color 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
    }


    /* =================================================
       Ô SỐ THỨ TỰ BÊN TRÁI
    ================================================= */

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item>a::before {
        position: absolute;
        top: 50%;
        left: 14px;

        width: 30px;
        height: 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--keheto-primary-dark);
        background: rgba(40, 203, 139, 0.10);

        border:
            1px solid rgba(40, 203, 139, 0.18);

        border-radius: 8px;

        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;

        opacity: 1;
        visibility: visible;

        transform: translateY(-50%);

        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease,
            transform 0.25s ease;
    }


    /* =================================================
       SỐ THỨ TỰ CỐ ĐỊNH
       Không bị mất khi menu chuyển sang active
    ================================================= */

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(1)>a::before {
        content: "01";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(2)>a::before {
        content: "02";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(3)>a::before {
        content: "03";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(4)>a::before {
        content: "04";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(5)>a::before {
        content: "05";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(6)>a::before {
        content: "06";
    }


    /* =================================================
       MŨI TÊN BÊN PHẢI
    ================================================= */

    #main-menu .nav-sidebar>li.menu-item>a::after {
        content: "→";

        position: absolute;
        top: 50%;
        right: 14px;

        width: 26px;
        height: 26px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: rgba(38, 50, 56, 0.42);
        background: rgba(38, 50, 56, 0.04);

        border-radius: 8px;

        font-size: 14px;
        font-weight: 500;
        line-height: 1;

        transform: translateY(-50%);

        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            transform 0.25s ease;
    }


    /* =================================================
       HOVER VÀ KEYBOARD FOCUS
    ================================================= */

    #main-menu .nav-sidebar>li.menu-item>a:hover,
    #main-menu .nav-sidebar>li.menu-item>a:focus-visible {
        color: var(--keheto-primary-dark);

        background:
            linear-gradient(135deg,
                rgba(40, 203, 139, 0.08) 0%,
                rgba(232, 248, 241, 0.82) 100%);

        border-color: rgba(40, 203, 139, 0.22);

        box-shadow:
            0 9px 22px rgba(40, 203, 139, 0.11);

        transform: translateX(3px);
        outline: none;
    }

    #main-menu .nav-sidebar>li.menu-item>a:hover::before,
    #main-menu .nav-sidebar>li.menu-item>a:focus-visible::before {
        color: var(--keheto-white);
        background: var(--keheto-primary);
        border-color: var(--keheto-primary);

        transform:
            translateY(-50%) rotate(-5deg) scale(1.04);
    }

    #main-menu .nav-sidebar>li.menu-item>a:hover::after,
    #main-menu .nav-sidebar>li.menu-item>a:focus-visible::after {
        color: var(--keheto-white);
        background: var(--keheto-primary);

        transform:
            translate(3px, -50%);
    }


    /* =================================================
       TRẠNG THÁI ĐANG NHẤN TRÊN MOBILE
    ================================================= */

    #main-menu .nav-sidebar>li.menu-item>a:active {
        color: var(--keheto-primary-dark);

        background:
            linear-gradient(135deg,
                rgba(40, 203, 139, 0.15) 0%,
                rgba(232, 248, 241, 0.95) 100%);

        border-color: rgba(40, 203, 139, 0.30);

        box-shadow:
            inset 0 2px 5px rgba(31, 159, 112, 0.08),
            0 3px 10px rgba(38, 50, 56, 0.05);

        transform:
            translateX(2px) scale(0.985);
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item>a:active::before {
        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--keheto-white);
        background: var(--keheto-primary-dark);
        border-color: var(--keheto-primary-dark);

        opacity: 1;
        visibility: visible;

        transform:
            translateY(-50%) scale(0.94);
    }

    #main-menu .nav-sidebar>li.menu-item>a:active::after {
        color: var(--keheto-white);
        background: var(--keheto-primary-dark);

        transform:
            translate(2px, -50%) scale(0.94);
    }


    /* =================================================
       MENU CỦA TRANG HIỆN TẠI
       Hỗ trợ class WordPress và aria-current
    ================================================= */

    #main-menu .nav-sidebar>.current-menu-item>a,
    #main-menu .nav-sidebar>.current_page_item>a,
    #main-menu .nav-sidebar>.current-menu-ancestor>a,
    #main-menu .nav-sidebar>.current_page_ancestor>a,
    #main-menu .nav-sidebar>li.active>a,
    #main-menu .nav-sidebar>li>a[aria-current="page"] {
        color: var(--keheto-white);

        background:
            linear-gradient(135deg,
                var(--keheto-primary) 0%,
                var(--keheto-primary-dark) 100%);

        border-color: transparent;

        box-shadow:
            0 11px 26px rgba(40, 203, 139, 0.26);

        font-weight: 700;

        transform: none;
    }


    /* =================================================
       SỐ THỨ TỰ CỦA MENU ACTIVE
       Khai báo lại đầy đủ để số không bị mất
    ================================================= */

    #main-menu.mobile-sidebar .nav-sidebar>.current-menu-item>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>.current_page_item>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>.current-menu-ancestor>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>.current_page_ancestor>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.active>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li>a[aria-current="page"]::before {
        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--keheto-primary-dark);
        background: var(--keheto-white);

        border-color: rgba(255, 255, 255, 0.60);

        box-shadow:
            0 3px 9px rgba(19, 106, 74, 0.14);

        opacity: 1;
        visibility: visible;

        transform: translateY(-50%);
    }


    /* =================================================
       ĐẢM BẢO CONTENT ACTIVE KHÔNG BỊ FLATSOME GHI ĐÈ
    ================================================= */

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current-menu-item:nth-child(1)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current_page_item:nth-child(1)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.active:nth-child(1)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(1)>a[aria-current="page"]::before {
        content: "01";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current-menu-item:nth-child(2)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current_page_item:nth-child(2)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.active:nth-child(2)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(2)>a[aria-current="page"]::before {
        content: "02";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current-menu-item:nth-child(3)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current_page_item:nth-child(3)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.active:nth-child(3)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(3)>a[aria-current="page"]::before {
        content: "03";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current-menu-item:nth-child(4)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current_page_item:nth-child(4)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.active:nth-child(4)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(4)>a[aria-current="page"]::before {
        content: "04";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current-menu-item:nth-child(5)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current_page_item:nth-child(5)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.active:nth-child(5)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(5)>a[aria-current="page"]::before {
        content: "05";
    }

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current-menu-item:nth-child(6)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.current_page_item:nth-child(6)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item.active:nth-child(6)>a::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item:nth-child(6)>a[aria-current="page"]::before {
        content: "06";
    }


    /* =================================================
       MŨI TÊN CỦA MENU ACTIVE
    ================================================= */

    #main-menu .nav-sidebar>.current-menu-item>a::after,
    #main-menu .nav-sidebar>.current_page_item>a::after,
    #main-menu .nav-sidebar>.current-menu-ancestor>a::after,
    #main-menu .nav-sidebar>.current_page_ancestor>a::after,
    #main-menu .nav-sidebar>li.active>a::after,
    #main-menu .nav-sidebar>li>a[aria-current="page"]::after {
        color: var(--keheto-primary-dark);
        background: var(--keheto-white);

        box-shadow:
            0 3px 9px rgba(19, 106, 74, 0.14);
    }


    /* =================================================
       GIỮ MÀU MENU ACTIVE KHI HOVER VÀ FOCUS
    ================================================= */

    #main-menu .nav-sidebar>.current-menu-item>a:hover,
    #main-menu .nav-sidebar>.current_page_item>a:hover,
    #main-menu .nav-sidebar>.current-menu-ancestor>a:hover,
    #main-menu .nav-sidebar>.current_page_ancestor>a:hover,
    #main-menu .nav-sidebar>li.active>a:hover,
    #main-menu .nav-sidebar>li>a[aria-current="page"]:hover,
    #main-menu .nav-sidebar>.current-menu-item>a:focus-visible,
    #main-menu .nav-sidebar>.current_page_item>a:focus-visible,
    #main-menu .nav-sidebar>.current-menu-ancestor>a:focus-visible,
    #main-menu .nav-sidebar>.current_page_ancestor>a:focus-visible,
    #main-menu .nav-sidebar>li.active>a:focus-visible,
    #main-menu .nav-sidebar>li>a[aria-current="page"]:focus-visible {
        color: var(--keheto-white);

        background:
            linear-gradient(135deg,
                #2fd297 0%,
                var(--keheto-primary-dark) 100%);

        border-color: transparent;

        box-shadow:
            0 14px 30px rgba(40, 203, 139, 0.32);

        transform: translateY(-1px);
    }


    /* =================================================
       MENU ACTIVE KHI ĐANG ĐƯỢC NHẤN
    ================================================= */

    #main-menu .nav-sidebar>.current-menu-item>a:active,
    #main-menu .nav-sidebar>.current_page_item>a:active,
    #main-menu .nav-sidebar>.current-menu-ancestor>a:active,
    #main-menu .nav-sidebar>.current_page_ancestor>a:active,
    #main-menu .nav-sidebar>li.active>a:active,
    #main-menu .nav-sidebar>li>a[aria-current="page"]:active {
        color: var(--keheto-white);

        background:
            linear-gradient(135deg,
                var(--keheto-primary-dark) 0%,
                #197d59 100%);

        box-shadow:
            inset 0 3px 8px rgba(0, 0, 0, 0.10),
            0 5px 14px rgba(40, 203, 139, 0.22);

        transform: scale(0.985);
    }


    /* =================================================
       SỐ MENU ACTIVE KHI ĐANG NHẤN
    ================================================= */

    #main-menu.mobile-sidebar .nav-sidebar>.current-menu-item>a:active::before,

    #main-menu.mobile-sidebar .nav-sidebar>.current_page_item>a:active::before,

    #main-menu.mobile-sidebar .nav-sidebar>.current-menu-ancestor>a:active::before,

    #main-menu.mobile-sidebar .nav-sidebar>.current_page_ancestor>a:active::before,

    #main-menu.mobile-sidebar .nav-sidebar>li.active>a:active::before,

    #main-menu.mobile-sidebar .nav-sidebar>li>a[aria-current="page"]:active::before {
        color: var(--keheto-primary-dark);
        background: var(--keheto-white);
        border-color: rgba(255, 255, 255, 0.70);

        opacity: 1;
        visibility: visible;

        transform:
            translateY(-50%) scale(0.94);
    }


    /* =================================================
       KHU VỰC NÚT LIÊN HỆ
    ================================================= */

    #main-menu .nav-sidebar>.header-button-1 {
        margin-top: 14px;
        padding-top: 20px;

        border-top:
            1px solid var(--keheto-border);
    }

    #main-menu .header-button-1 .header-button {
        width: 100%;
        margin: 0;
    }


    /* =================================================
       NÚT LIÊN HỆ TOÀN CHIỀU RỘNG
    ================================================= */

    #main-menu .header-button-1 .button.primary {
        width: 100%;
        height: 54px;
        min-height: 54px;

        margin: 0;

        padding:
            0 13px 0 18px;

        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;

        color: var(--keheto-white);

        background:
            linear-gradient(135deg,
                var(--keheto-primary) 0%,
                var(--keheto-primary-dark) 100%);

        border: 0;

        /*
         * Ghi đè style="border-radius:99px"
         * được khai báo trực tiếp trong HTML.
         */
        border-radius: var(--keheto-radius) !important;

        box-shadow:
            0 10px 24px rgba(40, 203, 139, 0.25);

        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: uppercase;

        -webkit-tap-highlight-color: transparent;

        transition:
            background 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }


    /* =================================================
       MŨI TÊN TRONG NÚT LIÊN HỆ
    ================================================= */

    #main-menu .header-button-1 .button.primary::after {
        content: "→";

        width: 30px;
        height: 30px;
        margin-left: auto;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;

        color: var(--keheto-primary-dark);
        background: var(--keheto-white);

        border-radius: 8px;

        font-size: 16px;
        line-height: 1;

        transition:
            transform 0.25s ease,
            background-color 0.25s ease;
    }


    /* =================================================
       HOVER VÀ FOCUS NÚT LIÊN HỆ
    ================================================= */

    #main-menu .header-button-1 .button.primary:hover,
    #main-menu .header-button-1 .button.primary:focus-visible {
        color: var(--keheto-white);

        box-shadow:
            0 14px 29px rgba(40, 203, 139, 0.34);

        transform: translateY(-2px);
        outline: none;
    }

    #main-menu .header-button-1 .button.primary:hover::after,
    #main-menu .header-button-1 .button.primary:focus-visible::after {
        transform: translateX(3px);
    }


    /* =================================================
       ACTIVE KHI NHẤN NÚT LIÊN HỆ
    ================================================= */

    #main-menu .header-button-1 .button.primary:active {
        color: var(--keheto-white);

        background:
            linear-gradient(135deg,
                var(--keheto-primary-dark) 0%,
                #197d59 100%);

        box-shadow:
            inset 0 3px 8px rgba(0, 0, 0, 0.10),
            0 5px 14px rgba(40, 203, 139, 0.20);

        transform: scale(0.98);
    }

    #main-menu .header-button-1 .button.primary:active::after {
        transform: scale(0.92);
    }


    /* =================================================
       NÚT ĐÓNG SIDEBAR
    ================================================= */

    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-close {
        position: fixed;

        top:
            calc(17px + env(safe-area-inset-top));

        right: auto;

        left:
            calc(min(86vw, 350px) - 48px);

        z-index: 1005;

        width: 36px;
        height: 36px;
        padding: 0;

        color: var(--keheto-secondary);
        background: #f2f7f5;

        border:
            1px solid rgba(38, 50, 56, 0.08);

        border-radius: var(--keheto-radius);

        box-shadow:
            0 5px 14px rgba(38, 50, 56, 0.08);

        font-family: Arial, sans-serif;
        font-size: 28px;
        font-weight: 300;
        line-height: 33px;
        text-align: center;

        opacity: 1;

        -webkit-tap-highlight-color: transparent;

        transition:
            color 0.25s ease,
            background-color 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
    }


    /* =================================================
       HOVER NÚT ĐÓNG
    ================================================= */

    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-close:hover,
    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-close:focus-visible {
        color: var(--keheto-white);
        background: var(--keheto-primary);
        border-color: var(--keheto-primary);

        transform: rotate(90deg);
        outline: none;
    }


    /* =================================================
       ACTIVE KHI NHẤN NÚT ĐÓNG
    ================================================= */

    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-close:active {
        color: var(--keheto-white);
        background: var(--keheto-primary-dark);
        border-color: var(--keheto-primary-dark);

        transform:
            rotate(90deg) scale(0.90);
    }


    /* =================================================
       ẨN PRELOADER POPUP MENU
    ================================================= */

    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-preloader {
        display: none;
    }
}


/* =====================================================
   MOBILE NHỎ DƯỚI 390PX
===================================================== */

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

    /* Thu chiều rộng sidebar */

    #main-menu.mobile-sidebar {
        width: 88vw;
    }


    /* Logo vẫn căn chính giữa trên mobile nhỏ */

    #main-menu.mobile-sidebar::before {
        height: 78px;
        background-position: center center;
        background-size: 136px auto;
    }


    /* Điều chỉnh vùng cuộn theo chiều cao logo */

    #main-menu .sidebar-menu {
        height: calc(100dvh - 78px);

        padding:
            14px 12px calc(24px + env(safe-area-inset-bottom));
    }


    /* Thu khoảng cách giữa các menu */

    #main-menu .nav-sidebar {
        gap: 7px;
    }


    /* Thu kích thước từng mục menu */

    #main-menu .nav-sidebar>li.menu-item>a {
        min-height: 53px;

        padding-right: 43px;
        padding-left: 51px;

        font-size: 13px;
    }


    /* Thu ô số thứ tự */

    #main-menu.mobile-sidebar .nav-sidebar>li.menu-item>a::before {
        left: 12px;

        width: 28px;
        height: 28px;

        font-size: 9px;
    }


    /* Thu mũi tên bên phải */

    #main-menu .nav-sidebar>li.menu-item>a::after {
        right: 12px;

        width: 24px;
        height: 24px;

        font-size: 13px;
    }


    /* Thu nút liên hệ */

    #main-menu .header-button-1 .button.primary {
        height: 52px;
        min-height: 52px;

        font-size: 13px;
    }


    /* Điều chỉnh vị trí nút đóng */

    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-close {
        left: calc(88vw - 47px);

        width: 34px;
        height: 34px;

        font-size: 26px;
        line-height: 31px;
    }
}


/* =====================================================
   HIỆU ỨNG MỞ SIDEBAR
===================================================== */

@keyframes keheto-mobile-menu-open {

    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =====================================================
   HỖ TRỢ THIẾT BỊ TẮT CHUYỂN ĐỘNG
===================================================== */

@media screen and (max-width: 849px) and (prefers-reduced-motion: reduce) {

    #main-menu.mobile-sidebar {
        animation: none;
    }

    #main-menu .nav-sidebar>li.menu-item>a,
    #main-menu .nav-sidebar>li.menu-item>a::before,
    #main-menu .nav-sidebar>li.menu-item>a::after,
    #main-menu .header-button-1 .button.primary,
    #main-menu .header-button-1 .button.primary::after,
    .mfp-wrap:has(#main-menu.mobile-sidebar) .mfp-close {
        transition: none;
    }
}









/* =========================================================
   FOOTER KEHETO
   Phạm vi áp dụng:
   - Dịch vụ
   - Sản phẩm
   - Thông tin liên hệ
   - Ảnh nền footer

   Lưu ý:
   - Không thay đổi cấu trúc HTML
   - Không sử dụng ID
   - Chỉ dùng !important tại phần cần thắng CSS
     padding tự sinh của UX Builder
========================================================= */


/* =========================================================
   1. BIẾN MÀU VÀ THIẾT LẬP SECTION
========================================================= */

.footer-wrapper .keheto-footer {
    --keh-footer-primary: #278b46;
    --keh-footer-primary-dark: #126334;
    --keh-footer-accent: #8bcf4a;

    --keh-footer-dark: #102f22;
    --keh-footer-text: #2d3c34;
    --keh-footer-muted: #68776e;

    --keh-footer-border: rgba(39, 139, 70, 0.16);
    --keh-footer-card: rgba(255, 255, 255, 0.94);
    --keh-footer-shadow: 0 18px 45px rgba(19, 73, 42, 0.12);

    position: relative;

    width: 100%;
    min-height: max(460px, calc(100vw * 757 / 2078));

    overflow: hidden;

    /*
       Vô hiệu hóa padding 30px phía trên và phía dưới
       do UX Builder tự sinh cho section.
    */
    padding-top: 0 !important;
    padding-bottom: 0 !important;

    /*
       Màu dự phòng trùng với vùng xanh cuối ảnh.
       Nếu chiều cao nội dung lớn hơn ảnh ở một số màn hình,
       phần dư sẽ không còn hiển thị màu trắng.
    */
    background-color: var(--keh-footer-primary-dark);
}


/* =========================================================
   2. ẢNH NỀN FOOTER

   Ảnh được hiển thị theo đúng tỷ lệ gốc 2078 x 757.
   Không ép height: 100% để tránh tạo vùng trắng phía dưới.
========================================================= */

.footer-wrapper .keheto-footer .section-bg {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background-color: var(--keh-footer-primary-dark);
}


/* Hiển thị đầy đủ ảnh nền theo chiều ngang */

.footer-wrapper .keheto-footer .section-bg img {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;

    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: left top;
}


/* =========================================================
   3. KHUNG CHỨA NỘI DUNG

   Chiều cao được tính theo tỷ lệ ảnh nền.
   Không còn padding-bottom gây dư khoảng trắng.
========================================================= */

.footer-wrapper .keheto-footer .section-content {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: max(460px, calc(100vw * 757 / 2078));

    margin: 0;

    /*
       Chỉ giữ khoảng cách phía trên cho ba card.
       Không đặt padding phía dưới.
    */
    padding: 42px 20px 0;

    display: flex;
    align-items: flex-start;

    box-sizing: border-box;
}


/* =========================================================
   4. BỐ CỤC MENU DESKTOP

   Tỷ lệ toàn bộ row:
   - Cột hình ảnh trống: 30%
   - Dịch vụ: 21%
   - Sản phẩm: 21%
   - Thông tin liên hệ: 28%
========================================================= */

.footer-wrapper .keheto-footer .section-content>.row {
    width: 100%;
    max-width: 1320px;

    margin: 0 auto;
    padding: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 30fr) minmax(0, 21fr) minmax(0, 21fr) minmax(0, 28fr);

    gap: 16px;

    align-items: stretch;

    box-sizing: border-box;
}


/* Loại bỏ kích thước cột mặc định của Flatsome */

.footer-wrapper .keheto-footer .section-content>.row>.col {
    width: auto;
    max-width: none;
    flex-basis: auto;

    margin: 0;
    padding: 0;

    display: flex;

    box-sizing: border-box;
}


/* Nội dung bên trong cột chiếm toàn bộ chiều rộng */

.footer-wrapper .keheto-footer .section-content>.row>.col>.col-inner {
    width: 100%;

    box-sizing: border-box;
}


/* Cột đầu tiên dành khoảng trống cho hình ảnh bên trái */

.footer-wrapper .keheto-footer .section-content>.row>.col:first-child {
    min-height: 100%;

    pointer-events: none;
}


/* Không tạo nền cho cột hình ảnh */

.footer-wrapper .keheto-footer .section-content>.row>.col:first-child>.col-inner {
    background: transparent;
}


/* =========================================================
   5. CARD MENU

   Chỉ áp dụng cho ba cột nội dung bên phải.
========================================================= */

.footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner {
    position: relative;

    width: 100%;
    height: 100%;

    padding: 24px 22px 22px;

    overflow: hidden;

    background: var(--keh-footer-card);

    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;

    box-shadow: var(--keh-footer-shadow);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;

    box-sizing: border-box;
}


/* Thanh màu xanh phía trên từng card */

.footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner::before {
    content: "";

    position: absolute;
    top: 0;
    left: 22px;

    width: 48px;
    height: 4px;

    border-radius: 0 0 8px 8px;

    background:
        linear-gradient(90deg,
            var(--keh-footer-primary),
            var(--keh-footer-accent));
}


/* Hiệu ứng card trên thiết bị hỗ trợ hover */

@media (hover: hover) {

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner:hover {
        transform: translateY(-5px);

        border-color: rgba(39, 139, 70, 0.22);

        box-shadow:
            0 24px 55px rgba(19, 73, 42, 0.17);
    }
}


/* =========================================================
   6. TIÊU ĐỀ CỘT
========================================================= */

.footer-wrapper .keheto-footer .col-inner>p:first-child {
    position: relative;

    margin: 0 0 18px;
    padding: 0 0 13px;

    color: var(--keh-footer-dark);

    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: 0.055em;

    text-transform: uppercase;
}


/* Đường phân cách dưới tiêu đề */

.footer-wrapper .keheto-footer .col-inner>p:first-child::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(90deg,
            var(--keh-footer-border),
            rgba(39, 139, 70, 0));
}


/* =========================================================
   7. MENU DỊCH VỤ VÀ SẢN PHẨM
========================================================= */

.footer-wrapper .keheto-footer .ux-menu {
    width: 100%;

    margin: 0;
    padding: 0;
}


/* Từng dòng menu */

.footer-wrapper .keheto-footer .ux-menu-link {
    position: relative;

    width: 100%;
    min-height: 42px;

    margin: 0;

    border: 0;
    border-bottom: 1px solid rgba(39, 139, 70, 0.1);
}


/* Xóa đường phân cách của menu cuối */

.footer-wrapper .keheto-footer .ux-menu-link:last-child {
    border-bottom: 0;
}


/* Link menu */

.footer-wrapper .keheto-footer .ux-menu-link__link {
    position: relative;

    width: 100%;
    min-height: 44px;

    padding: 10px 24px 10px 0;

    display: flex;
    align-items: center;

    color: var(--keh-footer-text);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;

    text-decoration: none;

    transition:
        color 0.25s ease,
        padding-left 0.25s ease;

    box-sizing: border-box;
}


/* Mũi tên phía bên phải */

.footer-wrapper .keheto-footer .ux-menu-link__link::after {
    content: "›";

    position: absolute;
    top: 50%;
    right: 3px;

    transform: translateY(-52%);

    color: rgba(39, 139, 70, 0.56);

    font-size: 21px;
    font-weight: 400;
    line-height: 1;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* Chấm xanh xuất hiện khi hover */

.footer-wrapper .keheto-footer .ux-menu-link__link::before {
    content: "";

    width: 0;
    height: 5px;

    margin-right: 0;

    flex: 0 0 auto;

    border-radius: 50%;

    background: var(--keh-footer-primary);

    transition:
        width 0.25s ease,
        margin-right 0.25s ease;
}


/* Hiệu ứng hover menu */

@media (hover: hover) {

    .footer-wrapper .keheto-footer .ux-menu-link__link:hover {
        padding-left: 3px;

        color: var(--keh-footer-primary-dark);
    }

    .footer-wrapper .keheto-footer .ux-menu-link__link:hover::before {
        width: 5px;

        margin-right: 8px;
    }

    .footer-wrapper .keheto-footer .ux-menu-link__link:hover::after {
        color: var(--keh-footer-primary);

        transform: translate(3px, -52%);
    }
}


/* Hỗ trợ điều hướng bằng bàn phím */

.footer-wrapper .keheto-footer .ux-menu-link__link:focus-visible {
    outline: 2px solid var(--keh-footer-primary);
    outline-offset: 2px;

    border-radius: 6px;
}


/* =========================================================
   8. THÔNG TIN LIÊN HỆ
========================================================= */

.footer-wrapper .keheto-footer .ten-cty {
    margin-bottom: 13px;
}


/* Tên công ty */

.footer-wrapper .keheto-footer .ten-cty h5 {
    margin: 0;

    color: var(--keh-footer-primary-dark);

    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: 0.015em;
}


/* Các dòng địa chỉ, hotline và email */

.footer-wrapper .keheto-footer .van-phong,
.footer-wrapper .keheto-footer .nha-may,
.footer-wrapper .keheto-footer .hotline,
.footer-wrapper .keheto-footer .email {
    position: relative;

    margin: 0;
    padding: 10px 0 10px 15px;

    border-bottom: 1px solid rgba(39, 139, 70, 0.1);

    box-sizing: border-box;
}


/* Chấm xanh phía trước thông tin */

.footer-wrapper .keheto-footer .van-phong::before,
.footer-wrapper .keheto-footer .nha-may::before,
.footer-wrapper .keheto-footer .hotline::before,
.footer-wrapper .keheto-footer .email::before {
    content: "";

    position: absolute;
    top: 18px;
    left: 0;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--keh-footer-primary);

    box-shadow:
        0 0 0 4px rgba(39, 139, 70, 0.09);
}


/* Email là dòng cuối nên không có đường phân cách */

.footer-wrapper .keheto-footer .email {
    padding-bottom: 0;

    border-bottom: 0;
}


/* Nội dung thông tin liên hệ */

.footer-wrapper .keheto-footer .text p {
    margin: 0;

    color: var(--keh-footer-muted);

    font-size: 13.5px;
    font-weight: 450;
    line-height: 1.65;
}


/* Nhãn Trụ sở, Nhà máy, Hotline và Email */

.footer-wrapper .keheto-footer .text p strong {
    color: var(--keh-footer-text);

    font-weight: 700;
}


/* Làm nổi bật Hotline và Email */

.footer-wrapper .keheto-footer .hotline p,
.footer-wrapper .keheto-footer .email p {
    color: var(--keh-footer-primary-dark);

    font-weight: 600;
}


/* =========================================================
   9. RESPONSIVE LAPTOP
========================================================= */

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

    /* Đảm bảo card không bị tràn khỏi chiều cao footer */

    .footer-wrapper .keheto-footer {
        min-height: max(460px, calc(100vw * 757 / 2078));
    }


    /* Giảm khoảng cách phía trên */

    .footer-wrapper .keheto-footer .section-content {
        min-height: max(460px, calc(100vw * 757 / 2078));

        padding: 32px 24px 0;
    }


    /* Giữ nguyên tỷ lệ bốn cột */

    .footer-wrapper .keheto-footer .section-content>.row {
        grid-template-columns:
            minmax(0, 30fr) minmax(0, 21fr) minmax(0, 21fr) minmax(0, 28fr);

        gap: 13px;
    }


    /* Giảm khoảng cách bên trong card */

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner {
        padding: 22px 18px 20px;
    }


    /* Điều chỉnh vị trí thanh xanh */

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner::before {
        left: 18px;
    }


    /* Giảm nhẹ font menu */

    .footer-wrapper .keheto-footer .ux-menu-link__link {
        font-size: 13.5px;
    }


    /* Giảm nhẹ font liên hệ */

    .footer-wrapper .keheto-footer .text p {
        font-size: 13px;
    }
}


/* =========================================================
   10. RESPONSIVE TABLET
========================================================= */

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

    /*
       Trên tablet, chiều cao footer phụ thuộc nội dung.
       Không tiếp tục ép theo tỷ lệ ảnh desktop.
    */

    .footer-wrapper .keheto-footer {
        min-height: 0;
    }


    /* Cho nền ảnh phủ toàn bộ chiều cao section tablet */

    .footer-wrapper .keheto-footer .section-bg img {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center top;

        opacity: 0.38;
    }


    /* Khung nội dung tablet */

    .footer-wrapper .keheto-footer .section-content {
        min-height: 0;

        display: block;

        padding: 28px 20px;
    }


    /* Hai cột menu */

    .footer-wrapper .keheto-footer .section-content>.row {
        max-width: 720px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }


    /* Ẩn cột hình ảnh trên tablet */

    .footer-wrapper .keheto-footer .section-content>.row>.col:first-child {
        display: none;
    }


    /* Cột thông tin liên hệ chiếm toàn bộ hàng dưới */

    .footer-wrapper .keheto-footer .section-content>.row>.col:nth-child(4) {
        grid-column: 1 / -1;
    }


    /* Card tablet */

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner {
        padding: 22px;

        border-radius: 16px;
    }


    /* Chia nội dung liên hệ thành hai cột */

    .footer-wrapper .keheto-footer .section-content>.row>.col:nth-child(4)>.col-inner {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 28px;

        align-content: start;
    }


    /* Tiêu đề và tên công ty chiếm toàn bộ chiều ngang */

    .footer-wrapper .keheto-footer .section-content>.row>.col:nth-child(4)>.col-inner>p:first-child,
    .footer-wrapper .keheto-footer .section-content>.row>.col:nth-child(4) .ten-cty {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   11. RESPONSIVE MOBILE
========================================================= */

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

    /* Khoảng cách section trên mobile */

    .footer-wrapper .keheto-footer .section-content {
        padding: 20px 12px;
    }


    /* Hai cột menu */

    .footer-wrapper .keheto-footer .section-content>.row {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    /* Card nhỏ gọn hơn */

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner {
        padding: 18px 14px 16px;

        border-radius: 14px;
    }


    /* Thanh xanh phía trên card */

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner::before {
        left: 14px;

        width: 38px;
    }


    /* Tiêu đề menu */

    .footer-wrapper .keheto-footer .col-inner>p:first-child {
        min-height: 51px;

        margin-bottom: 9px;
        padding-bottom: 10px;

        display: flex;
        align-items: flex-start;

        font-size: 13px;
        line-height: 1.4;
        letter-spacing: 0.035em;
    }


    /* Dòng menu */

    .footer-wrapper .keheto-footer .ux-menu-link {
        min-height: 40px;
    }


    /* Link menu */

    .footer-wrapper .keheto-footer .ux-menu-link__link {
        min-height: 42px;

        padding: 9px 18px 9px 0;

        font-size: 12.5px;
        line-height: 1.4;
    }


    /* Mũi tên menu */

    .footer-wrapper .keheto-footer .ux-menu-link__link::after {
        right: 0;

        font-size: 18px;
    }


    /* Thông tin liên hệ chuyển về một cột */

    .footer-wrapper .keheto-footer .section-content>.row>.col:nth-child(4)>.col-inner {
        display: block;
    }


    /* Tên công ty */

    .footer-wrapper .keheto-footer .ten-cty h5 {
        font-size: 13.5px;
        line-height: 1.5;
    }


    /* Khoảng cách từng dòng liên hệ */

    .footer-wrapper .keheto-footer .van-phong,
    .footer-wrapper .keheto-footer .nha-may,
    .footer-wrapper .keheto-footer .hotline,
    .footer-wrapper .keheto-footer .email {
        padding-top: 9px;
        padding-bottom: 9px;
    }


    /* Nội dung liên hệ */

    .footer-wrapper .keheto-footer .text p {
        font-size: 12.5px;
        line-height: 1.6;
    }
}


/* =========================================================
   12. MOBILE RẤT NHỎ
========================================================= */

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

    /* Chuyển toàn bộ thành một cột */

    .footer-wrapper .keheto-footer .section-content>.row {
        grid-template-columns: 1fr;
    }


    /* Cột thông tin trở về luồng bình thường */

    .footer-wrapper .keheto-footer .section-content>.row>.col:nth-child(4) {
        grid-column: auto;
    }


    /* Bỏ chiều cao cố định của tiêu đề */

    .footer-wrapper .keheto-footer .col-inner>p:first-child {
        min-height: auto;
    }
}


/* =========================================================
   13. ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    /* Tắt chuyển động khi người dùng chọn giảm hiệu ứng */

    .footer-wrapper .keheto-footer .section-content>.row>.col:not(:first-child)>.col-inner,
    .footer-wrapper .keheto-footer .ux-menu-link__link,
    .footer-wrapper .keheto-footer .ux-menu-link__link::before,
    .footer-wrapper .keheto-footer .ux-menu-link__link::after {
        transition: none;
    }
}


/* =========================================================
   14. ẨN FOOTER MẶC ĐỊNH CỦA FLATSOME

   Chỉ ẩn absolute-footer.
   Không ảnh hưởng section footer KEHETO.
========================================================= */

.footer-wrapper>.absolute-footer {
    display: none;
}