@media (min-width: 768px) {
    .baic-unit-carousel {
        height: 850px;
        background-image: url(/assets/home/swiperbg-1c8a4acf388ece03fbae4134d1d1622934743f879bdd4b84963902cd7108f4ca.webp);
    }
    .baic-unit-carousel .container-fluid {
        padding-top: 10%;
    }

    .baic-video-section {
        height: 850px;
    }

    .text-button-overlay {
        font-size: 30px;
        color: black;
        position: absolute;
        top: 55%;
        left: 12%;
        transform: translate(-50%, -50%);
        padding: 20px;
        text-align: center;
        width: 80%; /* Adjust the width as needed */
        max-width: 400px; /* Set a max-width if necessary */
        transition: opacity 0.3s ease-out; /* Add a smooth transition effect for the overlay */

    }

/*    .baic-about-section .col-md-8 .img-gallery img {*/
/*        height: 590px;*/
/*    }*/
}

@media (min-width: 320px) and (max-width: 768px) {
    .baic-unit-carousel {
        height: 200px;
        background-size: cover;
        background-image: url(/assets/home/swiperbg-09a35f4fa17a91fefa42f1d94e6c526dad34bd50c0a7e1fcd722391de8f5e69b.png);
    }

    .baic-unit-carousel .container-fluid {
        padding-top: 10%;
    }

    .baic-unit-carousel .swiper-slide .overlay h1 {
        font-size: 10px;
    }

    .baic-unit-carousel .swiper-slide .overlay button {
        font-size: 10px;
    }

    .baic-video-section {
        height: 55.9vw;
    }

    .baic-about-section .container-fluid .row .col-md-8 {
        padding-left: 0px;
        padding-right: 0px;
    }

    .baic-distributor-center {
        padding-bottom: 50px;
    }

    .text-button-overlay {
        font-size: 20px;
        color: black;
        position: absolute;
        top: 55%;
        left: 20%;
        transform: translate(-50%, -50%);
        padding: 20px;
        text-align: center;
        width: 80%; /* Adjust the width as needed */
        max-width: 400px; /* Set a max-width if necessary */
        transition: opacity 0.3s ease-out; /* Add a smooth transition effect for the overlay */

    }

    .text-button-overlay h5 {
        font-size: 13px;
    }

    .text-button-overlay button {
        font-size: 10px;
    }

    .baic-unit-carousel .unitSwiper .swiper-wrapper .swiper-slide img {
        height: 110px !important;
    }
     
    .baic-unit-carousel .unitSwiper .swiper-wrapper  {
        margin-top:200px;
    }
    
    .baic-about-section .img-gallery img {
        width: 100%;
        height: 55.9vw;
    }
}


.baic-home-carousel {
    width: 100%;
    height: 50%;
}

.swiper-slide img {
    width: 100%;
}

.baic-about-section {
    height: 100%;
    width: 100%;
}

.img-gallery {
    position: relative;
    overflow: hidden; /* Ensure any overflow is hidden for the zoom effect */
}

.img-gallery img {
    display: block; /* Ensure the image behaves as a block element */
    transition: transform 1s ease-out; /* Add a smooth transition effect */
}

.text-overlay {
    font-size: 30px;
    color: white;
    position: absolute;
    top: 95%;
    left: 15%;
    transform: translate(-50%, -50%);
    padding: 20px;
    text-align: center;
    width: 80%; /* Adjust the width as needed */
    max-width: 400px; /* Set a max-width if necessary */
    transition: opacity 0.3s ease-out; /* Add a smooth transition effect for the overlay */

}

.img-gallery:hover img {
    transform: scale(1.1); /* Increase the scale on hover for a zoom effect */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.baic-unit-carousel .swiper-slide-active {
    transform: scale(1.5) !important;
    transition: all 0.5s ease-out !important;

}

.baic-unit-carousel .swiper-slide-prev {
    transform: scale(0.7) !important;
}

.baic-unit-carousel .swiper-slide-next {
    transform: scale(0.7) !important;
}

.overlay {
    position: relative;
}

.baic-news {
    background-color: #222833;
    height: 700px;
    color: white;
}

.swiper-container {
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    padding: 0;
    position: relative;
    z-index: 1;
}

.baic-distributor-center img {
    width: 100%;
}

.baic-home-carousel .swiper-container {
    list-style: none;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}

.baic-home-carousel .swiper {
    width: 100%;
}

.baic-home-carousel .swiper .image {
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}

.baic-home-carousel .swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction {
    bottom: 10px;
    left: 0;
    width: 100%;
}

.baic-home-carousel .swiper-pagination {
    position: absolute !important;
    text-align: center !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-transition: opacity .3s !important;
    transition: opacity .3s !important;
    z-index: 10 !important;
}

.baic-home-carousel .swiper-container .swiper-notification {
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    z-index: -1000;
}

.baic-home-carousel .swiper .swiper-pagination-bullet-custom {
    background-color: #fff !important;
    border-radius: 0 !important;
    height: 2px !important;
    opacity: .3 !important;
    transition: .3s !important;
    width: 30px !important;
}

.baic-home-carousel .swiper .swiper-pagination-bullet-custom.swiper-pagination-bullet-active {
    opacity: 1 !important;
    transition: .3s !important;
}

.baic-home-carousel .swiper-pagination-bullet {
    background: #000;
    border-radius: 100%;
    display: inline-block;
    height: 8px;
    opacity: .2;
    width: 8px;
}

.baic-home-carousel .swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 4px;
}

.baic-home-carousel .swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
}

.baic-news a {
    text-decoration: none;
    color: white;
}
