/* =========================================================
   IJTIHAD JOURNAL - COMPLETE & CLEAN STYLESHEET (FINAL)
   ========================================================= */

/* 1. أزرار القائمة الجانبية الرئيسية */
.pkp_block_custom .content p {
    margin: 0 0 10px 0 !important;
}

.pkp_block_custom .content p a {
    display: block;
    background-color: #4fa3a5;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    padding: 15px 20px;
    border-left: 6px solid #6f42c1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.pkp_block_custom .content p a:hover {
    background-color: #438d8f;
    color: #ffffff !important;
}

/* 2. عناوين القائمة الجانبية وأيقوناتها */
.pkp_block .title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(to right, #f0f7f7, #e4f1f1) !important;
    color: #1b4b72 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    padding: 10px 14px !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    border-radius: 6px !important;
    border-bottom: 3px solid #4fa3a5 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
}

/* إخفاء عنوان Language بالكامل */
.block_language_toggle .title,
.pkp_block_language_toggle .title,
div[class*="language"] .title {
    display: none !important;
}

div[id*="brief" i] .title::before,
div[class*="brief" i] .title::before {
    content: "\f05a" !important;
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
    margin-inline-end: 9px;
    font-size: 19px;
    color: #4fa3a5;
}

.block_web_feed .title::before,
.pkp_block_web_feed .title::before {
    content: "\f09e" !important;
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
    margin-inline-end: 9px;
    font-size: 19px;
    color: #4fa3a5;
}

.block_make_submission .title::before,
.pkp_block_make_submission .title::before {
    content: "\f093" !important;
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
    margin-inline-end: 9px;
    font-size: 19px;
    color: #4fa3a5;
}

/* 3. الشريط العلوي (Header) والشعار */
.pkp_structure_head {
    background: linear-gradient(135deg, #1b4b72 0%, #245f8f 60%, #173e5e 100%) !important;
    border-bottom: 4px solid #4fa3a5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    margin-bottom: 0 !important;
}

.pkp_navigation_primary_row {
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-color: transparent !important;
}

.pkp_navigation_primary {
    padding-left: 15px !important;
}

.pkp_navigation_primary > li > a {
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    transition: all 0.2s ease !important;
}

.pkp_navigation_primary > li > a:hover {
    background-color: rgba(79, 163, 165, 0.25) !important;
    border-radius: 4px !important;
}

@media (min-width: 992px) {
    .pkp_site_name .is_img img {
        max-height: 165px !important;
        max-width: 85% !important;
        width: auto !important;
        height: auto !important;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2)) !important;
        transition: transform 0.3s ease !important;
    }
    .pkp_site_name .is_img img:hover {
        transform: scale(1.01) !important;
    }
}

/* 4. أزرار تغيير اللغة (English / العربية) */
.block_language_toggle .content ul,
.pkp_block_language_toggle .content ul,
div[class*="language"] .content ul {
    display: flex !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.block_language_toggle .content ul li,
.pkp_block_language_toggle .content ul li,
div[class*="language"] .content ul li {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.block_language_toggle .content a,
.pkp_block_language_toggle .content a,
div[class*="language"] .content a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #f4f9f9 !important;
    color: #2c5e60 !important;
    border: 2px solid #4fa3a5 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.block_language_toggle .content a::before,
.pkp_block_language_toggle .content a::before,
div[class*="language"] .content a::before {
    content: "\f0ac" !important;
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
    font-size: 16px;
    color: #4fa3a5;
    transition: color 0.2s ease;
}

.block_language_toggle .content a:hover,
.pkp_block_language_toggle .content a:hover,
div[class*="language"] .content a:hover {
    background-color: #4fa3a5 !important;
    color: #ffffff !important;
}

.block_language_toggle .content a:hover::before,
.pkp_block_language_toggle .content a:hover::before,
div[class*="language"] .content a:hover::before {
    color: #ffffff !important;
}

.block_language_toggle .content li.current a,
.pkp_block_language_toggle .content li.current a,
div[class*="language"] .content li.current a {
    background-color: #4fa3a5 !important;
    color: #ffffff !important;
    border-bottom: 4px solid #6f42c1 !important;
}

.block_language_toggle .content li.current a::before,
.pkp_block_language_toggle .content li.current a::before,
div[class*="language"] .content li.current a::before {
    color: #ffffff !important;
}

/* 5. صور القائمة الجانبية مع الحفاظ على حجم عداد الزوار Visitors */
.pkp_structure_sidebar .pkp_block img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    border: 2px solid #e1eded !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.pkp_structure_sidebar .pkp_block a:hover img {
    transform: translateY(-2px) !important;
    border-color: #4fa3a5 !important;
    box-shadow: 0 6px 14px rgba(79, 163, 165, 0.25) !important;
}

.pkp_structure_sidebar img[src*="flagcounter"] {
    max-height: none !important;
    width: auto !important;
    max-width: 100% !important;
}

/* 6. تقليص الفراغات الزائدة واستعادة الخطوط والخطوط الخضراء */
.pkp_structure_content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.pkp_structure_main {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.pkp_structure_main::before,
.pkp_structure_main::after {
    display: none !important;
}

.pkp_structure_sidebar {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.pkp_structure_sidebar .pkp_block {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.pkp_structure_sidebar .pkp_block:first-child {
    padding-top: 0 !important;
}

.pkp_page_index .about_journal,
.pkp_page_index .current_issue {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
}

.pkp_page_index .about_journal h2,
.pkp_page_index .current_issue h2 {
    font-family: "Noto Serif", Georgia, serif !important;
    font-weight: 700 !important;
    color: #1f5c5e !important;
    padding-bottom: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    border-bottom: 2px solid #4fa3a5 !important;
}

.obj_issue_toc .heading .published {
    margin-top: 8px !important;
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
}

.obj_issue_toc .galleys,
.obj_issue_toc .section {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.obj_issue_toc .galleys h2,
.obj_issue_toc .section h2,
.obj_issue_toc h3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important;
    color: #1f5c5e !important;
    border-bottom: 2px solid #4fa3a5 !important;
}

.obj_article_summary {
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
}

.obj_article_summary .title a {
    color: #1b5e63 !important;
    font-weight: 700 !important;
}

.obj_article_summary .title a:hover {
    color: #4fa3a5 !important;
}

/* 7. أزرار Web Feed (ATOM / RSS 2.0 / RSS 1.0) */
.block_web_feed .content ul,
.pkp_block_web_feed .content ul {
    display: flex !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 5px 0 0 0 !important;
    list-style: none !important;
}

.block_web_feed .content ul li,
.pkp_block_web_feed .content ul li {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.block_web_feed .content ul li a,
.pkp_block_web_feed .content ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background-color: #f4f9f9 !important;
    color: #1b4b72 !important;
    border: 1.5px solid #4fa3a5 !important;
    border-radius: 6px !important;
    padding: 8px 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.block_web_feed .content ul li a::before,
.pkp_block_web_feed .content ul li a::before {
    content: "\f09e" !important;
    font-family: "FontAwesome" !important;
    font-weight: normal !important;
    font-size: 12px !important;