/* 1. ضبط المحاذاة في صفحة تفاصيل البحث (المقالات) */
.obj_article_details .abstract, 
.obj_article_details .author_bios, 
.obj_article_details .references {
    text-align: justify !important;
}

/* 2. ضبط المحاذاة في صفحات (عن المجلة) والصفحات الثابتة */
.page_about .description,
.page_about .section p,
.page_static .content p,
.pkp_structure_main p,
.pkp_structure_main .content {
    text-align: justify !important;
    text-justify: inter-word;
}

/* 3. ضمان عدم ظهور الواصلات التلقائية */
body {
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* 4. تثبيت أبعاد الهيدر لضمان ثبات التصميم */
.pkp_structure_head .pkp_site_name_wrapper .is_img img {
    width: 100%;
    max-width: 1022px; 
    height: auto;
    aspect-ratio: 1022 / 257; 
}

/* 5. تحسين سرعة ظهور الخطوط */
body, h1, h2, h3, h4, h5, h6, p, a {
    font-display: swap !important;
}

/* 6. إخفاء شعار Platform and Workflow by OJS المزعج أسفل الصفحة */
.pkp_brand_footer {
    display: none !important;
}

/* 7. تعديل عرض الإعلانات لتظهر ببطاقة كاملة العرض (Full Width) */
.page_index_journal .announcements ul, 
.page_index_journal .announcements li {
    width: 100% !important;
    display: block !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
}

.obj_announcement_summary {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #eee !important;
    border-top: 5px solid #A22F2F !important; /* اللون الأحمر القاني المعتمد للمجلة */
    padding: 25px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    transition: transform 0.2s ease;
}

/* تأثير بسيط عند تمرير الفأرة على الإعلان */
.obj_announcement_summary:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
/* 8. تنسيق كتل العمود الجانبي الافتراضية للنظام */
.pkp_structure_sidebar .pkp_block {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-top: 5px solid #A22F2F !important; /* الخط الأحمر القاني الموحد */
    border-radius: 0 0 4px 4px !important;
    padding: 15px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* تنسيق عناوين الكتل الافتراضية */
.pkp_structure_sidebar .pkp_block .title {
    color: #A22F2F !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-bottom: 1px solid #f5f5f5 !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    text-transform: none !important;
}

/* تحسين مظهر القوائم والروابط داخل الكتل */
.pkp_structure_sidebar .pkp_block ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_sidebar .pkp_block ul li {
    padding: 5px 0 !important;
}

.pkp_structure_sidebar .pkp_block ul li a {
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.2s ease;
}

.pkp_structure_sidebar .pkp_block ul li a:hover {
    color: #A22F2F !important;
    padding-inline-start: 5px; /* حركة بسيطة عند التمرير */
}

/* تنسيق أيقونات RSS/Atom لجعلها في المنتصف وبشكل أرتب */
.pkp_block.block_make_submission a,
.pkp_block.block_subscription a {
    display: block !important;
    text-align: center !important;
}