/* file điều chỉnh kích thước các phần tử trên trang web cho phù hợp với hầu hết các màn hình*/
@media screen and (max-width: 1280px) {
    /* html {
        font-size: 0.9rem !important;
    } */
}

@media screen and (max-width: 850px) {
    /* html {
        font-size: 0.8rem !important;
    } */
}

/* =============================================================================nav================================= */
/* top bar ẩn top bar */
@media screen and (max-width: 550px) {
    .ct-row-step-pro-service {
        height: 900px;
    }

}

/* giảm kích cỡ menu */
@media screen and (max-width: 1370px) {
    .nav-spacing-xlarge>li {
        margin: 10px auto !important;
    }
}

@media screen and (max-width: 1100px) {
    .header:not(.transparent) .header-nav-main.nav>li>a {
        font-size: 0.8rem !important;
    }
}

@media screen and (max-width: 1342px) {
    #top-bar {
        display: none !important;
    }
}

@media screen and (max-width: 1367px) {
    .gtranslate_wrapper {
        margin-left: 5px !important;
    }

    .header-search {
        padding-left: 5px !important;
    }
}

@media screen and (max-width: 1000px) {
    #logo {
        width: 150px !important;
    }

}

@media screen and (max-width: 950px) {
    #logo {
        width: 101px !important;
    }
}

@media screen and (max-width: 900px) {
    .header:not(.transparent) .header-nav-main.nav>li>a {
        font-size: 0.75rem !important;
    }

}

@media screen and (max-width: 850px) {
    .mobile-nav .cart-item {
        display: none;
    }
}

/* =============================================================================Chân trang================================= */
@media screen and (max-width: 1023px) {

    /* Ẩn cột thứ 4 */
    .ct-col-4-3-footer {
        display: none !important;
    }

    /* Bảo đảm container là flex */
    .ct-bg-footer {
        display: flex !important;
        flex-wrap: wrap;
    }

    /* Cột đầu tiên chiếm 50% */
    .ct-col-4-1-footer {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Các cột còn lại giữ nguyên */
    .ct-col-4-2-footer,
    .ct-col-4-4-footer {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }

    /* Xoá padding dưới nếu cần */
    .ct-bg-footer .col {
        padding-bottom: 0 !important;
    }

}

@media screen and (max-width: 430px) {
    .ct-link-icon-footer {
        width: 30px;
        height: 30px;
    }

    .ct-box-icon-footer {
        gap: 5px;
    }

}


/* Màn hình dưới 850px: thay đổi lại layout theo yêu cầu */
@media screen and (max-width: 849px) {
    .ct-col-4-1-footer {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;


    }

    .ct-col-4-1-footer .col-inner,
    .ct-col-4-4-footer .col-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }



    .ct-col-4-2-footer {
        display: none !important;
    }

    .ct-col-4-4-footer {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .ct-text-h5-footer::before {
        width: 0 !important;
    }

    .ct-col-4-1-footer img {
        width: 50% !important;
        height: 50% !important;
    }

    .ct-text-h5-footer {
        margin-bottom: 0 !important;
    }

    .res-hr-footer hr {
        display: block !important;
        width: 400px;
        height: 1px;
        color: rgb(78, 78, 78);
        opacity: 1 !important;
    }

    .ct-text-h5-footer h4 {
        font-size: 1.2rem;
    }

    .ct-text-p-footer p {
        font-size: 1rem;
    }

}

@media screen and (max-width: 455px) {
    .res-2025-footer {
        font-size: 0.7rem !important;
    }
}


/* =============================================================================Trang chủ================================= */
@media screen and (max-width: 1260px) {

    /* tiêu chuẩn chia cột */
    .res-col-left,
    .res-col-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ct-text-h2-intro-home h2 {
        text-align: center !important;
    }

    .res-col-center .col-inner {
        padding-left: 0 !important;
    }

    .res-row-intro-home {
        position: relative;
        z-index: 0;
        overflow: hidden;
    }

    .res-row-intro-home::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* background-color: rgba(0, 0, 0, 0.5); */
        /* Lớp phủ trắng mờ */
        z-index: 1;
    }

    .res-row-intro-home .col {
        position: relative;
        z-index: 2;
        color: inherit;
    }

    .ct-id-intro-home .section-bg img {
        background-image: url("/wp-content/uploads/2025/08/01.-Trung-tam-co-khi-che-tao-co-kha-nang-cung-cap-da-dang-san-pham-phuc-vu-nhieu-nganh-nghe.jpg") !important;

    }

    .ct-id-intro-home .section-bg-overlay {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .ct-id-intro-home {
        min-height: 80vh !important;
        height: 80vh !important;
    }

    /* .ct-text-h2-intro-home h2 {
        text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    } */
    .res-text-h2-intro-home {
        background-color: white !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ct-row-slider-vision-intro {
        height: auto;
    }

    .ct-slider-vision-intro {
        height: auto;
    }
}

@media screen and (max-width: 1500px) {
    .res-h2-number h1 {
        font-size: 2.2rem;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);


    }

    .ct-text-p-section-4-home {
        text-align: center;
        width: 100%;
    }



    .res-title-number h2 {
        font-size: 2rem;
        text-align: center;
    }
}


@media screen and (max-width: 1350px) {
    .res-h2-number h1 {
        font-size: 2rem;
    }

    .res-title-number h2 {
        font-size: 1.8rem;
    }

    .ct-text-p-section-4-home p {
        font-size: 0.9rem;
    }

}

@media screen and (max-width: 1100px) {
    .res-h2-number h1 {
        font-size: 1.8rem;
    }

    .res-title-number h2 {
        font-size: 1.6rem;
    }

    .ct-text-p-section-4-home p {
        font-size: 0.8rem;
    }

}

@media screen and (max-width: 1000px) {
    .res-h2-number h1 {
        font-size: 1.6rem;


    }

    .res-title-number h2 {
        font-size: 1.4rem;
    }

    .ct-text-p-section-4-home p {
        font-size: 0.6rem;
    }

}

@media screen and (max-width: 550px) {
    .res-h2-number h1 {
        font-size: 2rem;
        text-align: center;
    }

    .res-title-number h2 {
        font-size: 1.8rem;
    }

    .ct-text-p-section-4-home p {
        font-size: 1rem;
    }

    .res-row-number-home {
        display: flex !important;
        flex-wrap: wrap;
    }

    /* Cột đầu tiên chiếm 50% */
    .res-row-number-home .col {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .res-section-bg-overlay {
        height: 80vh !important;
        min-height: 80vh !important;
    }

    .res-h2-number {
        background: rgb(201 201 201 / 51%) !important;
        border-top-left-radius: 15px !important;
        border-top-right-radius: 15px !important;
        padding-top: 10px;
        padding-bottom: 10px;
        margin-bottom: 10px !important;
    }

    .res-col-button-product-home .col-inner,
    .res-col-button-news-home .col-inner {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 610px) {
    .res-h2-number h1 {
        font-size: 1.3rem;
    }


}

@media screen and (max-width: 500px) {
    .res-h2-number h1 {
        font-size: 1.1rem;
        margin-bottom: 10% !important;
    }

    .res-title-number h2 {
        font-size: 1.6rem;
    }

    .ct-text-p-section-4-home p {
        font-size: 0.8rem;
    }


}


@media screen and (max-width: 835px) {
    .res-section-bg-overlay .section-bg-overlay {
        background-color: rgba(184, 191, 255, 0.619) !important
    }

    .res-col-bg-number .col-inner {
        background-color: rgb(201 201 201 / 51%) !important;
    }

}

@media screen and (max-width: 439px) {
    .ct-text-h2-intro-home h2 {
        font-size: 1.1em;
    }

}

@media screen and (max-width: 670px) {
    .ct-gallery-solution-home .gallery-col {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

@media screen and (max-width: 550px) {
    .ct-gallery-solution-home p {
        font-size: 1.2rem;
    }

    .ct-gallery-solution-home .box-text {
        padding-left: 10px !important;
        padding-right: 10px !important;

    }
}

@media screen and (max-width: 517px) {
    .ct-gallery-solution-home p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 450px) {
    .ct-gallery-solution-home p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 920px) {
    .res-title-h2 h2 {
        font-size: 90px;
    }
}


@media screen and (max-width: 750px) {
    .res-title-h2 h2 {
        font-size: 80px;
    }
}

@media screen and (max-width: 660px) {
    .res-title-h2 h2 {
        font-size: 65px;
    }

    .ct-text-button-intro-home span,
    .ct-text-button-intro-home i {
        font-size: 15px;
    }
}


@media screen and (max-width: 850px) {
    .ct-btn-view-product {
        font-size: 15px !important;
    }

    .product-title,
    .ct-contact-for-price {
        font-size: 17px !important;
    }
}

@media screen and (max-width: 750px) {
    .ct-btn-view-product {
        font-size: 14px !important;
    }

    .ct-col-pro-fea-home .product-title,
    .ct-contact-for-price {
        font-size: 15px !important;
    }
}

@media screen and (max-width: 707px) {
    .ct-btn-view-product {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

}


@media screen and (max-width: 640px) {
    .ct-btn-view-product {
        font-size: 12px !important;
    }

}

@media screen and (max-width: 580px) {
    .ct-col-pro-fea-home .product-small {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

}

@media screen and (max-width: 650px) {
    .res-h2-portfolio-home h2 {
        font-size: 70px !important;
    }

}

@media screen and (max-width: 530px) {
    .res-h2-portfolio-home h2 {
        font-size: 50px !important;
    }

    .ct-button-filter-3-portfolio-home span,
    .ct-button-filter-2-portfolio-home span,
    .ct-button-filter-1-portfolio-home span {
        font-size: 17px !important;
    }
}

@media screen and (max-width: 480px) {

    .res-h2-portfolio-home h2 {
        font-size: 40px !important;
    }

    .ct-button-filter-3-portfolio-home span,
    .ct-button-filter-2-portfolio-home span,
    .ct-button-filter-1-portfolio-home span {
        font-size: 13px !important;
    }

    .ct-button-filter-3-portfolio-home,
    .ct-button-filter-2-portfolio-home,
    .ct-button-filter-1-portfolio-home {
        margin-bottom: 0 !important;
    }
}

/* =============================================================================Trang giới thiệu================================= */
@media screen and (max-width: 850px) {
    .ct-breadcrumbs-line {
        text-align: center;
    }

}

@media screen and (max-width: 800px) {
    .res-h2-customer-about-us span {
        display: block;
    }

}

@media screen and (max-width: 550px) {
    .res-img-vision-intro {
        /* display: none; */
    }

    .res-col-vision-about-us .col-inner {
        padding-right: 0 !important;
    }

    .res-section-video-about-us {
        min-height: auto !important;
        height: auto !important;
    }

    .res-title-video-about-us {
        margin-top: 5% !important;
    }

    .res-review-center-about-us .col-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 5px;
    }

    .res-review-content-about-us p {
        font-size: 16px !important;
    }
}

@media screen and (max-width: 750px) {

    /* .ct-stack-node-2-about-us,
    .ct-stack-node-4-about-us,
    .ct-stack-node-6-about-us,
    .ct-stack-node-8-about-us,
    .slide-2,
    .slide-4,
    .slide-6,
    .slide-8 {
        display: none;
    } */
    /* Đảo vị trí năm xuống dưới cho node 2, 4, 6, 8 */
    .ct-stack-node-wrapper:nth-child(3),
    /* node 2 */
    .ct-stack-node-wrapper:nth-child(5),
    /* node 4 */
    .ct-stack-node-wrapper:nth-child(7),
    /* node 6 */
    .ct-stack-node-wrapper:nth-child(9) {
        /* node 8 */
        flex-direction: column-reverse;
    }

    /* Khi năm ở dưới thì chỉnh margin */
    .ct-stack-node-wrapper:nth-child(3) .ct-stack-node-year,
    .ct-stack-node-wrapper:nth-child(5) .ct-stack-node-year,
    .ct-stack-node-wrapper:nth-child(7) .ct-stack-node-year,
    .ct-stack-node-wrapper:nth-child(9) .ct-stack-node-year {
        margin-bottom: 0;
        margin-top: 6px;
    }

    .ct-stack-node-2-about-us,
    .ct-stack-node-4-about-us,
    .ct-stack-node-6-about-us,
    .ct-stack-node-8-about-us {
        top: 82px !important;
    }
    .ct-stack-node-year{
        font-size: 16px !important;
    }
        .ct-stack-node-about-us{
            width: 20px !important;
            height: 20px !important;
        }

                .ct-stack-line-about-us{
                    top: calc(50% + 16px) !important;
                }
}

@media screen and (max-width: 650px) {
    .res-h4-his-about-us h4 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .res-h4-his-about-us h4 {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 750px) {
    .res-h2-eco-about-us h2 {
        font-size: 1.4em;
    }
}

@media screen and (max-width: 655px) {
    .res-h2-eco-about-us h2 {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 565px) {
    .res-h2-eco-about-us h2 {
        font-size: 1em;
    }

}

@media screen and (max-width: 480px) {
    .res-h2-eco-about-us h2 {
        font-size: 0.8em;
    }

    .res-h2-2-eco-about-us h2 {
        font-size: 1em;
    }
}


@media screen and (max-width: 755px) {
    .res-h2-eco-about-us h2 {
        font-size: 0.8em;
    }

    .res-h2-2-eco-about-us h2 {
        font-size: 1em;
    }
}


/* =============================================================================Trang sản phẩm================================= */
@media (max-width: 768px) {
    .portfolio-filter {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 1110px) {
    .sticky-add-to-cart {
        display: none !important;

    }
}






/* =============================================================================Trang dịch vụ================================= */


@media screen and (max-width: 850px) {

    .ct-row-step-pro-service {
        height: 500px;
    }


}

@media screen and (max-width: 770px) {

    .ct-row-step-pro-service {
        height: 550px;
    }


}

@media screen and (max-width: 667px) {

    .ct-row-step-pro-service {
        height: 600px;
    }


}

@media screen and (max-width: 627px) {

    .ct-row-step-pro-service {
        height: 650px;
    }


}


@media screen and (max-width: 680px) {


    .res-title-form-submit h2 {
        font-size: 35px !important;
    }

    .res-p-form-submit p {
        text-align: justify;
    }
}

@media screen and (max-width: 550px) {
    .ct-row-step-pro-service {
        height: 100vh
    }

    .res-title-form-submit h2 {
        margin-top: 5%;
        font-size: 30px !important;
    }

    .res-p-form-submit p {
        font-size: 18px !important;
    }

    .ct-text-p-intro-home span {
        display: block;
    }
}

@media screen and (max-width: 440px) {


    .res-title-form-submit h2 {
        font-size: 25px !important;
    }

    .res-p-form-submit p {
        font-size: 16px !important;
    }
}

/* banner lớn 3 trang dự án, tin tức, tuyển dụng */
@media screen and (max-width: 768px) {
    .res-p-banner-hero {
        font-size: 20px !important;
    }

    .res-h2-banner-hero {
        font-size: 40px !important;
    }
}

@media screen and (max-width: 580px) {
    .res-p-banner-hero {
        font-size: 18px !important;
    }

    .res-h2-banner-hero {
        font-size: 30px !important;
    }

    .res-map-frame {
        height: 350px;
    }
}

@media screen and (max-width: 450px) {
    .zalo-name {
        font-size: 16px !important;
    }

    .zalo-link {
        font-size: 14px !important;
        padding: 5px 10px !important;
        gap: 0 !important;
    }
}

@media screen and (max-width: 410px) {
    .zalo-name {
        font-size: 13px !important;
    }

    .zalo-link {
        font-size: 12px !important;
        padding: 5px 5px !important;
    }
}