/* =================================================================
   GLOBAL STYLES FOR THE ABOUT US PAGE
================================================================= */
:root {
    --wm-red: #A52A2A;
    --wm-red-dark: #7A1F1F;
    --wm-dark-gray: #212529;
    --wm-body-text: #555;
    --wm-light-gray: #f8f9fa;
    --wm-white: #FFFFFF;
    --wm-font: 'Jost', sans-serif;
}

body {
    font-family: var(--wm-font);
    background-color: var(--wm-white);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: var(--wm-font);
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--wm-dark-gray);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--wm-body-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    text-align: center;
    line-height: 1.7;
}

/* =================================================================
   1. HERO SECTION (CORRECTED)
================================================================= */
.about-hero-section {
    position: relative;
    /* مهم للطبقة اللونية */
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--wm-white);
    background-color: var(--wm-dark-gray);
    /* لون احتياطي في حال لم تحمل الصورة */
}

/* هذه الطبقة اللونية التي كانت مدمجة مع الصورة */
.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* هذا يضمن ظهور المحتوى فوق الطبقة اللونية */
.about-hero-section .container {
    position: relative;
    z-index: 2;
}


.about-hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--wm-white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.about-hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 15px auto 0 auto;
}

/* =================================================================
   2. OUR STORY SECTION
================================================================= */
.our-story-section .story-image {
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.our-story-section .story-content h2 {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.our-story-section .story-content p {
    line-height: 1.8;
    color: var(--wm-body-text);
}

/* =================================================================
   3. MISSION & VISION SECTION
================================================================= */
.mission-vision-section {
    background-color: var(--wm-light-gray);
}

.mission-vision-card {
    padding: 40px;
    background-color: var(--wm-white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
}

.mission-vision-card .icon {
    font-size: 3rem;
    color: var(--wm-red);
    margin-bottom: 20px;
}

.mission-vision-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.mission-vision-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--wm-body-text);
}

/* =================================================================
   4. GLOBAL REACH (STATS) SECTION - Updated Design
================================================================= */
.global-reach-section {
    background-color: var(--wm-light-gray);
}

.global-reach-section .section-title {
    color: var(--wm-dark-gray);
}

.global-reach-section .section-subtitle {
    color: var(--wm-body-text);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--wm-red);
    line-height: 1;
}

.stat-item .stat-title {
    font-size: 1.1rem;
    color: var(--wm-dark-gray);
    margin-top: 10px;
}

/* =================================================================
   5. FINAL CTA SECTION - Updated Design
================================================================= */
.cta-section-v2 {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--wm-white);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(165, 42, 42, 0.85);
    /* Red overlay */
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
}

.cta-content .section-title,
.cta-content .section-subtitle {
    color: var(--wm-white);
}

.btn-cta {
    background-color: var(--wm-white);
    color: var(--wm-red);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-cta:hover {
    background-color: #f0f0f0;
    color: var(--wm-red-dark);
}

/* =================================================================
   NEW: RESPONSIVE DESIGN ADJUSTMENTS
================================================================= */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991px) {
    .our-story-section .story-image {
        margin-bottom: 30px;
        /* إضافة مسافة أسفل الصورة عند ترتيبها فوق النص */
        text-align: center;
    }

    .mission-vision-card {
        margin-bottom: 30px;
        /* إضافة مسافة بين بطاقات الرؤية والرسالة */
    }
}

/* Small devices (phones, less than 768px) */
@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
        /* تقليل الهوامش العامة في الصفحة */
    }

    .section-title {
        font-size: 2.2rem;
        /* تصغير حجم العناوين الرئيسية للأقسام */
    }

    .section-subtitle {
        margin-bottom: 40px;
        /* تقليل المسافة أسفل العناوين الفرعية */
    }

    /* --- Hero Section --- */
    .about-hero-section {
        padding: 80px 0;
    }

    .about-hero-section h1 {
        font-size: 2.8rem;
        /* تصغير حجم العنوان في الهيرو */
    }

    .about-hero-section p {
        font-size: 1.1rem;
    }

    /* --- Our Story Section --- */
    .our-story-section .story-content h2 {
        font-size: 2rem;
        /* تصغير حجم عنوان قسم القصة */
        text-align: center;
        /* توسيط العنوان على الموبايل */
    }

    /* --- Mission & Vision Section --- */
    .mission-vision-card {
        padding: 30px;
        /* تقليل الهوامش الداخلية للبطاقات */
    }

    .mission-vision-card h3 {
        font-size: 1.5rem;
    }

    /* --- Stats Section --- */
    .stat-item {
        margin-bottom: 40px;
        /* إضافة مسافة بين الأرقام عند ترتيبها عمودياً */
    }

    .stat-item .stat-number {
        font-size: 3rem;
        /* تصغير حجم الأرقام */
    }

    /* Remove margin from the last stat item */
    .global-reach-section .row .col-lg-4:last-child .stat-item {
        margin-bottom: 0;
    }

    /* --- Final CTA Section --- */
    .cta-section-v2 {
        padding: 80px 0;
    }
}