/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-body, #f0f2f5);
    font-family: inherit;
    color: var(--text-main, #1a2a4a);
}

[data-theme="dark"] body {
    background: var(--navy-deep, #06102d);
}

[data-theme="dark"] .who-we-are-section,
[data-theme="dark"] .core-values-section {
    background: var(--bg-body, #06102d);
}

[data-theme="dark"] .vision-section {
    background: var(--navy-surface, #09163b);
}

[data-theme="dark"] .vision-text,
[data-theme="dark"] .who-we-are-content h2,
[data-theme="dark"] .values-header h2,
[data-theme="dark"] .value-card h4 {
    color: #ffffff;
}

[data-theme="dark"] .who-we-are-content p,
[data-theme="dark"] .values-header p,
[data-theme="dark"] .value-card p {
    color: var(--text-secondary, #a6b7d8);
}

[data-theme="dark"] .certifications-list li {
    background: #0d1e4c;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .value-card {
    background: #0d1e4c;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main, #f0f4fc);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .cta-section {
    background: var(--bg-body, #06102d) !important;
}

[data-theme="dark"] .cta-card {
    background: linear-gradient(135deg, #0e1e4a 0%, #06102d 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .cta-shape {
    background-color: rgba(201, 151, 56, 0.08) !important;
}

[data-theme="dark"] .cta-content h2 {
    color: #ffffff !important;
}

[data-theme="dark"] .cta-content p {
    color: #c4d4f2 !important;
}

[data-theme="dark"] .btn-outline-red {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .btn-outline-red:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ============================================
   NAVBAR
============================================ */
/* Shared navbar styled in style/common.css */


/* ======================================= */
/* قسم البداية لصفحة من نحن (About Hero) */
/* ======================================= */
.about-hero-section {
    width: 100%;
    /* استخدام نفس صورة الخلفية من قسم التواصل */
    background-image: url('../photos/Frame 71.png'); 
    background-color: #0d132a; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 120px 20px; /* مساحة كبيرة من الأعلى والأسفل ليعطي شكل الـ Hero */
    display: flex;
    justify-content: center;
}

.about-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 0 20px;
    box-sizing: border-box;
}

/* شارة ABOUT US */
.badge-about {
    display: inline-block;
    background-color: #4a2737;
    color: #ffb8c6;
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
}

/* العنوان الرئيسي (DM Serif Display) */
.about-hero-container h1 {
    font-family: inherit;
    font-size: 56px; /* حجم كبير يناسب العناوين الرئيسية */
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.1;
    max-width: 800px; /* تحديد العرض لكي ينزل النص على سطرين بشكل أنيق */
}

/* الفقرة النصية (DM Sans) */
.about-hero-container p {
    font-family: inherit;
    font-size: 16px;
    color: #b0b4c9;
    max-width: 600px;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

/* ======================================= */
/* تنسيق الأزرار في القسم */
/* ======================================= */
.about-hero-actions {
    display: flex;
    gap: 15px;
}

/* زر (View Our Work) الشفاف الزجاجي */
.btn-glass {
    background-color: rgba(255, 255, 255, 0.08); /* لون أبيض شفاف جداً */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15); /* إطار أبيض خفيف */
    backdrop-filter: blur(10px); /* تأثير ضبابي (زجاجي) للخلفية */
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ======================================= */
/* التنسيق الأساسي لأي زر (يُكتب مرة واحدة فقط) */
/* ======================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px; /* حواف دائرية خفيفة */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* ======================================= */
/* 1. زر الهوية الذهبية (Work With Us) */
/* ======================================= */
.btn-red {
    background: linear-gradient(135deg, #dfb743 0%, #c99738 50%, #a27520 100%);
    color: #070913;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(201, 151, 56, 0.35);
}

.btn-red:hover {
    background: linear-gradient(135deg, #f0ca55 0%, #dfb743 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 151, 56, 0.45);
}

/* ======================================= */
/* 2. الزر الزجاجي الشفاف (View Our Work) */
/* ======================================= */
.btn-glass {
    /* لون كحلي/أبيض شفاف يندمج مع الخلفية */
    background-color: rgba(255, 255, 255, 0.1); 
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(8px); /* تأثير الزجاج الضبابي */
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
} 
/* ======================================= */
/* قسم من نحن (Who We Are) */
/* ======================================= */
.who-we-are-section {
    padding: 80px 60px;
    background-color: #ffffff;
}

.who-we-are-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* تقسيم متساوٍ لعمودين */
    gap: 60px; /* المسافة بين الصورة والنص */
    align-items: center;
}

/* تنسيق الصورة */
.who-we-are-image img {
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin-top: 80px;
    border-radius: 20px; /* حواف دائرية مطابقة للصورة */
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* ظل ناعم جداً */
}

/* ======================================= */
/* تنسيق النصوص */
/* ======================================= */
.subtitle-blue {
    display: block;
    color: #6b7cff; /* لون أزرق مائل للبنفسجي */
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.who-we-are-content h2 {
    font-family: inherit;
    font-size: 42px;
    color: #1a1a24;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.who-we-are-content p {
    font-family: inherit;
    font-size: 15px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ======================================= */
/* تنسيق قائمة الشهادات (الصح) */
/* ======================================= */
.certifications-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين للقائمة */
    gap: 15px 20px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.certifications-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 13px;
    color: #333333;
    font-weight: 500;
}

/* الدائرة الزرقاء الفاتحة حول علامة الصح */
.check-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background-color: #f0f2ff; /* خلفية زرقاء فاتحة */
    color: #6b7cff; /* لون علامة الصح */
    border-radius: 50%;
    flex-shrink: 0;
}
/* ======================================= */
/* قسم الرؤية (Our Vision) */
/* ======================================= */
.vision-section {
    width: 100%;
    /* مسار صورة الخلفية */
    background-image: url('../photos/about1.png');
    background-color: #111424; /* لون احتياطي داكن */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.vision-container {
    max-width: 900px; /* للتحكم في عرض النص ليصبح على أسطر متناسقة */
    width: 100%;
}

/* ======================================= */
/* تنسيق العنوان الفرعي (OUR VISION) */
/* ======================================= */
.vision-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vision-subtitle {
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.vision-line {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3); /* خط أبيض شفاف */
}

/* ======================================= */
/* تنسيق الاقتباس والنص */
/* ======================================= */
.vision-quote-icon {
    margin-bottom: 25px;
}

.vision-text {
    font-family: inherit;
    font-size: 38px;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 auto 50px auto;
}

/* ======================================= */
/* الخطوط السفلية */
/* ======================================= */
.vision-footer-lines {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vision-line-bottom {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15); /* خط أبيض شفاف جداً */
}

/* ======================================= */
/* قسم القيم الأساسية (Core Values) */
/* ======================================= */
.core-values-section {
    padding: 100px 20px;
    background-color: #ffffff;
    font-family: inherit;
}

.values-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* تنسيق العنوان الرئيسي للقسم */
.values-header {
    text-align: center;
    margin-bottom: 60px;
}

.values-header .subtitle-blue {
    display: block;
    color: #6b7cff; 
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.values-header h2 {
    font-family: inherit;
    font-size: 42px;
    color: #1a1a24;
    margin: 0 0 20px 0;
}

.values-header p {
    font-size: 15px;
    color: #888888;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ======================================= */
/* شبكة الكروت (CSS Grid) */
/* ======================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 0.5fr); /* 3 أعمدة متساوية */
    gap: 30px;
}

/* تنسيق الكارت الفردي */
.value-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04); /* ظل ناعم مطابق للصورة */
    border: 1px solid #f4f5f8; /* إطار خفيف جداً لتحديد الكارت */
    display: flex;
    flex-direction: column;
}

.value-card h4 {
    font-size: 17px;
    color: #1a1a24;
    margin: 0 0 15px 0;
    font-weight: bold;
}

.value-card p {
    font-size: 13px;
    color: #777777;
    line-height: 1.7;
    margin: 0 0 25px 0;
    flex-grow: 1; /* يجعل الخط الأزرق دائماً في الأسفل حتى لو اختلف طول النص */
}

/* الخط الأزرق الصغير أسفل الكارت */
.card-line {
    width: 25px;
    height: 2px;
    background-color: #6b7cff;
}


/* ======================================= */
/* قسم الدعوة لاتخاذ إجراء (Call to Action) */
/* ======================================= */
.cta-section {
    padding: 80px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.cta-card {
    background-color: #f4f5fc; /* لون أرجواني/أزرق فاتح جداً */
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden; /* مهم جداً لقص الدائرة الزخرفية داخل البطاقة */
}

/* الدائرة الزخرفية في الزاوية اليسرى السفلية */
.cta-shape {
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 250px;
    height: 250px;
    background-color: #dbe0fa; /* لون أغمق قليلاً من البطاقة */
    border-radius: 50%;
    z-index: 1;
}

/* رفع المحتوى فوق الدائرة الزخرفية */
.cta-content, 
.cta-actions {
    position: relative;
    z-index: 2;
}

/* ======================================= */
/* تنسيق النصوص */
/* ======================================= */
.cta-content h2 {
    font-family: inherit;
    font-size: 36px;
    color: #1a1a24;
    margin: 0 0 10px 0;
}

.cta-content p {
    font-family: inherit;
    font-size: 15px;
    color: #777777;
    margin: 0;
}

/* ======================================= */
/* تنسيق الأزرار في هذا القسم */
/* ======================================= */
.cta-actions {
    display: flex;
    gap: 15px;
}

/* زر (Meet the Team) الذهبي المفرغ */
.btn-outline-red {
    background-color: transparent;
    color: #c99738;
    border: 1.5px solid rgba(201, 151, 56, 0.4);
    font-weight: 600;
}

.btn-outline-red:hover {
    background-color: rgba(201, 151, 56, 0.12);
    border-color: #c99738;
    color: #dfb743;
    transform: translateY(-2px);
}









/* Shared footer is styled in style/common.css */

@media (max-width: 1100px) {
    .about-hero-section {
        padding: 100px 20px;
    }

    .about-hero-container {
        margin-left: 0;
        text-align: center;
    }

    .about-hero-container p {
        margin: 0 auto 40px;
    }

    .about-hero-actions {
        justify-content: center;
    }

    .who-we-are-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .who-we-are-image img {
        margin-top: 0;
        max-width: 100%;
        height: auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-card {
        padding: 40px 30px;
    }
}

@media (max-width: 700px) {
    .about-hero-section {
        padding: 50px 16px 30px !important;
        min-height: auto !important;
    }

    .about-hero-container {
        padding: 0 !important;
        text-align: center !important;
    }

    .about-hero-container h1 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }

    .about-hero-container p {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
        margin: 0 auto 24px !important;
    }

    .about-hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    .about-hero-actions .btn {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
    }

    .who-we-are-section {
        padding: 36px 16px !important;
    }

    .who-we-are-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .who-we-are-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        margin: 0 auto !important;
        border-radius: 14px !important;
    }

    .who-we-are-content h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 14px !important;
    }

    .who-we-are-content p {
        font-size: 14px !important;
        margin-bottom: 14px !important;
    }

    .certifications-list {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .vision-section {
        padding: 44px 16px !important;
    }

    .vision-text {
        font-size: 20px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }

    .core-values-section {
        padding: 36px 16px !important;
    }

    .values-header {
        margin-bottom: 30px !important;
    }

    .values-header h2 {
        font-size: 24px !important;
    }

    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .cta-section {
        padding: 30px 16px !important;
    }

    .cta-card {
        padding: 24px 18px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
        overflow: hidden !important;
    }

    .cta-content h2 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .cta-content p {
        font-size: 13.5px !important;
    }

    .cta-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .cta-actions .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   ABOUT PAGE - COMPLETE RTL RULES (ARABIC MODE)
   ========================================================================== */
html[dir="rtl"] .about-hero-container {
    text-align: right;
    margin-left: 0;
    margin-right: 0;
}

html[dir="rtl"] .who-we-are-container {
    direction: rtl;
}

html[dir="rtl"] .who-we-are-content {
    text-align: right;
}

html[dir="rtl"] .certifications-list li {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .value-card {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .cta-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .cta-shape {
    left: auto;
    right: -40px;
}
