﻿/* ============ الوضع الافتراضي (Desktop) ============ */
.slider {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
}

/* كل صورة */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }

/* الطبقة الخضراء */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(76, 175, 80, 0.6);
}

/* المحتوى */
.content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    padding: 20px;
    gap: 16px;
}

    .content h1 {
        font-size: clamp(59px, 8vw, 98px);
        line-height: 1.4;
        min-height: 1.4em;
    }

    .content p {
        font-size: clamp(14px, 3vw, 22px);
        margin-bottom: 25px;
        max-width: 700px;
    }

/* زر اقرأ المزيد */
.btn-read {
    padding: 14px 35px;
    background-color: #000;
    color: #4CAF50;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s ease;
}

    .btn-read:hover {
        background-color: #4CAF50;
        color: #000;
        transform: scale(1.05);
    }

/* شاشات كبيرة جدًا */
@media (min-width: 1400px) {
    .slider {
        height: 100svh;
    }
   
}

/* Desktop */
@media (max-width: 1200px) {
    .slider {
        height: 39svh;
    }
}

/* Laptop */
@media (max-width: 992px) {
    .slider {
        height: 36svh;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .slider {
        height: 28SVH;
    
    }
    .content h1 {
        font-size: 16px;
    }
    .gamil {
        display: flex !important;
        flex-wrap: wrap;
    }
}

/* Mobile كبير */
@media (max-width: 576px) {
    .slider {
        height: 37SVH;
    }
    .content h1 {
        font-size: 23px;
    }
    .gamil {
        display: flex !important;
        flex-wrap: wrap;
    }
}

/* iPhone Pro Max / Mobile كبير */
@media (max-width: 430px) {
    .slider {
        height: 28SVH;
    }
    .content h1 {
        font-size: 23px;
    }
    .gamil {
        display: flex !important;
        flex-wrap: wrap;
    }
}

/* Mobile متوسط */
@media (max-width: 390px) {
    .slider {
        height: 37SVH;
    }
    .gamil {
        display: flex !important;
        flex-wrap: wrap;
    }
    .content h1 {
        font-size: 23px;
    }
}

/* Mobile صغير */
@media (max-width: 360px) {
    .slider {
        height: 36SVH;
    }
    .gamil {
        display: flex !important;
        flex-wrap: wrap;
    }
    .content h1 {
        font-size: 23px;
    }
}


