#about-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

#about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

#about-hero h1,
#about-hero p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#our-story .accordion-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0 !important;
}

#our-story .accordion-item:first-of-type {
     border-top: 1px solid #dee2e6;
}

#our-story .accordion-button {
    font-weight: 600;
    padding: 1.5rem 1.25rem;
}

#our-story .accordion-button:focus {
    box-shadow: none;
}

#our-story .accordion-button:not(.collapsed) {
    color: #2a8f99;
    background-color: #f8f9fa;
}

#our-story .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a8f99'%3e%3cpath fill-rule='evenodd' d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z'/%3e%3c/svg%3e");
    transform: scale(1.1) rotate(45deg);
}
#our-story .accordion-button:not(.collapsed)::after {
    transform: scale(1.1) rotate(0deg);
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232a8f99'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8Z'/%3e%3c/svg%3e");
}

.value-card {
    border-radius: 15px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.value-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 10px !important;
}

#our-team .team-card {
    border-radius: 15px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

#our-team .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

#our-team .team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 25px auto 0 auto;
    border: 5px solid #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

#our-team .team-card .card-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

#our-team .team-card .fw-medium {
    font-size: 0.95rem;
}

#cta-contact {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), 
                 url('https://via.placeholder.com/1920x500?text=Join+Us');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

#cta-contact h2,
#cta-contact p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#cta-contact .btn-primary {
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: #2a8f99;
    border-color: #2a8f99;
}

#cta-contact .btn-primary:hover {
     transform: scale(1.05);
     background-color: #247c87;
     border-color: #247c87;
     box-shadow: 0 10px 25px rgba(42, 143, 153, 0.4) !important;
}


/* ======================================= */
/* تنسيقات الموبايل (مدمجة) */
/* ======================================= */
@media (max-width: 767.98px) {

    /* 1. تصغير حجم الصورة الدائرية في الموبايل */
    #our-team .team-img {
        width: 120px;
        height: 120px;
    }

    /* == 2. كود مخصص لتصغير الصفحة (نفس كود الرئيسية) == */

    /* 2.1. التصغير العام للصفحة (Zoom) */
    body {
        zoom: 0.85; /* تصغير عام بنسبة 15% */
        overflow-x: hidden !important;
    }

    /* 2.2. تصغير العناوين الرئيسية بشكل خاص */
    .display-3 {
        font-size: 2.3rem !important; /* لعنوان "عن مدرستنا" */
    }
    .display-4 {
        font-size: 2.0rem !important;
    }
    .display-5 {
        font-size: 1.7rem !important; /* لـ "قصتنا"، "قيمنا"، الخ */
    }
}