/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {

    /* الأسطر الجديدة لحل المشكلة */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* يجعل الجسم يأخذ كامل ارتفاع الشاشة كأحد أدنى */
}

/* تنسيق شريط التنقل الأساسي (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    /* لون أسود فاخر */
    padding: 15px 5%;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

}

/* تنسيق اللوجو (يسار الـ Navbar حسب طلبك - تم ضبط الاتجاهات برمجياً لتناسب التصميم) */
.nav-logo a {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-logo a span {
    color: #c5a880;
    /* لون ذهبي خفيف يناسب المواقع القانونية الفخمة */
}

/* تنسيق شريط البحث (في المنتصف) */
.nav-search {
    flex: 0 1 450px;
    /* يعطي شريط البحث حجماً متناسقاً في المنتصف */
    margin: 0 20px;
}

.nav-search form {
    display: flex;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 10px 20px;
    padding-left: 45px;
    /* مساحة للأيقونة */
    border: 1px solid #333;
    border-radius: 25px;
    /* حواف دائرية عصرية */
    background-color: #1f1f1f;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* تأثير عند الضغط على صندوق البحث */
.nav-search input:focus {
    outline: none;
    background-color: #2a2a2a;
    border-color: #c5a880;
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.2);
}

.nav-search button {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-search input:focus+button,
.nav-search button:hover {
    color: #c5a880;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1f1f1f;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* تأثيرات الألوان عند تمرير الماوس فوق أيقونات التواصل */
.social-icon.facebook:hover {
    background-color: #1877f2;
    transform: translateY(-3px);
}

.social-icon.whatsapp:hover {
    background-color: #25d366;
    transform: translateY(-3px);
}

/* دعم الشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-search {
        flex: none;
        width: 100%;
        order: 3;
        /* إنزال شريط البحث للأسفل في الهواتف لتوفير مساحة */
        margin: 0;
    }
}

/* #image {
    background-image: url('https://png.pngtree.com/thumb_back/fh260/background/20220326/pngtree-background-manuscript-old-background-photo-image_5293828.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
} */

/* ===================================================
   تنسيق الـ Carousel (السلايدر المتحرك)
=================================================== */

.carousel-container {
    width: 100%;
    height: 80vh;
    /* يأخذ 80% من ارتفاع شاشة المستخدم */
    /* margin-top: 70px; */
    /* مسافة لحماية السلايدر من الاختفاء خلف الـ Navbar المثبتة */
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.carousel-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* الشرايح مخفية افتراضياً */
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

/* الشريحة النشطة */
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* تنسيق الصور داخل السلايدر */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* يضمن عدم تشوه الصورة وتغطيتها للمساحة بالكامل */
    filter: brightness(40%);
    /* تعتيم الصورة بنسبة 60% ليظهر الكلام الأبيض بوضوح */
}

/* تنسيق النصوص فوق الصور (الـ Caption) */
.carousel-caption {
    position: absolute;
    top: 50%;
    right: 10%;
    /* محاذاة لليمين بما أن الموقع عربي */
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 600px;
    z-index: 10;
    animation: slideUp 0.8s ease-out forwards;
}

.carousel-caption h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.carousel-caption h2 span {
    color: #c5a880;
    /* اللون الذهبي المميز للموقع */
}

.carousel-caption p {
    font-size: 18px;
    color: #dddddd;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* تنسيق أزرار السلايدر */
.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c5a880;
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.4);
}

.carousel-btn:hover {
    background-color: #ffffff;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* تأثير حركي لظهور النصوص بشكل جمالي */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* التجاوب مع الهواتف الذكية */
@media (max-width: 768px) {
    .carousel-container {
        height: 60vh;
        /* margin-top: 130px; */
        /* زيادة المسافة لأن الهيدر في الموبايل يأخذ مساحة أكبر */
    }

    .carousel-caption {
        right: 5%;
        left: 5%;
        text-align: center;
        /* تمركز النص في الموبايل لسهولة القراءة */
    }

    .carousel-caption h2 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 15px;
    }
}

/* ===================================================
   تنسيق القائمة المنسدلة الجديدة (3 شرط)
=================================================== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* تنسيق زر الـ 3 شرط */
.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1f1f1f;
    color: #ffffff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* تأثير عند تمرير الماوس فوق زر الـ 3 شرط */
.dropdown-btn:hover {
    background-color: #c5a880;
    /* يتحول للذهبي المتناسق مع الموقع */
    color: #111;
}

/* محتوى القائمة المنسدلة (مخفي الافتراض) */
.dropdown-content {
    display: none;
    position: absolute;
    left: -100px;
    /* تفتح باتجاه اليسار لتبقى داخل الشاشة */
    top: 40px;
    background-color: #1f1f1f;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid #333;
    z-index: 1100;
    overflow: hidden;
}

/* تنسيق الروابط داخل القائمة */
.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: right;
    /* محاذاة النص لليمين بما أنه موقع عربي */
    transition: background 0.2s ease, color 0.2s ease;
}

/* إضافة مسافة بين الأيقونة والكتابة داخل القائمة */
.dropdown-content a i {
    margin-left: 8px;
    color: #c5a880;
    width: 15px;
    text-align: center;
}

/* تغيير الخلفية عند تمرير الماوس فوق روابط القائمة */
.dropdown-content a:hover {
    background-color: #2a2a2a;
    color: #c5a880;
}

/* إظهار القائمة المنسدلة عند تمرير الماوس أو الضغط (CSS Pure) */
.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* تأثير حركي ناعم لظهور القائمة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.footer {
    background-color: #111111;
    /* نفس لون الـ Navbar الأسود الفاخر */
    color: #ffffff;
    padding: 60px 0 20px 0;
    margin-top: auto;
    /* مسافة تفصل محتوى الصفحة عن الـ Footer */
    border-top: 3px solid #c5a880;
    /* خط ذهبي رفيع في الأعلى لربط التصميم */

}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: table;
    /* استخدام display متوافق ومستقر */
    width: 100%;
}

/* تقسيم الأعمدة */
.footer-column {
    display: table-cell;
    width: 25%;
    padding: 0 15px;
    vertical-align: top;
}

/* تنسيق لوجو التذييل */
.footer-logo {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #c5a880;
    /* اللون الذهبي المتناسق مع الهيدر */
}

.footer-description {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
}

/* عناوين الأعمدة */
.column-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* خط صغير تحت عنوان كل عمود */
.column-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #c5a880;
}

/* تنسيق القوائم والروابط */
.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* تأثير حركي عند تمرير الماوس فوق الروابط */
.footer-links a:hover {
    color: #c5a880;
    transform: translateX(-5px);
    /* إزاحة خفيفة جهة اليمين عند الهوفر للتفاعل */
}

/* معلومات الاتصال */
.contact-info {
    list-style: none;
}

.contact-info li {
    display: block;
    margin-bottom: 15px;
    color: #aaaaaa;
    font-size: 14px;
}

.contact-info li i {
    color: #c5a880;
    margin-left: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* أيقونات التواصل الاجتماعي في الفوتر */
.footer-social {
    margin-top: 20px;
}

.f-social-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.f-social-icon:hover {
    transform: translateY(-3px);
}

.f-social-icon.fb:hover {
    background-color: #1877f2;
}

.f-social-icon.wa:hover {
    background-color: #25d366;
}

/* شريط الحقوق السفلي */
.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #222;
}

.footer-bottom p {
    color: #777777;
    font-size: 13px;
}

.footer-bottom a {
    color: #c5a880;
    text-decoration: none;
    font-weight: bold;
}

/* التجاوب مع الهواتف والشاشات الصغيرة */
@media (max-width: 768px) {
    .footer-column {
        display: block;
        width: 100%;
        margin-bottom: 35px;
        padding: 0;
    }

    .footer-container {
        display: block;
    }

    .column-title::after {
        right: 0;
    }

    .footer-links a:hover {
        transform: translateY(-2px);
    }
}

/* تنسيق الخطوط من جوجل (يفضل إدراج خط Cairo أو Almarai في موقعك) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

body {
    font-family: 'Cairo', sans-serif;
    background-color: #d8d8d8;
    /* خلفية مريحة جداً للقراءة */
    direction: rtl;
    /* يدعم اللغة العربية */
}

/* --- تنسيق العنوان الرئيسي h1 --- */
h1 {
    color: #1a1a1a;
    /* أسود غني فخم وليس داكناً حد السواد المطلق */
    font-size: 2.5rem;
    /* حجم مناسب ومميز للعناوين الإخبارية */
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    padding-right: 15px;
    margin-top: 5%;
    /* لمسة ذهبية: خط رأسي أيمن يميز العنوان الإخباري */
    border-right: 5px solid #D4AF37;
    text-align: right;
}

/* تأثير عند تمرير الماوس على العنوان (إذا كان رابطاً) */
h1 a:hover {
    color: #C5A028;
    /* درجة ذهبي أغمق قليلاً */
    transition: color 0.3s ease;
}

/* --- تنسيق الفقرة النصية p --- */
#lawpage {
    color: #8b2227;
    /* أسود خفيف ومريح جداً للعين عند القراءة الطويلة */
    font-size: 1.50rem;
    /* حجم مثالي للمقالات الإخبارية */
    line-height: 1.8;
    /* مسافة بين السطور تمنع تداخل الكلمات */
    text-align: justify;
    /* محاذاة النص ليعطي مظهر الصحف الاحترافية */
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    color: #020000;
    text-align: center;

    /* تصميم الصندوق الزجاجي */
    padding: 40px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    /* خلفية بيضاء شفافة جداً */

    /* /* السحر هنا: ضبابية للخلفية التي تقع خلف الصندوق مباشرة */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* إضافة حد خفيف ليعطي تأثير الزجاج */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- لمسة إضافية: تمييز النصوص بالنكهة الذهبية --- */
p ::selection {
    background: #D4AF37;
    /* لون التظليل عند تحديد النص */
    color: #fff;
}

/* تنسيق للكلمات المفتاحية داخل المقال التي تريد إبرازها */
p strong {
    color: #C5A028;
    /* جعل الخط العريض باللون الذهبي */
    font-weight: 700;
}

#forpages {

    padding-bottom: 25%;
    padding-top: 3%;
    padding-right: 2%;
    padding-left: 15%;

}

/* الحاوية الرئيسية للقسم */
#search-results-section {
    direction: rtl;
    /* يدعم الكتابة من اليمين لليوم */
    max-width: 900px;
    margin: 40px auto;
    margin-top: 5%;
    padding: 0 20px;
    font-family: 'Cairo', sans-serif;
    /* خط مريح ومناسب للمواقع القانونية */
}

/* عنوان نتائج البحث */
#search-results-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* تمييز الكلمة المبحوث عنها */
#search-results-section .query-highlight {
    color: #c0392b;
    /* لون أحمر داكن/عنابي يناسب الطابع القانوني */
    font-weight: bold;
}

/* القائمة الاحتوائية */
#search-results-section .results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* بطاقة النتيجة الفردية */
#search-results-section .result-item {
    background-color: #ffffff;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* رابط النتيجة */
#search-results-section .result-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* تأثير حركة البطاقة عند مرور الماوس */
#search-results-section .result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #bdc3c7;
}

/* عنوان الاستشارة داخل البطاقة */
#search-results-section .result-title {
    margin: 0;
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 600;
    transition: color 0.2s ease;
}

#search-results-section .result-item:hover .result-title {
    color: #c0392b;
    /* يتغير اللون عند التحويم */
}

/* نص "عرض التفاصيل" */
#search-results-section .read-more {
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

#search-results-section .result-item:hover .read-more {
    color: #c0392b;
}

/* تنسيق حالة عدم وجود نتائج */
#search-results-section .no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #dcdde1;
    color: #7f8c8d;
}

#search-results-section .no-results i {
    font-size: 2.5rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

#search-results-section .no-results p {
    margin: 0;
    font-size: 1.1rem;
}

/* الحاوية الرئيسية لقسم الأرشيف */
#archive-news-section {
    direction: rtl;
    max-width: 900px;
    margin: 40px auto;
    margin-top: 5%;
    padding: 3%;
    font-family: 'Cairo', sans-serif;
}

/* عنوان أرشيف الأخبار */
#archive-news-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* القائمة الاحتوائية للأرشيف */
#archive-news-section .archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* بطاقة الخبر الفردية في الأرشيف */
#archive-news-section .archive-item {
    background-color: #ffffff;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

/* رابط الخبر */
#archive-news-section .archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* تأثير حركة البطاقة عند مرور الماوس */
#archive-news-section .archive-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #bdc3c7;
}

/* عنوان الخبر داخل البطاقة */
#archive-news-section .archive-title {
    margin: 0;
    font-size: 1.2rem;
    color: #34495e;
    font-weight: 600;
    transition: color 0.2s ease;
}

#archive-news-section .archive-item:hover .archive-title {
    color: #c0392b;
    /* اللون العنابي عند التحويم */
}

/* نص "عرض التفاصيل" */
#archive-news-section .archive-read-more {
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

#archive-news-section .archive-item:hover .archive-read-more {
    color: #c0392b;
}

/* تنسيق حالة الأرشيف الفارغ */
#archive-news-section .archive-no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #dcdde1;
    color: #7f8c8d;
}

#archive-news-section .archive-no-results i {
    font-size: 2.5rem;
    color: #bdc3c7;
    margin-bottom: 15px;
}

#archive-news-section .archive-no-results p {
    margin: 0;
    font-size: 1.1rem;
}

/* تنسيق أزرار التنقل (Pagination) لعناكب جوجل والزوار */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    font-size: 0.95rem;
}

.archive-pagination .page-link {
    color: #ffffff;
    background-color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.archive-pagination .page-link:hover {
    background-color: #c0392b;
}

.archive-pagination .current-page {
    color: #7f8c8d;
    font-weight: bold;
}

/* تنسيق الحاوية الرئيسية لجعل النص مريحاً للعين وتدعم اللغة العربية */
#privacy-policy-container {
    direction: rtl;
    text-align: right;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* تنسيق العنوان الرئيسي */
.policy-main-title {
    color: #2c3e50;
    margin-bottom: 30px;
}

/* تنسيق العناوين الفرعية */
.policy-section-title {
    color: #34495e;
    margin-top: 25px;
    font-size: 1.4rem;
}

/* تنسيق الروابط داخل السياسة */
.policy-link {
    color: #3498db;
    text-decoration: none;
}

.policy-link:hover {
    text-decoration: underline;
}

/* تنسيق ملاحظة التنبيه */
.notice-text {
    background-color: #fcf8e3;
    padding: 10px;
    border-right: 4px solid #f0ad4e;
}