/* ============================================================
   banner.css - استایل اختصاصی بنر
   ============================================================ */

.banner-main {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.banner-main-slider {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
    border-radius: 16px;
}

.banner-main-slide {
    width: 100%;
    position: relative;
}

.banner-main-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.banner-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.banner-main-slide:hover .banner-main-image {
    transform: scale(1.02);
}

.banner-main-image-wrapper {
    position: relative;
    width: 100%;
}

.banner-main-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 30px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-main-slide:hover .banner-main-overlay {
    opacity: 1;
}

.banner-main-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* ===== صفحه‌نما (dots) ===== */
.banner-main-pagination {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.banner-main-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-main-pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    border-color: #667eea;
    transform: scale(1.25);
    box-shadow: 0 0 16px rgba(102, 126, 234, 0.4);
}

.banner-main-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ===== RTL ===== */
[dir="rtl"] .banner-main-overlay {
    right: 0;
    left: 0;
}

[dir="rtl"] .banner-main-title {
    text-align: right;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 991px) {
    .banner-main {
        border-radius: 12px;
    }

    .banner-main-slider {
        max-height: 400px;
        border-radius: 12px;
    }

    .banner-main-image {
        max-height: 400px;
    }

    .banner-main-overlay {
        padding: 20px 24px;
    }

    .banner-main-title {
        font-size: 17px;
    }

    .banner-main-pagination {
        bottom: 16px;
        gap: 8px;
    }

    .banner-main-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .banner-main {
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .banner-main-slider {
        max-height: 250px;
        border-radius: 8px;
    }

    .banner-main-image {
        max-height: 250px;
    }

    .banner-main-overlay {
        padding: 14px 16px;
    }

    .banner-main-title {
        font-size: 14px;
    }

    .banner-main-pagination {
        bottom: 12px;
        gap: 6px;
    }

    .banner-main-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 380px) {
    .banner-main-overlay {
        padding: 10px 12px;
    }

    .banner-main-title {
        font-size: 12px;
    }

    .banner-main-pagination {
        bottom: 8px;
        gap: 4px;
    }

    .banner-main-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}