﻿.banner-section {
    position: relative;
    width: 100%;
    /* Set a fixed height or use aspect ratio */
    height: 100%; /* This will make the banner full viewport height */
    /* OR use a fixed height: */
    /* height: 600px; */
    overflow: hidden;
}

    .banner-section .slide {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .banner-section .slide-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .banner-section .auto-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .banner-section .content-boxed {
        color: white;
        padding: 20px 30px;
        border-radius: 10px;
        max-width: 90%;
        background: none; /* No background on PC */
    }

/* On mobile only: show background overlay */
@media (max-width: 767px) {
    .banner-section .content-boxed {
        background: rgba(0, 0, 0, 0.4); /* Enable background only on small screens */
    }
}

/* For owl-carousel to work properly with fixed height */
.main-slider-carousel,
.main-slider-carousel .owl-stage-outer,
.main-slider-carousel .owl-stage,
.main-slider-carousel .owl-item {
    height: 100%;
}

/* Optional: Add responsive adjustments */
@media (max-width: 768px) {
    .banner-section {
        height: 70vh; /* Smaller height on mobile */
    }
}

@media (max-width: 480px) {
    .banner-section {
        height: 50vh; /* Even smaller height on very small devices */
    }
}
.banner-section .slide {
    /* position: relative; */
    overflow: hidden;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    background-size: cover;
}
@media (min-width: 992px) {
    .banner-section .content-boxed .inner-boxed {
        position: relative;
        display: flex;
        align-items: self-start;
    }
}
