/* ===================================================
   HERO SLIDER + RIGHT BANNER LAYOUT
   Overrides: opencart.css, newtest35.css, custom.css
=================================================== */

.home-slider-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 12px;
    align-items: stretch;
    height: 420px;
    margin-top:20px;
}

/* -------------------------------------------------------
   Slider — override opencart.css + newtest35.css
------------------------------------------------------- */

/* Override: opencart.css → margin:0 0 60px, overflow:visible, border:4px solid #fff, box-shadow */
/* Override: newtest35.css → height:492px !important */
.home-slider-layout .slideshow.swiper-viewport {
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 10px;
    position: relative;
}

/* Swiper container fills full viewport height */
.home-slider-layout .swiper-container {
    height: 100% !important;
}

.home-slider-layout .swiper-wrapper {
    height: 100% !important;
}

.home-slider-layout .swiper-slide {
    height: 100% !important;
}

.home-slider-layout .swiper-slide a {
    display: block;
    height: 100%;
}

.home-slider-layout .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* -------------------------------------------------------
   Pagination — override custom.css (position:relative)
   + opencart.css (bottom:-40px)
   + newtest35.css (bottom:45px !important)
------------------------------------------------------- */
.home-slider-layout .swiper-pagination,
.home-slider-layout .swiper-pagination.slideshow0,
.home-slider-layout .swiper-pagination.slideshow0.swiper-pagination-clickable,
.home-slider-layout .swiper-pagination.slideshow0.swiper-pagination-clickable.swiper-pagination-bullets {
    position: absolute !important;
    bottom: 14px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center;
    z-index: 10;
}

/* -------------------------------------------------------
   Prev / Next buttons — hidden (arrows cause layout bleed)
   swiper-pager acts as containing block so left:-20px leaks out
------------------------------------------------------- */
.home-slider-layout .swiper-pager {
    display: none !important;
}

/* -------------------------------------------------------
   Pagination Bullets — pill style (like 2nd image)
   Override: custom.css span.swiper-pagination-bullet (30px rect)
------------------------------------------------------- */
.home-slider-layout .swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.45) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: width 0.3s ease, background 0.3s ease !important;
    display: inline-block;
}

.home-slider-layout .swiper-pagination-bullet-active {
    width: 24px !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: #6abf40 !important;
}

/* -------------------------------------------------------
   Right Banner Group
------------------------------------------------------- */
.right-banner-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.right-banner {
    flex: 1;
    min-height: 0;
    border-radius: 10px;
    overflow: hidden;
}

.right-banner a {
    display: block;
    height: 100%;
}

.right-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.right-banner:hover img {
    transform: scale(1.03);
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 1200px) {
    .home-slider-layout {
        grid-template-columns: 1fr 300px;
        height: 380px;
    }
}

@media (max-width: 1024px) {
    .home-slider-layout {
        grid-template-columns: 1fr 250px;
        height: 320px;
    }
}

@media (max-width: 991px) {
    .home-slider-layout {
        grid-template-columns: 1fr 220px;
        height: 280px;
    }
}

/* Mobile: slider উপরে (full width), banners নিচে (পাশাপাশি) */
@media (max-width: 767px) {
    .home-slider-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }

    /* Override newtest35.css mobile heights for our layout */
    .home-slider-layout .slideshow.swiper-viewport {
        height: 220px !important;
        border-radius: 8px;
    }

    .right-banner-group {
        flex-direction: row;
        height: auto;
        gap: 10px;
    }

    .right-banner {
        flex: 1;
        height: 130px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .home-slider-layout .slideshow.swiper-viewport {
        height: 180px !important;
    }

    .right-banner {
        height: 110px;
    }
}
