/* ==========================================
   style.css - منظمة ريرة
   أزرق: #005BBB | أخضر: #8BC34A | برتقالي: #FF9800 | وردي: #E91E63
   ========================================== */

:root {
    --blue: #005BBB;
    --blue-dark: #003d80;
    --green: #8BC34A;
    --orange: #FF9800;
    --orange-dark: #e68900;
    --pink: #E91E63;
    --white: #ffffff;
    --gray-light: #f5f7fa;
    --text: #2C3E50;
    --text-light: #596673;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Poppins', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.ltr {
    direction: ltr;
    font-family: 'Poppins', 'Tajawal', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== الأزرار العامة ========== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--orange);
    color: white;
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}
.btn-outline-white:hover {
    background: white;
    color: var(--blue);
}

/* ========== الهيدر ========== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue);
}
.main-nav ul {
    display: flex;
    gap: 28px;
}
.main-nav a {
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-bottom: 6px;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s;
}
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.lang-btn {
    background: white;
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}
.lang-btn:hover {
    background: var(--blue);
    color: white;
}
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-toggle span {
    width: 26px;
    height: 3px;
    background: var(--blue);
    border-radius: 3px;
}

/* ========== السلايدر ========== */
.hero-slider {
    position: relative;
    height: 100vh;
    margin-top: 70px;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }
.slide-caption {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 700px;
}
.slide-caption h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}
.slide-caption p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.dot {
    width: 14px; height: 14px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active { background: var(--orange); }

/* ========== الأقسام ========== */
.section {
    padding: 80px 0;
}
.bg-gray {
    background: var(--gray-light);
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-dark);
}
.separator {
    width: 70px;
    height: 4px;
    background: var(--green);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* شبكة 3 أعمدة */
.cards-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* بطاقات الرؤية */
.card-vm {
    background: white;
    padding: 40px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card-vm:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.card-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}
.bg-pink { background: var(--pink); }
.bg-green { background: var(--green); }
.bg-orange { background: var(--orange); }

.card-vm h3 {
    color: var(--blue);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

/* الإحصائيات */
.stats-section {
    background: var(--blue);
    padding: 50px 0;
    color: white;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--orange);
    display: block;
}
.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* بطاقات المشاريع */
.card-project {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.card-project:hover {
    transform: translateY(-5px);
}
.card-project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 20px;
}
.card-body h4 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* الأخبار */
.card-news {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-right: 4px solid var(--orange);
    transition: transform 0.3s;
}
body.ltr .card-news {
    border-right: none;
    border-left: 4px solid var(--orange);
}
.card-news:hover {
    transform: translateY(-4px);
}
.news-badge {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.card-news h4 {
    margin-bottom: 8px;
    color: var(--blue-dark);
}

/* دعوة التبرع */
.cta-section {
    padding: 80px 0;
}
.cta-box {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 60px;
    border-radius: var(--radius);
    text-align: center;
    color: white;
}
.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.cta-buttons {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* الخريطة */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* الفوتر */
.site-footer {
    background: var(--blue-dark);
    color: white;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-col h3,
.footer-col h4 {
    margin-bottom: 15px;
}
.footer-col p,
.footer-col a {
    color: #ccc;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 18px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* تجاوب */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    .main-nav.active ul {
        display: flex;
    }
    .mobile-toggle {
        display: flex;
    }
    .slide-caption h1 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 1.8rem; }
}






/* ========== أيقونات التواصل في الهيدر ========== */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.linkedin {
    background: #0A66C2;
}

/* إخفاء الأيقونات في الجوال */
@media (max-width: 768px) {
    .social-icons {
        display: none;
    }
}

/* ========== قسم التواصل في الفوتر ========== */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.social-link i {
    width: 20px;
    font-size: 1.1rem;
}

.social-link.whatsapp:hover {
    color: #25D366;
}

.social-link.facebook:hover {
    color: #1877F2;
}

.social-link.linkedin:hover {
    color: #0A66C2;
}

/* ترجمة "تابعنا" في الوضع الإنجليزي */
body.ltr .footer-social .social-link {
    flex-direction: row;
}