﻿/* ==================================================
   SLIDER STYLES
   - حالت ۱: اسلایدر مستقل (بدون سایدبار)
   - حالت ۲: اسلایدر داخل wrapper سایدبار
   ================================================== */

/* --- اسلایدر مستقل (وقتی توی هیچ wrapper نیست) --- */
.custom-education-theme-slider-section {
    padding: 30px 24px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- خود اسلایدر (در هر دو حالت مشترک) --- */
.custom-education-theme-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

/* --- اسلایدر داخل wrapper سایدبار: تمام ارتفاع رو بگیره --- */
.custom-education-theme-slider-with-sidebar .custom-education-theme-slider {
    height: 50%;
/*    min-height: 100%;*/
}

.custom-education-theme-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
}

    .custom-education-theme-slide.custom-education-theme-active {
        opacity: 1;
        transform: scale(1);
        z-index: 2;
    }

    .custom-education-theme-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.custom-education-theme-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.custom-education-theme-slide-content {
    text-align: center;
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.custom-education-theme-slide.custom-education-theme-active .custom-education-theme-slide-content {
    transform: translateY(0);
    opacity: 1;
}

.custom-education-theme-slide-content h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.custom-education-theme-slide-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.custom-education-theme-slide-content .custom-education-theme-btn-slide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

    .custom-education-theme-slide-content .custom-education-theme-btn-slide:hover {
        background: var(--accent-gradient);
        border-color: transparent;
        transform: translateY(-3px);
        box-shadow: 0 10px 30px var(--accent-glow-40);
    }

/* Different transitions per slide */
.custom-education-theme-slide:nth-child(1) {
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-education-theme-slide:nth-child(2) {
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.custom-education-theme-slide:nth-child(3) {
    transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-education-theme-slide:nth-child(4) {
    transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-education-theme-slide:nth-child(5) {
    transition: opacity 1.2s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-education-theme-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

    .custom-education-theme-slider-nav:hover {
        opacity: 1;
        background: var(--accent-gradient);
        border-color: transparent;
        transform: translateY(-50%) scale(1.12);
        box-shadow: 0 10px 30px var(--accent-glow-50);
    }

    .custom-education-theme-slider-nav.custom-education-theme-prev {
        right: 20px;
    }

    .custom-education-theme-slider-nav.custom-education-theme-next {
        left: 20px;
    }

.custom-education-theme-slider-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

    .custom-education-theme-slider-indicators .custom-education-theme-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        border: none;
        cursor: pointer;
        transition: var(--transition);
    }

        .custom-education-theme-slider-indicators .custom-education-theme-dot.custom-education-theme-active {
            background: #fff;
            width: 32px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

/* ============ SLIDER RESPONSIVE ============ */
@media (max-width: 900px) {
    .custom-education-theme-slider {
        height: 380px;
    }

    .custom-education-theme-slider-with-sidebar .custom-education-theme-slider {
        height: 380px;
        min-height: 380px;
    }

    .custom-education-theme-slide-content h2 {
        font-size: 1.3rem;
    }

    .custom-education-theme-slider-nav {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

        .custom-education-theme-slider-nav.custom-education-theme-prev {
            right: 12px;
        }

        .custom-education-theme-slider-nav.custom-education-theme-next {
            left: 12px;
        }
}

@media (max-width: 640px) {
    .custom-education-theme-slider {
        height: 320px;
    }

    .custom-education-theme-slider-with-sidebar .custom-education-theme-slider {
        height: 320px;
        min-height: 320px;
    }

    .custom-education-theme-slide-content {
        padding: 18px 20px;
    }

        .custom-education-theme-slide-content h2 {
            font-size: 1.1rem;
        }

        .custom-education-theme-slide-content p {
            font-size: 0.82rem;
        }

        .custom-education-theme-slide-content .custom-education-theme-btn-slide {
            padding: 10px 24px;
            font-size: 0.88rem;
        }
}

@media (max-width: 400px) {
    .custom-education-theme-slider {
        height: 280px;
    }

    .custom-education-theme-slider-with-sidebar .custom-education-theme-slider {
        height: 280px;
        min-height: 280px;
    }

    .custom-education-theme-slider-nav {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}
