/**
 * تنسيقات السلايدر الرئيسي - نسخة جديدة
 */

/* قسم السلايدر الرئيسي */
.main-slider-section {
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
}

/* حاوية السلايدر */
.main-slider {
    position: relative;
    width: 100%;
    height: var(--slider-height, 600px);
    overflow: hidden;
}

/* الشرائح */
.main-slider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.main-slider-slide.active {
    opacity: 1;
    z-index: 2;
}

/* صور الشرائح */
.main-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* محتوى الشرائح */
.main-slider-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    z-index: 3;
}

.main-slider-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-slider-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.main-slider-caption .btn {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main-slider-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* مؤشرات السلايدر */
.main-slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 3;
}

.main-slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-slider-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* أزرار التنقل */
.main-slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.main-slider-control {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.main-slider-control:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.main-slider-control i {
    color: #fff;
    font-size: 1.5rem;
}

/* تأثيرات الانتقال */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 768px) {
    .main-slider {
        height: 400px;
    }

    .main-slider-caption {
        width: 90%;
        padding: 1.5rem;
    }

    .main-slider-caption h2 {
        font-size: 1.75rem;
    }

    .main-slider-caption p {
        font-size: 1rem;
    }

    .main-slider-control {
        width: 40px;
        height: 40px;
    }

    .main-slider-control i {
        font-size: 1.25rem;
    }
}

/* تنسيقات للشاشات الصغيرة جداً */
@media (max-width: 576px) {
    .main-slider {
        height: 300px;
    }

    .main-slider-caption {
        width: 95%;
        padding: 1rem;
    }

    .main-slider-caption h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .main-slider-caption p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .main-slider-caption .btn {
        font-size: 0.875rem;
        padding: 0.375rem 1rem !important;
    }

    .main-slider-control {
        width: 35px;
        height: 35px;
    }

    .main-slider-control i {
        font-size: 1rem;
    }
}
