/* ============================================================================
   AL-ZAHRAWI UNIFIED VISUAL IDENTITY (NAVY #0c1f38 & GOLD #c9922a CARD THEME)
   Applies automatically to Homepage, All System Pages, Custom Pages & Sidebar
   ============================================================================ */

/* Hide Breadcrumbs ("HOME / ...") across all pages */
html body .pkp_structure_page nav.cmp_breadcrumbs {
  display: none !important;
}

/* 1. Global Card Wrapper for Homepage About & All Native OJS Pages */
html body .pkp_structure_page .homepage_about,
html body .pkp_structure_page .page_about,
html body .pkp_structure_page .page_contact,
html body .pkp_structure_page .page_submissions,
html body .pkp_structure_page .page_announcements,
html body .pkp_structure_page .page_issue,
html body .pkp_structure_page .page_issue_archive,
html body .pkp_structure_page .page_search,
html body .pkp_structure_page .page_login,
html body .pkp_structure_page .page_register {
  background: #ffffff !important;
  border: 1px solid #dce5ef !important;
  border-top: 2px solid #0c1f38 !important;
  border-left: 2px solid #c9922a !important;
  border-radius: 12px !important;
  padding: 24px 28px !important;
  margin: 18px 0 25px 0 !important;
  box-shadow: 0 6px 20px rgba(12, 31, 56, 0.07) !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  direction: ltr !important;
  text-align: left !important;
}

/* 2. Unified Top Page Title Box (Centered Navy #0c1f38 & Gold #c9922a Banner Card)
      Applies to ALL pages: Static Pages (> h2), Custom Menu Pages (> h1.page_title),
      and Native OJS Pages (.page_about > h1, .page_privacy > h1, .page_issue > h1, etc.) */
html body .pkp_structure_page .pkp_structure_main .page > h2,
html body .pkp_structure_page .pkp_structure_main .page > h1,
html body .pkp_structure_page .pkp_structure_main .page > h1.page_title,
html body .pkp_structure_page .homepage_about > h2 {
  display: block !important;
  background: #f8fafd !important;
  border: 1px solid #dce5ef !important;
  border-top: 3px solid #0c1f38 !important;
  border-left: 2px solid #c9922a !important;
  border-right: 2px solid #c9922a !important;
  border-radius: 12px !important;
  padding: 20px 28px 24px 28px !important;
  margin: 10px 0 22px 0 !important;
  box-shadow: 0 6px 18px rgba(12, 31, 56, 0.07) !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  color: #0c1f38 !important;
  text-align: center !important;
  letter-spacing: 0.4px !important;
  position: relative !important;
}

html body .pkp_structure_page .pkp_structure_main .page > h2:after,
html body .pkp_structure_page .pkp_structure_main .page > h1:after,
html body .pkp_structure_page .pkp_structure_main .page > h1.page_title:after,
html body .pkp_structure_page .homepage_about > h2:after {
  content: "" !important;
  display: block !important;
  width: 85px !important;
  height: 3px !important;
  background: #c9922a !important;
  position: static !important;
  margin: 10px auto 0 auto !important;
  border-radius: 2px !important;
}

/* 3. Sub-sections inside Submissions / Contact / Issues / Announcements */
html body .pkp_structure_page .page_submissions .author_guidelines,
html body .pkp_structure_page .page_submissions .submission_checklist,
html body .pkp_structure_page .page_submissions .section_policy,
html body .pkp_structure_page .page_contact .contact_section,
html body .pkp_structure_page .page_issue .cmp_notification,
html body .pkp_structure_page .page_submissions .cmp_notification {
  background: #f8fafd !important;
  border: 1px solid #e2eaf2 !important;
  border-left: 2px solid #c9922a !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  margin: 0 0 18px 0 !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
}

html body .pkp_structure_page .page_submissions h2,
html body .pkp_structure_page .page_contact h2 {
  font-size: 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #0c1f38 !important;
  margin: 0 0 10px 0 !important;
}

html body .pkp_structure_page .homepage_about p,
html body .pkp_structure_page .page_about p,
html body .pkp_structure_page .page_privacy p,
html body .pkp_structure_page .page_submissions p,
html body .pkp_structure_page .page_announcements p,
html body .pkp_structure_page .page_issue_archive p,
html body .pkp_structure_page .page_contact p {
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  color: #2c3e50 !important;
  text-align: justify !important;
}

/* 4. Sidebar Block Styling (Navy & Gold Identity - Gold line on opposite right edge) */
html body .pkp_structure_page .pkp_block {
  font-family: 'Segoe UI', Arial, sans-serif !important;
  background: #ffffff !important;
  border: 1px solid #dce5ef !important;
  border-top: 2px solid #0c1f38 !important;
  border-right: 2px solid #c9922a !important;
  border-left: 1px solid #dce5ef !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 14px rgba(12, 31, 56, 0.06) !important;
}

html body .pkp_structure_page .pkp_block .title {
  color: #0c1f38 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding-bottom: 8px !important;
  margin: 0 0 12px 0 !important;
  border-bottom: 1px solid #eef2f6 !important;
  position: relative !important;
}

html body .pkp_structure_page .pkp_block .title:after {
  content: "" !important;
  display: block !important;
  width: 75px !important;
  height: 2.5px !important;
  background: #c9922a !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -1px !important;
}

html body .pkp_structure_page .pkp_block.block_custom a {
  color: #0c1f38 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: color 0.2s ease !important;
}

html body .pkp_structure_page .pkp_block.block_custom a:hover {
  color: #c9922a !important;
}

/* 5. Page Background & Separated Panels for Main Content and Sidebar (Option 3) */
html body,
html body .pkp_structure_page {
  background: linear-gradient(180deg, #e6edf5 0%, #eef3f9 100%) !important;
}

html body .pkp_structure_content.has_sidebar {
  display: flex !important;
  gap: 34px !important;
  max-width: 1240px !important;
  margin: 26px auto !important;
  padding: 0 22px !important;
  align-items: flex-start !important;
}

html body .pkp_structure_main {
  flex: 1 1 69% !important;
  width: auto !important;
  float: none !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid #d4e0ed !important;
  border-radius: 16px !important;
  padding: 12px 24px 24px 24px !important;
  margin: 0 !important;
  box-shadow: 0 8px 26px rgba(12, 31, 56, 0.07) !important;
}

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

html body .pkp_structure_sidebar {
  flex: 0 0 325px !important;
  width: 325px !important;
  float: none !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid #d4e0ed !important;
  border-top: 3px solid #0c1f38 !important;
  border-left: 3px solid #c9922a !important;
  border-radius: 16px !important;
  padding: 20px 18px 4px 18px !important;
  margin: 0 !important;
  box-shadow: 0 8px 26px rgba(12, 31, 56, 0.07) !important;
}

@media (max-width: 991px) {
  html body .pkp_structure_content.has_sidebar {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 0 14px !important;
  }
  html body .pkp_structure_main,
  html body .pkp_structure_sidebar {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}
