/* =========================================
   1. GLOBAL RESET & BRAND COLORS
   ========================================= */
:root {
    --primary-green: #2d5a5e; 
    --emerald-green: #0a8a5f; 
    --leaf-green: #78a442;
    --soft-bg: #f4f7f7;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Cairo', sans-serif; 
    direction: rtl; /* تم التعديل للعربية */
    text-align: right; /* تم التعديل للعربية */
    background: var(--white); 
    color: #333; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.container { 
    width: 92%; 
    max-width: 1300px; 
    margin: 0 auto; 
}

ul, li { 
    list-style: none !important; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition); 
}

/* =========================================
   2. STABLE HEADER & NAVIGATION
   ========================================= */
header { 
    background: var(--white); 
    padding: 15px 0; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
}

.logo-area { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
}

.main-logo { 
    height: 50px; 
}

.site-name { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--primary-green); 
    margin-right: 10px; /* تم تعديل الهامش لليمين */
}

.nav-wrapper { 
    display: flex; 
    flex: 1; 
    justify-content: center; 
}

.nav-links { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.nav-links li a { 
    font-weight: 700; 
    color: #444; 
    font-size: 16px; 
    white-space: nowrap; 
}

.nav-links li a:hover, .nav-links li a.active { 
    color: var(--emerald-green); 
}

/* Dropdown Logic */
.dropdown { 
    position: relative; 
}

.dropbtn { 
    background: none; 
    border: none; 
    font-family: 'Cairo'; 
    font-weight: 700; 
    font-size: 16px; 
    cursor: pointer; 
    color: #444; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    right: 0; /* تم التعديل ليظهر تحت الزر من اليمين */
    background-color: white; 
    min-width: 230px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border-radius: 0 0 8px 8px;
    padding: 10px 0; 
    z-index: 9999;
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

.dropdown-content li a { 
    padding: 12px 20px !important; 
    display: block; 
    text-align: right; /* محاذاة النص داخل القائمة */
}

/* Header Left */
.header-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.btn-lang-outline { 
    border: 2px solid var(--primary-green); 
    padding: 6px 18px; 
    border-radius: 20px; 
    color: var(--primary-green); 
    font-weight: 700; 
    font-size: 14px; 
}

.menu-toggle { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: var(--primary-green); 
}

/* =========================================
   3. ABOUT US MAIN BODY STYLING
   ========================================= */
.about-hero { 
    padding: 100px 0 60px; 
    text-align: center; 
    background: radial-gradient(circle at top left, #f4fbf9, #ffffff); 
}

.hero-title { 
    font-size: 48px; 
    font-weight: 800; 
    color: var(--primary-green); 
    margin-bottom: 20px; 
    line-height: 1.3; 
}

.hero-title span { color: var(--emerald-green); }

.hero-subtitle { 
    max-width: 800px; 
    margin: 0 auto; 
    font-size: 19px; 
    color: #666; 
}

.info-section { 
    margin-top: -30px; 
    padding-bottom: 80px; 
}

.info-split { 
    display: flex; 
    gap: 30px; 
    flex-wrap: wrap; 
}

.info-card { 
    flex: 1; 
    min-width: 300px; 
    padding: 40px; 
    border-radius: 20px; 
    color: white; 
    text-align: center; 
}

.vision { background: var(--primary-green); }
.mission { background: var(--emerald-green); }

.card-icon { font-size: 40px; margin-bottom: 20px; }

.activities-section { 
    background: var(--soft-bg); 
    padding: 80px 0; 
}

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; color: var(--primary-green); }

.underline { 
    width: 60px; height: 4px; 
    background: var(--leaf-green); 
    margin: 10px auto 0; 
}

.activities-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
}

.activity-box { 
    background: white; 
    padding: 35px; 
    border-radius: 15px; 
    border: 1px solid #eee; 
    text-align: center; 
    transition: var(--transition);
}

.activity-box:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }

.activity-box i { font-size: 30px; color: var(--emerald-green); margin-bottom: 20px; display: block; }
.activity-box h3 { color: var(--primary-green); font-weight: 700; margin-bottom: 12px; }

/* =========================================
   4. FOOTER
   ========================================= */
.main-footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2.2fr 0.8fr 1fr;
    gap: 40px; 
}

.footer-logo { height: 60px; margin-bottom: 25px; filter: brightness(0) invert(1); }
.org-details { display: flex; flex-direction: column; gap: 8px; }
.detail-label { font-weight: 700; font-size: 15px; }

.footer-links h3, .footer-social h3 {
    margin-bottom: 25px; font-size: 18px; font-weight: 700;
    position: relative; padding-bottom: 10px;
}

.footer-links h3::after, .footer-social h3::after {
    content: ''; position: absolute; right: 0; bottom: 0; /* تم التعديل لليمين */
    width: 40px; height: 2px; background: var(--emerald-green);
}

.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #bdc3c7; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--white); padding-right: 5px; } /* تم التعديل للعربية */

.social-icons { display: flex; gap: 15px; }
.s-btn { 
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--white);
}
.s-btn:hover { background: var(--emerald-green); }

.footer-bottom {
    text-align: center; margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; color: #bdc3c7;
}

/* Responsiveness */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-wrapper { 
        display: none; position: absolute; top: 100%; right: 0; width: 100%; 
        background: white; flex-direction: column; padding: 30px 20px; 
    }
    .nav-wrapper.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    .footer-links h3::after, .footer-social h3::after { right: 50%; transform: translateX(50%); }
    .social-icons { justify-content: center; }
}