﻿/* =========================================================
   OJS 3.5 - Journal custom stylesheet (final balanced version)
   ========================================================= */

/* =========================
   Ø®Ù„ÙÙŠØ© Ø§Ù„Ø¬ÙˆØ§Ù†Ø¨ ÙÙ‚Ø·
   ========================= */
html,
body {
    background: url("https://jiesjournal.de/public/site/images/site-bg.png") center top / cover fixed no-repeat !important;
    background-color: #e5e5e5 !important;
}

/* ØµÙ†Ø¯ÙˆÙ‚ Ø§Ù„Ù…ÙˆÙ‚Ø¹ Ø§Ù„Ø¯Ø§Ø®Ù„ÙŠ */
.pkp_structure_page {
    background: #ffffff !important;
    max-width: 1140px !important;
    margin: 30px auto !important;
    overflow-x: hidden !important;   /* ÙŠÙ…Ù†Ø¹ Ø§Ù„Ø¨Ø±ÙˆØ² Ø§Ù„Ø£ÙÙ‚ÙŠ ÙÙ‚Ø· */
}

/* =========================
   Header
   ========================= */
.pkp_structure_head {
    background-color: transparent !important;
    min-height: 150px !important;
    position: relative !important;
    overflow: visible !important;    /* Ø­ØªÙ‰ Ù„Ø§ ØªÙÙ‚Øµ Ø§Ù„Ù‚ÙˆØ§Ø¦Ù… Ø§Ù„Ù…Ù†Ø³Ø¯Ù„Ø© */
}

/* Arabic header background */
html[lang^="ar"] .pkp_structure_head {
    background: url("https://jiesjournal.de/public/site/images/header-bg.png") center center / cover no-repeat !important;
}

/* English header background */
html[lang^="en"] .pkp_structure_head {
    background: url("https://jiesjournal.de/public/site/images/header-bg-en.png") center center / cover no-repeat !important;
}

/* Ø¥Ø²Ø§Ù„Ø© Ø§Ù„Ø®Ù„ÙÙŠØ§Øª Ø§Ù„Ø¨ÙŠØ¶Ø§Ø¡ Ø§Ù„Ø¯Ø§Ø®Ù„ÙŠØ© ÙÙŠ Ø§Ù„Ø±Ø£Ø³ */
.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_site_name,
.pkp_navigation_user_wrapper {
    background: transparent !important;
}

/* Ø§Ù„Ø´Ø¹Ø§Ø± */
.pkp_site_name .is_img img,
.pkp_site_name_wrapper img {
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

.pkp_site_name {
    width: auto !important;
}

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

/* =========================
   Ø±ÙˆØ§Ø¨Ø· Ø§Ù„Ø£Ø¹Ù„Ù‰
   ========================= */
html[lang^="ar"] .pkp_navigation_user_wrapper {
    padding-left: 25px !important;
    padding-top: 10px !important;
}

.pkp_navigation_user_wrapper a,
.pkp_navigation_user_wrapper a:visited {
    color: #DCEB63 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
}

.pkp_navigation_user_wrapper a:hover,
.pkp_navigation_user_wrapper a:focus {
    color: #EEF7A0 !important;
}

/* =========================
   Ø§Ù„Ø´Ø±ÙŠØ· Ø§Ù„Ø£ÙÙ‚ÙŠ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ
   ========================= */
.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    background: #39891A !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* ØªØ«Ø¨ÙŠØª Ø§Ù„Ø­Ø§ÙˆÙŠØ§Øª Ø¯Ø§Ø®Ù„ Ø§Ù„ØµÙ†Ø¯ÙˆÙ‚ */
.pkp_site_nav_menu,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ù„ÙˆÙ† Ø±ÙˆØ§Ø¨Ø· Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© */
.pkp_navigation_primary a,
.pkp_navigation_primary a:visited,
.pkp_navigation_primary_wrapper a,
.pkp_navigation_primary_wrapper a:visited,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:visited,
.pkp_site_nav_menu .search_prompt,
.pkp_site_nav_menu .search_prompt:visited {
    color: #FFFFFF !important;
}

/* hover */
.pkp_navigation_primary a:hover,
.pkp_navigation_primary a:focus,
.pkp_navigation_primary_wrapper a:hover,
.pkp_navigation_primary_wrapper a:focus,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:hover,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:focus,
.pkp_site_nav_menu .search_prompt:hover,
.pkp_site_nav_menu .search_prompt:focus {
    color: #FFFFFF !important;
}

/* Top menu active/focus states (avoid white background on click) */
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a,
.pkp_navigation_primary .pkp_nav_list > li > a {
    background: transparent !important;
}

.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:hover,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:focus,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:focus-visible,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a:active,
.pkp_navigation_primary .pkp_nav_list > li > a:hover,
.pkp_navigation_primary .pkp_nav_list > li > a:focus,
.pkp_navigation_primary .pkp_nav_list > li > a:focus-visible,
.pkp_navigation_primary .pkp_nav_list > li > a:active {
    background-color: #2F7515 !important;
    color: #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
}

.pkp_navigation_primary_wrapper .pkp_nav_list > li.active > a,
.pkp_navigation_primary_wrapper .pkp_nav_list > li.current > a,
.pkp_navigation_primary_wrapper .pkp_nav_list > li.show > a,
.pkp_navigation_primary_wrapper .pkp_nav_list > li.open > a,
.pkp_navigation_primary_wrapper .pkp_nav_list > li > a[aria-expanded="true"],
.pkp_navigation_primary .pkp_nav_list > li.active > a,
.pkp_navigation_primary .pkp_nav_list > li.current > a,
.pkp_navigation_primary .pkp_nav_list > li.show > a,
.pkp_navigation_primary .pkp_nav_list > li.open > a,
.pkp_navigation_primary .pkp_nav_list > li > a[aria-expanded="true"] {
    background-color: #2A6713 !important;
    color: #FFFFFF !important;
}

/* Ø§Ù„Ø¹Ø±Ø¨ÙŠØ©: ØªÙ‚Ø±ÙŠØ¨ Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© Ù…Ù† Ø§Ù„ÙŠÙ…ÙŠÙ† Ù‚Ù„ÙŠÙ„Ø§Ù‹ */
html[lang^="ar"] .pkp_navigation_primary_wrapper .pkp_nav_list {
    padding-right: 10px !important;
    padding-left: 0 !important;
}

/* =========================
   Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ù…Ù†Ø³Ø¯Ù„Ø© "Ø¹Ù†"
   ========================= */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary,
.pkp_structure_head {
    overflow: visible !important;
}

.pkp_navigation_primary .dropdown,
.pkp_navigation_primary_wrapper .dropdown {
    position: relative !important;
}

.pkp_navigation_primary .dropdown-menu,
.pkp_navigation_primary_wrapper .dropdown-menu,
.pkp_nav_list .dropdown-menu {
    background: #39891A !important;
    color: #FFFFFF !important;
    position: absolute !important;
    z-index: 9999 !important;
    min-width: 180px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
}

.pkp_navigation_primary .dropdown-menu a,
.pkp_navigation_primary_wrapper .dropdown-menu a {
    color: #FFFFFF !important;
    background: #39891A !important;
    white-space: nowrap !important;
}

.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary_wrapper .dropdown-menu a:hover {
    background: #2f7315 !important;
    color: #FFFFFF !important;
}

.pkp_navigation_primary .dropdown-menu a:focus,
.pkp_navigation_primary .dropdown-menu a:active,
.pkp_navigation_primary_wrapper .dropdown-menu a:focus,
.pkp_navigation_primary_wrapper .dropdown-menu a:active,
.pkp_navigation_primary .dropdown-menu .active > a,
.pkp_navigation_primary_wrapper .dropdown-menu .active > a {
    background: #2A6713 !important;
    color: #FFFFFF !important;
    outline: none !important;
}

/* =========================
   Ø§Ù„Ø¨Ø­Ø«: Ù†ØªØ±ÙƒÙ‡ ÙÙŠ ÙˆØ¶Ø¹ Ø·Ø¨ÙŠØ¹ÙŠ Ù‚Ø¯Ø± Ø§Ù„Ø¥Ù…ÙƒØ§Ù†
   ========================= */
.pkp_site_nav_menu .pkp_search,
.pkp_site_nav_menu .search_prompt {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
}

/* ØªÙ‚Ù„ÙŠÙ„ ÙØ±Øµ Ø§Ù„Ø¨Ø±ÙˆØ² Ù…Ù† ØµÙÙˆÙ Ø§Ù„Ù‚Ø§Ù„Ø¨ */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ø¶Ø¨Ø· Ù…Ø­Ø§Ø°Ø§Ø© Ø²Ø± Ø§Ù„Ø¨Ø­Ø« ÙÙŠ Ø§Ù„ÙˆØ§Ø¬Ù‡ØªÙŠÙ† */
.pkp_site_nav_menu .pkp_search,
.pkp_site_nav_menu .search_prompt {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    margin-top: 8px !important;
}

/* Ø²Ø± VIEW PDF | Ø§Ù‚Ø±Ø£(ÙŠ) Ø§Ù„Ù…Ù‚Ø§Ù„Ø© */
.pkp_page_issue .obj_article_summary .galleys_links .obj_galley_link,
.pkp_page_issue .obj_article_summary .read_more a,
.pkp_page_issue .obj_article_summary .btn {
  background-color: #39891A !important;
  border-color: #39891A !important;
  color: #FFFFFF !important;
}

/* Ø¶Ù…Ø§Ù† Ø£Ù† Ø£ÙŠ Ù†Øµ Ø¯Ø§Ø®Ù„ÙŠ ÙŠÙƒÙˆÙ† Ø£Ø¨ÙŠØ¶ */
.pkp_page_issue .obj_article_summary .galleys_links .obj_galley_link *,
.pkp_page_issue .obj_article_summary .read_more a * {
  color: #FFFFFF !important;
}

/* Ù„ÙˆÙ† Ø¹Ù†Ø¯ Ø§Ù„Ù…Ø±ÙˆØ± Ø¨Ø§Ù„Ù…Ø§ÙˆØ³ (Ø§Ø®ØªÙŠØ§Ø±ÙŠ) */
.pkp_page_issue .obj_article_summary .galleys_links .obj_galley_link:hover,
.pkp_page_issue .obj_article_summary .read_more a:hover,
.pkp_page_issue .obj_article_summary .btn:hover {
  background-color: #2F7515 !important;
  border-color: #2F7515 !important;
  color: #FFFFFF !important;
}

/* ===== OJS Article page PDF button color ===== */
.pkp_page_article .obj_article_details .galleys_links a,
.pkp_page_article .obj_article_details .item.galleys .value a {
  background: #39891A !important;
  border-color: #39891A !important;
  color: #FFFFFF !important;
}

.pkp_page_article .obj_article_details .galleys_links a:hover,
.pkp_page_article .obj_article_details .item.galleys .value a:hover,
.pkp_page_article .obj_article_details .galleys_links a:focus,
.pkp_page_article .obj_article_details .item.galleys .value a:focus {
  background: #2F7515 !important;
  border-color: #2F7515 !important;
  color: #FFFFFF !important;
}

/* ===== Article layout (AR + EN): main on right, details on left ===== */
@media (min-width: 992px) {
  .pkp_page_article .obj_article_details {
    display: block !important;
  }

  .pkp_page_article .obj_article_details .entry_details {
    float: left !important;
    width: 235px !important;
    max-width: 235px !important;
    margin: 0 0 20px 0 !important;
    clear: left !important;
    position: static !important;
  }

  .pkp_page_article .obj_article_details .main_entry {
    float: right !important;
    width: calc(100% - 260px) !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* Make cover width match metadata cards width */
  .pkp_page_article .obj_article_details .entry_details .cover_image {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
  }

  .pkp_page_article .obj_article_details .entry_details .cover_image img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  .pkp_page_article .obj_article_details .entry_details .item {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pkp_page_article .obj_article_details::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* ===== Strong justify (AR + EN) ===== */
.pkp_page_article .obj_article_details .main_entry .item.abstract .value,
.pkp_page_article .obj_article_details .main_entry .item.abstract .value p,
.pkp_page_article .obj_article_details .main_entry .item.abstract .value div,
.pkp_page_article .obj_article_details .main_entry .item.references .value,
.pkp_page_article .obj_article_details .main_entry .item.references .value p,
.pkp_page_article .obj_article_details .main_entry .item.references .value li,
.pkp_page_article .obj_article_details .main_entry .item.keywords .value {
  text-align: justify !important;
  text-justify: inter-word !important;
  line-height: 1.9 !important;
}

html[lang^="ar"] .pkp_page_article .obj_article_details .main_entry .item.abstract .value,
html[lang^="ar"] .pkp_page_article .obj_article_details .main_entry .item.abstract .value p,
html[lang^="ar"] .pkp_page_article .obj_article_details .main_entry .item.references .value,
html[lang^="ar"] .pkp_page_article .obj_article_details .main_entry .item.references .value p {
  text-align-last: right !important;
  direction: rtl !important;
}

html[lang^="en"] .pkp_page_article .obj_article_details .main_entry .item.abstract .value,
html[lang^="en"] .pkp_page_article .obj_article_details .main_entry .item.abstract .value p,
html[lang^="en"] .pkp_page_article .obj_article_details .main_entry .item.references .value,
html[lang^="en"] .pkp_page_article .obj_article_details .main_entry .item.references .value p {
  text-align-last: left !important;
  direction: ltr !important;
}

/* ===== Final fallback: force justified article text in both interfaces ===== */
.pkp_page_article .main_entry .item.abstract,
.pkp_page_article .main_entry .item.abstract .value,
.pkp_page_article .main_entry .item.abstract p,
.pkp_page_article .main_entry .item.abstract div,
.pkp_page_article .main_entry .item.keywords .value,
.pkp_page_article .main_entry .item.keywords p,
.pkp_page_article .main_entry .item.references .value,
.pkp_page_article .main_entry .item.references p,
.pkp_page_article .main_entry .item.references li,
.pkp_page_article .main_entry .item.body .value,
.pkp_page_article .main_entry .item.body p,
.pkp_page_article .main_entry .item.body div {
  text-align: justify !important;
  text-justify: inter-word !important;
  -webkit-text-size-adjust: 100%;
}

/* Do not justify section labels/headings */
.pkp_page_article .main_entry .item .label,
.pkp_page_article .main_entry .item h1,
.pkp_page_article .main_entry .item h2,
.pkp_page_article .main_entry .item h3,
.pkp_page_article .main_entry .item h4 {
  text-align: start !important;
}

/* Language-aware last-line behavior */
html[lang^="ar"] .pkp_page_article .main_entry .item.abstract,
html[lang^="ar"] .pkp_page_article .main_entry .item.abstract p,
html[lang^="ar"] .pkp_page_article .main_entry .item.references,
html[lang^="ar"] .pkp_page_article .main_entry .item.references p {
  direction: rtl !important;
  text-align-last: right !important;
}

html[lang^="en"] .pkp_page_article .main_entry .item.abstract,
html[lang^="en"] .pkp_page_article .main_entry .item.abstract p,
html[lang^="en"] .pkp_page_article .main_entry .item.references,
html[lang^="en"] .pkp_page_article .main_entry .item.references p {
  direction: ltr !important;
  text-align-last: left !important;
}

/* ===== Absolute fallback: justify whole text column, then reset headings ===== */
.pkp_page_article .obj_article_details .main_entry {
  text-align: justify !important;
  text-justify: inter-word !important;
}

.pkp_page_article .obj_article_details .main_entry .label,
.pkp_page_article .obj_article_details .main_entry h1,
.pkp_page_article .obj_article_details .main_entry h2,
.pkp_page_article .obj_article_details .main_entry h3,
.pkp_page_article .obj_article_details .main_entry h4 {
  text-align: start !important;
}

/* ===== Decorated "Articles / Ø§Ù„Ù…Ù‚Ø§Ù„Ø§Øª" heading ===== */
.pkp_page_index .obj_issue_toc .sections .section > h2,
.pkp_page_index .obj_issue_toc .sections .section > h3,
.pkp_page_issue .obj_issue_toc .sections .section > h2,
.pkp_page_issue .obj_issue_toc .sections .section > h3,
.pkp_page_index .current_issue .section > h2,
.pkp_page_index .current_issue .section > h3 {
  position: relative !important;
  display: inline-block !important;
  width: auto !important;
  margin: 20px 0 14px !important;
  padding: 0 0 6px 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #4D4D4D !important;
  text-transform: none !important;
  border-bottom: 3px solid #E5A12A !important;
}

.pkp_page_index .obj_issue_toc .sections .section > h2::after,
.pkp_page_index .obj_issue_toc .sections .section > h3::after,
.pkp_page_issue .obj_issue_toc .sections .section > h2::after,
.pkp_page_issue .obj_issue_toc .sections .section > h3::after,
.pkp_page_index .current_issue .section > h2::after,
.pkp_page_index .current_issue .section > h3::after {
  content: none !important;
  display: none !important;
}

html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h2::after,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h3::after,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2::after,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3::after,
html[dir="rtl"] .pkp_page_index .current_issue .section > h2::after,
html[dir="rtl"] .pkp_page_index .current_issue .section > h3::after {
  content: none !important;
  display: none !important;
}

/* Fallback selector: some themes wrap section titles differently */
.pkp_page_index .obj_issue_toc .sections .section h2,
.pkp_page_index .obj_issue_toc .sections .section h3,
.pkp_page_issue .obj_issue_toc .sections .section h2,
.pkp_page_issue .obj_issue_toc .sections .section h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

/* RTL right-edge alignment: heading and orange line at far right */
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_index .current_issue .section > h2,
html[dir="rtl"] .pkp_page_index .current_issue .section > h3 {
  margin-right: 0 !important;
  margin-left: 0 !important;
  text-align: right !important;
}

html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section,
html[dir="rtl"] .pkp_page_index .current_issue .section {
  text-align: right !important;
}

/* ===== Final fix: Articles heading position in EN/AR ===== */
.pkp_page_index .obj_issue_toc .sections .section > h2,
.pkp_page_index .obj_issue_toc .sections .section > h3,
.pkp_page_issue .obj_issue_toc .sections .section > h2,
.pkp_page_issue .obj_issue_toc .sections .section > h3,
.pkp_page_index .obj_issue_toc .sections .section h2,
.pkp_page_index .obj_issue_toc .sections .section h3,
.pkp_page_issue .obj_issue_toc .sections .section h2,
.pkp_page_issue .obj_issue_toc .sections .section h3 {
  display: block !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  padding: 0 0 4px 0 !important;
  border-bottom: 3px solid #E5A12A !important;
}

.pkp_page_index .obj_issue_toc .sections .section > h2::after,
.pkp_page_index .obj_issue_toc .sections .section > h3::after,
.pkp_page_issue .obj_issue_toc .sections .section > h2::after,
.pkp_page_issue .obj_issue_toc .sections .section > h3::after,
.pkp_page_index .obj_issue_toc .sections .section h2::after,
.pkp_page_index .obj_issue_toc .sections .section h3::after,
.pkp_page_issue .obj_issue_toc .sections .section h2::after,
.pkp_page_issue .obj_issue_toc .sections .section h3::after {
  content: none !important;
  display: none !important;
}

html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section {
  text-align: left !important;
}

html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section h3 {
  margin: 0 0 12px 15px !important;
  text-align: left !important;
}

html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section {
  text-align: right !important;
  padding-right: 0 !important;
}

html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section h3 {
  margin: 0 0 12px auto !important;
  text-align: right !important;
}

/* ===== EN/AR precise alignment for Articles heading ===== */
.pkp_page_index .obj_issue_toc .sections .section,
.pkp_page_issue .obj_issue_toc .sections .section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pkp_page_index .obj_issue_toc .sections .section > h2,
.pkp_page_index .obj_issue_toc .sections .section > h3,
.pkp_page_issue .obj_issue_toc .sections .section > h2,
.pkp_page_issue .obj_issue_toc .sections .section > h3,
.pkp_page_index .obj_issue_toc .sections .section h2,
.pkp_page_index .obj_issue_toc .sections .section h3,
.pkp_page_issue .obj_issue_toc .sections .section h2,
.pkp_page_issue .obj_issue_toc .sections .section h3 {
  display: block !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding: 0 0 4px 0 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  border-bottom: 3px solid #E5A12A !important;
}

/* EN: same horizontal start as CURRENT ISSUE and first article title */
html[lang^="en"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[lang^="en"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[lang^="en"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[lang^="en"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section h3,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[dir="ltr"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section h3 {
  margin-left: 15px !important;
  margin-right: auto !important;
  text-align: left !important;
}

/* AR: same horizontal start as Ø§Ù„Ø¹Ø¯Ø¯ Ø§Ù„Ø­Ø§Ù„ÙŠ and first article title */
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section {
  text-align: right !important;
}

html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section h3,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section h3 {
  margin-right: 0 !important;
  margin-left: auto !important;
  text-align: right !important;
}

/* ===== Arabic micro-shift to the right for perfect alignment ===== */
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[lang^="ar"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section h3,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section h2,
html[dir="rtl"] .pkp_page_index .obj_issue_toc .sections .section h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section h3 {
  transform: translateX(10px) !important;
}

/* ===== Arabic issue page final alignment fix ===== */
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3 {
  display: block !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  margin: 0 0 12px auto !important;
  padding: 0 0 4px 0 !important;
  text-align: right !important;
  border-bottom: 3px solid #E5A12A !important;
  position: relative !important;
  right: -5px !important;
  transform: none !important;
}

/* Remove orange underline from article title on Arabic issue page */
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  border-bottom: 0 !important;
  position: static !important;
  right: auto !important;
  transform: none !important;
}

/* Hard override: move Arabic article title slightly to the right on issue page */
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a {
  position: static !important;
  right: auto !important;
  display: inline-block !important;
  border-bottom: 0 !important;
}

/* ===== One baseline alignment for all issue items (AR only) ===== */
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section {
  --issue-align-right-shift: 1px;
}

html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary {
  position: relative !important;
  right: var(--issue-align-right-shift) !important;
}

html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .authors,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .authors,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .pages,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .pages,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .galleys_links,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .galleys_links {
  text-align: right !important;
  float: none !important;
}

/* Force smaller article title size on Arabic issue TOC (including link itself) */
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[lang^="ar"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[dir="rtl"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* EN issue page: keep Articles, title, author and PDF button on one left baseline */
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section {
  --issue-en-left-align: 15px;
}

html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section > h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section > h2,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section > h3 {
  margin-left: var(--issue-en-left-align) !important;
  margin-right: auto !important;
  text-align: left !important;
}

html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary {
  margin-left: var(--issue-en-left-align) !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .authors,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .galleys_links,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .authors,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .galleys_links {
  margin-left: 0 !important;
  text-align: left !important;
}

html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .galleys_links,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .galleys_links {
  float: none !important;
}

/* EN issue page: remove orange line under article title and make title smaller */
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title {
  font-size: 15px !important;
  line-height: 1.45 !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3 a,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title a {
  font-size: inherit !important;
  line-height: inherit !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}

/* EN issue page: bring author line directly under title */
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary h3,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .title {
  margin: 0 0 4px 0 !important;
}

html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta,
html[lang^="en"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .authors,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta,
html[dir="ltr"] .pkp_page_issue .obj_issue_toc .sections .section .obj_article_summary .meta .authors {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* AR issue pages: make footer publisher/license/ISSN block align closer to EN baseline */
html[lang^="ar"] body.pkp_page_issue .pkp_structure_footer .pkp_footer_content,
html[dir="rtl"] body.pkp_page_issue .pkp_structure_footer .pkp_footer_content {
  position: relative !important;
  right: -16px !important;
}

/* Sidebar custom block tables (Journal Highlights): colored rows + centered layout */
.pkp_structure_sidebar .pkp_block .content table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 6px 0 10px 0 !important;
  table-layout: fixed !important;
}

/* Widen this custom table horizontally so long labels stay on one line */
.pkp_structure_sidebar .pkp_block .content table.hover {
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  margin: 6px 0 12px 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  table-layout: fixed !important;
}

.pkp_structure_sidebar .pkp_block .content table td {
  background: #39891A !important;
  color: #ffffff !important;
  border: 1px solid #2F7515 !important;
  padding: 6px 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  transition: background-color 0.15s ease-in-out !important;
}

.pkp_structure_sidebar .pkp_block .content table.hover td,
.pkp_structure_sidebar .pkp_block .content table.hover th {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

/* Remove asymmetric inner padding from custom blocks to keep true visual centering */
.pkp_structure_sidebar .pkp_block.block_custom .content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pkp_structure_sidebar .pkp_block .content table.hover td {
  font-size: 14px !important;
}

.pkp_structure_sidebar .pkp_block .content table.hover th {
  font-size: 15px !important;
}

/* Keep Publication Frequency one step smaller */
.pkp_structure_sidebar .pkp_block .content table.hover tr:nth-child(6) td {
  font-size: 13px !important;
}

/* Make Languages one more step smaller */
.pkp_structure_sidebar .pkp_block .content table.hover tr:nth-child(7) td {
  font-size: 12px !important;
}


/* Section headers in your HTML are <th>: keep them outside the red frame */
.pkp_structure_sidebar .pkp_block .content table th {
  background: transparent !important;
  color: #39891A !important;
  border: 0 !important;
  padding: 8px 2px !important;
  text-align: center !important;
  vertical-align: middle !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.pkp_structure_sidebar .pkp_block .content table a,
.pkp_structure_sidebar .pkp_block .content table a:visited,
.pkp_structure_sidebar .pkp_block .content table a:hover,
.pkp_structure_sidebar .pkp_block .content table a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

/* Hover effect: make row darker when mouse is over links/rows */
.pkp_structure_sidebar .pkp_block.block_custom .content table tr:hover > td,
.pkp_structure_sidebar .pkp_block.block_custom .content table td:has(a:hover) {
  background: #2F7515 !important;
}

/* Style the OJS block title (outside red rows) */
.pkp_structure_sidebar .pkp_block.block_custom > .title {
  display: block !important;
  color: #39891A !important;
  text-align: center !important;
  font-weight: 700 !important;
  margin: 0 0 8px 0 !important;
}


/* Keep links in section header rows (<th>) in the same maroon color */
.pkp_structure_sidebar .pkp_block.block_custom .content table th a,
.pkp_structure_sidebar .pkp_block.block_custom .content table th a:visited,
.pkp_structure_sidebar .pkp_block.block_custom .content table th a:hover,
.pkp_structure_sidebar .pkp_block.block_custom .content table th a:focus {
  color: #39891A !important;
  text-decoration: none !important;
}

/* Move OJS/PKP footer brand left on all LTR (English-interface) pages */
html[dir="ltr"] .pkp_structure_footer .pkp_brand_footer,
html[dir="ltr"] .pkp_structure_footer .pkp_brand_footer a {
  position: relative !important;
  right: 22px !important;
  left: auto !important;
  transform: none !important;
}


/* Arabic index only: align the green custom table to the right */
html[lang^="ar"] .pkp_page_index .pkp_structure_sidebar .pkp_block .content table.hover,
html[dir="rtl"] .pkp_page_index .pkp_structure_sidebar .pkp_block .content table.hover {
  margin-left: auto !important;
  margin-right: 0 !important;
}


/* Arabic index footer: move publisher/license/ISSN block slightly to the right */
html[lang^="ar"] body.pkp_page_index .pkp_structure_footer .pkp_footer_content,
html[dir="rtl"] body.pkp_page_index .pkp_structure_footer .pkp_footer_content {
  position: relative !important;
  right: -20px !important;
}


html[lang^="ar"] body.pkp_page_index .pkp_structure_footer .pkp_brand_footer,
html[lang^="ar"] body.pkp_page_index .pkp_structure_footer .pkp_brand_footer a,
html[dir="rtl"] body.pkp_page_index .pkp_structure_footer .pkp_brand_footer,
html[dir="rtl"] body.pkp_page_index .pkp_structure_footer .pkp_brand_footer a {
  left: 0 !important;
}








/* Final rule: move PKP/OJS brand left on all non-RTL pages (English pages site-wide) */
html:not([dir="rtl"]) body .pkp_structure_footer .pkp_brand_footer,
html:not([dir="rtl"]) body .pkp_structure_footer .pkp_brand_footer a {
  position: relative !important;
  transform: translateX(-10px) !important;
}

/* Apply same PKP/OJS shift on all Arabic/RTL pages */
html[dir="rtl"] body .pkp_structure_footer .pkp_brand_footer,
html[dir="rtl"] body .pkp_structure_footer .pkp_brand_footer a,
html[lang^="ar"] body .pkp_structure_footer .pkp_brand_footer,
html[lang^="ar"] body .pkp_structure_footer .pkp_brand_footer a {
  transform: translateX(-0px) !important;
}








/* Arabic site-wide footer text block: unify same offset as /ar/index */
html[lang^="ar"] body .pkp_structure_footer .pkp_footer_content,
html[dir="rtl"] body .pkp_structure_footer .pkp_footer_content {
  position: relative !important;
  right: -20px !important;
}

/* Arabic site-wide green table: match /ar/index positioning and alignment */
html[lang^="ar"] body .pkp_structure_sidebar .pkp_block .content table.hover,
html[dir="rtl"] body .pkp_structure_sidebar .pkp_block .content table.hover {
  width: calc(100% - 20px) !important;
  max-width: calc(100% - 20px) !important;
  margin: 6px 0 12px 0 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  table-layout: fixed !important;
}
