.slider-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;

}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 50rem; /* تحويل 800px إلى rem */
    z-index: 1;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(1.25rem); /* تحويل 20px إلى rem */
    transition: all 0.5s ease;
}

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

.slide-content h2:nth-child(2) {
    transition-delay: 0.2s;
}

.cta-button {
    display: inline-block;
    padding: 0.938rem 2.5rem; /* تحويل 15px 40px إلى rem */
    margin-top: 1.875rem; /* تحويل 30px إلى rem */
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.313rem; /* تحويل 5px إلى rem */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(1.25rem); /* تحويل 20px إلى rem */
}

.slide.active .cta-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.125rem; /* تحويل 50px إلى rem */
    height: 3.125rem; /* تحويل 50px إلى rem */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem; /* تحويل 24px إلى rem */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.slider-btn:hover {
    background: var(--primary-color);
}

.prev-btn {
    left: 1.25rem; /* تحويل 20px إلى rem */
}

.next-btn {
    right: 1.25rem; /* تحويل 20px إلى rem */
}

.slider-bullets {
    position: absolute;
    bottom: 1.875rem; /* تحويل 30px إلى rem */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem; /* تحويل 10px إلى rem */
    z-index: 2;
}

.bullet {
    width: 0.75rem; /* تحويل 12px إلى rem */
    height: 0.75rem; /* تحويل 12px إلى rem */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bullet.active {
    background: white;
    transform: scale(1.2);
}

/* Media Queries */
@media (max-width: 48rem) { /* 768px */
    .slide-content h2 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.75rem 1.875rem; /* تحويل 12px 30px إلى rem */
        font-size: 1rem;
    }

    .slider-btn {
        width: 2.5rem; /* تحويل 40px إلى rem */
        height: 2.5rem; /* تحويل 40px إلى rem */
        font-size: 1.25rem; /* تحويل 20px إلى rem */
    }
    /* إخفاء أزرار التنقل */
    .slider-btn {
        display: none; /* إخفاء الأزرار */
    }

    /* تعديل موضع النقاط للأسفل قليلاً */
    .slider-bullets {
        bottom: 1.25rem;
    }
}

@media (max-width: 30rem) { /* 480px */
    .slide-content h2 {
        font-size: 1.5rem;
    }
    .slider-container {
        width: 100%;
        height: 65vh;
        position: relative;
        overflow: hidden;

    }
    .slider-btn {
        width: 2.188rem; /* تحويل 35px إلى rem */
        height: 2.188rem; /* تحويل 35px إلى rem */
        font-size: 1rem; /* تحويل 16px إلى rem */
    }

    .bullet {
        width: 0.625rem; /* تحويل للشاشات الصغيرة */
        height: 0.625rem;
    }
    /* إخفاء أزرار التنقل */
    .slider-btn {
        display: none; /* إخفاء الأزرار */
    }

    /* تعديل موضع النقاط للأسفل قليلاً */
    .slider-bullets {
        bottom: 1.25rem;
    }
}

/* إضافة breakpoint جديد للشاشات الصغيرة جداً */
@media (max-width: 20rem) { /* 320px */
    .slide-content h2 {
        font-size: 1.25rem;
    }

    .cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    /* إخفاء أزرار التنقل */
    .slider-btn {
        display: none; /* إخفاء الأزرار */
    }

    /* تعديل موضع النقاط للأسفل قليلاً */
    .slider-bullets {
        bottom: 1.25rem;
    }
}