:root {
    --primary-green: #198754;      /* اللون الأخضر الرئيسي */
    --primary-green-hover: #146c43;/* درجة الأخضر عند التمرير */
    --text-white: #ffffff;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: #f8f9fa; 
    color: #212529; 
    direction: rtl; 
    text-align: right; 
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: auto; 
}

/* ==========================================
   Header Styles - القائمة الشفافة والمؤطرة
   ========================================== */
.main-header { 
    position: absolute; 
    top: 20px; 
    left: 0; 
    width: 100%; 
    z-index: 1000; 
    background: transparent !important; /* إزالة أي تدرج ظل قديم */
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* الشعار */
.logo-img { 
    height: 60px; 
    width: auto; 
    display: block; 
}

/* شريط القائمة الأبيض المدمج */
.nav-menu {
    background-color: #ffffff;
    padding: 6px 15px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.nav-menu ul { 
    display: flex; 
    list-style: none; 
    gap: 8px; 
    margin: 0;
    padding: 0;
}

.nav-menu a { 
    text-decoration: none; 
    color: #333333; 
    font-weight: 700; 
    font-size: 15px; 
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease; 
}

.nav-menu a:hover, 
.nav-menu a.active { 
    color: #ffffff; 
    background-color: var(--primary-green);
}

/* زر القائمة للموبايل */
.mobile-menu-btn {
    display: none;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 20px;
    color: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ==========================================
   Hero Section & Overlay
   ========================================== */
.hero-section { 
    position: relative; 
    height: 85vh; 
    min-height: 550px; 
    background: url('../images/hero-bg.jpg') center/cover no-repeat; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}

/* طبقة الظل الموحدة */
.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.50); 
    z-index: 1;
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    color: var(--text-white); 
}

.hero-subtitle { 
    font-size: 20px; 
    font-weight: 500; 
    display: block; 
    margin-bottom: 10px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); 
}

.hero-title { 
    font-size: 48px; 
    font-weight: 800; 
    margin-bottom: 25px; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8); 
}

/* زر تبرع الآن */
.btn-hero { 
    background-color: var(--primary-green); 
    color: var(--text-white); 
    padding: 12px 35px; 
    font-size: 18px; 
    font-weight: bold; 
    border-radius: 6px; 
    text-decoration: none; 
    display: inline-block;
    transition: 0.3s;
}
.btn-hero:hover { background-color: var(--primary-green-hover); }

/* الشريط السفلي (CTA Bar) */
.cta-bar { background-color: var(--primary-green); color: var(--text-white); padding: 20px 0; }
.cta-container { display: flex; justify-content: space-between; align-items: center; }
.cta-container h2 { font-size: 24px; font-weight: 700; }

.btn-cta { 
    background-color: var(--text-white); 
    color: var(--primary-green); 
    padding: 10px 25px; 
    font-weight: bold; 
    border-radius: 6px; 
    text-decoration: none; 
    transition: 0.3s;
}
.btn-cta:hover { background-color: #e2e2e2; }

/* About Block Styles */
.about-block-section { padding: 60px 0; background-color: #f8f9fa; }
.text-center { text-align: center; }
.section-header { margin-bottom: 40px; }
.main-title { font-size: 28px; color: #333; font-weight: 700; }
.main-title span { color: var(--primary-green); }

.title-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.about-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about-card-body { padding: 25px; }
.card-subtitle { color: var(--primary-green); font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.card-text { color: #666; font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.about-card-img img { width: 100%; height: 230px; object-fit: cover; display: block; }

.btn-green {
    background-color: var(--primary-green);
    color: #fff;
    padding: 8px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: 0.3s;
}
.btn-green:hover { background-color: var(--primary-green-hover); }

/* Vision & Values Section */
.vision-values-section {
    position: relative;
    padding: 80px 0;
    background: url('../images/vision-bg.jpg') center/cover no-repeat fixed;
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.vision-container { position: relative; z-index: 2; }

.vv-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.vv-card {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 40px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.vv-card:hover {
    transform: translateY(-8px);
    background-color: var(--primary-green-hover);
}

.vv-icon { font-size: 38px; margin-bottom: 20px; color: #ffffff; }
.vv-title { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.vv-text { font-size: 15px; line-height: 1.8; color: #f0f0f0; }

/* Services Block Styles */
.services-block-section { padding: 60px 0; background-color: #ffffff; }

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--primary-green);
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-6px); }
.service-card-img { padding: 15px 15px 0 15px; }
.service-card-img img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; display: block; }
.service-card-body { padding: 25px 20px 30px; }
.service-title { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: #ffffff; }
.service-text { font-size: 14px; line-height: 1.8; color: #f0f0f0; }

/* Footer CTA Bar */
.footer-cta-bar { background-color: var(--primary-green); color: #ffffff; padding: 18px 0; }
.footer-cta-container { display: flex; justify-content: space-between; align-items: center; }
.footer-cta-container h2 { font-size: 22px; font-weight: 700; }

.btn-footer-cta {
    background-color: #ffffff;
    color: var(--primary-green);
    padding: 8px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.btn-footer-cta:hover { background-color: #f0f0f0; }

/* Main Footer */
.main-footer {
    position: relative;
    background: url('../images/footer-bg.jpg') center/cover no-repeat fixed;
    color: #ffffff;
    padding-top: 60px;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.footer-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 8px; }
.footer-desc { font-size: 14px; line-height: 1.8; color: #ddd; margin-bottom: 20px; }
.footer-logo img { height: 65px; width: auto; }

.footer-contact-list { list-style: none; padding: 0; margin: 0 0 25px 0; }
.footer-contact-list li { font-size: 14px; margin-bottom: 10px; color: #ddd; display: flex; align-items: center; gap: 10px; }
.footer-contact-list i { color: var(--primary-green); }

.text-center-col { text-align: center; }
.text-center-col .footer-contact-list li { justify-content: center; }
.social-title { font-size: 16px; margin-bottom: 15px; font-weight: 600; }
.social-links { display: flex; justify-content: center; gap: 12px; }

.social-icon {
    width: 38px;
    height: 38px;
    background-color: var(--primary-green);
    color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}
.social-icon:hover { background-color: var(--primary-green-hover); transform: translateY(-3px); }

.copyright-bar {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #bbb;
}

/* ==========================================
   Responsive Styles for Mobile Devices
   ========================================== */
@media (max-width: 768px) {
    /* Header & Mobile Navigation */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 5%;
        right: 5%;
        width: 90%;
        border-radius: 12px;
        padding: 10px 0;
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 5px;
    }

    .nav-menu a {
        border-radius: 8px;
        padding: 10px 20px;
    }

    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 120px 0 60px;
    }
    .hero-title { font-size: 28px; line-height: 1.3; }
    .hero-subtitle { font-size: 16px; }

    /* CTA Bars */
    .cta-container, 
    .footer-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cta-container h2, 
    .footer-cta-container h2 {
        font-size: 18px;
        line-height: 1.4;
    }

    /* Grids */
    .about-cards-grid,
    .vv-cards-grid,
    .services-cards-grid,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card-img img { height: 180px; }
    .main-footer { padding-top: 40px; }
    .text-center-col { text-align: right; }
    .text-center-col .footer-contact-list li { justify-content: flex-start; }
    .social-links { justify-content: flex-start; }
}