/* الألوان المستخدمة: 
            #121212 - أسود داكن للنص
            #3498db - أزرق للعناوين والروابط (تم استبدله بالأزرق الداكن #045461 للـ Branding)
            #045461 - أزرق داكن (لون هوية جهات - مستوحى من اللوجو) **NEW**
            #73ae43 - أخضر هوية (مستوحى من اللوجو) **NEW**
            #07bc0c - أخضر فاتح (لشرح الصور والنقاط الإيجابية)
            #f1c40f - أصفر (للتنبيهات والتحذيرات)
        */
        body {
            /* تطبيق خط Cairo على كامل المستند */
            font-family: 'Cairo', sans-serif;
            font-weight: 500; 
            line-height: 1.8;
            margin: 0;
            padding: 0; 
            background-color: #f0f3f7;
            color: #121212;
        }

        /* 💥 التعديل الأول: محاذاة النص (Justification) 💥 */
        /* محاذاة النص لكامل المحتوى لتحقيق تساوي الحواف */
        .container p,
        .container li,
        .feature-description {
            text-align: justify;
        }
        
        /* 1. Mobile Menu Toggle Button (New - مخفي على الديسكتوب) */
.mobile-menu-toggle {
    display: none; /* يتم التحكم به في الميديا كويري */
    position: fixed;
    top: 20px; /* تم إضافة 'px' */
    left: 20px; /* 💥 جديد: لتثبيته في اليمين */
    z-index: 1001;
    background-color: #045461;
    color: white;
    
    /* 💥 جديد: تحديد حجم ثابت للأيقونة فقط */
    width: 40px;
    height: 37px;
    padding: 0; /* إلغاء البادينج القديم */

    /* 💥 جديد: لتوسيط الأيقونة داخل الزر */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 💥 جديد: لإخفاء كلمة "الفهرس" النصية */
    font-size: 1.2em; 
      text-align: center; 
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 15px;
    /* تمت إزالة الخصائص غير الضرورية للزر الثابت */
  
      font-weight: 700;
}

        
        /* 2. تصميم محيط الصفحة العام (للفهرس والمحتوى) */
        .content-wrapper {
            display: flex;
            max-width: 1800px; 
            margin: 0 auto;
            padding: 30px 20px;
            direction: rtl; /* الافتراضي عربي */
        }
        
        /* 3. تصميم لوحة الفهرس الجانبية (غير ثابتة) */
        #toc-sidebar {
           
            width: 259px;
            margin-left: 12px; 
            background-color: #ffffff;
            padding: 20px;
            border-radius: 18px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            flex-shrink: 0; 
            
            /* تفعيل التمرير المنفصل والسلاسة */
            
            overflow-y: auto; 
            scroll-behavior: smooth; 
            transition: width 0.3s ease-in-out, margin-left 0.3s ease-in-out, padding 0.3s ease-in-out;
        }
        
        /* 💥 تحسين تصميم شريط التمرير (Webkit Browsers) 💥 */
        #toc-sidebar::-webkit-scrollbar {
            width: 10px; 
        }

        #toc-sidebar::-webkit-scrollbar-thumb {
            /* استخدام لون الهوية الأساسي */
            background-color: #045461; 
            border-radius: 5px; 
            border: 2px solid #ffffff; 
        }
        
        #toc-sidebar::-webkit-scrollbar-track {
            background: #f7f9fc; 
        }

        .toc-header {
            font-size: 1.3em;
            color: #045461; /* استخدام لون الهوية */
            font-weight: 700;
            margin-bottom: 15px;
            border-bottom: 3px solid #e0e0e0;
            padding-bottom: 10px;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        /* New Styles for Language Switcher (Flag Icons) */
        .lang-switcher {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-left: 10px; /* فاصل عن Toggle */
        }

        .lang-switcher img {
            width: 24px;
            height: 24px;
            cursor: pointer;
            border-radius: 50%;
            border: 2px solid transparent;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s, opacity 0.2s, border-color 0.2s;
        }

        .lang-switcher img:hover {
            transform: scale(1.1);
            opacity: 0.9;
        }
        
        /* Style for the active/selected flag */
        .lang-switcher img.active {
            border-color: #73ae43; /* لون الهوية الثانوي */
        }

        
        /* NEW: Desktop Toggle Icon Style */
        #desktop-toc-toggle {
            display: none; /* Controlled by media query */
            cursor: pointer;
            color: #73ae43;
            font-size: 0.8em;
            transition: transform 0.3s, color 0.3s;
            margin-right: 10px;
        }
        /* LTR Styles for English */
.content-wrapper.en {
    direction: ltr;
}

.content-wrapper.en #toc-sidebar {
    margin-left: 0;
    margin-right: 12px;
}

.content-wrapper.en .toc-list > li > a {
    padding-left: 10px;
    padding-right: 45px;
    border-right: none;
    border-left: 5px solid #045461; /* الحدود الجانبية لـ LTR */
}

/* 💥 التعديل الجديد: عكس الأيقونة أفقياً في وضع LTR 💥 */
.content-wrapper.en #desktop-toc-toggle {
    /* هذا يعكس الأيقونة بشكل عام لتعمل في LTR:
       - fas fa-bars (الحالة المبدئية) يصبح fas fa-bars (الخارج)
       - fas fa-bars (حالة التصغير) يصبح fas fa-bars (الداخل - المطلوب) */
    transform: scaleX(-1); 
    transition: transform 0.3s, color 0.3s; 
}

.content-wrapper.en .toc-list > li > a::after {
    content: '\f053'; /* سهم لليسار (مغلق - Chevron Left) */
    right: 10px;
    left: auto;
}

.content-wrapper.en .toc-list > li:not(.collapsed) > a::after {
    transform: translateY(-50%) rotate(-90deg); /* تدوير لأسفل في LTR */
}

.content-wrapper.en .toc-list > li > a i.fas:first-child {
    margin-right: 10px;
    margin-left: 0;
}

.content-wrapper.en .toc-list > li > ul {
    padding-left: 15px; /* مسافة بادئة */
    padding-right: 0; 
}

.content-wrapper.en .toc-list ul ul li a {
    padding-left: 15px;
    padding-right: 0;
    border-right: none;
    border-left: 2px solid #ccc;
}

.content-wrapper.en .toc-list ul li a:hover,
.content-wrapper.en .toc-list ul ul li a:hover {
    border-right: none;
    border-left: 2px solid #045461;
}

.content-wrapper.en .toc-list > li > a.active { 
    border-right-color: transparent;
    border-left-color: #73ae43; 
}

.content-wrapper.en .toc-list ul li a.active,
.content-wrapper.en .toc-list ul ul li a.active {
    border-right: none;
    border-left: 2px solid #045461;
}

.content-wrapper.en .highlight-pulse {
    border-right: none !important; 
    border-left: 5px solid #73ae43 !important; 
    margin-right: 0; 
    margin-left: -10px; 
}

.content-wrapper.en .feature-row {
    flex-direction: row; /* تم التعديل: النص يسار، الصورة يمين */
}

.content-wrapper.en .feature-description {
    padding-right: 0;
    padding-left: 0;
}

.content-wrapper.en .feature-image {
    padding-right: 20px;
    padding-left: 10px;
}

.content-wrapper.en ul {
    padding-left: 35px;
    padding-right: 0;
}

.content-wrapper.en h2 {
    border-right: none;
    border-left: 10px solid #73ae43; /* حدود العناوين لـ LTR */
}

.content-wrapper.en .mobile-menu-toggle {
     right: 20px;
     left: auto;
}

.content-wrapper.en #scrollToTopBtn {
    right: 25px; 
    left: auto;
}


/* * ===============================================
 * 💥 تعديلات الموبايل (اللوحة الجانبية) 💥
 * ===============================================
 */
@media (max-width: 1200px) {
    /* ... محتوى سابق ... */
}

@media (min-width: 1201px) {
    #desktop-toc-toggle {
        display: block; 
    }
    
    #toc-sidebar.minimized {
        width: 70px; /* Collapsed width (icon-only) */
        margin-left: 10px;
        overflow: hidden; 
        padding: 20px 10px; 
    }
    
    /* Hide the main section collapse arrow when sidebar is minimized */
    #toc-sidebar.minimized .toc-list > li > a::after {
        display: none; 
    }
    
    /* Center the icon and remove padding that was for the arrow */
    #toc-sidebar.minimized .toc-list > li > a {
        padding: 10px; 
        justify-content: center;
        border-right: none;
        text-align: center;
        border-left: none !important; /* لضمان العمل في وضع LTR */
    }
    
    /* Hide the main link text when minimized */
    #toc-sidebar.minimized .toc-list > li > a span {
        display: none; 
    }
    
    /* Ensure the main icon is visible and centered */
     #toc-sidebar.minimized .toc-list > li > a i.fas:first-child {
        margin: 0;
    }

    /* Hide nested lists and links when minimized */
    #toc-sidebar.minimized .toc-list ul {
        display: none;
    }
    
    /* Rotate the main toggle icon when minimized (fa-bars is used now) */
    #toc-sidebar.minimized #desktop-toc-toggle {
        transform: none; /* No rotation for fa-bars */
        color: #045461; 
        margin: 0;
    }
    
    /* 💥 التعديل الحاسم: Override transform: none for LTR minimized to keep the flip 💥 */
    .content-wrapper.en #toc-sidebar.minimized #desktop-toc-toggle {
        transform: scaleX(-1); /* يحتفظ بالعكس ليتجه السهم لليسار (للداخل) */
    }

    /* اخفاء محول اللغة في حالة التصغير */
    #toc-sidebar.minimized .lang-switcher {
         display: none !important;
    }
    
    /* تغيير ترتيب عناصر الهيدر عند التصغير */
    #toc-sidebar.minimized .toc-header {
        flex-direction: column;
        justify-content: center;
    }
    
    /* تثبيت مكان ايقونة الفيديو عند التصغير */
    #toc-sidebar.minimized .toc-header i.fa-video {
        margin-bottom: 10px;
        font-size: 1.5em;
    }
    
    /* تثبيت مكان ايقونة Toggle عند التصغير */
    #toc-sidebar.minimized #desktop-toc-toggle {
         margin-right: 0;
    }
}
        #desktop-toc-toggle:hover {
            color: #045461;
        }
        
        /* NEW: Hide header text when minimized */
        #toc-sidebar.minimized #toc-header-text,
        #toc-sidebar.minimized #toc-search {
            display: none !important;
        }
        
        /* NEW: Minimized State for Desktop */
        @media (min-width: 1201px) {
            #desktop-toc-toggle {
                display: block; 
            }
            
            #toc-sidebar.minimized {
                width: 70px; /* Collapsed width (icon-only) */
                margin-left: 10px;
                overflow: hidden; 
                padding: 20px 10px; 
            }
            
            /* Hide the main section collapse arrow when sidebar is minimized */
            #toc-sidebar.minimized .toc-list > li > a::after {
                display: none; 
            }
            
            /* Center the icon and remove padding that was for the arrow */
            #toc-sidebar.minimized .toc-list > li > a {
                padding: 10px; 
                justify-content: center;
                border-right: none;
                text-align: center;
                border-left: none !important; /* لضمان العمل في وضع LTR */
            }
            
            /* Hide the main link text when minimized */
            #toc-sidebar.minimized .toc-list > li > a span {
                display: none; 
            }
            
            /* Ensure the main icon is visible and centered */
             #toc-sidebar.minimized .toc-list > li > a i.fas:first-child {
                margin: 0;
            }

            /* Hide nested lists and links when minimized */
            #toc-sidebar.minimized .toc-list ul {
                display: none;
            }
            
            /* Rotate the main toggle icon when minimized (fa-bars is used now) */
            #toc-sidebar.minimized #desktop-toc-toggle {
                transform: none; /* No rotation for fa-bars */
                color: #045461; 
                margin: 0;
            }
            
            /* اخفاء محول اللغة في حالة التصغير */
            #toc-sidebar.minimized .lang-switcher {
                 display: none !important;
            }
            
            /* تغيير ترتيب عناصر الهيدر عند التصغير */
            #toc-sidebar.minimized .toc-header {
                flex-direction: column;
                justify-content: center;
            }
            
            /* تثبيت مكان ايقونة الفيديو عند التصغير */
            #toc-sidebar.minimized .toc-header i.fa-video {
                margin-bottom: 10px;
                font-size: 1em;
            }
            
            /* تثبيت مكان ايقونة Toggle عند التصغير */
            #toc-sidebar.minimized #desktop-toc-toggle {
                 margin-right: 0;
            }
        }
        
        .toc-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        .toc-list > li {
            margin-bottom: 5px;
        }

        /* تنسيق المستوى الأول (H2) - روابط الأقسام الرئيسية */
        .toc-list > li > a {
            text-decoration: none;
            color: #121212;
            display: flex; /* Changed to flex */
            align-items: center;
            padding: 8px 10px;
            /* ** تم زيادة الهامش الأيسر (padding-left) لفسح المجال للأيقونة ** */
            padding-left: 45px; 
            border-radius: 10px;
            transition: background-color 0.2s, color 0.2s;
            font-weight: 650;
            font-size: 0.92em; /* تم تصغير حجم الخط بناءً على طلب المستخدم */
            background-color: #f7f9fc;
            /* استخدام لون الهوية للحد الجانبي */
            border-right: 5px solid #045461; 
            position: relative;
        }
        
        /* أيقونة الفتح/الإغلاق (Collapse Icon) - تم تغيير لون السهم إلى الأسود الداكن */
        .toc-list > li > a::after {
            font-family: 'Font Awesome 6 Free';
            content: '\f054'; /* سهم لليمين (مغلق - Chevron Right) */
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%) rotate(0deg);
            transition: transform 0.3s ease;
            font-weight: 900; 
            color: #73ae43; /* تغيير اللون إلى الأسود الداكن */
            cursor: pointer; /* مؤشر للنقر */
            z-index: 5;
            font-size: 0.9em;
            width: 30px; /* منطقة النقر للسهم فقط */
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        
        .toc-list > li > a i.fas:first-child {
            margin-left: 10px;
        }

        /* حالة الإغلاق: لا دوران */
        .toc-list > li.collapsed > a::after {
            transform: translateY(-50%) rotate(0deg); 
        }
        
        /* حالة الفتح: تدوير 90 درجة ليصبح سهم للأسفل (Chevron Down) */
        .toc-list > li:not(.collapsed) > a::after {
            transform: translateY(-50%) rotate(90deg); 
        }

        /* تنسيق المستوى الثاني والثالث (القوائم الفرعية) */
        .toc-list > li > ul {
            /* ** تم زيادة القيمة لضمان عدم انقطاع القوائم الطويلة ** */
            max-height: 4000px; 
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            list-style-type: none;
            padding-right: 15px; /* مسافة بادئة */
            margin-top: 5px;
            margin-bottom: 15px;
        }
        
        /* إغلاق القائمة الفرعية */
        .toc-list > li.collapsed > ul {
            max-height: 0; 
            margin-top: 0;
            margin-bottom: 0;
        }

        .toc-list ul li a {
            font-weight: 600; /* المستوى الثاني بخط سميك نسبيا */
            font-size: 0.95em;
            color: #5a6268;
            padding: 4px 5px;
            display: block;
            border-radius: 6px;
            transition: background-color 0.2s, color 0.2s, border-right 0.2s;
        }

        /* تنسيق المستوى الثالث (نقاط داخلية) */
        .toc-list ul ul li a {
            font-weight: 400; /* خط عادي */
            font-size: 0.9em;
            color: #888;
            padding-right: 15px; 
            border-right: 2px solid #ccc; 
        }
        
        /* 1. تأثير التحويم لروابط الفهرس الداخلية (مطلب جديد) */
        .toc-list ul li a:hover,
        .toc-list ul ul li a:hover {
            background-color: #e6f0ff; /* Light blue hover */
            color: #045461; /* Blue text color on hover (لون الهوية) */
            border-right: 2px solid #045461; /* Subtle border change (لون الهوية) */
        }
        
        /* 5. تصميم الـ Scroll Spy النشط (الرئيسي) */
        .toc-list > li > a:hover:not(.active),
        .toc-list > li > a.active { 
            background-color: #045461; /* استخدام لون الهوية */
            color: #ffffff;
            border-right-color: #73ae43; /* استخدام لون الهوية الثانوي */
            box-shadow: 0 2px 5px rgba(4, 84, 97, 0.4); /* ظل بلون الهوية */
        }
        /* تلوين الروابط النشطة للمستويات الأدنى (الداخلي) */
        .toc-list ul li a.active,
        .toc-list ul ul li a.active {
            background-color: #e8f0fe;
            color: #045461;
            font-weight: 700;
            border-right: 2px solid #045461;
        }
        
        /* 💥 نمط التمييز عند النقر (Solid Highlight) 💥 */
        .highlight-pulse {
            /* ** تم التعديل ليكون تمييزًا ثابتًا وواضحًا بدلاً من نبض ** */
            background-color: #e8f0fe !important; /* تظليل خفيف للعنصر بالكامل */
            border-right: 5px solid #73ae43 !important; /* شريط أخضر سميك للتمييز (لون الهوية الثانوي) */
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(4, 84, 97, 0.1) !important; 
            padding: 10px !important; /* زيادة التباعد لتمييز أوضح */
            margin-right: -10px; /* تعويض لليمين */
            margin-left: -10px; /* تعويض لليسار */
            transition: all 0.2s ease-in-out; 
        }
        /* تلوين الـ strong داخلياً */
        .highlight-pulse strong {
            text-shadow: 0 0 1px #045461;
            color: #045461 !important; 
        }


        /* 4. تعديل تصميم المحتوى الرئيسي */
        .container {
            flex-grow: 1; 
            max-width: 1600px; 
            margin: 0; 
            background-color: #ffffff;
            padding: 50px;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        }
        
        /* بقية الستايلات الأصلية */
        .logo-container {
            text-align: center;
            margin-bottom: 2px;
        }
        .logo-container img {
            max-width: 126px;
            height: auto;
        }
        h1, h2, h3 {
            font-family: 'Cairo', sans-serif;
            color: #045461; 
            margin-top: 40px;
            padding-bottom: 10px;
            font-weight: 700;
            /* إضافة هامش علوي إضافي لتجنب تغطية العنوان عند الانتقال التفاعلي */
            padding-top: 60px; 
            margin-top: -60px;
        }
        h1 {
            border-bottom: 6px solid #045461; /* استخدام لون الهوية */
            color: #045461;
            text-align: center;
            font-size: 1.2em;
            margin-bottom: 40px;
        }
        h2 {
            font-size: 1.1em;
            color: #045461; /* استخدام لون الهوية */
            background-color: rgba(4, 84, 97, 0.1); /* تظليل خفيف بلون الهوية */
            padding: 18px;
            border-radius: 12px;
            border-right: 10px solid #73ae43; /* استخدام لون الهوية الثانوي */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        h3 {
            font-size: 1.0em;
            color: #73ae43; /* استخدام لون الهوية الثانوي */
            border-bottom: 2px solid #e0e0e0;
            padding-bottom: 8px;
            margin-top: 35px;
        }
        .feature-row {
            display: flex;
            align-items: flex-start;
            margin-bottom: 50px;
            padding: 30px;
            border: 1px solid #cce5ff; 
            border-radius: 12px;
            background-color: #f7f9fc;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            flex-direction: row; 
            gap: 40px; /* NEW: إضافة مسافة فاصلة بين النص والصور */
        }
        /* 4. تحسين مظهر الصور (مطلب جديد) - تصميم الحاوية الخارجية */
        .feature-image {
            flex: 1.1; 
            /* ** تم تقليل البادينغ والإطار والظل ** */
            padding: 10px; 
            padding-left: 20px; 
            text-align: center;
            background-color: #fdfffd; 
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* ظل خفيف جداً */
            border: 1px solid #e0e0e0; /* إطار أرق */
        }
        /* النص الشارح الذي يظهر تحت الصورة في الموبايل */
        .feature-image .mobile-description-text {
            display: none; /* مخفي في الديسكتوب */
            text-align: justify;
            padding: 15px;
            margin-top: 10px;
            margin-bottom: 10px;
            border-radius: 8px;
            background-color: #e8f0fe;
            border-right: 5px solid #045461;
            font-size: 0.95em;
        }

        .feature-description {
            flex: 3; 
            padding-left: 0; 
            padding-right: 0; /* تم إزالة البادينج الأيمن */
            border-right: none !important; /* تم إزالة الفاصل العمودي */
            border-left: none; 
        }
        .feature-image img {
            max-width: 100%;
            height: auto;
            border: 2px solid #e5eced; /* إطار داخلي سميك بلون فاتح */
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* ظل داخلي خفيف */
            margin-bottom: 20px; /* ** تم التعديل: إضافة فاصل بين الصور ** */
            transition: transform 0.3s ease, box-shadow 0.3s; 
        }
        .feature-image img:hover {
            transform: scale(1.0);
            box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2); /* ظل أوضح عند التحويم */
        }
        ul {
            padding-right: 35px;
            list-style-type: disc;
        }
        li {
            margin-bottom: 12px;
        }
        .image-caption {
            font-size: 0.9em;
            color: #5a6268; 
            margin-bottom: 20px;
            display: block;
            font-weight: 600;
        }
        strong {
            color: #045461; /* استخدام لون الهوية */
            font-weight: 700; 
        }
        .highlight-green {
            color: #07bc0c; 
            font-weight: 600;
        }
        .highlight-yellow {
            color: #f1c40f; 
            font-weight: 600;
        }
        
        /* NEW: تخصيص ألوان القسم 7 - العناوين بلون الهوية الأساسي والتفاصيل بلون الهوية الثانوي */
        .container ol:last-of-type li {
            color: #5e6265; /* أخضر - لون التفاصيل */
        }

        .container ol:last-of-type li strong {
            color: #348ac9; /* أزرق داكن - لون العنوان */
        }


        /* LTR Styles for English */
        .content-wrapper.en {
            direction: ltr;
        }

        .content-wrapper.en #toc-sidebar {
            margin-left: 0;
            margin-right: 12px;
        }

        .content-wrapper.en .toc-list > li > a {
            padding-left: 10px;
            padding-right: 45px;
            border-right: none;
            border-left: 5px solid #045461; /* الحدود الجانبية لـ LTR */
        }

        .content-wrapper.en .toc-list > li > a::after {
            content: '\f053'; /* سهم لليسار (مغلق - Chevron Left) */
            right: 10px;
            left: auto;
        }

        .content-wrapper.en .toc-list > li:not(.collapsed) > a::after {
            transform: translateY(-50%) rotate(-90deg); /* تدوير لأسفل في LTR */
        }
        
        .content-wrapper.en .toc-list > li > a i.fas:first-child {
            margin-right: 10px;
            margin-left: 0;
        }

        .content-wrapper.en .toc-list > li > ul {
            padding-left: 15px; /* مسافة بادئة */
            padding-right: 0; 
        }

        .content-wrapper.en .toc-list ul ul li a {
            padding-left: 15px;
            padding-right: 0;
            border-right: none;
            border-left: 2px solid #ccc;
        }
        
        .content-wrapper.en .toc-list ul li a:hover,
        .content-wrapper.en .toc-list ul ul li a:hover {
            border-right: none;
            border-left: 2px solid #045461;
        }
        
        .content-wrapper.en .toc-list > li > a.active { 
            border-right-color: transparent;
            border-left-color: #73ae43; 
        }

        .content-wrapper.en .toc-list ul li a.active,
        .content-wrapper.en .toc-list ul ul li a.active {
            border-right: none;
            border-left: 2px solid #045461;
        }
        
        .content-wrapper.en .highlight-pulse {
            border-right: none !important; 
            border-left: 5px solid #73ae43 !important; 
            margin-right: 0; 
            margin-left: -10px; 
        }
        
        .content-wrapper.en .feature-row {
            flex-direction: row; /* تم التعديل: لتحقيق النص يسار والصورة يمين */
        }

        .content-wrapper.en .feature-description {
            padding-right: 0;
            padding-left: 0;
        }

        .content-wrapper.en .feature-image {
            padding-right: 20px;
            padding-left: 10px;
        }

        .content-wrapper.en ul {
            padding-left: 0px;
            padding-right: 0;
        }
        
        .content-wrapper.en h2 {
            border-right: none;
            border-left: 10px solid #73ae43; /* حدود العناوين لـ LTR */
        }

        .content-wrapper.en .mobile-menu-toggle {
             right: 20px;
             left: auto;
        }

        .content-wrapper.en #scrollToTopBtn {
            right: 25px; 
            left: auto;
        }


        /* * ===============================================
         * 💥 تعديلات الموبايل (اللوحة الجانبية) 💥
         * ===============================================
         */
        @media (max-width: 1200px) {
            .content-wrapper {
                flex-direction: column; 
                padding: 20px;
            }
            
            /* إظهار زر التبديل */
            .mobile-menu-toggle {
                display: flex; /* ليتوسط الأيقونة */
            }
            
            /* إخفاء زر تبديل الديسكتوب في الموبايل */
            #desktop-toc-toggle {
                display: none !important;
            }

            /* 💥 START: تعديل الفهرس ليصبح لوحة جانبية 💥 */
            #toc-sidebar {
                position: fixed; /* تغيير إلى ثابت ليظهر كلوحة جانبية */
                width: 260px; /* تحديد عرض اللوحة الجانبية */
                max-width: 80vw; /* حد أقصى للعرض */
                height: 100vh; /* ارتفاع كامل */
                top: 0;
                right: 0; /* البدء من اليمين (RTL) */
                z-index: 10000;
                order: -1; 
                /* إخفاء اللوحة بتحريكها خارج الشاشة */
                transform: translateX(100%); 
                overflow-y: auto; /* السماح بالتمرير الداخلي فقط */
                transition: transform 0.4s ease-in-out; /* حركة انزلاق */
                box-shadow: none;
                border-radius: 0; /* إزالة الحواف الدائرية */
                padding: 20px; /* إعادة البادينج */
                margin-bottom: 0;
                margin-right: 0;
                background-color: #ffffff; /* التأكد من وجود خلفية */
            }
            
            /* حالة الفتح: إظهار اللوحة الجانبية */
            #toc-sidebar.open {
                /* إظهار اللوحة بإعادتها لمكانها الأصلي */
                transform: translateX(0); 
                padding: 20px;
                margin-bottom: 0; /* إزالة الهامش السفلي */
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2); /* ظل على اليسار */
                
                /* إزالة الخصائص القديمة */
                max-height: 100vh; 
            }
            /* 💥 END: تعديل الفهرس 💥 */
            
            /* LTR Mobile */
            .content-wrapper.en #toc-sidebar {
                right: auto;
                left: 0; /* البدء من اليسار (LTR) */
                transform: translateX(-100%); 
                box-shadow: none;
            }

            .content-wrapper.en #toc-sidebar.open {
                transform: translateX(0); 
                box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2); /* ظل على اليمين */
            }


            .container {
                padding: 20px;
                box-shadow: none; 
            }
            
            /* 💥 التعديل الحاسم لحل المشكلة الأولى: عكس ترتيب الصورة والنص 💥 */
            .feature-row {
                /* الصورة أولاً ثم النص أسفلها */
                flex-direction: column-reverse; 
                gap: 20px; 
                padding: 20px 10px;
            }
            .feature-image {
                padding-left: 10px; 
            }

            /* إظهار النص الشارح تحت الصورة في الموبايل */
            .feature-image .mobile-description-text {
                /* ⚠️ تم التعديل: إخفاء النص المكرر ⚠️ */
                display: none; 
            }
            
            /* إخفاء القائمة الأصلية التي تحتوي على النص في وضع الموبايل */
            .feature-description ol {
                /* ⚠️ تم التعديل: إظهار القائمة الكاملة ذات النقاط الفرعية ⚠️ */
                display: block;
            }
            
            /* LTR Mobile */
            .content-wrapper.en .feature-row {
                 flex-direction: column-reverse; 
            }
        }
        
        @media (min-width: 1201px) {
            /* إخفاء زر التبديل على الديسكتوب */
            .mobile-menu-toggle {
                display: none !important; 
            }
            /* التأكد من إخفاء النص المكرر في الديسكتوب */
            .feature-image .mobile-description-text {
                display: none;
            }
        }


        /* 2. زر العودة للأعلى (Scroll to Top Button) - تم تعديله */
        #scrollToTopBtn {
            display: none; 
            position: fixed; 
            bottom: 30px; 
            left: 25px; /* ثابت على اليسار للغة العربية */
            z-index: 1000; 
            font-size: 1.3em; /* تكبير حجم الأيقونة */
            border: none;
            outline: none;
            background-color: #73ae43; /* استخدام لون الهوية الثانوي لخلفية الزر */
            color: #ffffff; /* لون أبيض للأيقونة */
            cursor: pointer;
            width: 40px; /* تعديل الحجم */
            height: 40px;
            border-radius: 50%; /* جعل الزر دائرياً */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* إضافة ظل واضح */
            transition: background-color 0.3s, opacity 0.3s, transform 0.3s;
            line-height: 50px;
            text-align: center;
            justify-content: center;
            align-items: center;
        }

        #scrollToTopBtn:hover {
            background-color: #045461; /* لون الهوية الأساسي عند التحويم */
            color: #ffffff;
            transform: scale(1.1);
        }