@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary-green: #1f7a63;
    --dark-forest: #145c4a;
    --accent-yellow: #f4b400;
    --text-dark: #2d3436;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    direction: rtl;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
}



/* 🔷 SMART NAVBAR - The All-in-One Solution */
.smart-nav {
    position: fixed; /* يبقى ثابتاً في كل الصفحات لسهولة التصفح */
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* سر اللمسة العصرية: خلفية زجاجية رقيقة جداً */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px); /* تمويه رائع */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* عند التمرير لأسفل: يقل الارتفاع ويزداد الوضوح */
.smart-nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.smart-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    color: #145c4a;
    font-weight: 900;
    font-size: 32px;
    margin: 0;
}

.logo-text span { color: #ffc107; } /* لمسة لونية في الشعار */

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #145c4a;
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links li a:hover { color: #ffc107; }

/* 🔷 زر التبرع الذكي (حل مشكلة الجوال) */
.nav-donate-btn {
    background: #ffc107;
    color: #145c4a !important;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    white-space: nowrap; /* يمنع تكسر النص */
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-donate-btn:hover {
    transform: translateY(-2px);
    background: #145c4a !important;
    color: #ffc107 !important;
}

@media (max-width: 768px) {
    /* إظهار أيقونة الشحطات */
    .menu-toggle {
        display: block;
        font-size: 25px;
        color: #145c4a;
        cursor: pointer;
        order: 3; /* لضمان بقائها على اليسار */
    }

    .nav-links {
        display: flex; /* تحويلها لـ Flex ولكن مخفية خارج الشاشة */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        
        /* تأثير الحركة: تبدأ مخفية ومزاحة للأعلى */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }

    /* الكلاس الذي سيتم إضافته بواسطة JS عند الضغط */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* زر التبرع في الجوال ليكون بارزاً */
    .nav-donate-btn {
        margin: 0 auto;
        width: fit-content;
    }
}

/* إخفاء الأيقونة في شاشات الكمبيوتر */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}




/* 🔷 HERO SECTION */
.hero {
    padding: 160px 0 120px;
    /* التدرج هنا يبدأ غامقاً قليلاً من اليمين ليبرز النص الأبيض */
    background: linear-gradient(to left, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0) 100%), 
                url('../img/hero4.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    color: white; /* غيرنا لون الخط للأبيض ليتناسب مع الصورة الواقعية */
}

.hero-content { 
    max-width: 600px; 
}

.hero-logo { 
    width: 250px; 
    margin-bottom: 25px; 
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 { 
    font-size: 52px; 
    color: #12f106;
    font-weight: 800; 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p { 
    font-size: 22px; 
    color: #f1f1f1; 
    line-height: 1.6; 
    margin-bottom: 35px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.btn.primary { background: #f4b400; color: white; border: none; }
.btn.secondary { background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid white; backdrop-filter: blur(5px); }




/* 🔷 ABOUT SECTION - With Watermark BG & Image Overlap */
.about {
    position: relative;
    background: #f0f7f5 url('https://www.transparenttextures.com/patterns/white-diamond.png'); /* تأثير مائي خفيف */
    padding: 100px 0;
    clip-path: ellipse(150% 100% at 50% 100%); /* انحناء القسم من الأسفل */
}

.about-wrapper { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-image { flex: 1; position: relative; }
.about-image img {
    width: 100%;
    position: absolute;
    top: -150px; /* تداخل الصورة مع القسم الأعلى */
    left: -50px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}




/* 🔷 IMPACT STATS - Dark Forest Box */
.impact {
    margin-top: 20px;
    position: relative;
    z-index: 20;
}

/* تنسيق الحاوية الأساسية للقسم */
.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative; /* ضروري لعمل الـ noise */
    background: 
        radial-gradient(circle at 50% 50%, rgba(46, 139, 87, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, #0a3d31 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, #114232 0%, transparent 40%),
        #145c4a;
    border-radius: 20px;
    padding: 40px 20px;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden; /* لمنع خروج الخامة عن الزوايا المنحنية */
}

/* إضافة لمسة "الخامة" */
.stats-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.stat {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2; /* ليكون النص فوق الخامة */
}

/* الفواصل الرأسية - تم دمجها هنا فقط */
.stat:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.stat-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.stat-text h3 {
    font-size: 40px;
    margin: 0;
    font-weight: 800;
    color: #ffc107; /* اللون الأصفر للأرقام */
}

.stat-text p {
    margin: 0;
    font-size: 22px; /* تم تصغيره قليلاً ليتناسب مع الأرقام */
    font-weight: bold;
    opacity: 0.9;
}

/* 📱 إعدادات الجوال */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 10px;
    }

    .stat {
        width: 100%;
        border-left: none !important;
    }

    .stat:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .stat-content {
        justify-content: center;
    }

    .stat-icon {
        font-size: 45px;
    }

    .stat-text h3 {
        font-size: 30px;
    }

    .stat-text p {
        font-size: 18px;
    }
}





/* 🔷 CARDS - News & Activities */
.section-title { text-align: center; color: var(--dark-forest); font-size: 32px; margin: 60px 0 40px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.card:hover { transform: translateY(-10px); border-bottom-color: var(--primary-green); }

.card-img-holder { position: relative; }
.card-img-holder img { width: 100%; height: 220px; object-fit: cover; }

.badge-yellow {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-yellow);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 19px; color: var(--dark-forest); margin-bottom: 10px; }
.card-body .date { color: #888; font-size: 13px; margin-bottom: 15px; display: block; }

.read-more-btn {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}




/* 🔷 BUTTONS */
.btn {
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}
.btn.primary { background: var(--accent-yellow); color: white; }
.btn.secondary { background: var(--dark-forest); color: white; }




/* 🔷 CTA SECTION - Modern Style */
.cta-section {
    padding: 80px 0;
    background-color: var(--white); /* خلفية بيضاء ليفصل بين الأقسام */
}

.cta-card {
    background: linear-gradient(135deg, #145c4a 0%, #0a3d31 100%);
    border-radius: 30px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(20, 92, 74, 0.2);
}

/* إضافة لمسة فنية (دوائر ضوئية خفيفة في الخلفية) */
.cta-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

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

.cta-content h2 {
    color: #ffc107; /* اللون الأصفر الذي اعتمدناه */
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    color: #f0f0f0;
    font-size: 19px;
    line-height: 1.6;
    max-width: 600px;
}

.cta-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

/* تطوير الزر ليصبح أكثر عصرية */
.btn.primary.btn-lg {
    padding: 18px 45px;
    font-size: 20px;
    border-radius: 50px;
    background-color: #ffc107;
    color: #0a3d31;
    font-weight: 800;
    border: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.btn.primary.btn-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
    background-color: #ffca2c;
}

/* 📱 التجاوب مع الجوال */
@media (max-width: 992px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .cta-content p {
        margin: 0 auto 25px;
    }

    .cta-action {
        justify-content: center;
        width: 100%;
    }

    .btn.primary.btn-lg {
        width: 100%;
        justify-content: center;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
}




/* 🔷 FOOTER STYLE */
.cta-footer {
    background: linear-gradient(rgba(20, 92, 74, 0.9), rgba(20, 92, 74, 0.9)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644') center/cover;
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-top: 100px;
}


.footer {
    background: linear-gradient(135deg, #0a3d31 0%, #145c4a 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 50px;
    position: relative;
    border-top: 5px solid #ffc107; /* خط أصفر رفيع في الأعلى ليعطي فخامة */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* تقسيم المساحة بشكل غير متساوي */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: #ffc107; /* استخدام اللون الأصفر للعناوين */
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.8;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffc107;
    padding-right: 5px; /* حركة بسيطة عند التحويم */
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #ffc107;
    color: #0a3d31;
    transform: translateY(-5px);
}

/* الجزء السفلي (الحقوق) */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.6;
}

/* 📱 جعل الـ Footer متجاوب مع الجوال */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* عمود واحد في الجوال */
        text-align: center;
        gap: 30px;
    }

    .social-icons {
        justify-content: center;
    }
}