
        /* Prevent horizontal scrollbars on mobile */
        @media (max-width: 768px) {
            html, body {
              overflow-x: hidden;
              max-width: 100%;
            }
            
            /* Reset AOS horizontal animations on mobile */
            [data-aos="fade-left"],
            [data-aos="fade-right"] {
              transform: none !important;
              opacity: 1 !important;
            }
            
            /* Before animation state */
            [data-aos="fade-left"]:not(.aos-animate),
            [data-aos="fade-right"]:not(.aos-animate) {
              transform: translateY(20px) !important;
              opacity: 0 !important;
            }
        }
        
        /* Additional safety for AOS animations */
        .aos-animate {
            overflow: hidden;
        }

/* Responsive overrides for the legacy theme. Keep these after main.css. */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
}

#index-body .wow {
    visibility: visible !important;
}

@media (max-width: 1100px) {
    .header-box .logo img {
        width: auto;
        max-width: 180px;
        object-fit: contain;
    }

    .header-box .mb-lan {
        display: none;
    }

    .header-box .navigate {
        width: min(86vw, 360px);
        padding: 0 18px 90px;
    }

    .header-box .navigateli > li > a {
        position: relative;
        padding-right: 42px;
    }

    .header-box .navigateli > li > a .fa {
        position: absolute;
        top: 0;
        right: 8px;
        width: 34px;
        height: 50px;
        line-height: 50px;
        text-align: center;
    }

    .header-box .menudowns {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    body {
        min-width: 0;
    }

    html,
    body,
    #index-body {
        width: 100%;
        overflow-x: hidden;
    }

    .container,
    .ui.container,
    .list_conent_main {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .grid-box.two > .column,
    .grid-box.three > .column,
    .grid-box.four > .column,
    .grid-box.five > .column,
    .inner-page .sideBar,
    .inner-page .page-rightBar {
        width: 100% !important;
    }

    #banner {
        min-height: 150px;
        background: #f4f4f4;
        overflow: hidden;
    }

    #banner .nivoSlider,
    #banner .nivoSlider a,
    #banner .nivoSlider img,
    #banner .slider-wrapper,
    #banner .ml-slider,
    #banner [id^="metaslider_container"] {
        width: 100% !important;
        height: 180px !important;
        min-height: 180px;
        max-height: 180px;
    }

    #banner .nivoSlider img {
        object-fit: cover;
    }

    #index-body .i-cat-product {
        padding: 24px 0;
        overflow: hidden;
    }

    #index-body .i-cat-product .pro-list,
    #index-body .i-cat-product .slideBox,
    #index-body .i-cat-product .swiper-wrapper,
    #index-body .i-product .prolist-list,
    #index-body .i-product .slideBox,
    #index-body .i-product .swiper-wrapper,
    #index-body .i-news .new-list,
    #index-body .i-news .slideBox,
    #index-body .i-news .swiper-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #index-body .i-cat-product .pro-list .swiper-slide,
    #index-body .i-product .prolist-list .swiper-slide,
    #index-body .i-news .new-list .swiper-slide {
        width: 100% !important;
        height: auto;
        padding: 0;
    }

    #index-body .i-cat-product .pro-list .swiper-slide > .grid-box {
        height: 100%;
        padding: 18px 16px;
        border: 1px solid #ececec;
        border-radius: 8px;
        background: #fff;
    }

    #index-body .i-cat-product .pro-list .swiper-slide .grid-box.two .i-img,
    #index-body .i-cat-product .pro-list .swiper-slide .grid-box.two .i-text {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #index-body .i-cat-product .pro-list .swiper-slide .grid-box.two .i-img img {
        display: block;
        width: 100%;
        height: 210px;
        object-fit: contain;
    }

    #index-body .i-cat-product .pro-list .swiper-slide .grid-box.two .i-text {
        padding-top: 14px;
    }

    #index-body .i-cat-product .pro-list .swiper-slide .grid-box.two .i-text h3 {
        min-height: 52px;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #index-body .i-about,
    #index-body .i-custom,
    #index-body .i-product {
        padding: 55px 0;
    }

    #index-body .i-about .grid-box.two,
    #index-body .i-custom .grid-box.two {
        display: flex;
        flex-direction: column;
    }

    #index-body .wow {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }

    #index-body .i-about .i-text,
    #index-body .i-about .i-img,
    #index-body .i-custom .imgs,
    #index-body .i-custom .img-text {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #index-body .i-about .i-img {
        order: -1;
        margin-bottom: 28px;
        padding-top: 0;
    }

    #index-body .i-about .i-img img,
    #index-body .i-custom .imgs img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    #index-body .i-about .i-text p {
        font-size: 15px;
        line-height: 1.75;
    }

    #index-body .i-about .i-text a.more {
        width: 145px;
        height: 46px;
        margin-top: 24px;
        line-height: 46px;
    }

    #index-body .i-custom .imgs {
        margin-bottom: 30px;
        min-height: 0;
    }

    #index-body .i-custom .imgs .chan-img {
        left: 0;
        top: 0;
        width: 68%;
        padding: 5% 0 0 22%;
    }

    #index-body .i-custom .col-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 18px 0 0;
    }

    #index-body .i-custom .color-box .col-list li {
        float: none;
        margin: 0;
    }

    #index-body .i-number {
        padding: 38px 12px;
    }

    #index-body .i-number .grid-box.five {
        gap: 28px 0;
    }

    #index-body .i-number .grid-box.five > .column {
        width: 50% !important;
    }

    #index-body .i-number .column h2,
    #index-body .i-number .column h2 i {
        font-size: 34px;
    }

    #index-body .i-number .column p {
        padding: 0 8px;
        font-size: 13px;
        line-height: 1.45;
    }

    #index-body .i-why {
        padding: 55px 0;
        background-position: center top;
    }

    #index-body .i-why p.p {
        padding: 0;
        font-size: 15px;
        line-height: 1.7;
    }

    #index-body .i-why .img {
        display: flex;
        flex-direction: column;
    }

    #index-body .i-why .img > img {
        width: 82%;
        margin: 10px auto 30px;
    }

    #index-body .i-why .img .text,
    #index-body .i-why .img .text2,
    #index-body .i-why .img .text3,
    #index-body .i-why .img .text4,
    #index-body .i-why .img .text5 {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        min-height: 0;
        margin-bottom: 16px;
        padding: 18px 18px 18px 78px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 6px;
        background-position: 16px center;
        background-size: 48px auto;
    }

    #index-body .i-why .img .text3 {
        padding-top: 18px;
        background-position: 16px center;
    }

    #index-body .i-why .img .text h2,
    #index-body .i-why .img .text p,
    #index-body .i-why .img .text2 h2,
    #index-body .i-why .img .text2 p,
    #index-body .i-why .img .text3 h2,
    #index-body .i-why .img .text3 p,
    #index-body .i-why .img .text4 h2,
    #index-body .i-why .img .text4 p,
    #index-body .i-why .img .text5 h2,
    #index-body .i-why .img .text5 p {
        text-align: left;
    }

    #index-body .i-why .img .text h2 {
        font-size: 19px;
    }

    #index-body .i-product .prolist-list .slideBox .swiper-slide:not(.swiper-slide-active) {
        transform: none;
    }

    #index-body .i-product .prolist-list .slideBox .swiper-slide:not(.swiper-slide-active) .layer {
        opacity: 0;
    }

    #index-body .i-product .prolist-list .slideBox .swiper-slide .img img {
        display: block;
        width: 100%;
        height: 250px;
        object-fit: contain;
    }

    #index-body .i-product .prolist-list .slideBox .swiper-slide .text h2,
    #index-body .i-product .prolist-list .slideBox .swiper-slide .text h2 a {
        font-size: 20px;
        line-height: 1.3;
    }

    #index-body .i-news {
        padding: 0 0 55px;
        overflow: hidden;
    }

    #index-body .i-news > p.p,
    #index-body .i-product > p.p {
        padding: 0 16px;
    }

    #index-body .i-news .new-list .swiper-slide .img-box .layer {
        position: static;
        height: auto;
        padding: 20px 16px;
        background: #2cc31c;
        opacity: 1;
    }

    #index-body .i-news .new-list .swiper-slide .img-box img {
        display: block;
        width: 100%;
        height: 230px;
        object-fit: cover;
    }

    #index-body .i-news .new-list .swiper-slide .img-box .layer h2 {
        padding-bottom: 14px;
    }

    #index-body .i-news .new-list .swiper-slide .img-box .layer h2 a {
        font-size: 20px;
        line-height: 1.3;
    }

    #index-body .i-news .new-list .swiper-slide .img-box .layer p {
        display: -webkit-box;
        margin: 14px 0;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 14px;
        line-height: 1.55;
    }

    #index-body .i-news .new-list .swiper-slide .img-box .layer a.more {
        height: 44px;
        margin-top: 20px;
        line-height: 44px;
    }

    .inner-banner {
        height: 190px;
        padding: 64px 16px 20px;
        background-size: cover;
    }

    .inner-banner .inner-tit {
        font-size: 27px;
        line-height: 1.25;
    }

    .inner-banner .bread-crumbs {
        margin-top: 8px;
        line-height: 1.6;
    }

    .inner-page,
    .inner-page[style] {
        padding: 30px 0 55px !important;
    }

    .inner-page .sideBar {
        margin-bottom: 26px;
    }

    .inner-page .sideBar .side-tit {
        height: auto;
        min-height: 44px;
        font-size: 22px;
        line-height: 44px;
    }

    .inner-page .sideBar .side-menu {
        display: flex;
        overflow-x: auto;
        padding: 0;
        background: #485b6e;
        scrollbar-width: none;
    }

    .inner-page .sideBar .side-menu::-webkit-scrollbar {
        display: none;
    }

    .inner-page .sideBar .side-menu li {
        flex: 0 0 auto;
    }

    .inner-page .sideBar .side-menu li a {
        height: 42px;
        padding: 0 16px;
        line-height: 42px;
    }

    .inner-page .sideBar .side-social,
    .inner-page .sideBar .side-pdf {
        display: none;
    }

    .inner-page .page-rightBar {
        padding: 0 !important;
    }

    .about-page .about-article h2 {
        font-size: 30px;
        line-height: 1.25;
    }

    .about-page .about-article p {
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.75;
    }

    .top-menu {
        height: auto;
        padding: 0 12px;
        overflow-x: auto;
        white-space: nowrap;
        text-align: left;
        scrollbar-width: none;
    }

    .top-menu::-webkit-scrollbar {
        display: none;
    }

    .top-menu li {
        margin: 0 14px;
    }

    .list_content,
    .product_list,
    .pro_list_list {
        float: none;
        width: 100%;
    }

    .product_box {
        display: flex;
        float: none;
        flex-direction: column;
        padding: 12px;
    }

    .product_box_img,
    .product_box_text {
        float: none;
        width: 100%;
        margin: 0;
    }

    .product_box_img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .product_box_img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product_box_text ul {
        float: none;
        width: 100%;
    }

    .product_box_text ul li {
        float: none;
        width: 100%;
        height: auto;
        min-height: 34px;
        margin: 0 0 8px;
        line-height: 34px;
    }

    .product_box_text ul li a {
        height: auto;
        min-height: 34px;
        line-height: 1.45;
        padding: 8px 10px;
        text-indent: 0;
    }

    .pro_list ul {
        display: grid;
        float: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .pro_list ul li {
        float: none;
        width: auto;
        margin: 0;
    }

    .pro_list ul li img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .pro_list ul li p {
        padding-top: 6px;
        font-size: 14px;
        line-height: 1.45;
    }

    .product-page .i-solution .scroll-box ul li,
    .product-page.lg-page .i-solution .scroll-box ul li {
        width: 48.5%;
        margin-right: 3%;
    }

    .product-page .i-solution .scroll-box ul li:nth-child(2n) {
        margin-right: 0 !important;
    }

    .contact-page .contactList {
        padding: 36px 0 48px;
    }

    .contact-page .contactList > .column,
    .fb-faq .mainFb,
    .fb-faq .proFaq {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fb-faq {
        padding: 48px 0;
    }

    .fb-faq .mainFb,
    .fb-faq .proFaq {
        width: 100% !important;
    }

    .fb-faq .proFaq {
        margin-top: 38px;
    }

    .fb-faq .mainFb .theForm .ui.grid > .column {
        width: 100% !important;
        padding: 0 !important;
    }

    .fb-faq .mainFb .theForm .subBox input[type="submit"] {
        width: 100%;
    }

    .main-map,
    #mapContainer {
        max-width: 100%;
    }

    .button-group {
        display: none;
    }

    .newdet-page .news .news_contents {
        overflow-wrap: anywhere;
    }

    .newdet-page .news .news_contents img {
        width: auto !important;
        height: auto !important;
    }

    .newdet-page .news .news_contents table,
    .prodet-page .prodet-box-two .tab-box .detBox table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
    }

    #footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #footer .footer-top {
        padding: 48px 0 30px;
    }

    #footer .footer-top .grid-box.four > .column {
        margin-bottom: 30px;
    }

    #footer .footer-top .i-company,
    #footer .footer-top .i-link,
    #footer .footer-top .i-form {
        float: none !important;
        width: 100% !important;
        margin-bottom: 26px;
        padding: 0 !important;
    }

    #footer .footer-bottom p {
        float: none !important;
        width: 100%;
        text-align: center !important;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    #index-body h2.h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .product-page .i-solution .scroll-box ul li,
    .product-page.lg-page .i-solution .scroll-box ul li {
        width: 100%;
        margin-right: 0 !important;
    }
}
