
/* =========================================
   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. تنسيق أزرار المجلة
   ========================================= */
.pkp_button,
button,
input[type="submit"],
input[type="button"] {
    background-color: #2A80BD !important;
    border-color: #2A80BD !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.pkp_button:hover,
.pkp_button:focus,
button:hover,
input[type="submit"]:hover {
    background-color: #206596 !important; 
    border-color: #206596 !important;
    color: #ffffff !important;
}

.pkp_button.primary,
.pkp_button_primary,
.header_view .btn {
    background-color: #1E6292 !important; 
    border-color: #1E6292 !important;
    color: #ffffff !important;
}

.pkp_button.primary:hover,
.pkp_button_primary:hover,
.header_view .btn:hover {
    background-color: #16496B !important; 
    border-color: #16496B !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 #2A80BD !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: #1E6292 !important;
    text-decoration: none !important;
}

/* =========================================
   7. تنسيقات البلوك الجانبي المخصص
   ========================================= */
.custom-sidebar-lam {
    text-align: center;
    font-family: tahoma, arial, sans-serif;
}

.custom-sidebar-lam .est-year {
    background-color: #075985 !important;
    color: #ffffff !important;
    font-weight: bold;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-sidebar-lam .logos-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px;
}

.custom-sidebar-lam .logos-row a {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.custom-sidebar-lam .logos-row a:hover {
    transform: scale(1.08);
}

.custom-sidebar-lam .logos-row img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.custom-sidebar-lam .logos-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.custom-sidebar-lam .logos-col img {
    max-width: 75% !important;
    height: auto;
    transition: opacity 0.3s ease;
}

.custom-sidebar-lam .logos-col img:hover {
    opacity: 0.8;
}

.custom-sidebar-lam .lam-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

.custom-sidebar-lam .lam-links-title {
    color: #075985 !important;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-align: right;
}

[dir="ltr"] .custom-sidebar-lam .lam-links-title {
    text-align: left;
}

.custom-sidebar-lam .lam-quick-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-sidebar-lam .lam-quick-links li {
    margin-bottom: 12px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    padding: 0 !important;
}

.custom-sidebar-lam .lam-quick-links li::before {
    content: "\25AA";
    color: #075985;
    font-size: 18px;
    margin-left: 8px;
}

[dir="ltr"] .custom-sidebar-lam .lam-quick-links li::before {
    margin-left: 0;
    margin-right: 8px;
}

.custom-sidebar-lam .lam-quick-links a {
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-sidebar-lam .lam-quick-links a:hover {
    color: #075985 !important;
}

/* =========================================
   8. تنسيقات الأزرار النصية للنسخة الإنجليزية
   ========================================= */
.custom-sidebar-lam .text-logos-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.custom-sidebar-lam .text-logo-btn {
    display: block;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #075985 !important;
    text-align: center;
    padding: 10px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.custom-sidebar-lam .text-logo-btn:hover {
    background-color: #075985 !important;
    color: #ffffff !important;
    border-color: #075985 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =========================================
   9. تنسيق صفحة المجلة الإبداعية (نظام البطاقات النظيف)
   ========================================= */
.jar-wrapper {
    line-height: 1.6;
    color: #333;
    font-family: tahoma, arial, sans-serif;
    direction: rtl;
    text-align: right;
}

.jar-header {
    background-color: #075985;
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.jar-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
}

.jar-header p {
    margin: 10px 0 0;
    font-size: 16px;
}

.jar-about-card {
    background-color: #ffffff;
    border-right: 5px solid #075985;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.jar-section-title {
    text-align: center;
    color: #075985;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: bold;
}

.jar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.jar-scope-card {
    flex: 1 1 280px;
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-top: 4px solid #075985;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.jar-scope-card:hover {
    transform: translateY(-5px);
}

.jar-scope-card h4 {
    color: #075985;
    margin-top: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    font-size: 18px;
}

.jar-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.jar-info-item {
    flex: 1 1 250px;
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #075985;
    text-align: center;
}

.jar-info-item h3 {
    color: #075985;
    font-size: 18px;
    margin-bottom: 10px;
}

.jar-footer {
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    margin-top: 40px;
    border-top: 2px solid #075985;
}

.jar-contact-link {
    color: #075985;
    font-weight: bold;
    text-decoration: none;
}

/* التوافق مع النسخة الإنجليزية */
.jar-wrapper.jar-en {
    direction: ltr;
    text-align: left;
}

.jar-wrapper.jar-en .jar-about-card {
    border-right: none;
    border-left: 5px solid #075985;
}

/* =========================================
   10. تنسيق صفحة هيئة التحرير والأيقونات الذكية
   ========================================= */
.editorial-container {
    font-family: tahoma, arial, sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
    margin-bottom: 30px;
}

.editorial-container.en-dir {
    direction: ltr;
    text-align: left;
}

.editorial-container .section-head {
    color: #075985;
    font-size: 22px;
    font-weight: bold;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 10px;
    margin-top: 35px;
    margin-bottom: 20px;
}

.editorial-container .member-card {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-right: 4px solid #075985;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-container.en-dir .member-card {
    border-right: 1px solid #eef2f6;
    border-left: 4px solid #075985;
}

.editorial-container .member-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.editorial-container.en-dir .member-card:hover {
    transform: translateX(5px);
}

.editorial-container .name-link {
    color: #075985 !important;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 5px;
    margin-top: 0;
    transition: color 0.3s ease;
}

.editorial-container .name-link:hover {
    color: #2A80BD !important;
}

.editorial-container .info-text {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

.editorial-container .member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.editorial-container .icon-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
    border: none;
}

.editorial-container .icon-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0.9;
}

.bg-cv      { background-color: #64748b; }
.bg-orcid   { background-color: #A6CE39; }
.bg-scholar { background-color: #4285F4; }
.bg-email   { background-color: #075985; }
.bg-rg      { background-color: #00CCBB; }

.editorial-container .advisory-box {
    background-color: #f8fafc;
    border: 1px dashed #075985;
    padding: 20px;
    border-radius: 8px;
}

.editorial-container .advisory-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.editorial-container .advisory-list li {
    position: relative;
    padding-right: 18px;
    font-size: 15px;
    color: #333;
}

.editorial-container.en-dir .advisory-list li {
    padding-right: 0;
    padding-left: 18px;
}

.editorial-container .advisory-list li::before {
    content: "\25AA";
    color: #075985;
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 16px;
}

.editorial-container.en-dir .advisory-list li::before {
    right: auto;
    left: 0;
}

/* =========================================
   11. القوائم المنسدلة (Accordion) 
   ========================================= */
.jar-accordion {
    margin-bottom: 20px;
}

.jar-accordion details {
    background-color: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.jar-accordion summary {
    padding: 15px 20px;
    font-weight: bold;
    color: #075985;
    cursor: pointer;
    list-style: none; 
    position: relative;
    outline: none;
}

.jar-accordion summary::-webkit-details-marker {
    display: none;
}

.jar-accordion summary::after {
    content: "+";
    position: absolute;
    left: 20px; 
    font-size: 20px;
    color: #075985;
    font-weight: bold;
}

.jar-wrapper.jar-en .jar-accordion summary::after,
.en-dir .jar-accordion summary::after {
    left: auto;
    right: 20px;
}

.jar-accordion details[open] summary::after {
    content: "-";
}

.jar-accordion .accordion-content {
    padding: 0 20px 20px 20px;
    border-top: 1px dashed #eef2f6;
    margin-top: 10px;
    padding-top: 15px;
    color: #444;
}

/* =========================================
   12. الخط الزمني (Timeline) لخطوات التقديم
   ========================================= */
.jar-timeline {
    position: relative;
    padding-right: 20px; 
    margin: 30px 0;
    list-style: none !important;
}

.jar-wrapper.jar-en .jar-timeline,
.en-dir .jar-timeline {
    padding-right: 0;
    padding-left: 20px; 
}

.jar-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0; 
    width: 3px;
    background-color: #eef2f6;
}

.jar-wrapper.jar-en .jar-timeline::before,
.en-dir .jar-timeline::before {
    right: auto;
    left: 0; 
}

.jar-timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-right: 25px; 
}

.jar-wrapper.jar-en .jar-timeline-item,
.en-dir .jar-timeline-item {
    padding-right: 0;
    padding-left: 25px;
}

.jar-timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -6px; 
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #075985;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #075985;
}

.jar-wrapper.jar-en .jar-timeline-item::before,
.en-dir .jar-timeline-item::before {
    right: auto;
    left: -6px;
}

.jar-timeline-content h4 {
    color: #075985;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.jar-timeline-content p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

/* =========================================
   13. الجداول الإبداعية (Tables)
   ========================================= */
.jar-table-wrapper {
    overflow-x: auto; 
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.jar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    text-align: right;
}

.jar-wrapper.jar-en .jar-table,
.en-dir .jar-table {
    text-align: left;
}

.jar-table th {
    background-color: #075985;
    color: #ffffff;
    padding: 15px;
    font-weight: bold;
    border-bottom: 2px solid #044365;
}

.jar-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eef2f6;
    color: #444;
}

.jar-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

.jar-table tr:hover td {
    background-color: #f1f5f9;
}

/* =========================================
   14. تنسيق صفحة السياسات (Publisher Box & Policies Grid)
   ========================================= */
.jar-about-card h3 {
    color: #075985;
    margin-top: 0;
}

.jar-dashed-divider {
    border: 0;
    border-top: 1px dashed #eef2f6;
    margin: 20px 0;
}

.jar-publisher-box {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eef2f6;
    margin-top: 20px;
}

.jar-publisher-box p {
    margin: 0 0 10px 0;
}

.jar-publisher-box p:last-child {
    margin: 0;
}

.jar-publisher-box a {
    color: #075985 !important;
    text-decoration: none !important;
    font-weight: bold;
}

.jar-policies-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.jar-policies-list li {
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-right: 4px solid #075985; 
    border-radius: 6px;
    padding: 12px 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jar-wrapper.jar-en .jar-policies-list li,
.en-dir .jar-policies-list li {
    border-right: 1px solid #eef2f6;
    border-left: 4px solid #075985; 
}

.jar-policies-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.jar-policies-list a {
    color: #075985 !important;
    font-weight: bold;
    text-decoration: none !important;
    display: block;
}