/* ====== قسم السلايدر ====== */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 0rem;
    font-family: "Tajawal", sans-serif;
}

.slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 30%;
    /* نسبة العرض إلى الارتفاع */
}

.slides {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 10px;
}

/* التدرج والكتابة فوق الصورة */
.overlay {
    
    width: auto;
    position: absolute;
    top: 0;
    /* يغطي من أعلى */
    left: 0;
    right: 0;
    bottom: 0;
    /* يغطي لأسفل */
    display: flex;
    /* لتوسيط المحتوى */
    flex-direction: column;
    justify-content: center;
    /* توسيط عمودي */
    align-items: center;
    /* توسيط أفقي */
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    /* خلفية شفافة تغطي الصورة */
    color: #fff;
    text-align: center;
    border-radius: 50px;
    /* نفس انحناء الصورة */
}

.overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.overlay p {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.learn-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ff40804e;
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s;
}

.learn-more-btn:hover {
    background: #e73370;
}

/* الأسهم */
.prev,
.next {
    position: absolute;
    top: 50%;
    /* transform: translateY(-70%); */
    background: rgba(0, 0, 0, 0.198);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 30%;
    transition: background 0.3s;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}


/* ====== تصميم متجاوب ====== */
@media (max-width: 992px) {
    .overlay h1 {
        font-size: 1.5rem;
    }

    .overlay p {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .slider {
        padding-bottom: 26%;
        /* ارتفاع أكبر للشاشات الصغيرة */
    }

        .overlay {
            top: 50%;
            bottom: auto;
            transform: translateY(-50%);
            padding: 10px;
            background: rgba(0, 0, 0, 0.1);
            /* خلفية نصف شفافة فقط خلف النص */
            border-radius: 8px;
            max-width: 90%;
            margin: 0 auto;
        }

    .overlay h1 {
        font-size: 0.3rem;
        /* تصغير العنوان */
    }

    .overlay p {
        font-size: 0.8rem;
        /* تصغير الوصف */
        margin-bottom: 8px;
    }

    .learn-more-btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .prev,
    .next {
        /* transform: translateY(-90%); */
        font-size: 1rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .overlay {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        padding: 10px;
        background: rgba(0, 0, 0, 0.1);
        /* خلفية نصف شفافة فقط خلف النص */
        border-radius: 8px;
        max-width: 90%;
        margin: 0 auto;
    }

    .overlay h1 {
        font-size: 1rem;
            margin-bottom: 10px;
            font-weight: 700;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    }

    .overlay p {
        font-size: 0.5rem;
            margin-bottom: 12px;
            line-height: 1.5;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .learn-more-btn {
        display: inline;
            padding: 5px 10px;
            background: #ff40804e;
            color: #fff;
            border-radius: 50px;
            font-size: 1rem;
            text-decoration: none;
            transition: background 0.3s;
    }
}