/* Tắt underline section danh mục  */
.sc-card-xuatkhau,
.sc-card-xuatkhau * {
    text-decoration: none !important;
}

.saola-header-menu i.fa {
    display: none;
}

/* Css header menu sticky */
.sfm-header-sticky {
    position: relative;
    width: 100%;
    z-index: 99;
    background: #fff;
    transition: all 0.35s ease;

    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ===== CONTAINER ===== */
.sfm-header-sticky .e-con {
    transition: all 0.35s ease;
}

/* ===== LOGO FIX NÉT ===== */
.sfm-header-sticky img {
    height: auto;
    width: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* ===== MENU ITEM ===== */
.sfm-header-sticky .hfe-menu-item {
    transition: all 0.3s ease;
    position: relative;
}


/* ============================= */
/* ===== STICKY STATE ===== */
/* ============================= */

.sfm-header-sticky.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.35s ease;
}

/* ===== THU NHỎ HEADER ===== */
.sfm-header-sticky.is-sticky .e-con {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.sfm-header-sticky.is-sticky img {
    max-height: 45px;
}

.sfm-header-sticky.is-sticky .hfe-menu-item {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 15px;
}

/* ============================= */
/* ===== LINE XANH DƯỚI ===== */
/* ============================= */

.sfm-header-sticky.is-sticky::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #BBD720;
}


/* ============================= */
/* ===== ANIMATION ===== */
/* ============================= */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0.7;
    }

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


body.sticky-active {
    padding-top: 90px;
    /* chỉnh theo chiều cao header */
}

.sfm-header-sticky.e-con {
    overflow: visible;
}

.sfm-header-sticky .elementor-widget-image img {
    height: auto;
}

/* đảm bảo transition mượt */
.e-con {
    will-change: all;
}


/* Css Addtoany */
.elementor-widget-shortcode .a2a_kit {
    display: flex !important;
    align-items: center;
    padding-left: 5px;
}

/* Đưa nút + lên đầu */
.elementor-widget-shortcode .a2a_dd {
    order: -1 !important;
}

/*=== Css Contact Form 7: Tương thích cấu trúc mới ===*/

/* Contact Form 7 Custom Styles */
.wpcf7 {
    max-width: 100%;
    overflow-x: hidden;
}

.wpcf7,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select,
.wpcf7 label,
.wpcf7 span {
    box-sizing: border-box;
}

/* 1. Xử lý hàng 2 cột trên PC */
.wpcf7 .row-2 p {
    display: flex;
    /* Cho phép các span bên trong nằm ngang */
    gap: 20px;
    margin-bottom: 20px;
}

.wpcf7 .row-2 p br {
    display: none;
    /* Ẩn thẻ br để không làm vỡ hàng ngang trên PC */
}

.wpcf7 .row-2 p .wpcf7-form-control-wrap {
    flex: 1;
    /* Chia đều 50% cho mỗi ô */
    width: 100%;
}

/* 2. Xử lý các hàng đơn (Chủ đề, Nội dung) */
.wpcf7 p {
    margin-bottom: 20px;
}

.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* 3. Style cho Input & Textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100% !important;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.2s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 3px rgba(187, 215, 32, 0.1);
}

/* 4. Hàng nút bấm trên PC */
.wpcf7 .btn-row p {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.wpcf7 .btn-row br {
    display: none;
}

.wpcf7 input[type="submit"],
.wpcf7 input[type="reset"] {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.wpcf7 input[type="submit"] {
    background: #0d6efd;
    color: #fff;
}

.wpcf7 input[type="reset"] {
    background: #f1f1f1;
    color: #666;
}

/* =======================================================
   RESPONSIVE: TABLET & MOBILE
   ======================================================= */

@media (max-width: 768px) {

    /* CHUYỂN SANG 1 CỘT DỌC CHO MỌI THỨ */
    .wpcf7 .row-2 p,
    .wpcf7 .btn-row p {
        flex-direction: column;
        /* Quan trọng nhất: Chuyển sang cột dọc */
        gap: 15px;
    }

    .wpcf7 .row-2 p br,
    .wpcf7 .btn-row br {
        display: none;
        /* Vẫn ẩn br để dùng gap của flex cho chuẩn */
    }

    .wpcf7 .row-2 p .wpcf7-form-control-wrap,
    .wpcf7 input[type="submit"],
    .wpcf7 input[type="reset"] {
        width: 100% !important;
        /* Full chiều ngang màn hình mobile */
    }
}


/*=== Set css breadcum: Giới thiệu, Liên hệ ===*/
/* 1. Xử lý xóa gạch chân đỏ cho các liên kết */
.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs li a {
    text-decoration: none !important;
}

/* 2. Hiệu ứng Hover đồng bộ cho Trang chủ (bao gồm cả chữ và icon) */
.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs li.hfe-breadcrumbs-first:hover a .hfe-breadcrumbs-text,
.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs li.hfe-breadcrumbs-first:hover .hfe-breadcrumbs-home-icon svg {
    color: #117552 !important;
    fill: #117552 !important;
    transition: all 0.3s ease;
}

/* 3. Fix màu cho Icon Home lúc bình thường */
.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs .hfe-breadcrumbs-home-icon svg {
    fill: #333333;
    transition: fill 0.3s ease;
}

/* 4. Khóa màu cho mục cuối cùng (Trang hiện tại - Liên hệ/Giới thiệu) */
.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs li.hfe-breadcrumbs-last .hfe-breadcrumbs-text {
    color: #333333 !important;
    font-weight: normal;
    cursor: default;
}


/*===  Css header menu  ===*/
/* =============== Bổ sung hiệu ứng lật 3D và Bay Ngang cho Elementor Menu (HFE) =============== */
@media (min-width: 1025px) {

    /* 1. Ép Sub-menu cấp 1 bật hiệu ứng 3D lật bảng */
    .saola-header-menu .hfe-nav-menu>li.menu-item-has-children>ul.sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15) !important;
        -webkit-transform: perspective(600px) rotateX(-90deg) !important;
        transform: perspective(600px) rotateX(-90deg) !important;
        transform-origin: 0 0 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: 0.3s all ease-in-out !important;
        display: block !important;
        /* Đè lệnh tắt mặc định của Elementor */
        min-width: 250px !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Khi trỏ chuột vào Menu cấp 1 -> Hiện 3D bảng cấp 1 */
    .saola-header-menu .hfe-nav-menu>li.menu-item-has-children:hover>ul.sub-menu {
        -webkit-transform: perspective(600px) rotateX(0) !important;
        transform: perspective(600px) rotateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 2. Ép Menu con (cấp 2, 3...) bay ngang (Flyout) sang phải */
    .saola-header-menu .hfe-nav-menu ul.sub-menu li.menu-item-has-children {
        position: relative !important;
    }

    .saola-header-menu .hfe-nav-menu ul.sub-menu li.menu-item-has-children>ul.sub-menu {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
        /* Dịch toàn bộ khối con sát vách phải của menu cha */
        margin: 0 !important;
        background: #ffffff !important;
        box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.15) !important;
        -webkit-transform: perspective(600px) rotateX(-90deg) !important;
        transform: perspective(600px) rotateX(-90deg) !important;
        transform-origin: 0 0 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: 0.3s all ease-in-out !important;
        display: block !important;
        min-width: 250px !important;
        border: none !important;
        padding: 0 10px !important;
    }

    /* Khi trỏ chuột vào Menu cấp 2 -> Hiện bảng cấp 3 lật ngang 3D */
    .saola-header-menu .hfe-nav-menu ul.sub-menu li.menu-item-has-children:hover>ul.sub-menu {
        -webkit-transform: perspective(600px) rotateX(0) !important;
        transform: perspective(600px) rotateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 3. Bổ sung riêng Style cho Dropdown (Chữ IN HOA, vạch chia 90% mờ 0.2) */
    .saola-header-menu .hfe-nav-menu ul.sub-menu li>div a,
    .saola-header-menu .hfe-nav-menu ul.sub-menu li>a {
        font-size: 14px !important;
        line-height: 24px !important;
        padding: 9px 10px !important;
        text-transform: uppercase !important;
        border-bottom: none !important;
    }

    /* Vạch kẻ chia cắt thụt vào 90%, căn giữa và làm mờ 0.2 */
    .saola-header-menu .hfe-nav-menu ul.sub-menu li {
        position: relative !important;
    }

    .saola-header-menu .hfe-nav-menu ul.sub-menu li:not(:last-child)::after {
        content: "" !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 5% !important;
        height: 1px !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
    }

    /* Triệt tiêu mũi tên tự động của Elementor ở Menu cấp dưới nếu không cần thiết */
    .saola-header-menu .hfe-nav-menu ul.sub-menu li.menu-item-has-children>div span.sub-arrow {
        transform: rotate(-90deg);
    }
}

/* =========================================================================
   HFE MOBILE MENU - FADE-SLIDE & NATIVE APP POLISH 
   ========================================================================= */

@media (max-width: 1024px) {

    /* --- 1. CHỐNG GIẬT VÀ TỐI ƯU Z-INDEX KHUNG MENU --- */
    .saola-header-menu .hfe-nav-menu__toggle {
        display: flex !important;
        align-items: center;
        position: relative !important;
        z-index: 99990 !important;
        margin-left: 0 !important;
        width: 45px !important;
        height: 45px !important;
    }

    .saola-header-menu .hfe-nav-menu__toggle .hfe-menu-toggle {
        transition: opacity 0.3s ease;
    }

    .saola-header-menu .hfe-nav-menu__toggle[aria-expanded="true"] .hfe-menu-toggle {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .saola-header-menu .hfe-nav-menu__toggle[aria-expanded="true"]::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: transparent;
        z-index: 99998;
        cursor: pointer;
        display: block !important;
    }

    body.hfe-nav-menu-active {
        overflow: hidden !important;
    }

    /* Đập tan thanh cuộn ngang của Container Chính */
    .saola-header-menu nav.hfe-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: translate3d(-120%, 0, 0) !important;
        width: 300px !important;
        height: 100vh !important;
        z-index: 99999 !important;
        transition: transform 0.4s ease !important;
        padding: 0 !important;
        display: block !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .saola-header-menu nav.hfe-dropdown::-webkit-scrollbar {
        display: none !important;
    }

    .saola-header-menu .hfe-nav-menu__toggle[aria-expanded="true"]+nav.hfe-dropdown,
    .saola-header-menu nav.hfe-dropdown.menu-is-active {
        transform: translate3d(0, 0, 0) !important;
    }

    /* ĐÃ XÓA ĐOẠN nav.hfe-dropdown::before (CỜ HARDCODE) TẠI ĐÂY */

    /* KHÓA TRÀN VIỀN (DIỆT KHOẢNG TRẮNG) */
    .saola-header-menu nav.hfe-dropdown ul {
        list-style: none !important;
        margin: 0 !important;
        width: 100% !important;
        position: relative !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    .saola-header-menu nav.hfe-dropdown li {
        width: 100% !important;
        display: block !important;
        position: static !important;
    }

    .saola-header-menu nav.hfe-dropdown .hfe-nav-menu li a {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: rgba(0, 0, 0, 0.8) !important;
        text-transform: uppercase !important;
        padding: 15px 20px !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        transition: 0.3s ease;
    }

    .saola-header-menu nav.hfe-dropdown .hfe-nav-menu li a:hover {
        background-color: #117552 !important;
        color: #ffb753 !important;
        border-color: transparent !important;
    }

    .saola-header-menu nav.hfe-dropdown .hfe-nav-menu li a:hover .hfe-menu-toggle::after {
        color: #ffb753 !important;
    }

    .saola-header-menu nav.hfe-dropdown .hfe-menu-item::before,
    .saola-header-menu nav.hfe-dropdown .hfe-menu-item::after {
        display: none !important;
    }

    /* XÓA VIỀN DOTTED (ĐỨT KHÚC) & HIỆU ỨNG NHÁY MÀU CHUẨN APP NATIVE */
    .saola-header-menu nav.hfe-dropdown * {
        -webkit-tap-highlight-color: transparent !important;
        /* Xóa nháy xanh/nháy xám khi ấn trên điện thoại */
    }

    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle,
    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle:hover,
    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle:focus,
    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* ĐỊNH TUYẾN MỘT LỚP MŨI TÊN (CẤP CHA) */
    .saola-header-menu nav.hfe-dropdown .hfe-has-submenu-container {
        position: relative !important;
    }

    /* Đoạn MỚI - arrow chỉ chiếm 54px phía phải */
    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle {
        display: flex !important;
        position: absolute !important;
        top: 0;
        right: 0;
        left: auto !important;
        width: 54px !important;
        height: 100% !important;
        align-items: center;
        justify-content: center;
        padding-right: 0;
        z-index: 5 !important;
        cursor: pointer;
    }

    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle i,
    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle svg {
        display: none !important;
    }

    /* Đoạn MỚI - gọn, không lặp */
    .saola-header-menu nav.hfe-dropdown .hfe-menu-toggle::after {
        content: "\f105";
        padding-top: 20px;
        font-family: "Font Awesome 5 Free", sans-serif !important;
        font-weight: 900;
        font-size: 16px;
        color: #888;
        margin: 0;
    }


    /* --- 4. THUẬT TOÁN FADE-SLIDE CHỐNG KHOẢNG TRẮNG ĐA TẦNG --- */

    .saola-header-menu nav.hfe-dropdown .hfe-nav-menu li ul.sub-menu li a {
        font-weight: 600 !important;
        color: rgba(0, 0, 0, 0.8) !important;
        font-size: 13px !important;
    }

    /* Tàng hình Menu khi đóng */
    .saola-header-menu nav.hfe-dropdown ul.sub-menu {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-height: 100% !important;
        height: auto !important;
        background-color: #ffffff !important;
        z-index: 10 !important;
        padding-top: 55px !important;
        display: block !important;
        box-shadow: none !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translate3d(50px, 0, 0) !important;

        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s !important;
        will-change: transform, opacity !important;
    }

    .saola-header-menu nav.hfe-dropdown ul.sub-menu::-webkit-scrollbar {
        display: none !important;
    }

    /* MỞ MENU CON */
    .saola-header-menu nav.hfe-dropdown ul.sub-menu.sub-menu-open,
    .saola-header-menu nav.hfe-dropdown div.hfe-has-submenu-container.sub-menu-active+ul.sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0s !important;
    }

    /* NÚT QUAY LẠI CĂN GIỮA TUYỆT ĐỐI BẰNG SVG BASE64 */
    .saola-header-menu nav.hfe-dropdown ul.sub-menu::before {
        content: "QUAY LẠI";
        font-family: inherit !important;
        font-weight: 600 !important;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        line-height: 50px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 2px solid #eaeaea;
        color: #555;
        font-size: 14px;
        letter-spacing: 0.5px;
        pointer-events: none;
        z-index: 15;
        text-transform: uppercase;

        /* Cắm thẳng Vector SVG cực nhẹ làm mũi tên (Align Center tuyệt đối) */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23555555' d='M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z'/%3E%3C/svg%3E") !important;
        background-position: 20px center !important;
        background-size: 8px auto !important;
        background-repeat: no-repeat !important;
        padding-left: 42px !important;
    }

    /* BẪY CHUỘT LÊN VÙNG 50PX ĐỂ KÍCH ĐÓNG KHUNG */
    .saola-header-menu nav.hfe-dropdown div.hfe-has-submenu-container.sub-menu-active {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 50px !important;
        background: transparent !important;
        color: transparent !important;
        z-index: 20 !important;
        cursor: pointer;
    }

    .saola-header-menu nav.hfe-dropdown div.hfe-has-submenu-container.sub-menu-active * {
        opacity: 0 !important;
        display: none !important;
    }

    /* XÓA BẪY Ở TẦNG CAO NẾU ĐANG CHUI VÀO TẦNG SÂU */
    .saola-header-menu nav.hfe-dropdown div.hfe-has-submenu-container.sub-menu-active:has(~ ul.sub-menu.sub-menu-open div.sub-menu-active),
    .saola-header-menu nav.hfe-dropdown div.hfe-has-submenu-container.sub-menu-active:has(+ ul.sub-menu.sub-menu-open div.sub-menu-active) {
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* --- PHIÊN BẢN CHUNG (DESKTOP) --- */
.sfm-star-bg-section {
    position: relative !important;
    overflow: visible !important;
    z-index: 2 !important;
}

.sfm-star-bg-section::before {
    content: "" !important;
    height: 125% !important;
    pointer-events: none;
}

.sfm-star-bg-section > .elementor-container,
.sfm-star-bg-section > .e-con-inner,
.sfm-star-bg-section > .elementor-widget {
    position: relative !important;
    z-index: 3 !important;
}

.elementor-element-3e00432 {
    position: relative !important;
    z-index: 0 !important;
}

/* --- RESPONSIVE CHO TABLET (Căn giữa ngôi sao) --- */
@media (max-width: 1024px) {
    .sfm-star-bg-section::before {
        height: 115% !important;
        /* Lệnh quan trọng để đưa vào giữa */
        background-position: center center !important; 
        background-size: 1400px auto !important; /* Bạn có thể tăng/giảm số này để ngôi sao to hay nhỏ tùy ý */
    }
}

/* --- RESPONSIVE CHO MOBILE (Căn giữa ngôi sao) --- */
@media (max-width: 767px) {
    .sfm-star-bg-section::before {
        height: 110% !important;
        /* Đưa vào giữa và đẩy sát xuống dưới để lòi đuôi */
        background-position: center bottom !important; 
        background-size: 900px auto !important; 
    }
    
    .sfm-star-bg-section {
        margin-bottom: 30px !important; 
    }
}


