/*
============================================================
  ملف الأنماط الموحد لمجلة جامعة الأماراتية الدولية
============================================================
*/

/* --- 0. استدعاء الخطوط --- */


/*
============================================================
  1. إعدادات عالمية وأساسية (Global & Base Styles)
============================================================
*/


/*
============================================================
  -- قاعدة شاملة لفرض خط Tajawal على جميع عناصر الموقع --
============================================================
*/
* {
    font-family: 'Tajawal', sans-serif !important;
}


/* إعداد اتجاه الصفحة والخطوط الأساسية */
html[lang="ar"] body {
    direction: rtl;
    text-align: right;
}

html[lang="en"] body {
    direction: ltr;
    text-align: left;
}

html,
body.pkp_op_view {
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 1rem;
}

/* الأنماط العامة للعناوين */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', sans-serif;
    color: #053e69;
    margin: 1.5rem 0 1rem 0;
    background-color: transparent;
    padding: 0 0 0.5rem 0;
    border-bottom: 2px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.4rem;
    font-weight: 700;
}

/* الأنماط العامة للروابط */
a {
    font-family: 'Tajawal', sans-serif;
    color: #053e69;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #9E202E;
    text-decoration: underline;
}

/*
============================================================
  2. تخطيط الصفحة الرئيسي (Main Page Layout)
============================================================
*/

/* استخدام Flexbox للحاوية الرئيسية لتحسين التخطيط */
.pkp_structure_content {
    display: flex;
    flex-wrap: wrap;
}

.pkp_structure_main {
    flex: 1;
    min-width: 0;
    /* لمنع المحتوى من تجاوز الحاوية */
}




.pkp_structure_sidebar {
    background-color: #f1f3f5;
    padding: 1.25rem;
    border-inline-start: 0.125rem solid #dee2e6;
    /* ليعمل بشكل صحيح مع LTR و RTL */
}

.page_index_journal {
    padding: 1.25rem;
}


.description {

    text-align: justify;

}

/*
============================================================
  3. الترويسة والتنقل (Header & Navigation)
============================================================
*/

header.pkp_structure_head {
    background-color: rgba(255, 255, 255, 0.9);
    /* تقليل التغطية لزيادة الشفافية */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Ensure inner layers don't block the glass effect */
header.pkp_structure_head .pkp_head_wrapper,
header.pkp_structure_head .pkp_site_nav_menu {
    background: transparent !important;
}

.pkp_site_name_wrapper {
    background-color: transparent;
}

.pkp_site_name {
    position: relative;
    text-align: center;
    background-color: transparent;
}

.pkp_site_name img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px #ffffff) drop-shadow(0 0 15px #ffffff) drop-shadow(0 0 10px #ffffff);
}

#headerNavigationContainer .pkp_navigation_primary_row {
    background-color: #053e69;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
}

#headerNavigationContainer a {
    color: #ffffff;
    text-decoration: none;
}

#headerNavigationContainer>div>nav>div.pkp_navigation_primary_row a:hover {
    color: #ffebee;
    background-color: #09644e;
}

#navigationUserWrapper a {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffff;
    border-radius: 5px;
    display: inline-block;
    margin: 5px;
}

#navigationUserWrapper a:hover {
    background-color: #9E202E;
    border-color: #ffebee;
}

/*
============================================================
  4. تصميم البطاقات والقوائم (Cards & Lists)
============================================================
*/

/* 4.1. بطاقات ملخص المقالات (Homepage) - تصميم احترافي متقدم */
.obj_article_summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    /* تخصيص مساحة للصورة في البداية */
    grid-template-rows: auto auto auto 1fr;
    /* صفوف للمحتوى */
    gap: 0 1.5rem;
    /* مسافة بين الأعمدة */
    align-items: start;
    /* محاذاة للأعلى */

    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border-right: 4px solid transparent;
    /* تهيئة للبوردر الجانبي */
}

/* في حالة الشاشات الصغيرة - عرض عمودي أنيق */
@media (max-width: 768px) {
    .obj_article_summary {
        display: flex;
        /* تغيير إلى فليكس للتحكم الأبسط في الترتيب */
        flex-direction: column;
        gap: 0;
        /* إزالة المسافات هنا والاعتماد على العناصر */
        padding: 0;
        /* إزالة الحشوة من البطاقة نفسها للسماح للصورة بأخذ العرض الكامل */
        text-align: center;
        border-radius: 12px;
        overflow: hidden;
        /* لقص الصورة مع الحواف */
    }

    /* 1. صورة الغلاف - عرض كامل */
    .obj_article_summary .cover {
        width: 100%;
        max-width: 100%;
        height: 200px;
        /* ارتفاع ثابت للصورة */
        border-radius: 0;
        /* إزالة الحواف الدائرية لأنها داخل بطاقة مقصوصة */
        margin: 0;
        order: -1;
        /* التأكد من أنها في الأعلى */
    }

    .obj_article_summary .cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* ملء المساحة دون تشويه */
    }

    /* حاوية للمحتوى النصي لإضافة حشوة */
    .obj_article_summary>*:not(.cover) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* 2. العنوان - خط متكيف */
    .obj_article_summary .title {
        margin-top: 1.5rem;
    }

    .obj_article_summary .title a {
        font-size: 1.25rem;
        /* تصغير الخط قليلاً للهاتف */
        text-align: center;
    }

    /* 3. البيانات الأخرى */
    .obj_article_summary .meta,
    .obj_article_summary .doiInSummary {
        justify-self: center;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .obj_article_summary .authors {
        font-size: 0.9rem;
    }

    /* 4. زر PDF */
    .obj_article_summary .galleys_links {
        width: 100%;
        padding-bottom: 2rem !important;
        /* حشوة سفلية للبطاقة */
        justify-self: center !important;
        align-self: center !important;
    }

    .obj_galley_link.pdf {
        width: auto;
        min-width: 60%;
        /* عرض مناسب للزر */
        margin-top: 0.5rem;
    }
}

/* تأثير التحويم */
.obj_article_summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-right-color: #053e69;
    /* ظهور الخط الجانبي عند التحويم */
}

/* === توزيع العناصر داخل الشبكة (Grid Areas) === */

/* 1. صورة الغلاف */
.obj_article_summary .cover {
    grid-column: 1;
    grid-row: 1 / -1;
    /* تمتد على كل الصفوف */
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.obj_article_summary .cover:hover {
    transform: scale(1.03);
}

.obj_article_summary .cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 2. عنوان المقال */
.obj_article_summary .title {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.obj_article_summary .title a {
    font-size: 1.4rem;
    color: #053e69;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s;
}

.obj_article_summary .title a:hover {
    color: #007ab2;
}

/* 3. معرف DOI (الذي يتم نقله بالجافاسكريبت) */
.obj_article_summary .doiInSummary {
    grid-column: 2;
    grid-row: 2;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

/* 4. بيانات المؤلفين والصفحات */
.obj_article_summary .meta {
    grid-column: 2;
    grid-row: 3;
    margin-bottom: 1rem;
}

.obj_article_summary .authors {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.obj_article_summary .pages {
    font-size: 0.9rem;
    color: #888;
}

/* 5. أزرار التحميل (PDF) */
.obj_article_summary .galleys_links {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    /* محاذاة للأسفل */
    justify-self: end;
    /* محاذاة للنهاية (اليسار في العربية) */
    margin: 0;
    padding: 0;
    list-style: none;
}

.obj_galley_link.pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #053e69;
    color: #ffffff !important;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 62, 105, 0.15);
    font-size: 0.95rem;
    gap: 8px;
    /* مسافة للأيقونة */
}

/* دعم RTL التلقائي للشبكة */
:dir(rtl) .obj_article_summary {
    /* الشبكة تعكس الأعمدة تلقائياً بناءً على الاتجاه */
    border-right: none;
    border-left: 4px solid transparent;
}

:dir(rtl) .obj_article_summary:hover {
    border-left-color: #053e69;
}

:dir(rtl) .obj_article_summary .galleys_links {
    justify-self: end;
    /* في RTL تكون النهاية هي اليسار - وهو المطلوب */
}

/* 4.2. بطاقات أعداد المجلة (Archives Page & Current Issue) */
.obj_issue_toc {
    margin-bottom: 2rem;
}

.obj_issue_toc .heading h2,
.obj_issue_toc .heading h3 {
    margin-bottom: 2rem;
    border-right: 4px solid #053e69;
    /* لمسة جمالية للعنوان */
}

/* تخطيط رأس العدد (صورة + وصف) */
.obj_issue_toc .heading {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    background: #fff;
}

/* صورة الغلاف */
.obj_issue_toc .cover {
    flex: 0 0 220px;
    /* عرض ثابت للصورة */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.obj_issue_toc .cover:hover {
    transform: scale(1.02);
}

.obj_issue_toc .cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* وصف العدد */
.obj_issue_toc .description {
    flex: 1;
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.obj_issue_toc .published {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
    background-color: #f1f8fc;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

/* زر الإصدار الكامل */
.obj_issue_toc .galleys {
    margin: 2rem 0;
    text-align: center;
    /* توسيط الزر */
}

.obj_issue_toc .galleys h3 {
    display: none;
    /* إخفاء العنوان "Full Issue" */
}

.obj_issue_toc .galleys_links {
    list-style: none;
    padding: 0;
}

.obj_issue_toc .galleys_links li {
    display: inline-block;
}

.obj_issue_toc .galleys_links a.pdf {
    background-color: #007ab2;
    /* لون مختلف عن زر المقال للتمييز */
    color: white !important;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 122, 178, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.obj_issue_toc .galleys_links a.pdf:hover {
    background-color: #053e69;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(5, 62, 105, 0.4);
}

.obj_issue_toc .galleys_links a.pdf::before {
    content: '\f1c1';
    /* أيقونة ملف PDF من FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .obj_issue_toc .heading {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .obj_issue_toc .description {
        text-align: center;
        margin-top: 1rem;
    }

    .obj_issue_toc .cover {
        width: 100%;
        max-width: 250px;
    }
}

/* === نهاية تحسين قسم العدد الحالي === */

/* 4.3. بطاقات أعداد المجلة (صفحة الأرشيف) */

/* حاوية الأعداد الرئيسية */
.issues_archive {
    display: flex;
    /* تم التغيير من grid إلى flex لترتيب العناصر */
    flex-direction: column;
    /* يجعل العناصر تترتب عمودياً (كل عدد في سطر) */
    gap: 1.5rem;
    /* يضيف مسافة رأسية بين البطاقات */
    list-style-type: none;
    padding: 0;
    margin: 2rem auto;
    /* توسيط الحاوية في الصفحة مع هامش علوي */
    max-width: 850px;
    /* تحديد عرض أقصى لتحسين القراءة على الشاشات الكبيرة */
}

/* بطاقة العدد الواحد */
.obj_issue_summary {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: justify;
}

/* تأثير عند مرور الفأرة على البطاقة */
.obj_issue_summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* عنوان القسم داخل البطاقة (مثل: العدد الأول - يناير 2024) */
.obj_issue_summary h2 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #053e69;
    /* خط سفلي مميز للعنوان */
}

/* رابط عنوان العدد */
.obj_issue_summary a.title {
    font-size: 1.25rem;
    /* !! تصحيح مهم: تم تغيير اللون من الأبيض إلى لون داكن ليكون مقروءاً */
    color: #444;
    text-decoration: none;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
    /* إضافة انتقال ناعم للون عند المرور */
}

/* تغيير لون الرابط عند مرور الفأرة */
.obj_issue_summary a.title:hover {
    color: #3498db;
    /* تم اختيار لون أزرق جذاب للتحويم */
}

/* معلومات إضافية (مثل: المجلد 1، العدد 1) */
.obj_issue_summary .series {
    font-size: 0.9rem;
    color: #a7adb3;
    font-style: italic;
}

/*
============================================================
  4.5. صفحة عرض المقال (Article View Page) - تصميم متقدم وشامل
============================================================
*/

/* 5.1. هيكل الصفحة والعنوان */
.page_article {
    background-color: #f9fbfd;
    /* خلفية فاتحة جداً */
    padding: 0 0 2rem 0;
    border-radius: 12px;
}

/* تعديل الهيكل الرئيسي ليكون مرناً مع السايدبار */
.pkp_structure_content.has_sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.pkp_structure_main {
    flex: 3;
    /* مساحة أكبر للمحتوى الرئيسي */
    min-width: 0;
    /* لمنع التمدد الزائد */
}

/* السايدبار يكون في النهاية (يسار في العربية) إلا اذا اردنا عكسه */
.pkp_structure_sidebar {
    flex: 1;
    /* مساحة أقل للسايدبار */
    min-width: 250px;
    background: transparent;
    /* order: -1;  إذا أردت السايدبار على اليمين في العربية قم بإزالة التعليق */
}

/* عنوان المقال */
.obj_article_details h1.page_title {
    font-size: 2.2rem;
    color: #053e69;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 3px solid #e9ecef;
    padding-bottom: 1.5rem;
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.obj_article_details h1.page_title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #007ab2;
}

/* 5.2. تخطيط المحتوى (LAYOUT FIX - ROBUST FLEX) */
/* نطبق فليكس على الحاوية المحتملة للعناصر (سواء كانت row أو الحاوية الرئيسية مباشرة) */
.obj_article_details .row,
.obj_article_details {
    display: flex;
    flex-wrap: wrap;
    /* السماح بالالتفاف في الشاشات الصغيرة */
    gap: 2rem;
    margin: 0;
    align-items: flex-start;
    /* محاذاة للأعلى */
    width: 100%;
    /* ضمان العرض الكامل */
}

/* Ensure title is full width if using flex on parent */
.obj_article_details h1.page_title {
    width: 100%;
    flex: 0 0 100%;
}

/* 5.3. المحتوى الرئيسي (Main Entry) */
.obj_article_details .main_entry {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    flex: 2;
    /* يأخذ مساحة أكبر (ثلثين) */
    min-width: 300px;
    /* حد أدنى للعرض */
}

/* عناوين الأقسام */
.obj_article_details .item .label {
    font-size: 1.1rem;
    color: #053e69;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
    border-right: 4px solid #007ab2;
    padding-right: 12px;
    background: linear-gradient(to left, #f1f8fc, transparent);
    padding: 0.5rem 12px 0.5rem 0;
    border-radius: 4px;
}

.obj_article_details .item.abstract p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* 5.4. الشريط الجانبي للمقال (Entry Details - Cover & PDF) */
.obj_article_details .entry_details {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    /* يأخذ مساحة أقل (ثلث) */
    min-width: 250px;
    /* حد أدنى للعرض */
}

.obj_article_details .item.cover_image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* زر PDF المحسن */
.obj_article_details .item.galleys .pdf {
    display: block;
    width: 100%;
    background-color: #053e69 !important;
    /* ضمان اللون */
    color: #fff !important;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(5, 62, 105, 0.2);
    margin: 0;
}

.obj_article_details .item.galleys .pdf:hover {
    background-color: #007ab2 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 62, 105, 0.3);
}

/* 5.5. الشريط الجانبي العام (Sidebar Blocks) */
.pkp_block {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border-top: 4px solid #053e69;
    /* لمسة جمالية علوية */
}

/* عنوان الكتلة */
.pkp_block .title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #053e69;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* محتوى القائمة */
.pkp_block .content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkp_block .content ul li {
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 0.5rem;
}

.pkp_block .content ul li:last-child {
    border-bottom: none;
}

.pkp_block .content ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    display: block;
}

.pkp_block .content ul li a:hover {
    color: #007ab2;
    padding-right: 5px;
    /* حركة عند التحويم */
}

/* زر "إنشاء طلب نشر" - فرض النمط */
a.block_make_submission_link,
.block_make_submission_link {
    display: block !important;
    background-color: #007ab2 !important;
    color: #fff !important;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 122, 178, 0.2);
    width: 100%;
    margin-top: 0;
}

a.block_make_submission_link:hover,
.block_make_submission_link:hover {
    background-color: #053e69 !important;
    transform: translateY(-2px);
}

/* سحابة الكلمات المفتاحية */
#wordcloud {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    text-align: center;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 991px) {
    .pkp_structure_content.has_sidebar {
        flex-direction: column;
    }

    .pkp_structure_sidebar {
        width: 100%;
        margin-top: 2rem;
        /* نلغي الترتيب العكسي في الموبايل ليكون السايدبار تحت */
        order: 2 !important;
    }

    .obj_article_details .row {
        grid-template-columns: 1fr;
    }

    .obj_article_details h1.page_title {
        font-size: 1.6rem;
        padding: 1.5rem;
    }
}

/* 5.6. الاقتباسات (Citation Block) */
.item.citation {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px dashed #ced4da;
    margin-top: 2rem;
}

/* 5.7. مسارات التنقل (Breadcrumbs) - تصميم احترافي محسن */
.cmp_breadcrumbs {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    /* Slightly squarer for professional look */
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    font-size: 0.95rem;
    display: block;
    /* Ensure it takes full width or behaves like a block */
    border: 1px solid #e9ecef;
}

.cmp_breadcrumbs ol {
    list-style: none;
    /* Remove default bullets */
    padding: 0;
    margin: 0;
    display: flex;
    /* Flex layout */
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.cmp_breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
}

.cmp_breadcrumbs a {
    color: #053e69;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background-color: transparent;
}

.cmp_breadcrumbs a:hover {
    color: #007ab2;
    background-color: #f1f8fc;
    /* Subtle hover background */
    text-decoration: none;
    /* Clean look */
}

/* فاصل العناصر / Separator */
.cmp_breadcrumbs .separator {
    margin: 0 0.2rem;
    color: #adb5bd;
    font-size: 0.85rem;
}

/* العنصر الحالي / Current Item */
.cmp_breadcrumbs .current {
    color: #495057;
    /* Darker grey */
    font-weight: normal;
    background: #f8f9fa;
    /* Highlight current */
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

/*
============================================================
  5. تنسيقات خاصة (Specific Components)
============================================================
*/

/* 5.1. تنسيق الفقرات المضبوطة (Justified Text) */
.homepage_about p,
.item.abstract p {
    text-align: justify;
}

/* 5.2. تنسيق موحد لـ DOI */
.doiInSummary,
.pub_id.doi,
.item.doi {
    direction: ltr;
    text-align: left;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    background-color: transparent !important;
    padding: 0.25rem 0 0.25rem 1rem !important;
    border: none !important;
}

.item.doi {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.item.doi .label {
    background-color: transparent !important;
    color: #333 !important;
    font-size: 1rem !important;
    font-weight: bold;
    padding: 0 !important;
    margin: 0 0.5em 0 0 !important;
    width: auto;
}

.doiInSummary a,
.pub_id.doi a,
.item.doi .value a {
    color: #0056b3;
    word-break: break-all;
}

/* 5.3. تنسيق روابط متفرقة باللون الأزرق */
.cmp_breadcrumbs a,
.item.copyright a,
.item.galleys .galleys_links a,
#citationOutput a {
    color: #0056b3;
    text-decoration: underline;
}

.cmp_breadcrumbs a:hover,
.item.copyright a:hover,
#citationOutput a:hover {
    color: #003366;
}

/*
============================================================
  6. التذييل (Footer)
============================================================
 */

.pkp_structure_footer_wrapper {
    background-color: #053e69;
    color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.pkp_structure_footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.pkp_structure_footer a {
    color: #ffffff;
    text-decoration: underline;
}

.pkp_brand_footer img {
    max-width: 100px;
    height: auto;
    margin-inline-start: 10px;
    /* ليعمل بشكل صحيح مع LTR و RTL */
    transition: transform 0.3s;
}

.pkp_brand_footer img:hover {
    transform: scale(1.1);
}

/*
============================================================
  7. قواعد الشاشات الصغيرة (Responsive Media Queries)
============================================================
*/

/*
============================================================
  7. قواعد الشاشات الصغيرة (Responsive Media Queries) + تحسينات الهاتف
============================================================
*/

@media (max-width: 768px) {

    /* تخطيط الصفحة */
    .pkp_structure_content {
        flex-direction: column;
    }

    /* === تنسيق الهيدر في الهاتف === */

    /* الشعار - تصغير وتوسيط */
    .pkp_site_name_wrapper {
        text-align: center;
        padding: 1rem 0;
    }

    .pkp_site_name img {
        max-width: 140px;
        /* تصغير الشعار ليكون متناسباً */
        height: auto;
        display: inline-block;
    }

    /* زر القائمة - إظهار وتنسيق واضح */
    .pkp_site_nav_toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #053e69 !important;
        /* لون داكن للظهور على الخلفية البيضاء */
        background-color: transparent;
        border: 2px solid #053e69;
        /* إطار للزر */
        border-radius: 5px;
        cursor: pointer;
        position: absolute;
        top: 25px;
        /* مسافة من الأعلى */
        left: 20px;
        /* مسافة من اليسار */
        right: auto;
        /* إلغاء اليمين */
        z-index: 10000;
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        transition: all 0.3s ease;
    }

    .pkp_site_nav_toggle:hover {
        background-color: #053e69;
        color: #fff !important;
    }

    /* القائمة المنسدلة في الموبايل */
    .pkp_site_nav_menu {
        display: none;
        position: absolute;
        top: 85px;
        /* أسفل الهيدر مباشرة */
        left: 0;
        right: 0;
        background-color: #ffffff;
        width: 100%;
        padding: 0;
        z-index: 9999;
        border-top: 3px solid #053e69;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .pkp_site_nav_menu.active {
        display: block !important;
    }

    /* العناصر داخل القائمة */
    .pkp_navigation_primary_wrapper ul,
    .pkp_navigation_user_wrapper ul {
        display: block;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .pkp_navigation_primary_wrapper ul li,
    .pkp_navigation_user_wrapper ul li {
        display: block;
        border-bottom: 1px solid #f0f0f0;
    }

    .pkp_navigation_primary_wrapper ul li a,
    .pkp_navigation_user_wrapper ul li a {
        padding: 1rem 1.5rem;
        display: block;
        color: #333;
        font-weight: 600;
        text-align: right;
        /* محاذاة لليمين للعربية */
        text-decoration: none;
    }

    .pkp_navigation_primary_wrapper ul li a:hover,
    .pkp_navigation_user_wrapper ul li a:hover {
        background-color: #f8f9fa;
        color: #053e69;
        padding-right: 2rem;
        /* حركة بسيطة */
    }

    /* تنسيق البحث وزر المستخدم في الموبايل */
    .pkp_navigation_search_wrapper {
        padding: 1rem;
        text-align: center;
        border-top: 1px solid #e9ecef;
    }

    .pkp_search.pkp_search_desktop {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        background-color: #053e69;
        color: #fff;
        border-radius: 50px;
        text-decoration: none;
        width: 100%;
        /* عرض كامل */
        text-align: center;
    }

    /* إخفاء العناصر التي قد تسبب مشاكل */
    .pkp_head_wrapper {
        position: static;
        /* السماح للقائمة بالظهور بشكل صحيح */
    }

    /* التذييل */
    .pkp_structure_footer {
        flex-direction: column;
        text-align: center;
    }

    .pkp_brand_footer {
        margin-top: 15px;
    }
}




/*
============================================================
  9. تنسيق القائمة المنسدلة (Dropdown Menu)
============================================================
*/

/* تنسيق الحاوية الرئيسية للقائمة */
.dropdown-menu {
    background-color: #053e69 !important;
    /* لون الخلفية الأحمر الرئيسي */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* حد أبيض نصف شفاف لمظهر أنعم */
    border-radius: 0 0 5px 5px;
    /* جعل الزوايا السفلية فقط دائرية */
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 0;
    /* إزالة أي مسافة علوية */
}

/* تنسيق الروابط داخل القائمة */
.dropdown-menu a {
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
    /* زيادة الحشوة لجعل الروابط أكبر وأسهل للضغط */
    display: block;
    text-align: right;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

/* تغيير لون الرابط عند مرور الماوس فوقه */
.dropdown-menu a:hover {
    background-color: #9E202E;
    /* استخدام اللون الأحمر الأغمق عند التمرير */
    color: #ffffff !important;
    text-decoration: none;
}
















/* --- تنسيق قسم المراجع متجاوب ومتعدد اللغات --- */

/* 1. الحاوية الرئيسية للمراجع */
section.item.references {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
    overflow: hidden;
    /* يضمن احتواء العناصر بشكل صحيح */
}

/* 2. عنوان "المراجع" */
section.item.references h2.label {
    font-size: 22px;
    color: #333;
    border-bottom: 2px solid #007ab2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 3. تهيئة قائمة المراجع للترقيم */
section.item.references .value {
    counter-reset: ref-counter;
    /* إنشاء العداد */
}

/* 4. تنسيق كل مرجع (فقرة) مع ضبط المحاذاة */
section.item.references .value p {
    position: relative;
    margin-bottom: 12px;
    line-height: 1.9;
    font-size: 12px;
    /* حجم خط مقبول للقراءة على الحاسوب */
    text-align: justify;
    /* أهم إضافة: لضبط محاذاة النص */
    color: #444;
}

/* === قواعد اتجاه اللغة (RTL & LTR) === */

/* (أ) في حالة اللغة العربية (من اليمين لليسار) */
:dir(rtl) section.item.references .value p {
    padding-right: 35px;
    /* مسافة على اليمين للترقيم */
}

:dir(rtl) section.item.references .value p::before {
    counter-increment: ref-counter;
    content: counter(ref-counter) ". ";
    position: absolute;
    top: 0;
    right: 0;
    font-weight: bold;
    color: #007ab2;
}

/* (ب) في حالة اللغة الإنجليزية (من اليسار لليمين) */
:dir(ltr) section.item.references .value p {
    padding-left: 35px;
    /* مسافة على اليسار للترقيم */
}

:dir(ltr) section.item.references .value p::before {
    counter-increment: ref-counter;
    content: counter(ref-counter) ". ";
    position: absolute;
    top: 0;
    left: 0;
    font-weight: bold;
    color: #007ab2;
}


/* 5. تنسيق الروابط داخل المراجع */
section.item.references .value p a {
    color: #0056b3;
    text-decoration: none;
    word-break: break-all;
    /* لمنع الروابط الطويلة من الخروج عن الهامش */
}

section.item.references .value p a:hover {
    text-decoration: underline;
}

/* === التجاوب مع شاشات الهاتف (Responsive) === */
/* تطبيق هذه القواعد على الشاشات التي عرضها 768 بكسل أو أقل */

@media (max-width: 768px) {
    section.item.references {
        padding: 15px;
        /* تقليل المساحة الداخلية في الهاتف */
    }

    section.item.references h2.label {
        font-size: 20px;
        /* تصغير حجم العنوان قليلاً */
    }

    section.item.references .value p {
        font-size: 12px;
        /* حجم خط أنسب لشاشات الهاتف */
        line-height: 1.8;
    }

    /* تعديل المسافة المخصصة للترقيم في الهاتف */
    :dir(rtl) section.item.references .value p {
        padding-right: 30px;
    }

    :dir(ltr) section.item.references .value p {
        padding-left: 30px;
    }
}

/*
============================================================
  8. تنسيقات محتوى الصفحة الرئيسية (Homepage Custom Content)
============================================================
*/

/* 8.1. المؤلفات المشابهة (Articles by Similarity) */
#articlesBySimilarityList {
    background-color: #ffffff;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

#articlesBySimilarityList h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #053e69;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 1rem;
    font-weight: 700;
}

#articlesBySimilarityList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#articlesBySimilarityList li {
    padding: 1rem 0;
    border-bottom: 1px dashed #e9ecef;
    transition: background-color 0.2s;
    line-height: 1.6;
    font-size: 0.95rem;
}

#articlesBySimilarityList li:last-child {
    border-bottom: none;
}

#articlesBySimilarityList li:hover {
    background-color: #f8f9fa;
    padding-right: 10px;
    /* حركة بسيطة عند التحويم */
}

#articlesBySimilarityList li a {
    color: #007ab2;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    /* يساعد في التنسيق */
    margin: 0 5px;
}

#articlesBySimilarityList li a:hover {
    text-decoration: underline;
    color: #053e69;
}

/* 8.2. السيرة الشخصية للمؤلف (Author Bios) */
.item.author_bios {
    background-color: #f1f8fc;
    /* خلفية مميزة فاتحة */
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid #dbe9f2;
}

.item.author_bios h2.label,
.item.author_bios .label {
    color: #053e69;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    border-bottom: none;
    /* إزالة الخط الافتراضي إن وجد */
    background: none;
    padding: 0;
}

.item.author_bios .sub_item .label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.item.author_bios .value {
    color: #555;
    line-height: 1.8;
    text-align: justify;
    font-size: 1rem;
}

.item.author_bios .value p {
    margin-bottom: 0.8rem;
}

/* 8.3. صفحة ترقيم المشابهات والبحث */
.cmp_pagination {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.cmp_pagination .current {
    font-weight: bold;
    color: #333;
    background: #e9ecef;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.cmp_pagination a {
    padding: 0.3rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #053e69;
    transition: all 0.2s;
}

.cmp_pagination a:hover {
    background-color: #053e69;
    color: #fff;
    border-color: #053e69;
}

#articlesBySimilaritySearch {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #666;
}

#articlesBySimilaritySearch a {
    color: #053e69;
    font-weight: 600;
}

.eiu-homepage-container {
    max-width: 1000px;
    margin: 2rem auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.eiu-section {
    margin-bottom: 2rem;
}

.eiu-rtl {
    direction: rtl;
    text-align: right;
}

.eiu-ltr {
    direction: ltr;
    text-align: left;
}

.eiu-main-title {
    color: #053e69;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #053e69;
    display: inline-block;
    padding-bottom: 0.5rem;
    background: none;
    /* Override default H2 background */
    width: auto;
    /* Override default H2 width */
}

.eiu-sub-title {
    color: #053e69;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
    background: none;
    width: auto;
}

.eiu-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.eiu-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.eiu-info-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.eiu-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-color: #053e69;
}

.eiu-icon {
    font-size: 2rem;
    color: #053e69;
    display: block;
    margin-bottom: 0.5rem;
}

.eiu-label {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.eiu-value {
    display: block;
    color: #053e69;
    font-size: 1rem;
    font-weight: 500;
}

.eiu-scope-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.eiu-scope-list li {
    background-color: #f1f8fc;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    color: #053e69;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.eiu-scope-list li:hover {
    background-color: #053e69;
    color: #ffffff;
}

.eiu-scope-list li i {
    font-size: 1.2rem;
}

.eiu-identifiers {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
}

.eiu-id-item {
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.eiu-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(5, 62, 105, 0.75), rgba(0, 0, 0, 0));
    margin: 3rem 0;
}

.eiu-footer-section {
    background-color: #053e69;
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.eiu-footer-section p {
    margin: 5px 0;
    line-height: 1.4;
}

.eiu-social-links {
    margin-bottom: 1.5rem;
}

.eiu-social-links span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.eiu-social-links a {
    color: #ffffff !important;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: transform 0.2s;
    display: inline-block;
}

.eiu-social-links a:hover {
    transform: scale(1.2);
    color: #ffc107 !important;
}

.eiu-contact-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: center;
}

.eiu-contact-info a {
    color: #ffc107 !important;
    text-decoration: none;
}

.eiu-contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .eiu-homepage-container {
        padding: 1rem;
    }

    .eiu-info-grid {
        grid-template-columns: 1fr;
    }

    .eiu-scope-list {
        grid-template-columns: 1fr;
    }
}