/*
Theme Name: Astra Child
Theme URI: https://example.com/
Description: Child theme for Astra
Author: Sami
Template: astra
Version: 1.0.0
*/

/* ضع هنا أي CSS مخصص */
/* إلغاء أي تنسيق Flex يفرضه قالب Astra على محتوى الصفحة */
/* إصلاح مشكلة Astra التي تجعل العناصر أفقيًا */

/* ==============================
   Bonyan Home Page Styles - Responsive
===============================*/

/* --- HERO SECTION --- */
.bonyan-hero {
    position: relative;
    width: 100%;
    height: var(--bonyan-hero-height, 90vh);
    overflow: hidden;
}

.bonyan-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
    animation: zoomEffect 20s ease-in-out infinite;

}

.bonyan-slide.active {
    opacity: 1;
}


@keyframes zoomEffect {
    0% {
        transform: scale(1);
        background-position: center;
    }
    50% {
        transform: scale(1.1); /* تكبير الصورة قليلاً */
        background-position: center center;
    }
    100% {
        transform: scale(1);
        background-position: center;
    }
}

/* الخلفية الشفافة الداكنة تمتد على السلايدر كامل */
.bonyan-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.bonyan-hero-overlay h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: white;
}

.bonyan-hero-overlay p {
    font-size: 22px;
    margin: 0;
}

/* --- RED BOX WITH ICONS --- */
.bonyan-red-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: #8b0000;
    padding: 40px 0;
}

.bonyan-service-icon {
    width: 80px;
    height: 80px;
    background: #8b0000;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 34px;
    transition: 0.3s;
    cursor: pointer;
}

.bonyan-service-icon:hover {
    background: #b30000;
    transform: scale(1.1);
}

/* --- ABOUT SECTION --- */
.bonyan-about {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 60px 10%;
}

.bonyan-about img {
    width: 40%;
    border-radius: 10px;
}

.bonyan-about-text {
    width: 60%;
}

/* --- WHY BONYAN --- */
.bonyan-why {
    text-align: center;
    padding: 50px 10%;
}

.bonyan-why-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 20px;
    justify-content: center;
}

/* --- STEPS --- */
.bonyan-steps {
    text-align: center;
    padding: 50px 10%;
}

.bonyan-steps-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bonyan-step {
    width: 30%;
    min-width: 180px;
}

.bonyan-step img {
    width: 100%;
    border-radius: 10px;
}

.bonyan-step p {
    margin-top: 10px;
    font-size: 20px;
}

.bonyan-text-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
}

.bonyan-text-group.active {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .bonyan-about {
        flex-direction: column;
        text-align: center;
    }
    .bonyan-about img,
    .bonyan-about-text {
        width: 100%;
    }

    .bonyan-service-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .bonyan-hero-overlay h1 {
        font-size: 36px;
    }
    .bonyan-hero-overlay p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .bonyan-steps-row {
        flex-direction: column;
    }
    .bonyan-step {
        width: 100%;
    }
}

