/* =========================================
   1. ضبط المحاذاة في صفحة تفاصيل البحث (المقالات) 
   ========================================= */
.obj_article_details .abstract, 
.obj_article_details .author_bios, 
.obj_article_details .references {
    text-align: justify !important;
}

/* =========================================
   2. ضبط كافة الفقرات في المنطقة الرئيسية
   ========================================= */
.pkp_structure_main p,
.cmp_text p,
.cmp_text div,
.page_about .description,
.page_about .section p,
.page_static .content p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* =========================================
   3. ضبط القوائم النقطية والرقمية
   ========================================= */
.pkp_structure_main ul li,
.pkp_structure_main ol li,
.cmp_text ul li,
.cmp_text ol li {
    text-align: justify !important;
    margin-bottom: 5px;
}

/* =========================================
   4. إيقاف تقسيم الكلمات (Hyphenation)
   ========================================= */
body {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* =========================================
   5. تنسيق أزرار المجلة (OJS Buttons)
   ========================================= */

/* الأزرار العامة في المجلة (باللون الأزرق الملكي #1E6292) */
.pkp_button,
button,
input[type="submit"],
input[type="button"] {
    background-color: #1E6292 !important;
    border-color: #1E6292 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

/* لون الزر العام عند مرور الماوس (Hover) - درجة أغمق قليلاً */
.pkp_button:hover,
.pkp_button:focus,
button:hover,
input[type="submit"]:hover {
    background-color: #164a6e !important; 
    border-color: #164a6e !important;
    color: #ffffff !important;
}

/* الأزرار الرئيسية "Primary" (مثل زر: إرسال بحث، التسجيل) - باللون الذهبي المطفأ */
.pkp_button.primary,
.pkp_button_primary,
.header_view .btn {
    background-color: #C5A059 !important; 
    border-color: #C5A059 !important;
    color: #ffffff !important;
}

/* لون الزر الرئيسي عند مرور الماوس - درجة ذهبية أغمق للتفاعل */
.pkp_button.primary:hover,
.pkp_button_primary:hover,
.header_view .btn:hover {
    background-color: #b08d4f !important; 
    border-color: #b08d4f !important;
}

/* إصلاح لون الروابط داخل الأزرار لضمان بقائها بيضاء */
.pkp_button a,
.pkp_button_primary a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =========================================
   6. تنسيق جميع القوائم الجانبية (Sidebar Blocks)
   ========================================= */

/* استهداف الإطار الخارجي لكل بلوك جانبي */
.pkp_structure_sidebar .pkp_block {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 5px solid #1E6292 !important; /* خط علوي أزرق خاص بالعلوم الإنسانية */
    border-bottom: 4px solid #C5A059 !important; /* خط سفلي ذهبي مطفأ */
    border-radius: 0 0 6px 6px !important;
    padding: 20px 15px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* تنسيق عناوين البلوكات (مثل: اللغة، المعلومات، الكلمات المفتاحية) */
.pkp_structure_sidebar .pkp_block .title {
    color: #1E6292 !important; /* لون أزرق للعناوين */
    font-size: 16px !important;
    font-weight: bold !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
    text-align: right !important;
}

/* للنسخة الإنجليزية: محاذاة لليسار */
[dir="ltr"] .pkp_structure_sidebar .pkp_block .title {
    text-align: left !important;
}

/* توحيد تنسيق الروابط داخل القوائم الجانبية */
.pkp_structure_sidebar .pkp_block a {
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.pkp_structure_sidebar .pkp_block a:hover {
    color: #C5A059 !important; /* لون ذهبي عند مرور الماوس */
    text-decoration: none !important;
}