/* =============================================
   Zahrlib Carousel / Slider Styles
   Shortcode: [zahrlib_carousel]
   ============================================= */

.zl-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(63, 81, 181, 0.15);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* ── Swiper Core Overrides ── */
.zl-carousel-wrapper .swiper {
    width: 100%;
    height: 520px;
}

.zl-carousel-wrapper .swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* ── Slide Background ── */
.zl-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 6s ease;
    z-index: 0;
}

.swiper-slide-active .zl-slide-bg {
    transform: scale(1.05);
}

/* ── Overlay Gradient ── */
.zl-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20, 10, 40, 0.85) 0%,
        rgba(63, 81, 181, 0.3) 55%,
        transparent 100%
    );
    z-index: 1;
}

/* ── Content ── */
.zl-slide-content {
    position: relative;
    z-index: 2;
    padding: 40px 48px;
    color: #ffffff;
    max-width: 680px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.7s ease 0.2s, opacity 0.7s ease 0.2s;
}

.swiper-slide-active .zl-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.zl-slide-title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.zl-slide-desc {
    margin: 0 0 28px;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 520px;
}

/* ── CTA Button ── */
.zl-slide-btn {
    display: inline-block;
    padding: 13px 32px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #E91E63 0%, #9C27B0 50%, #3F51B5 100%);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.45);
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-size: 200% auto;
    transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.zl-slide-btn:hover {
    background-position: right center;
    box-shadow: 0 6px 30px rgba(233, 30, 99, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* ── Pagination Dots ── */
.zl-carousel-wrapper .swiper-pagination {
    bottom: 20px;
}

.zl-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.zl-carousel-wrapper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: linear-gradient(90deg, #E91E63, #3F51B5);
}

/* ── Navigation Arrows ── */
.zl-carousel-wrapper .swiper-button-next,
.zl-carousel-wrapper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.zl-carousel-wrapper .swiper-button-next:hover,
.zl-carousel-wrapper .swiper-button-prev:hover {
    background: linear-gradient(135deg, #E91E63, #3F51B5);
    border-color: transparent;
}

.zl-carousel-wrapper .swiper-button-next::after,
.zl-carousel-wrapper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .zl-carousel-wrapper .swiper {
        height: 380px;
    }

    .zl-slide-content {
        padding: 24px 20px;
    }

    .zl-carousel-wrapper .swiper-button-next,
    .zl-carousel-wrapper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 480px) {
    .zl-carousel-wrapper .swiper {
        height: 320px;
    }

    .zl-slide-btn {
        padding: 11px 24px;
        font-size: 0.9rem;
    }
}

/* ── Elementor widget container fix ── */
.elementor-widget-shortcode .zl-carousel-wrapper {
    border-radius: 12px;
}
