/* Optimized Smart Banner Styles for Sub Dukan */
.smart-banner-container {
    width: 100%;
    max-width: 1240px;
    margin: 20px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.smart-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    text-align: left; 
    font-family: 'Poppins', sans-serif;
}

.smart-banner-wrapper {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.smart-banner-grid {
    display: grid;
    gap: 15px;
    width: 100%;
}

.smart-banner-item {
    display: block;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    background: #fff;
}

.smart-banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(244, 165, 28, 0.2);
}

.smart-banner-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 600 / 220; 
}

/* Dots Navigation - Clean Overlay (No Background) */
.smart-banner-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 8px; /* Positioned exactly at the bottom center of the image */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 0;
    background: none; /* Removed background as requested */
    backdrop-filter: none; /* Removed blur */
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #d1d1d1; /* Light gray for inactive */
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #f4a51c; /* Theme Color for active */
    width: 18px; /* Pill shape for active dot */
    border-radius: 4px;
}

/* Desktop View: Two banners in one row */
@media (min-width: 1200px) {
    .smart-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .smart-banner-wrapper {
        overflow: visible; 
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1199px) {
    .smart-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile View: SLIDER with CLEAN OVERLAY DOTS */
@media (max-width: 767px) {
    .smart-banner-container {
        padding: 0 12px;
    }

    .smart-banner-wrapper {
        border-radius: 10px;
    }

    .smart-banner-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 0;
    }

    .smart-banner-grid::-webkit-scrollbar {
        display: none;
    }

    .smart-banner-item {
        flex: 0 0 100%;
        scroll-snap-align: start;
        border-radius: 0; 
        box-shadow: none; 
    }

    .smart-banner-dots {
        display: flex; /* Show dots on mobile */
    }
}
