﻿﻿header {
    background-color: #ffffff !important;
}

.header-container .topbar {
    background-color: #ffffff !important;
}
/* Thay đổi màu chữ thành đen */
header * {
    color: #000000 !important;
}

.header-container.layout-1.sticky-header {
    margin: 0 auto !important; /* Đảm bảo căn giữa */
    padding-left: 0 !important;
    padding-right: 0 !important;
    z-index: 10;
    border-bottom:1px solid #ddd;
}
/*responsive header*/

/*@media(max-width) {
    .page-header {
    }
}*/
/* Thay đổi màu nền của header thành trắng */
header {
    background-color: #ffffff !important;
}
    /* Thay đổi màu chữ thành đen */
    header * {
        color: #000000 !important;
    }

.flex-layout.center-mobile {
    background-color: white;
    justify-content: center;
}

/* Thêm viền đỏ cho khung tìm kiếm */
.search-form {
    border: 2px #3E66F3 solid;
    border-radius: 30px;
    padding: 0 20px;
}

html {
    font-size: 14px;
}
/*@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}
/*responsive*/
/* Tablet (dưới 1024px) */
@media (max-width: 1024px) {
    .headerSpace {
        height: 150px; /*Giảm chiều cao header*/
    }

    .prod-item {
        flex: 1 1 calc(50% - 10px); /*2 cột */
    }

    .hot-item {
    }

    .prod-item {
        flex: 1 1 calc(50% - 10px);
    }

    .hot-item {
        flex: 3 1 calc(34.33% - 0px);
    }

    .industry-banner img {
        width: 100%;
        height: auto;
    }
}

/* Mobile (dưới 768px) */

/* CSS chung cho container */
.contact-box-bottom {
    position: fixed;
    bottom: 120px;
    right: 10px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa các nút theo chiều ngang */
}

/* CSS chung cho các nút */
.contact-box-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* Đảm bảo hình tròn */
    text-decoration: none;
}

.contact-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Đảm bảo viền tròn */
}

    .contact-icon-box i,
    .contact-icon-box svg {
        display: block; /* Đảm bảo biểu tượng hiển thị đúng */
    }

/* CSS riêng cho nút Facebook Messenger */
.nut-chat-facebook {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .nut-chat-facebook .contact-icon-box {
        background: linear-gradient(45deg, #09f, #a033ff, #ff5280, #ff7061);
        color: #fff;
    }

        .nut-chat-facebook .contact-icon-box i {
            font-size: x-large;
        }

    .nut-chat-facebook:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

/* CSS riêng cho nút Zalo */
.nut-chat-zalo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .nut-chat-zalo .contact-icon-box {
        background-color: #ffffff;
        color: #fff;
    }

        .nut-chat-zalo .contact-icon-box svg {
            width: 28px;
            height: 28px;
        }

    .nut-chat-zalo:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

/* CSS riêng cho nút Hotline */
.nut-goi-hotline {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .nut-goi-hotline .contact-icon-box {
        background-color: #00cd78;
        color: #fff;
    }

        .nut-goi-hotline .contact-icon-box i {
            font-size: x-large;
        }

    .nut-goi-hotline:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

.appstore-1 {
    width: 100px;
    height: auto
}

.appggplay-1 {
    width: 100px;
    height: auto
}

.appggplay {
    width: 100px;
    display: flex;
}

.banner-container {
    width: 100%;
    max-width: 1200px; /* Kích thước tối đa */
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
}

/* Định dạng banner-wrapper */
.banner-wrapper {
    display: grid;
    grid-template-rows: repeat(3, auto); /* 3 hàng */
    gap: 10px; /* Khoảng cách giữa các hàng */
}

/* Định dạng banner-item */
.banner-item {
    width: 100%;
    aspect-ratio: 3 / 1; /* Tỷ lệ 3:1 cho banner nhỏ */
    overflow: hidden;
}

    .banner-item a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .banner-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Đảm bảo hình ảnh không bị méo */
        transition: transform 0.3s ease; /* Hiệu ứng phóng to khi hover */
    }

        .banner-item img:hover {
            transform: scale(1.05); /* Phóng to nhẹ khi hover */
        }

/* Responsive: Desktop (3 item mỗi hàng) */
@media (min-width: 1024px) {
    .banner-wrapper {
        grid-template-columns: repeat(3, 1fr); /* 3 cột mỗi hàng */
    }
}

/* Responsive: Tablet (2 item mỗi hàng) */
@media (min-width: 768px) and (max-width: 1023px) {
    .banner-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 cột mỗi hàng */
    }
}

/* Responsive: Mobile (1 item mỗi hàng, cuộn ngang) */
@media (max-width: 767px) {
    .banner-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto; /* Cuộn ngang */
        scroll-snap-type: x mandatory; /* Cuộn snap */
        -webkit-overflow-scrolling: touch; /* Cuộn mượt trên iOS */
        grid-template-columns: none; /* Bỏ grid */
        gap: 10px;
    }
    .image-slider .background-right {
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
    .banner-item {
        flex: 0 0 80%; /* Chiếm 80% chiều rộng màn hình */
        scroll-snap-align: start; /* Snap vào đầu mỗi item */
    }

    .banner-wrapper::-webkit-scrollbar {
        display: none; /* Ẩn thanh cuộn trên mobile */
    }
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-slider-container {
    width: 100%;
    height: 400px;
}

.hero-slider-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

    .hero-slide-image img:hover {
        transform: scale(1.05);
    }

.hero-slider-pagination {
    position: absolute;
    bottom: 10px;
    text-align: center;
    width: 100%;
}

    .hero-slider-pagination .swiper-pagination-bullet {
        background: #fff;
        opacity: 0.7;
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }

    .hero-slider-pagination .swiper-pagination-bullet-active {
        background: #ff6200;
        opacity: 1;
    }

@media (max-width: 1023px) {
    .hero-slider-container {
        height: 350px;
    }

    .hero-slide-image img {
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .hero-slider-container {
        height: 250px;
    }

    .hero-slider-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

body {
    line-height: 1.5;
    font-family: "Roboto", Arial, "Microsoft YaHei", sans-serif !important;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Hamburger Menu */
.hamburger-menu {
    /*    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    padding: 10px;
    background: #0056b3;
    border-radius: 5px;*/
}

    .hamburger-menu span {
        /*    width: 100%;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;*/
    }

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

    .mobile-menu.active {
        left: 0;
    }

/* Close Button */
.close-menu {
    background: #00c4cc;
    color: #fff;
    padding: 10px;
    text-align: right;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    display: flex;
    justify-content: center;
}

.close-icon {
    font-size: 20px;
    margin-left: 5px;
}

/* Tabs */
.menu-tabs {
    display: flex;
    border-bottom: 1px solid #00c4cc;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

    .tab.active {
        border-bottom: 2px solid #00c4cc;
        color: #00c4cc;
    }

/* Menu Content */
.menu-content {
    display: none;
    padding: 10px;
}

    .menu-content.active {
        display: block;
    }

    .menu-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .menu-content ul li {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }

            .menu-content ul li a {
                text-decoration: none;
                color: #333;
                font-size: 16px;
            }

            /*  .menu-content ul li.has-submenu .arrow {
                float: right;
                transition: transform 0.3s ease;
            }*/

            .menu-content ul li.has-submenu.active .arrow {
                transform: rotate(180deg);
            }

.submenu {
    display: none;
    padding-left: 20px;
}

    .submenu.active {
        display: block;
        margin-left: 20px
    }

.see-all {
    display: block;
    text-align: right;
    padding: 10px;
    color: #00c4cc;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive */
@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}
/* Ẩn submenu mặc định */
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px; /* Thụt lề cho submenu */
}

/* Đảm bảo các mục menu có khoảng cách */
ul li {
    margin-bottom: 10px;
}

/* Style cho nút dropdown */
.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Chỉ áp dụng trên mobile */
@media (max-width: 768px) {
    .has-submenu {
        cursor: pointer;
    }
}

/* Trên desktop, có thể dùng hover nếu cần */
@media (min-width: 769px) {
    .submenu {
        display: none;
        position: absolute; /* Trên desktop có thể dùng position absolute */
    }

    .has-submenu:hover .submenu {
        display: block;
    }
}
/* Responsive: Hide mobile menu on screens larger than 1024px */
@media (min-width: 1025px) {
    .mobile-menu {
        display: none;
    }
}

/* Default submenu styles: Hidden by default */
.submenu {
    display: none;
    list-style: none;
    padding-left: 20px; /* Indent for submenu */
}

/* Ensure menu items have spacing */
ul li {
    margin-bottom: 10px;
}

/* Style for dropdown toggle button */
.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile behavior: Apply for screens 1024px and smaller */
@media (max-width: 1024px) {
    .mobile-menu {
        display: block; /* Show mobile menu */
    }

    .has-submenu {
        cursor: pointer; /* Clickable for mobile interaction */
    }

    .submenu {
        display: none; /* Submenu hidden until toggled */
        position: relative; /* Relative positioning for mobile */
    }
}

/* Desktop behavior: Apply for screens larger than 1024px */
@media (min-width: 1025px) {
    .submenu {
        display: none;
        position: absolute; /* Absolute positioning for desktop dropdowns */
    }

    .has-submenu:hover .submenu {
        display: block; /* Show submenu on hover */
    }
}


@media (max-width: 1024px) {
    .hamburger-menu

{
    display: flex;
}

}

.language.dropdown {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

#google_translate_element {
    display: inline-block;
    margin-left: 40px
}

.goog-te-gadget {
    font-size: 14px !important;
    color: #333 !important;
}

.goog-te-gadget-simple {
    background-color: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
}

    .goog-te-gadget-simple:hover {
        background-color: #e0e0e0 !important;
    }

.goog-te-gadget-icon {
    display: none !important; /* Hide the Google icon */
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

.menu-content ul li.has-submenu.active .dropdown-toggle:after {
    transform: rotate(180deg);
}

.toggle-nav-footer {
    font-size: 18px;
}
/* ====== CẤU TRÚC CHUNG ====== */
.ad-home {
    height: 290px;
    position: relative;
    perspective: 2000px;
    overflow: hidden;
}

.ad-slider {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* NHÓM SLIDE */
.slide-group {
    display: flex;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

    .slide-group a {
        width: 33.33%; /* Mỗi ảnh chiếm 1/3 trên Desktop */
        height: 100%;
        display: block;
    }

    .slide-group img {
        width: 100%;
        height: auto;
        object-fit: cover;
        transition: transform 1s ease, opacity 0.6s ease;
        transform-origin: center center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

/* ====== HIỆU ỨNG LẬT (FLIP) ====== */
.ad-slider.flip .slide-group {
    transform: rotateY(180deg);
}

    .ad-slider.flip .slide-group img {
        opacity: 0;
        transform: rotateY(180deg) scale(0.8);
    }

/* ====== TRẠNG THÁI SLIDE ====== */
.slide-group.hidden {
    opacity: 0;
    transform: translateY(100%);
}

.slide-group.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== RESPONSIVE: MOBILE CHỈ HIỂN THỊ 1 HÌNH ====== */
@media screen and (max-width: 768px) {
    .ad-home {
        height: auto; /* Giảm chiều cao để phù hợp với màn nhỏ */
    }

    .ad-slider {
        overflow-x: auto; /* Cho phép cuộn ngang */
        scroll-snap-type: x mandatory; /* Bật tính năng snap khi cuộn */
        display: flex;
        flex-direction: row;
        gap: 10px; /* Tạo khoảng cách giữa các ảnh */
        white-space: nowrap; /* Ngăn ảnh xuống dòng */
    }

    .slide-group {
        display: flex;
        flex-direction: row; /* Chuyển thành hàng ngang */
        width: 100%;
        height: 100%;
        position: relative;
        transform: none;
    }

        .slide-group a {
            width: 100%; /* Hiển thị 1 ảnh mỗi lần */
            flex-shrink: 0; /* Đảm bảo ảnh không bị co lại */
            scroll-snap-align: center; /* Khi cuộn sẽ dừng lại ở giữa */
        }

        .slide-group img {
            width: 100%;
            height: auto;
        }

    /* Ẩn hiệu ứng flip trên mobile */
    .ad-slider.flip .slide-group {
        transform: none;
    }
}

.title-adhome {
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.Iconbocongthuong {
    width: 150px;
    height: auto;
    margin-top: -10px;
}

.Iconbocongthuong1 {
    width: 60px;
    height: 60px;
    margin-left: 30px;
    margin-top: -10px;
}
