.banner-grid-section {
    margin: 60px 0;
}

.banner-grid-item {
    text-decoration: none;
    cursor: pointer;
    display: block;
    height: 100%;
}

.banner-grid-box {
    width: 100%;
    height: 236.672px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.banner-grid-item:hover .banner-grid-box {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Mobile & Tablet: Horizontal Touch/Finger Scroller with Peeking
   ========================================================= */
@media (max-width: 991.98px) {
    .banner-grid-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        gap: 14px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 2px;
        padding-right: 2px;
        padding-bottom: 12px; /* Space for the bottom scroller */
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f1f5f9;
    }

    .banner-grid-row.g-4 {
        --bs-gutter-x: 0;
    }

    /* Custom Sleek Bottom Scrollbar for Mobile */
    .banner-grid-row::-webkit-scrollbar {
        height: 5px;
        display: block;
    }

    .banner-grid-row::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    .banner-grid-row::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
        transition: background 0.2s ease;
    }

    .banner-grid-row::-webkit-scrollbar-thumb:hover,
    .banner-grid-row::-webkit-scrollbar-thumb:active {
        background: #94a3b8;
    }

    /* Tablet (576px to 991px): Show 2 cards and peek the 3rd card */
    .banner-grid-col {
        flex: 0 0 46% !important;
        max-width: 46% !important;
        width: 46% !important;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 6px !important;
    }

    .banner-grid-box {
        height: 200px;
    }
}

/* Mobile Screens (< 576px): Show ~82% card width with next card peeking */
@media (max-width: 575.98px) {
    .banner-grid-row {
        gap: 12px;
        padding-bottom: 10px;
    }

    .banner-grid-col {
        flex: 0 0 82% !important;
        max-width: 82% !important;
        width: 82% !important;
        margin-top: 4px !important;
    }

    .banner-grid-box {
        height: 180px;
        border-radius: 10px;
    }
}
