/* ==========================================================================
   كفاءات لإعادة الإعمار — ملف التنسيق الموحّد للموقع العام
   --------------------------------------------------------------------------
   1. الهوية البصرية (Tokens)        6. البطاقات والشبكات
   2. الأساسيات (Reset)              7. مكتبة الدراسات
   3. الهيدر والقائمة                8. صفحات التفاصيل
   4. الفوتر والأزرار العائمة         9. الصفحات (الرئيسية/من نحن/تواصل/تبرع)
   5. العناصر العامة (أزرار/أقسام)    10. التجاوب مع الشاشات
   ========================================================================== */

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

/* 1. الهوية البصرية ------------------------------------------------------ */
:root {
    --primary-green: #007a3d;   /* الأخضر الأساسي */
    --green-dark:    #006231;
    --green-darker:  #005c2e;
    --green-50:      #e8f5e9;
    --strong-red:    #ce1127;   /* الأحمر القوي */
    --accent-gold:   #D8C9A3;   /* الذهبي الفاتح */
    --gold-strong:   #CFA66E;   /* الذهبي المميز */
    --orange:        #f57f17;
    --orange-50:     #fff8e1;
    --footer-bg:     #3D5D50;   /* الأخضر الرمادي الداكن */
    --dark-text:     #4A4A4A;
    --gray-text:     #9E9E9E;
    --bg-color:      #F5F5F5;
    --white:         #FFFFFF;
    --card:          #FFFFFF;
    --border:        rgba(0, 0, 0, .10);
    --muted:         rgba(0, 0, 0, .65);

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, .05);
    --shadow:    0 4px 15px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, .10);
}

/* 2. الأساسيات ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

html[dir="rtl"] body { text-align: right; }
html[dir="ltr"] body { text-align: left; }

a { color: inherit; text-decoration: none; transition: .25s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

.container { width: min(1100px, 92%); margin: 0 auto; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. الهيدر والقائمة ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--white);
    padding: 10px 5%;
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.logo-img { height: 70px; width: auto; object-fit: contain; }

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-grow: 1;
    justify-content: space-between;
    margin-inline-start: 20px;
}

.main-navbar { display: flex; align-items: center; gap: 18px; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.nav-links a:hover { background: rgba(0, 0, 0, .04); }
.nav-links a.active { background: rgba(0, 122, 61, .10); color: var(--primary-green); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-group { display: flex; gap: 12px; }

.header-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary-green);
}
.header-btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

.header-btn.btn-outline { background: transparent; color: var(--primary-green); padding: 6px 14px; }
.header-btn.btn-outline:hover { background: var(--primary-green); color: var(--white); transform: translateY(-2px); }

.header-btn.btn-muted { background: #f2f2f2; color: #7a7a7a; border: 1px solid #e0e0e0; }
.header-btn.btn-muted:hover { background: #e9e9e9; color: var(--primary-green); }

.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--primary-green);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* 4. الفوتر والأزرار العائمة ---------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, #3D5D50 0%, #2B453B 100%);
    color: rgba(255, 255, 255, .95);
    padding: 50px 0 0;
    border-top: 6px solid var(--accent-gold);
    text-align: center;
    overflow: hidden;
}

.footer-stack { display: flex; flex-direction: column; align-items: center; }
.footer-tagline { font-size: 1.2rem; font-weight: 800; color: var(--accent-gold); margin-bottom: 5px; }
.footer-note { opacity: .9; max-width: 600px; margin: 0 auto 30px; font-size: .95rem; }

.footer-contact {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-contact h4 { color: #fff; font-size: 1.3rem; margin-bottom: 25px; font-weight: 800; }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.footer-contact-list a,
.footer-contact-list div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    font-size: 1.1rem;
}
.footer-contact-list i { color: var(--accent-gold); font-size: 1.2rem; }

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, .2);
    padding: 12px 25px;
    border-radius: 50px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, .1);
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: .3s;
}
.footer-social a:hover { background: var(--accent-gold); color: #000; transform: translateY(-3px); }

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    background: rgba(0, 0, 0, .15);
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

/* الأزرار العائمة (الكمبيوتر فقط) */
.float-action-btn {
    position: fixed;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, .25);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}
.float-action-btn:hover { color: #fff; transform: scale(1.1); }
.whatsapp-float { bottom: 20px; background: #25d366; }
.whatsapp-float:hover { background: #128C7E; }
.donate-float { bottom: 80px; background: #e91e63; }
.donate-float:hover { background: #c2185b; }
.donate-float i { margin-top: 2px; animation: pulse 2s infinite; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 5. العناصر العامة -------------------------------------------------------- */
.site-main { padding: 24px 0 40px; }

.page-head { padding: 28px 0 10px; }
.page-head h1 { margin: 0 0 8px; font-size: 1.9rem; }
.page-head p { margin: 0; color: var(--muted); }
.page-head.is-centered { text-align: center; }
.page-head.is-centered p { max-width: 800px; margin: 10px auto; }

.section { padding: 22px 0; }
.section.alt { background: rgba(0, 0, 0, .02); }
.section.soft { background: #fcfcfc; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.section-head h2 { font-size: 1.35rem; }
.section-head h3 { color: var(--footer-bg); }

.link { color: var(--muted); }
.link:hover { color: var(--dark-text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 800;
}
.btn.primary { background: var(--primary-green); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.accent { background: var(--accent-gold); color: #222; border-color: transparent; }
.btn.lg { padding: 12px 30px; }

.empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #777;
    padding: 40px 0;
}

.pagination { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .btn { min-width: 44px; }

/* 6. البطاقات والشبكات ----------------------------------------------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards-grid.auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 12px 12px 14px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.45; }
.meta { font-size: .92rem; color: var(--muted); margin-bottom: 8px; }

/* بطاقة عامة بتأثير الطفو (من نحن / تواصل) */
.styled-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .03);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.styled-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.styled-card.is-centered { text-align: center; align-items: center; }
.styled-card.is-plain { border: none; box-shadow: none; background: transparent; }
.styled-card.is-plain:hover { transform: none; }

.styled-card h3 { margin: 0 0 15px; font-weight: 900; color: #222; font-size: 1.5rem; }
.styled-card h4 { margin: 0 0 8px; font-weight: 900; }
.styled-card p  { margin: 0; line-height: 1.9; color: #555; }
.styled-card .small-text { line-height: 1.7; font-size: .95rem; color: #666; }

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: transform .3s;
}
.icon-circle.sm { width: 60px; height: 60px; font-size: 1.6rem; }
.styled-card:hover .icon-circle.sm { transform: scale(1.1) rotate(5deg); }
.icon-green { background: var(--green-50); color: var(--primary-green); }
.icon-gold  { background: var(--orange-50); color: var(--orange); }

.value-icon { font-size: 1.5rem; margin-bottom: 10px; }
.value-icon.green { color: var(--primary-green); }
.value-icon.gold  { color: var(--orange); }

/* 7. مكتبة الدراسات --------------------------------------------------------- */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    padding: 20px 0;
}

.book-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 230px;
    margin: 0 auto;
    transition: transform .3s ease;
}
.book-card:hover { transform: translateY(-8px); }

.book-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 6px 10px 10px 6px;
    overflow: hidden;
    background: #e0e0e0;
    margin-bottom: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, .15), inset 3px 0 5px rgba(255, 255, 255, .3);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-spine {
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 14px;
    background: linear-gradient(to right, rgba(255, 255, 255, .4) 0%, rgba(0, 0, 0, .1) 100%);
    pointer-events: none;
    z-index: 2;
}

.book-info { text-align: center; padding: 0 2px; }
.book-cat {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary-green);
    background: rgba(0, 122, 61, .08);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.book-title {
    font-size: .95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.book-meta { font-size: .82rem; color: #777; }

/* 8. صفحات التفاصيل --------------------------------------------------------- */
.detail-image {
    position: relative;
    height: 550px;
    margin-bottom: 35px;
    padding: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.detail-title {
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--primary-green);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: var(--dark-text);
    font-size: .95rem;
}
.detail-meta span i { margin-inline-end: 8px; color: var(--gold-strong); }

.detail-body {
    margin-bottom: 40px;
    line-height: 1.9;
    font-size: 1.1rem;
    color: var(--dark-text);
    text-align: justify;
}
.detail-body h3 { font-size: 1.3rem; margin-bottom: 15px; color: #333; }

/* شارة حالة المشروع */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
}
.status-tag.planned   { background: var(--footer-bg); }
.status-tag.ongoing   { background: var(--gold-strong); }
.status-tag.completed { background: var(--primary-green); }

/* معرض الوسائط */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, border-color .3s;
}
.gallery-item:hover { transform: translateY(-5px); border-color: var(--accent-gold); }
.gallery-item img,
.gallery-item video { width: 100%; height: 220px; object-fit: cover; display: block; }

/* روابط التواصل الخاصة بالعنصر */
.social-view-box {
    background: #fdfdfd;
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    border-top: 3px solid var(--primary-green);
}
.social-view-box h4 { margin-bottom: 15px; color: var(--footer-bg); }
.social-icon-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid #eee;
    background: #fff;
    color: var(--dark-text);
    transition: all .3s ease;
}
.social-icon-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #fff;
    transform: translateY(-3px);
}

/* تحميل الدراسة */
.download-box {
    background: #f0f7f4;
    border: 1px solid #cce5d6;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 40px;
}
.download-box h4 { margin-bottom: 15px; color: #333; }
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-green);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
}
.btn-download:hover { background: var(--green-darker); color: #fff; transform: translateY(-2px); }

/* 9. الصفحات -------------------------------------------------------------- */

/* الرئيسية: البطل */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--green-50) 100%);
    padding: 45px 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; align-items: stretch; }
.hero-text h1 { font-size: 2.2rem; margin: 0 0 10px; color: var(--primary-green); }
.hero-text p { margin: 0 0 16px; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.donate-card { padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); }
.donate-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.donate-card p { margin: 0 0 12px; color: var(--muted); }

/* الرئيسية: من نحن */
.arch-section { padding: 60px 0 80px; background: linear-gradient(to bottom, #fcfcfc, #f5f5f5); }
.arch-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .05);
    border: 1px solid rgba(255, 255, 255, .8);
}
.arch-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-green) 30%, var(--accent-gold) 30%);
}
.arch-watermark {
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 500px;
    opacity: .07;
    z-index: 0;
    pointer-events: none;
    transform: rotate(10deg);
}
html[dir="ltr"] .arch-watermark { left: auto; right: -80px; transform: rotate(-10deg); }
.arch-content { position: relative; z-index: 2; padding: 50px; }
.arch-title { font-size: 2rem; font-weight: 800; color: var(--primary-green); margin-bottom: 20px; }
.arch-text { font-size: 1.1rem; line-height: 1.9; color: #555; max-width: 900px; margin-bottom: 40px; text-align: justify; }
.arch-text.tight { margin-bottom: 20px; }
.arch-divider { height: 1px; width: 60%; margin: 30px 0; background: linear-gradient(90deg, var(--border), transparent); }
.arch-subtitle {
    font-size: 1.4rem;
    color: var(--dark-text);
    font-weight: 700;
    margin-bottom: 25px;
    border-inline-start: 5px solid var(--accent-gold);
    padding-inline-start: 15px;
}
.arch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-top: 30px; }
.arch-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #fcfcfc;
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: var(--radius-lg);
    transition: all .3s ease;
}
.arch-feature-card:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
    border-color: var(--accent-gold);
}
.arch-icon-box {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-green);
    box-shadow: 0 5px 15px rgba(0, 122, 61, .1);
    border: 1px solid rgba(0, 122, 61, .1);
}
.arch-feature-info h4 { margin: 0 0 8px; color: var(--dark-text); font-size: 1.05rem; font-weight: 800; }
.arch-feature-info p { margin: 0; font-size: .92rem; color: #777; line-height: 1.5; }

/* من نحن */
.about-org { margin: 0 0 15px; color: var(--primary-green); font-weight: 900; font-size: 1.8rem; }
.about-text { margin: 0 0 12px; line-height: 1.9; color: #444; }
.quote-box {
    background: var(--green-50);
    border-inline-start: 4px solid var(--primary-green);
    border-radius: var(--radius-sm);
    padding: 25px 30px;
    margin: 25px 0;
    font-style: italic;
    color: #333;
    font-size: 1.05rem;
}
.quote-box i { display: block; color: var(--primary-green); opacity: .3; font-size: 1.5rem; margin-bottom: 5px; }

.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.vision-card  { border-top: 5px solid var(--primary-green); background: linear-gradient(to bottom, #f9fbf9, #fff); }
.mission-card { border-top: 5px solid var(--orange); background: linear-gradient(to bottom, #fffbf0, #fff); }
.vision-card p, .mission-card p { font-size: 1.05rem; }

.title-center { text-align: center; margin-bottom: 30px; }
.title-center h2 { margin: 0 0 10px; font-weight: 900; color: var(--primary-green); }
.title-center .bar { width: 50px; height: 3px; background: var(--orange); margin: 0 auto; }

.about-logo { max-width: 150px; margin: 0 auto 20px; }
.pillars { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.pillar-badge {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: #555;
    transition: .3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}
.pillar-badge:hover { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }

/* تواصل معنا */
.card-top-green { border-top: 4px solid var(--primary-green); }
.card-top-gold  { border-top: 4px solid var(--orange); }
.contact-links { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.contact-link-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    color: #555;
    font-weight: 600;
    transition: all .3s;
}
.contact-link-btn:hover { background: var(--primary-green); color: #fff; border-color: var(--primary-green); }
.contact-note { margin-top: 15px !important; color: #777 !important; font-size: .9rem; line-height: 1.6 !important; }
.contact-location { font-size: 1.1rem; font-weight: 700; color: var(--primary-green) !important; }
.quick-action-card {
    margin-top: 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(to right, #fcfcfc, #fff);
    border: 1px dashed #ccc;
}
.quick-action-card .bolt { font-size: 2rem; color: var(--orange); margin-bottom: 10px; }
.quick-action-card p { margin: 0 auto 20px; max-width: 70ch; }

/* التبرع */
.donate-columns { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-start; margin-top: 30px; }
.donate-col { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 30px; }
.donate-item {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.donate-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 122, 61, .15); border-color: var(--primary-green); }
.donate-item h3 { width: 100%; font-weight: 800; margin-bottom: 20px; color: var(--primary-green); font-size: 1.4rem; }
.donate-item h3 i { margin-inline-end: 8px; color: var(--gold-strong); }
.donate-item p { width: 100%; line-height: 1.8; color: var(--dark-text); margin-bottom: 20px; font-size: .95rem; }
.donate-item .big-icon { font-size: 3.5rem; color: var(--bg-color); margin-top: 10px; }

.bank-details {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid #e2e2e2;
    text-align: start;
}
.bank-details .bank-head { margin-bottom: 15px; font-size: .95rem; }
.bank-details strong { color: var(--primary-green); }
.iban-row { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #dcdcdc; }
.iban-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.curr-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.curr-try { background: var(--strong-red); }
.curr-eur { background: #003399; }
.curr-usd { background: var(--primary-green); }
.iban-code { display: block; font-family: monospace; font-weight: 600; font-size: 1.05rem; word-break: break-all; direction: ltr; text-align: left; }

.qr-img { max-width: 220px; width: 100%; margin: 0 auto; padding: 5px; border-radius: var(--radius-sm); border: 2px solid var(--bg-color); }

.contact-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 40px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: var(--gold-strong);
    color: #fff;
    font-weight: 700;
    transition: all .3s ease;
}
.contact-btn:hover { background: #fff; color: var(--gold-strong); border-color: var(--gold-strong); transform: translateY(-2px); }

/* 10. التجاوب --------------------------------------------------------------- */
@media (max-width: 990px) {
    .mobile-toggle { display: block; }

    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 0 20px;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 15px rgba(0, 0, 0, .1);
        transition: max-height .4s ease;
        z-index: 2001;
    }
    .nav-wrapper.active { max-height: 640px; padding-bottom: 20px; }

    .main-navbar, .nav-links { flex-direction: column; width: 100%; }
    .nav-links a { display: block; width: 100%; padding: 12px 5px; border-bottom: 1px solid rgba(0, 0, 0, .05); }

    .header-actions { flex-direction: column; width: 100%; gap: 15px; padding-top: 10px; }
    .header-btn { width: 100%; justify-content: center; }
    .admin-group {
        width: 100%;
        justify-content: center;
        gap: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, .05);
    }

    .float-action-btn { display: none; }
}

@media (max-width: 950px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .arch-content { padding: 30px 20px; }
    .arch-grid { grid-template-columns: 1fr; }
    .arch-watermark { width: 300px; bottom: -50px; left: -50px; }
    .arch-title { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .hero-grid,
    .vision-mission-grid { grid-template-columns: 1fr; }
    .detail-image { height: 350px; }
}

@media (max-width: 620px) {
    .cards-grid,
    .cards-grid.auto { grid-template-columns: 1fr; }
    .donate-col { min-width: 100%; }
}

@media (max-width: 500px) {
    .library-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .book-card { max-width: 100%; }
}
