/*
Theme Name: Charity Theme
Theme URI: https://example.org
Author: خالد السيد
Author URI: https://tiktm.com
Description: قالب ووردبريس كلاسيكي (RTL) لموقع جمعية خيرية: سريع وآمن بلا بناة صفحات ولا مصادر خارجية. كل بيانات الجمعية من «المظهر ← تخصيص».
Version: 0.2.8
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false
Text Domain: charity-theme
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

/* فهرس الأقسام:
   0 الخط المحلي · 1 التكوين والمتغيرات · 2 الترويسة · 3 البطل · 4 الإحصاءات · 5 البرامج/الأخبار
   6 القصص والشفافية · 7 الفوتر · 8 الحركات · 9 التجاوب · 10 التحسينات
   11 نظام الهيدر (حتى 9 قوائم) · 12 الفوتر: واتساب والرجوع للأعلى
   13 سلايدر الواجهة (2–4 شرائح) · 14 صفحات المشاريع والأخبار · 15 إضافات القالب */

/* ==========================================================================
   0. خط Cairo المتغير المحلي (ADR-016): مجموعتان woff2، ومدى الوزن كاملاً.
   الملفان في assets/fonts/ (انظر README هناك). بدونهما يسقط الخط إلى sans-serif.
   ========================================================================== */
@font-face {
    font-family: 'Cairo';
    src: url('assets/fonts/cairo-arabic.woff2') format('woff2');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Cairo';
    src: url('assets/fonts/cairo-latin.woff2') format('woff2');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
           1. التكوين الأساسي والمتغيرات البصرية (Design Tokens & CSS Variables)
           ========================================================================== */
        :root {
            /* الهوية البصرية الرئيسية */
            --color-primary-blue: #0F52BA;       /* الأزرق الملكي العميق (الياقوتي) */
            --color-primary-dark: #0A367B;       /* أزرق داكن للخلفيات والأظلال */
            --color-emerald-deep: #00674F;       /* الأخضر الزمردي الفخم */
            --color-emerald-vibrant: #50C878;    /* الأخضر الزمردي النابض للحياة */
            --color-gold-warm: #D4AF37;          /* الذهبي الدافئ الفاخر */
            --color-gold-light: #F4E8C1;         /* لمسات ذهبية خفيفة */

            /* خلفيات ونصوص */
            --bg-offwhite: #F8F9FA;             /* خلفية عامة مريحة للعين */
            --bg-pure-white: #FFFFFF;
            --text-main: #1E293B;                /* رمادي داكن للقراءة */
            --text-muted: #64748B;               /* رمادي متوسط للتفاصيل */
            --text-light: #F1F5F9;

            /* التأثيرات والحدود */
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-full: 9999px;
            
            --shadow-subtle: 0 4px 20px -2px rgba(15, 82, 186, 0.06);
            --shadow-hover: 0 20px 40px -15px rgba(15, 82, 186, 0.15);
            --shadow-glow: 0 0 25px rgba(80, 200, 120, 0.3);

            --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* إعادة ضبط العناصر (Reset) */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Cairo', sans-serif;
            background-color: var(--bg-offwhite);
            color: var(--text-main);
            line-height: 1.7;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        a {
            text-decoration: none;
            color: inherit;
            transition: var(--transition-fast);
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* الحاوية العامة */
        .container {
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* ==========================================================================
           2. الترويسة الرئيسية (Header & Navigation)
           ========================================================================== */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(15, 82, 186, 0.08);
            transition: var(--transition-smooth);
        }

        .site-header.scrolled {
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.98);
        }

        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 90px;
        }

        /* الشعار الهوائي الفخم */
        .brand-logo {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .logo-mark {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, var(--color-emerald-deep), var(--color-emerald-vibrant));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 16px rgba(0, 103, 79, 0.2);
            position: relative;
            overflow: hidden;
        }

        .logo-mark::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
            transform: translateX(-100%);
            animation: shine 3s infinite;
        }

        .logo-mark svg {
            width: 30px;
            height: 30px;
            fill: #FFFFFF;
        }

        .brand-text {
            display: flex;
            flex-direction: column;
        }

        .brand-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--color-primary-blue);
            line-height: 1.2;
        }

        .brand-subtitle {
            font-size: 0.75rem;
            color: var(--color-emerald-deep);
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        /* القائمة الرئيسية */
        .main-nav {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-link {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-main);
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(90deg, var(--color-emerald-vibrant), var(--color-primary-blue));
            border-radius: var(--radius-full);
            transition: var(--transition-fast);
        }

        .nav-link:hover {
            color: var(--color-primary-blue);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        /* أزرار الإجراءات */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .btn-store {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-dark));
            color: #FFFFFF;
            padding: 0.75rem 1.6rem;
            border-radius: var(--radius-full);
            font-weight: 700;
            font-size: 0.95rem;
            box-shadow: 0 6px 20px rgba(15, 82, 186, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.15);
            position: relative;
            overflow: hidden;
        }

        .btn-store::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), transparent);
            opacity: 0;
            transition: var(--transition-fast);
        }

        .btn-store:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(15, 82, 186, 0.35);
        }

        .btn-store:hover::before {
            opacity: 1;
        }

        .btn-store svg {
            width: 18px;
            height: 18px;
            fill: var(--color-gold-warm);
        }

        /* زر الجوال */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .mobile-menu-btn span {
            display: block;
            width: 26px;
            height: 3px;
            background-color: var(--color-primary-blue);
            margin: 5px 0;
            border-radius: 3px;
            transition: var(--transition-fast);
        }

        /* ==========================================================================
           3. قسم البطل الرائع (Hero Section)
           ========================================================================== */
        .hero-section {
            position: relative;
            padding: 5rem 0 6rem;
            background: radial-gradient(circle at 90% 10%, rgba(80, 200, 120, 0.08) 0%, transparent 40%),
                        radial-gradient(circle at 10% 90%, rgba(15, 82, 186, 0.06) 0%, transparent 50%),
                        var(--bg-offwhite);
            overflow: hidden;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 1.2rem;
            background: rgba(0, 107, 79, 0.08);
            border: 1px solid rgba(80, 200, 120, 0.3);
            border-radius: var(--radius-full);
            color: var(--color-emerald-deep);
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
        }

        .hero-badge .pulse-dot {
            width: 8px;
            height: 8px;
            background-color: var(--color-emerald-vibrant);
            border-radius: 50%;
            box-shadow: 0 0 0 0 rgba(80, 200, 120, 0.7);
            animation: pulse 2s infinite;
        }

        .hero-title {
            font-size: 3.2rem;
            font-weight: 900;
            line-height: 1.2;
            color: var(--color-primary-dark);
            margin-bottom: 1.5rem;
        }

        .hero-title span.highlight-emerald {
            color: var(--color-emerald-deep);
            position: relative;
            display: inline-block;
        }

        .hero-title span.highlight-gold {
            background: linear-gradient(135deg, var(--color-gold-warm), #B8860B);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-description {
            font-size: 1.15rem;
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            max-width: 580px;
            line-height: 1.8;
        }

        .hero-cta-group {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            flex-wrap: wrap;
        }

        .btn-gold {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            background: linear-gradient(135deg, var(--color-gold-warm), #B8860B);
            color: #FFFFFF;
            padding: 1rem 2.2rem;
            border-radius: var(--radius-full);
            font-weight: 700;
            font-size: 1rem;
            box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
            transition: var(--transition-smooth);
        }

        .btn-gold:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
        }

        .btn-secondary-outline {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: transparent;
            color: var(--color-primary-blue);
            padding: 1rem 2rem;
            border-radius: var(--radius-full);
            font-weight: 700;
            font-size: 1rem;
            border: 2px solid rgba(15, 82, 186, 0.2);
            transition: var(--transition-fast);
        }

        .btn-secondary-outline:hover {
            border-color: var(--color-primary-blue);
            background: rgba(15, 82, 186, 0.04);
        }

        /* البصريات وبطاقة الهيرو (Hero Graphic) */
        .hero-visual {
            position: relative;
        }

        .hero-image-wrapper {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-hover);
            border: 6px solid #FFFFFF;
        }

        .hero-image-wrapper img {
            width: 100%;
            height: 480px;
            object-fit: cover;
            transform: scale(1.02);
            transition: var(--transition-smooth);
        }

        .hero-image-wrapper:hover img {
            transform: scale(1.06);
        }

        /* شارة الرعاية العائمة */
        .floating-impact-card {
            position: absolute;
            bottom: -30px;
            right: -30px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 1.5rem;
            border-radius: var(--radius-md);
            box-shadow: 0 15px 35px rgba(0,0,0,0.12);
            border: 1px solid rgba(255,255,255,0.8);
            display: flex;
            align-items: center;
            gap: 1rem;
            max-width: 280px;
            animation: float 4s ease-in-out infinite;
        }

        .icon-box-emerald {
            width: 48px;
            height: 48px;
            background: rgba(80, 200, 120, 0.15);
            color: var(--color-emerald-deep);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        /* ==========================================================================
           4. إحصاءات الجمعية (قسم مستقل - شبكة متداخلة بخلفية زجاجية)
           ========================================================================== */
        .stats-section {
            position: relative;
            padding: 4.5rem 0 6rem;
            background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-blue));
            overflow: hidden;
        }

        /* توهّجات خلفية لإبراز تأثير الزجاج */
        .stats-section::before, .stats-section::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            filter: blur(70px);
            pointer-events: none;
        }
        .stats-section::before { width: 380px; height: 380px; top: -140px; right: -80px; background: rgba(80, 200, 120, 0.35); }
        .stats-section::after { width: 320px; height: 320px; bottom: -140px; left: 8%; background: rgba(212, 175, 55, 0.28); }

        .stats-head { position: relative; z-index: 1; text-align: center; max-width: 650px; margin: 0 auto 2.5rem; }
        .stats-head h2 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
        .stats-head p { color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.8; }

        .stats-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            align-items: start;
            padding: 0 0.9rem;
        }

        .stat-card {
            margin: 0 -0.9rem;               /* تداخل أفقي بين البطاقات */
            padding: 2.4rem 2.2rem;
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: var(--radius-lg);
            box-shadow: 0 18px 40px rgba(5, 25, 70, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
            position: relative;
        }

        .stat-card:nth-child(even) { margin-top: 2.5rem; z-index: 2; }   /* تداخل رأسي */

        .stat-card:hover {
            background: rgba(255, 255, 255, 0.18);
            transform: translateY(-6px);
            z-index: 3;
        }

        .counter-number {
            font-size: 2.8rem;
            font-weight: 900;
            color: #FFFFFF;
            line-height: 1;
            margin-bottom: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
        }

        .counter-number .plus { color: var(--color-gold-warm); font-size: 2rem; }

        .counter-label {
            font-size: 0.95rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.85);
        }

        /* ==========================================================================
           5. قسم البرامج والرعاية الإنسانية (Services & Impact Programs)
           ========================================================================== */
        .section-padding {
            padding: 6rem 0;
        }

        .section-header {
            text-align: center;
            max-width: 650px;
            margin: 0 auto 4rem;
        }

        .section-subtitle {
            color: var(--color-emerald-deep);
            font-size: 0.9rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
            display: block;
        }

        .section-title {
            font-size: 2.4rem;
            font-weight: 800;
            color: var(--color-primary-dark);
            line-height: 1.3;
        }

        .programs-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .news-section { background: linear-gradient(180deg, #EDF2F7 0%, #F8F9FA 100%); }

        /* بطاقة موحّدة: البرامج والمشاريع + الأخبار (+ قصص الأثر) */
        .media-card, .story-card {
            display: flex;
            background: var(--bg-pure-white);
            border: 1px solid rgba(15, 82, 186, 0.06);
            box-shadow: var(--shadow-subtle);
            position: relative;
            overflow: hidden;
        }

        .media-card { flex-direction: column; border-radius: var(--radius-lg); padding: 1rem; }
        .story-card { display: grid; }

        .media-card::before, .story-card::before {
            content: '';
            position: absolute;
            top: 0; right: 0;
            width: 100%; height: 4px;
            z-index: 3;
            background: linear-gradient(90deg, var(--color-primary-blue), var(--color-emerald-vibrant));
            opacity: 0;
            transition: var(--transition-fast);
        }

        .media-card:is(:hover, :focus-visible), .story-card:is(:hover, :focus-visible) {
            transform: translateY(-8px);
            box-shadow: var(--shadow-hover);
            outline: none;
        }

        .media-card:is(:hover, :focus-visible)::before, .story-card:is(:hover, :focus-visible)::before { opacity: 1; }

        /* إطار الصورة + أنيميشن (تكبير + لمعة + تعتيم خفيف) */
        .img-frame {
            position: relative;
            overflow: hidden;
            border-radius: var(--radius-md);
            background: linear-gradient(135deg, var(--color-primary-blue), var(--color-emerald-deep));
        }

        .media-card .img-frame { aspect-ratio: 16 / 10; }

        .img-frame img {
            width: 100%; height: 100%;
            object-fit: cover;
            transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .img-frame::before {
            content: '';
            position: absolute;
            top: 0; left: -75%;
            width: 50%; height: 100%;
            background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
            transform: skewX(-20deg);
            z-index: 2;
            pointer-events: none;
        }

        .img-frame::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 40%, rgba(10, 54, 123, 0.55));
            opacity: 0;
            transition: var(--transition-smooth);
        }

        :is(.media-card, .story-card):is(:hover, :focus-visible) .img-frame img { transform: scale(1.12) rotate(0.8deg); }
        :is(.media-card, .story-card):is(:hover, :focus-visible) .img-frame::before { animation: sweep 0.9s ease; }
        :is(.media-card, .story-card):is(:hover, :focus-visible) .img-frame::after { opacity: 1; }

        @keyframes sweep { to { left: 140%; } }

        .media-badge {
            position: absolute;
            bottom: 0.9rem; right: 0.9rem;
            z-index: 3;
            width: 48px; height: 48px;
            border-radius: var(--radius-sm);
            background: rgba(255, 255, 255, 0.95);
            color: var(--color-primary-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
            transition: var(--transition-smooth);
        }

        .media-badge svg { width: 26px; height: 26px; fill: currentColor; }

        .media-card:is(:hover, :focus-visible) .media-badge {
            background: var(--color-primary-blue);
            color: #FFFFFF;
            transform: translateY(-4px);
        }

        .media-chip {
            position: absolute;
            top: 0.9rem; right: 0.9rem;
            z-index: 3;
            padding: 0.3rem 0.9rem;
            border-radius: var(--radius-full);
            background: rgba(255, 255, 255, 0.95);
            color: var(--color-primary-dark);
            font-size: 0.75rem;
            font-weight: 800;
        }

        .media-body {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            padding: 1.6rem 1.2rem 0.8rem;
        }

        .media-title {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--color-primary-dark);
            margin-bottom: 0.7rem;
            line-height: 1.4;
        }

        .media-desc {
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 1.2rem;
            flex-grow: 1;
        }

        /* الرابط يظهر عند مرور الماوس فقط (مساحته محجوزة فلا يتحرك التصميم) */
        .card-footer {
            padding-top: 1rem;
            border-top: 1px solid transparent;
            opacity: 0;
            transform: translateY(10px);
            transition: var(--transition-smooth);
        }

        :is(.media-card, .story-card):is(:hover, :focus-visible) .card-footer {
            opacity: 1;
            transform: none;
            border-top-color: rgba(0, 0, 0, 0.06);
        }

        .card-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-weight: 700;
            color: var(--color-emerald-deep);
            font-size: 0.9rem;
        }

        .card-link svg { width: 16px; height: 16px; fill: currentColor; transition: var(--transition-fast); }
        :is(.media-card, .story-card):is(:hover, :focus-visible) .card-link svg { transform: translateX(-4px); }

        /* شاشات اللمس: لا يوجد hover، فيظهر الرابط دائماً */
        @media (hover: none) {
            .card-footer { opacity: 1; transform: none; border-top-color: rgba(0, 0, 0, 0.06); }
        }

        /* ==========================================================================
           6. قصص الأثر والشفافية (Stories & Governance)
           ========================================================================== */
        .stories-section {
            background: linear-gradient(180deg, #F8F9FA 0%, #EDF2F7 100%);
            position: relative;
        }

        .stories-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem;
        }

        .story-card {
            border-radius: var(--radius-lg);
            padding: 1rem;
            display: grid;
            grid-template-columns: 0.9fr 1.1fr;
            gap: 1.5rem;
        }

        .story-card .img-frame { min-height: 240px; }
        .story-card .img-frame img { position: absolute; inset: 0; }

        .story-content {
            padding: 1rem 0.8rem 1rem 0.4rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .story-tag {
            font-size: 0.75rem;
            font-weight: 800;
            color: var(--color-gold-warm);
            background: rgba(212, 175, 55, 0.1);
            padding: 0.25rem 0.75rem;
            border-radius: var(--radius-full);
            width: fit-content;
            margin-bottom: 0.8rem;
        }

        .story-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--color-primary-dark);
            margin-bottom: 0.8rem;
            line-height: 1.4;
        }

        .story-snippet {
            font-size: 0.9rem;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 1.2rem;
        }

        /* الحوكمة والتقارير */
        .governance-wrapper {
            margin-top: 0;
            background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-blue));
            border-radius: var(--radius-lg);
            padding: 3.5rem 3rem;
            color: #FFFFFF;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
            box-shadow: 0 20px 50px rgba(15, 82, 186, 0.25);
        }

        .gov-info h3 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }

        .gov-info p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1rem;
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .governance-section { padding: 0 0 6rem; }

        .finance-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.2rem;
        }

        .finance-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 1.5rem 1.3rem;
            border-radius: var(--radius-md);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-right: 4px solid var(--color-gold-warm);
            transition: var(--transition-fast);
        }

        .finance-card:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.02);
        }

        .finance-amount {
            display: flex;
            align-items: baseline;
            gap: 0.4rem;
            font-size: 1.7rem;
            font-weight: 900;
            line-height: 1.2;
            margin-bottom: 0.4rem;
        }

        .finance-amount small {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--color-gold-warm);
        }

        .finance-label {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.75);
        }

        /* ==========================================================================
           7. التذييل المؤسسي (Footer)
           ========================================================================== */
        .site-footer {
            background-color: #0A192F;
            color: #FFFFFF;
            padding-top: 5rem;
            padding-bottom: 2rem;
            border-top: 4px solid var(--color-emerald-deep);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1.3fr;
            gap: 2.5rem;
            margin-bottom: 4rem;
        }

        .footer-brand p {
            color: #94A3B8;
            margin-top: 1.2rem;
            font-size: 0.95rem;
            line-height: 1.8;
        }

        .footer-title {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--color-gold-warm);
            margin-bottom: 1.5rem;
            position: relative;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #CBD5E1;
            font-size: 0.95rem;
            transition: var(--transition-fast);
        }

        .footer-links a:hover {
            color: var(--color-emerald-vibrant);
            padding-right: 5px;
        }

        .contact-info li {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: #CBD5E1;
            font-size: 0.95rem;
            margin-bottom: 1rem;
        }

        .footer-bottom {
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
            font-size: 0.85rem;
            color: #94A3B8;
        }

        /* ==========================================================================
           8. حركات الأنيميشن (Animations & Keyframes)
           ========================================================================== */
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(80, 200, 120, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(80, 200, 120, 0); }
            100% { box-shadow: 0 0 0 0 rgba(80, 200, 120, 0); }
        }

        @keyframes shine {
            100% { transform: translateX(100%); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        /* نستخدم الخاصية translate حتى لا تتعارض مع transform الخاص بالـ hover */
        .reveal-on-scroll {
            opacity: 0;
            translate: 0 30px;
            transition: opacity 0.8s ease, translate 0.8s ease,
                        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                        background 0.25s ease;
        }

        .reveal-on-scroll.visible {
            opacity: 1;
            translate: 0 0;
        }

        /* ==========================================================================
           9. التجاوب مع الشاشات (Responsive Design)
           ========================================================================== */
        @media (max-width: 1024px) {
            .hero-title { font-size: 2.5rem; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
            .programs-grid { grid-template-columns: repeat(2, 1fr); }
            .governance-wrapper { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
            .hero-description { margin: 0 auto 2rem; }
            .hero-cta-group { justify-content: center; }
            .floating-impact-card { right: 10px; bottom: 10px; }
            .stats-grid { grid-template-columns: 1fr; padding: 0; gap: 1rem; }
            .stat-card, .stat-card:nth-child(even) { margin: 0; }
            .programs-grid { grid-template-columns: 1fr; }
            .stories-grid { grid-template-columns: 1fr; }
            .story-card { grid-template-columns: 1fr; }
            .story-card .img-frame { min-height: 200px; }
            .finance-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; text-align: center; }
        }
    
        /* ==========================================================================
           10. التحسينات والإضافات (Refinements) — تُدمج مع أقسامها عند التحويل لقالب
           ========================================================================== */
        :root { --color-royal: #0F52BA; --color-lime: #C9D62B; --color-gold-light: #F4E8C1; }
        a:focus-visible, button:focus-visible { outline: 3px solid var(--color-gold-warm); outline-offset: 3px; }

        /* الشريط العلوي */
        .top-bar { background: var(--color-royal); color: #fff; font-size: 0.92rem; border-bottom: 2px solid var(--color-gold-warm); overflow: hidden; max-height: 120px; transition: max-height .35s ease, opacity .35s ease; }
        .top-bar.closing { max-height: 0 !important; opacity: 0; }
        .top-bar-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: .7rem; padding-block: .65rem; padding-inline: 3.2rem; }
        .top-bar-text { margin: 0; text-align: center; line-height: 1.6; }
        .top-bar-link { color: var(--color-gold-light); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; margin-inline-start: .5rem; }
        .top-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-lime); flex-shrink: 0; box-shadow: 0 0 0 0 rgba(201,214,43,.7); animation: pulseDot 2s infinite; }
        @keyframes pulseDot { 70% { box-shadow: 0 0 0 10px rgba(201,214,43,0); } 100% { box-shadow: 0 0 0 0 rgba(201,214,43,0); } }
        .top-bar-close { position: absolute; left: 1.5rem; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .25s, rotate .3s; }
        .top-bar-close:hover { background: rgba(255,255,255,.3); rotate: 90deg; }

        /* الهيدر: شعار + قائمة مرنة حتى 9 عناصر */
        .brand-img { height: 72px; width: auto; display: block; }
        .brand-img.brand-tile { background: #fff; border-radius: 14px; padding: 6px; height: 68px; }
        .footer-brand .brand-title { font-size: 1.2rem; }
        .footer-brand .brand-img.brand-tile { box-sizing: border-box; width: 96px; height: 96px; padding: 8px; object-fit: contain; }
        .header-inner { gap: 1.5rem; }
        .header-inner > :first-child, .header-actions { flex-shrink: 0; }
        .main-nav { flex: 1 1 0; min-width: 0; justify-content: center; gap: clamp(.9rem, 1.5vw, 2rem); }
        .nav-link { white-space: nowrap; }
        .brand-subtitle { font-size: .68rem; }
        .nav-more { position: relative; }
        .nav-more[hidden] { display: none; }
        .nav-more-btn { font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; color: var(--text-main); padding: .5rem 0; display: flex; align-items: center; gap: .3rem; }
        .nav-more-menu { position: absolute; top: calc(100% + 14px); right: 0; min-width: 210px; background: #fff; border: 1px solid rgba(15,82,186,.1); border-radius: var(--radius-md); box-shadow: var(--shadow-hover); padding: .6rem; display: none; flex-direction: column; z-index: 1100; }
        .nav-more.open .nav-more-menu { display: flex; }
        .nav-more-menu .nav-link { padding: .65rem 1rem; border-radius: var(--radius-sm); }
        .nav-more-menu .nav-link::after { display: none; }
        .nav-more-menu .nav-link:hover { background: rgba(15,82,186,.06); }
        .site-header::after { content: ''; position: absolute; bottom: -1px; right: 0; height: 3px; width: calc(var(--p, 0) * 1%); background: linear-gradient(270deg, var(--color-emerald-vibrant), var(--color-gold-warm)); }

        /* زر المتجر (زمردي من عائلة شعار النخلة) وتوحيده مع زر السلايدر */
        .btn-store { background: linear-gradient(135deg, #00674F, #1E8E5A) !important; border: 1px solid rgba(201,214,43,.6) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(0,103,79,.3) !important; }
        .btn-store::before { background: linear-gradient(135deg, rgba(201,214,43,.35), transparent) !important; }
        .btn-store svg { fill: var(--color-lime) !important; }
        .btn-secondary-outline { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem; transition: color .3s, border-color .3s, box-shadow .3s; }
        .btn-secondary-outline::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, #00674F, #1E8E5A); transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.16,1,.3,1); }
        .btn-secondary-outline > * { position: relative; z-index: 1; }
        .btn-secondary-outline svg { transition: transform .3s; }
        .btn-secondary-outline:is(:hover, :focus-visible) { color: #fff !important; border-color: rgba(201,214,43,.6) !important; box-shadow: 0 6px 20px rgba(0,103,79,.3); }
        .btn-secondary-outline:is(:hover, :focus-visible)::before { transform: scaleX(1); }
        .btn-secondary-outline:is(:hover, :focus-visible) svg { transform: translateX(-4px); }

        /* قسم القيادة: حركة هادئة تليق بالصور الرسمية */
        .leaders-section { padding-bottom: 2rem; }
        .leader-card .img-frame { background: linear-gradient(160deg, #EAF1FB, #CFE0F7); min-height: 300px; }
        .leader-card .img-frame img { mix-blend-mode: multiply; object-position: 45% 15%; }
        .leader-card .img-frame::after { display: none; }
        .leader-card:is(:hover, :focus-within) .img-frame img { transform: scale(1.04); }
        .leader-card .story-title { font-size: 1.1rem; }

        /* لمسات الفخامة */
        .section-title::after { content: ''; display: block; width: 0; height: 3px; margin: .9rem auto 0; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--color-gold-warm), transparent); transition: width 1s ease .3s; }
        .section-header.visible .section-title::after { width: 110px; }
        .stats-section { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09'%3E%3Cpath d='M20 20h40v40H20z'/%3E%3Cpath d='M40 6l34 34-34 34L6 40z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-blue)); }
        .stat-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.2), transparent 60%); }
        .stat-card:hover::after { opacity: 1; }

        /* الفوتر */
        .site-footer { position: relative; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09'%3E%3Cpath d='M20 20h40v40H20z'/%3E%3Cpath d='M40 6l34 34-34 34L6 40z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(180deg, #0F52BA 0%, #0A367B 100%) !important; border-top: 4px solid var(--color-gold-warm); }
        .site-footer p, .footer-bottom, .footer-bottom * { color: rgba(255,255,255,.8) !important; }
        .site-footer li, .site-footer li a, .footer-links a { color: rgba(255,255,255,.9) !important; }
        .site-footer li a:hover, .footer-links a:hover { color: var(--color-gold-light) !important; }
        .site-footer h4, .footer-title { color: var(--color-gold-light) !important; }
        .footer-title { display: block; }
        .footer-bottom { border-top-color: rgba(255,255,255,.18) !important; }

        @media (max-width: 768px) {
            .top-bar { font-size: .82rem; }
            .top-bar-inner { padding-inline: 2.6rem; }
            .top-bar-close { left: .8rem; }
            .leader-card .img-frame { min-height: 260px; }
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
            .reveal-on-scroll { opacity: 1; translate: none; }
        }

        /* ==========================================================================
           11. نظام الهيدر: يتحمل حتى 9 قوائم
           فوق 1100px: قائمة أفقية (والفائض إلى «المزيد»)  ·  تحت 1100px: قائمة منسدلة (☰)
           ========================================================================== */
        .site-header .container { max-width: 1560px; }
        .header-inner { gap: 1rem; }
        .main-nav { gap: clamp(.7rem, 1.1vw, 1.6rem); }
        .nav-link { font-size: clamp(.84rem, .95vw, .95rem); }
        .btn-store { padding: .65rem 1.1rem; font-size: .88rem; }
        .brand-reg { font-size: .68rem; font-weight: 700; color: var(--color-gold-warm); letter-spacing: .3px; line-height: 1.5; }

        @media (max-width: 1100px) {
            .mobile-menu-btn { display: block; flex-shrink: 0; }
            .main-nav {
                display: none; position: absolute; top: 100%; right: 0; left: 0;
                flex-direction: column; align-items: center; gap: 0;
                background: #fff; padding: .6rem 1.5rem 1.4rem;
                border-top: 1px solid rgba(15, 82, 186, .08);
                box-shadow: 0 18px 30px rgba(0, 0, 0, .1);
                max-height: calc(100vh - 110px); overflow-y: auto;
            }
            .site-header.nav-open .main-nav { display: flex; }
            .main-nav .nav-link { width: 100%; max-width: 420px; text-align: center; padding: .9rem 0; font-size: 1rem; border-bottom: 1px solid rgba(15, 82, 186, .07); }
            .main-nav .nav-link::after { display: none; }
            .nav-open .mobile-menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
            .nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
            .nav-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
        }

        @media (max-width: 768px) {
            .site-header .container { padding-inline: 1rem; }
            .header-inner { gap: .5rem; }
            .header-inner > :first-child { flex: 1 1 auto; min-width: 0; gap: .5rem; }
            .brand-img { height: 52px; }
            .footer-brand .brand-img.brand-tile { width: 80px; height: 80px; padding: 6px; }
            .brand-title { font-size: .95rem; white-space: normal; line-height: 1.25; }
            .brand-subtitle { font-size: .58rem; line-height: 1.35; letter-spacing: 0; }
            .brand-reg { font-size: .6rem; line-height: 1.35; letter-spacing: 0; }
            .header-actions { flex-shrink: 0; gap: .5rem; }
            .btn-store { padding: .6rem 1rem; font-size: .85rem; }
        }
        @media (max-width: 480px) {
            .btn-store span { display: none; }
            .btn-store { padding: .7rem; }
        }

        /* ==========================================================================
           12. الفوتر: زر واتساب (نبض مستمر) + سهم الرجوع للأعلى
           ========================================================================== */
        .btn-whatsapp {
            position: relative; display: inline-flex; align-items: center; gap: .6rem;
            margin-top: 1.4rem; padding: .7rem 1.3rem; border-radius: var(--radius-full);
            background: #25D366; color: #fff !important; font-weight: 800; font-size: .92rem;
            box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
            transition: transform .3s ease, background .3s ease;
        }
        .btn-whatsapp svg { width: 22px; height: 22px; fill: currentColor; }
        .btn-whatsapp::after {
            content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
            box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: waPulse 2s infinite;
        }
        .btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-3px); }
        @keyframes waPulse { 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

        .back-to-top {
            position: absolute; top: -26px; right: 2rem; z-index: 5;
            width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            background: linear-gradient(135deg, var(--color-gold-warm), #B8922A); color: #fff;
            box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 0 0 5px rgba(255, 255, 255, .9);
            transition: transform .3s ease, box-shadow .3s ease;
        }
        .back-to-top svg { width: 26px; height: 26px; fill: currentColor; }
        .back-to-top:hover { transform: translateY(-5px); }
        @media (max-width: 768px) { .back-to-top { right: 1rem; } }


        /* ==========================================================================
           13. سلايدر الواجهة الرئيسية (2–4 شرائح، الأسهم تظهر عند وجود شريحتين فأكثر)
           ========================================================================== */
        .hero-slider { position: relative; padding-inline: 4.5rem; }
        .hero-track { display: grid; }
        .hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
        .hero-slide.is-active { opacity: 1; visibility: visible; }
        .hero-slide .hero-content { transform: translateY(16px); transition: transform .9s cubic-bezier(.16,1,.3,1) .1s; }
        .hero-slide .hero-visual { transform: scale(.97); transition: transform 1s cubic-bezier(.16,1,.3,1); }
        .hero-slide.is-active .hero-content, .hero-slide.is-active .hero-visual { transform: none; }
        .hero-arrow {
            position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
            width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            border: 1px solid rgba(15,82,186,.18); background: rgba(255,255,255,.92); color: var(--color-primary-blue);
            box-shadow: var(--shadow-subtle); transition: background .3s, color .3s, border-color .3s, transform .3s;
        }
        .hero-arrow svg { width: 26px; height: 26px; fill: currentColor; }
        .hero-prev { right: 0; } .hero-next { left: 0; }
        .hero-arrow:is(:hover, :focus-visible) { background: linear-gradient(135deg, #00674F, #1E8E5A); color: #fff; border-color: rgba(201,214,43,.6); transform: scale(1.08); }
        .hero-slider[data-count="1"] { padding-inline: 0; }
        .hero-slider[data-count="1"] .hero-arrow { display: none; }
        @media (max-width: 1100px) {
            .hero-slider, .hero-slider[data-count="1"] { padding-inline: 0; }
            .hero-slider:not([data-count="1"]) { padding-bottom: 4.5rem; }
            .hero-arrow { top: auto; bottom: 0; translate: none; }
            .hero-prev { right: calc(50% + 8px); } .hero-next { left: calc(50% + 8px); }
        }

        /* زر "عرض جميع المشاريع" فوق البطاقات */
        .section-actions { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }

        /* ==========================================================================
           14. صفحات البرامج والمشاريع (الأرشيف + المشروع المنفرد)
           ========================================================================== */
        .page-hero { position: relative; padding: 4.5rem 0 5rem; color: #fff; overflow: hidden;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.09'%3E%3Cpath d='M20 20h40v40H20z'/%3E%3Cpath d='M40 6l34 34-34 34L6 40z'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(135deg, var(--color-primary-dark), var(--color-royal)); }
        .page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.3; }
        .page-hero p { max-width: 640px; margin-top: 1rem; color: rgba(255,255,255,.85); line-height: 1.8; }
        .breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; font-size: .9rem; color: rgba(255,255,255,.8); }
        .breadcrumb a { color: var(--color-gold-light); font-weight: 700; }
        .archive-section { padding: 5rem 0 6rem; }
        .single-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
        .single-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 2rem;
            background: linear-gradient(135deg, var(--color-primary-blue), var(--color-emerald-deep)); box-shadow: var(--shadow-subtle); }
        .single-cover img { width: 100%; height: 100%; object-fit: cover; }
        .single-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-primary-dark); margin: 2rem 0 .8rem; }
        .single-content p { color: var(--text-muted); line-height: 1.9; margin-bottom: 1rem; }
        .check-list { list-style: none; margin: 0 0 2rem; padding: 0; }
        .check-list li { position: relative; padding: .5rem 2rem .5rem 0; color: var(--text-muted); line-height: 1.7; }
        .check-list li::before { content: ''; position: absolute; right: 0; top: .85rem; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #00674F, #1E8E5A); }
        .single-side { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
        .info-card { background: var(--bg-pure-white); border: 1px solid rgba(15,82,186,.06); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-subtle); }
        .info-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 1rem; }
        .info-card dt { font-size: .8rem; color: var(--text-muted); margin-top: .8rem; }
        .info-card dd { margin: .15rem 0 0; font-weight: 700; color: var(--color-primary-dark); }
        .side-links { list-style: none; margin: 0; padding: 0; }
        .side-links a { display: block; padding: .6rem 0; border-bottom: 1px solid rgba(15,82,186,.07); color: var(--color-primary-blue); font-weight: 700; transition: padding .3s, color .3s; }
        .side-links a:hover { padding-inline-start: .6rem; color: var(--color-emerald-deep); }
        @media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; } .single-side { position: static; } }


        /* ==========================================================================
           15. إضافات القالب (وصول، صور بديلة، ترقيم، محتوى المحرر)
           ========================================================================== */
        .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
        .skip-link { position: absolute; top: -100px; inset-inline-start: 1rem; z-index: 10000; padding: .7rem 1.2rem; background: var(--color-primary-dark); color: #fff; border-radius: var(--radius-sm); font-weight: 700; }
        .skip-link:focus { top: 1rem; }
        :focus-visible { outline: 3px solid var(--color-primary-blue); outline-offset: 3px; }
        .site-footer :focus-visible, .page-hero :focus-visible { outline-color: var(--color-gold-light); }

        .icon-box-emerald svg { width: 26px; height: 26px; fill: currentColor; }
        .floating-impact-card p { font-size: .75rem; color: var(--text-muted); }
        .floating-impact-card p.floating-title { font-size: .9rem; font-weight: 800; color: var(--color-primary-dark); }
        .contact-info { list-style: none; margin: 0; padding: 0; }
        .contact-info li svg { flex: 0 0 20px; width: 20px; height: 20px; fill: var(--color-gold-light); }
        .contact-info a:hover { color: var(--color-gold-light); }
        .footer-brand-title { color: #FFFFFF; }
        .footer-brand-reg { color: #F4E8C1; }
        .footer-links { list-style: none; margin: 0; padding: 0; }
        .brand-logo { text-decoration: none; }

        .img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85);
            background: linear-gradient(135deg, var(--color-primary-blue), var(--color-emerald-deep)); }
        .img-placeholder svg { fill: currentColor; }
        .empty-note { padding: 2rem 0; color: var(--text-muted); font-size: 1.1rem; }

        .single-layout.is-full { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
        .single-content { min-width: 0; }
        .single-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--color-primary-dark); margin: 1.6rem 0 .6rem; }
        .single-content ul:not(.check-list), .single-content ol { margin: 0 0 1.4rem; padding-inline-start: 1.6rem; color: var(--text-muted); line-height: 1.9; }
        .single-content a:not(.btn-secondary-outline) { color: var(--color-primary-blue); text-decoration: underline; text-underline-offset: 3px; }
        .single-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
        .single-content figure { margin: 0 0 1.4rem; }
        .single-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--text-muted); margin-top: .4rem; }
        .single-content blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-inline-start: 4px solid var(--color-gold-warm); background: var(--bg-pure-white); border-radius: var(--radius-sm); color: var(--text-main); }
        .single-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; }
        .single-content th, .single-content td { padding: .6rem .8rem; border: 1px solid rgba(15,82,186,.12); text-align: start; }
        .single-content .btn-secondary-outline { margin-top: 1rem; }
        .alignleft { float: left; margin: 0 1.4rem 1rem 0; }
        .alignright { float: right; margin: 0 0 1rem 1.4rem; }
        .aligncenter { display: block; margin-inline: auto; }

        .pagination { margin-top: 3rem; }
        .pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
        .pagination .page-numbers { min-width: 44px; padding: .5rem 1rem; text-align: center; border-radius: var(--radius-full); background: var(--bg-pure-white); color: var(--color-primary-dark); font-weight: 700; box-shadow: var(--shadow-subtle); }
        .pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--color-primary-blue); color: #fff; }

        .search-form { display: flex; gap: .6rem; max-width: 520px; margin-top: 1.5rem; }
        .search-form label { flex: 1; }
        .search-form .search-field { width: 100%; padding: .8rem 1.2rem; border: 1px solid rgba(15,82,186,.25); border-radius: var(--radius-full); font: inherit; background: #fff; }
        .search-form .search-submit { padding: .8rem 1.6rem; border: 0; border-radius: var(--radius-full); background: var(--color-primary-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }


        /* --- القوائم المنسدلة: مستوى فرعي واحد (ADR-022) --- */
        .nav-item { position: relative; display: flex; align-items: center; gap: .1rem; }
        .sub-toggle { display: flex; align-items: center; background: none; border: 0; padding: .4rem .25rem; cursor: pointer; color: var(--text-main); }
        .sub-toggle svg { transition: transform .25s; }
        .nav-item.open > .sub-toggle svg { transform: rotate(180deg); }
        .sub-menu { position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 1100; min-width: 250px; max-width: 330px;
            display: flex; flex-direction: column; padding: .6rem; background: #fff; border: 1px solid rgba(15,82,186,.1);
            border-radius: var(--radius-md); box-shadow: var(--shadow-hover);
            opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
        .sub-menu::before { content: ''; position: absolute; top: -14px; inset-inline: 0; height: 14px; }
        .nav-item.has-sub:hover > .sub-menu, .nav-item.has-sub:focus-within > .sub-menu, .nav-item.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
        .sub-link { padding: .65rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; line-height: 1.6; color: var(--text-main); }
        .sub-link:hover, .sub-link:focus-visible { background: rgba(15,82,186,.06); color: var(--color-primary-blue); }
        .sub-link[aria-current="page"] { color: var(--color-emerald-deep); }
        /* داخل «المزيد»: الفروع تظهر مباشرة تحت أبيها */
        .nav-more-menu .nav-item { display: block; }
        .nav-more-menu .sub-toggle { display: none; }
        .nav-more-menu .sub-menu { position: static; min-width: 0; max-width: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 1rem .4rem; }
        .nav-more-menu .sub-menu::before { display: none; }
        @media (max-width: 1100px) {
            .main-nav .nav-item { width: 100%; max-width: 420px; flex-wrap: wrap; justify-content: center; border-bottom: 1px solid rgba(15,82,186,.07); }
            .main-nav .nav-item > .nav-link { flex: 1; width: auto; max-width: none; border-bottom: 0; }
            .main-nav .sub-toggle { padding: .9rem 1rem; }
            .main-nav .sub-menu { position: static; display: none; width: 100%; min-width: 0; max-width: none; padding: 0 0 .6rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
            .main-nav .sub-menu::before { display: none; }
            .main-nav .nav-item.open > .sub-menu { display: flex; }
            .main-nav .sub-link { text-align: center; }
        }

        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
        }

        /* ==========================================================================
           16. صفحة التواصل، الحسابات البنكية، شريط الشركاء (ADR-023)
           ========================================================================== */
        .contact-cards { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; }
        .contact-card { background: var(--bg-pure-white); border: 1px solid rgba(15,82,186,.06); border-radius: var(--radius-lg); padding: 1.6rem 1.2rem; text-align: center; box-shadow: var(--shadow-subtle); overflow-wrap: anywhere; }
        .contact-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: .8rem; border-radius: 50%; background: rgba(15,82,186,.08); color: var(--color-primary-blue); }
        .contact-card h2 { font-size: 1rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: .5rem; }
        .contact-card p, .contact-card a { display: block; font-size: .92rem; line-height: 1.8; color: var(--text-muted); }
        .contact-card a { font-weight: 700; color: var(--color-primary-blue); }
        .contact-card a:hover { color: var(--color-emerald-deep); }
        .contact-content { margin-bottom: 2.5rem; }

        .wa-panel { max-width: 720px; margin: 0 auto 2.5rem; padding: 2.2rem; background: var(--bg-pure-white); border: 1px solid rgba(15,82,186,.06); border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); }
        .wa-panel h2 { font-size: 1.5rem; font-weight: 900; color: var(--color-primary-dark); text-align: center; }
        .wa-note { margin-top: .6rem; text-align: center; color: var(--text-muted); line-height: 1.8; }
        .wa-recipient { display: flex; align-items: center; justify-content: center; gap: .5rem; width: fit-content; max-width: 100%; margin: 1rem auto 0; padding: .5rem 1.1rem; border-radius: var(--radius-full); background: rgba(37,211,102,.1); color: #137a3c; font-size: .9rem; }
        .wa-recipient svg { flex: none; fill: currentColor; }
        .wa-form { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
        .wa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
        .wa-field { display: grid; gap: .4rem; }
        .wa-field label { font-weight: 800; font-size: .9rem; color: var(--color-primary-dark); }
        .wa-field label span { color: #c0392b; }
        .wa-field input, .wa-field select, .wa-field textarea { width: 100%; padding: .85rem 1rem; border: 1px solid rgba(15,82,186,.18); border-radius: var(--radius-md, 12px); background: #f8fbff; font: inherit; color: var(--color-primary-dark); }
        .wa-field textarea { resize: vertical; min-height: 130px; }
        .wa-field input:focus-visible, .wa-field select:focus-visible, .wa-field textarea:focus-visible { outline-offset: 1px; border-color: var(--color-primary-blue); background: #fff; }
        .wa-field .is-invalid { border-color: #c0392b; }
        .wa-submit { justify-content: center; margin-top: .3rem; padding: .95rem 1.3rem; font-size: 1rem; border: 0; cursor: pointer; font-family: inherit; }
        .wa-hint { text-align: center; font-size: .82rem; color: var(--text-muted); line-height: 1.8; }
        .contact-map { justify-content: center; margin: 0; }
        @media (max-width: 600px) { .wa-row { grid-template-columns: 1fr; } .wa-panel { padding: 1.5rem 1.1rem; } }

        .bank-content, .bank-note { max-width: 860px; margin-inline: auto; }
        .bank-content { margin-bottom: 2rem; }
        .bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
        .bank-card { background: var(--bg-pure-white); border: 1px solid rgba(15,82,186,.06); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-subtle); }
        .bank-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: .4rem; border-bottom: 1px solid rgba(15,82,186,.08); }
        .bank-head h2 { font-size: 1.15rem; font-weight: 800; color: var(--color-primary-dark); }
        .bank-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 56px; }
        .bank-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
        .bank-data { margin: 0; }
        .bank-data dt { font-size: .8rem; color: var(--text-muted); margin-top: .9rem; }
        .bank-data dd { margin: .2rem 0 0; font-weight: 700; color: var(--color-primary-dark); }
        .copy-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
        .copy-value { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .95rem; letter-spacing: .02em; overflow-wrap: anywhere; }
        .copy-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border: 1px solid rgba(15,82,186,.25); border-radius: var(--radius-full); background: transparent; color: var(--color-primary-blue); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: background .25s, color .25s; }
        .copy-btn svg { fill: currentColor; }
        .copy-btn:hover { background: var(--color-primary-blue); color: #fff; }
        .copy-btn.is-done { background: var(--color-emerald-deep); border-color: var(--color-emerald-deep); color: #fff; }
        .bank-note { margin-top: 2rem; padding: 1rem 1.3rem; border-radius: var(--radius-md, 12px); background: rgba(15,82,186,.06); color: var(--color-primary-dark); line-height: 1.9; text-align: center; }

        .partners-section { padding: 3.5rem 0; }
        .partners-title { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 1.8rem; }
        .partners-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem; }
        .partners-row li { display: flex; }
        .partners-row li > a, .partners-row li > img { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 120px; height: 120px; padding: 14px; background: #fff; border: 1px solid rgba(15,82,186,.08); border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); transition: transform .3s; }
        .partners-row li > img { object-fit: contain; }
        .partners-row li > a img { width: 100%; height: 100%; object-fit: contain; }
        .partners-row a:hover, .partners-row a:focus-visible { transform: translateY(-3px); }
        @media (max-width: 600px) { .partners-row { gap: 1rem; } .partners-row li > a, .partners-row li > img { width: 96px; height: 96px; padding: 10px; } }

        /* التواصل الاجتماعي: دوائر بإطار (الفوتر على خلفية داكنة، is-light على فاتحة) */
        .social-links { margin-top: 1.4rem; color: #fff; }
        .social-title { margin-bottom: .6rem; font-size: .9rem; font-weight: 700; color: var(--color-gold-light); }
        .social-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
        .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid currentColor; border-radius: 50%; color: inherit; transition: background .3s, color .3s, transform .3s; }
        .social-links a:hover, .social-links a:focus-visible { background: #fff; color: var(--color-primary-dark); transform: translateY(-3px); }
        .social-links.is-light { margin: 0 auto 2.5rem; text-align: center; color: var(--color-primary-blue); }
        .social-links.is-light .social-title { color: var(--color-primary-dark); font-size: 1rem; font-weight: 800; }
        .social-links.is-light ul { justify-content: center; }
        .social-links.is-light a:hover, .social-links.is-light a:focus-visible { background: var(--color-primary-blue); color: #fff; }
        /* الفوتر يفرض ألوان روابطه بـ !important؛ هذا يعيد وضوح الأيقونة عند التمرير */
        .site-footer .social-links a:hover, .site-footer .social-links a:focus-visible { background: #fff; color: var(--color-primary-dark) !important; }

        /* نموذج كلمة المرور (الصفحات والمقالات المحمية): بطاقة بيضاء تتوسط الصفحة */
        .post-password-form { max-width: 460px; margin: 2rem auto; padding: 2rem 1.75rem; background: #fff; border: 1px solid rgba(15,82,186,.1); border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); text-align: center; }
        .post-password-form p { margin: 0 0 1rem; color: var(--color-primary-dark); line-height: 1.8; }
        .post-password-form p:last-child { margin-bottom: 0; }
        .post-password-form label { display: block; margin-bottom: .9rem; font-weight: 700; }
        .post-password-form input[type="password"] { display: block; width: 100%; margin-top: .45rem; padding: .8rem 1rem; font: inherit; color: inherit; background: #fff; border: 2px solid rgba(15,82,186,.18); border-radius: var(--radius-sm); direction: ltr; text-align: center; transition: border-color .25s, box-shadow .25s; }
        .post-password-form input[type="password"]:focus { outline: none; border-color: var(--color-primary-blue); box-shadow: 0 0 0 4px rgba(15,82,186,.12); }
        .post-password-form input[type="submit"] { padding: .8rem 2.2rem; font: inherit; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(135deg, #00674F, #1E8E5A); border: 0; border-radius: var(--radius-full); box-shadow: 0 6px 20px rgba(0,103,79,.3); transition: transform .25s, box-shadow .25s; }
        .post-password-form input[type="submit"]:hover, .post-password-form input[type="submit"]:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,103,79,.4); outline: none; }

        /* خريطة جوجل المضمّنة في صفحة التواصل (اختيارية) */
        .contact-map-embed { margin: 0 0 1.5rem; height: 400px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-subtle); border: 1px solid rgba(15,82,186,.08); background: #E8EEF7; }
        .contact-map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
        @media (max-width: 600px) { .contact-map-embed { height: 300px; } }
        /* رابط السطر الإضافي في أسفل الفوتر */
        .footer-bottom a { text-decoration: underline; text-underline-offset: 3px; transition: opacity .25s; }
        .footer-bottom a:hover, .footer-bottom a:focus-visible { opacity: .8; }
