/* ============================================================================
   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_privacy,
html body .pkp_structure_page .page_information,
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_information 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;
}

/* 3b. Universal Override for Inline HTML & Old Styles Inside ALL Pages
       Cancels duplicate inline Hero Banners & converts all old blue inline styles
       into the Unified Navy (#0c1f38) & Gold (#c9922a) Card Identity */

html body .pkp_structure_page .pkp_structure_main .page * {
  font-family: 'Segoe UI', Arial, sans-serif !important;
}

/* Outer Card Wrapper for Custom & Static Pages (.page > div) */
html body .pkp_structure_page .pkp_structure_main .page:not([class*="page_"]) > div {
  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;
  color: #2c3e50 !important;
  max-width: 100% !important;
}

html body .pkp_structure_page .pkp_structure_main .page > div > div[style*="border-radius: 16px"][style*="overflow: hidden"] {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Hide Duplicate Inline Hero / Title Banners Inside Pages (since Top Centered Title Box is used) */
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#123d7a"],
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#123757"],
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#123a5b"],
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#123B63"],
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#174A7E"],
html body .pkp_structure_page .pkp_structure_main .page > div > div > div:first-child[style*="#0d2944"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="font-size: 29px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="font-size: 28px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="font-size: 26px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="font-size: 25px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="font-size: 34px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="letter-spacing: 4px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="letter-spacing: 2.4px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="letter-spacing: 2.5px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-radius: 18px"][style*="letter-spacing"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="width: 65px"][style*="height: 3px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="height: 5px"][style*="linear-gradient"] {
  display: none !important;
}

/* Convert Remaining Hero Containers (that hold intro paragraphs/tables) into Clean Sub-Cards */
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#10385d"],
html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#f4f9fc"] {
  background: #f8fafd !important;
  color: #2c3e50 !important;
  border: 1px solid #dce5ef !important;
  border-top: 2px solid #0c1f38 !important;
  border-left: 3px solid #c9922a !important;
  border-radius: 10px !important;
  padding: 18px 22px !important;
  margin-bottom: 18px !important;
}

html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#10385d"] p {
  color: #2c3e50 !important;
  max-width: 100% !important;
}

html body .pkp_structure_page .pkp_structure_main .page > div > div:first-child[style*="#10385d"] td {
  background: #ffffff !important;
  border: 1px solid #dce5ef !important;
  border-top: 2px solid #0c1f38 !important;
  border-radius: 6px !important;
  color: #0c1f38 !important;
}

/* Convert All Old Blue Section Header Bars to Navy (#0c1f38) with Gold Accent (#c9922a) */
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #2878d4"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #123d7a"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #123d72"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #123B63"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #123757"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #286e9b"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #2d8159"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #0b5394"],
html body .pkp_structure_page .pkp_structure_main .page span[style*="background: #315e78"],
html body .pkp_structure_page .pkp_structure_main .page a[style*="background: #3d5869"],
html body .pkp_structure_page .pkp_structure_main .page a[style*="linear-gradient"] {
  background: #0c1f38 !important;
  color: #ffffff !important;
  border-left: 3px solid #c9922a !important;
  border-bottom-color: #c9922a !important;
  border-top-color: #c9922a !important;
  border-radius: 6px !important;
}

html body .pkp_structure_page .pkp_structure_main .page td[style*="background: #123d72"],
html body .pkp_structure_page .pkp_structure_main .page td[style*="background: #277a53"] {
  background: #0c1f38 !important;
  color: #ffffff !important;
  border-top: 3px solid #c9922a !important;
}

/* Convert Light-Blue Numbers & Subtitles Inside Navy Bars to Gold (#c9922a) */
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #9ec9fa"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #80bfff"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #80a8d2"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #b5d4f7"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #3e72ad"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #5a9de6"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #abd1f8"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #9dc9f1"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #91c7fa"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #9bc9ef"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #9cc5e8"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #b8d6eb"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #cce9d8"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #cce5f3"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #d3eddd"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #63a9ee"] {
  color: #c9922a !important;
}

/* Convert All Left-Bordered Inline Callout Boxes to Unified Gold Left-Border Sub-Cards */
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-left: 3px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-left: 4px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-left: 5px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-left: 6px"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-left: 2px solid #6"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-left: 2px solid #7"] {
  background: #f8fafd !important;
  border-color: #dce5ef !important;
  border-left: 3px solid #c9922a !important;
  border-radius: 6px !important;
}

/* Convert All Old Light-Blue Box & Cell Backgrounds to Soft Ice-Gray (#f8fafd) */
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #eef"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #edf"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #f4f"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #f3f"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #f2f"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #f5f"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #eaf"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #e1e"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #EAF"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #E3F"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #E7F"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #F5F"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="background: #fff8e9"],
html body .pkp_structure_page .pkp_structure_main .page td[style*="background: #edf"],
html body .pkp_structure_page .pkp_structure_main .page td[style*="background: #eef"],
html body .pkp_structure_page .pkp_structure_main .page td[style*="background: #EDF"] {
  background: #f8fafd !important;
  border-color: #dce5ef !important;
}

/* Preserve Navy (#0c1f38) & Gold (#c9922a) Top/Left Borders on All Cards & Sub-Cards */
html body .pkp_structure_page .pkp_structure_main .page [style*="border-top: 2px solid #0c1f38"] {
  border-top: 2px solid #0c1f38 !important;
}

html body .pkp_structure_page .pkp_structure_main .page [style*="border-top: 2px solid #c9922a"] {
  border-top: 2px solid #c9922a !important;
}

html body .pkp_structure_page .pkp_structure_main .page [style*="border-left: 2px solid #0c1f38"] {
  border-left: 2px solid #0c1f38 !important;
}

html body .pkp_structure_page .pkp_structure_main .page [style*="border-left: 2px solid #c9922a"] {
  border-left: 2px solid #c9922a !important;
}

html body .pkp_structure_page .pkp_structure_main .page div[style*="border-top: 4px solid #"] {
  border-top: 2px solid #0c1f38 !important;
}

/* Convert All Old Blue Headings, Labels & Text Colors to Navy (#0c1f38) */
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #1976d2"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #173f67"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #064780"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #124c7a"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #17578a"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #15588b"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #174f7b"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #123d72"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #1c638f"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #1b5e87"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #24638c"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #28734d"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #277a53"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #123b63"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #3f78a8"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #397faf"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #356c99"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #0d4c85"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #0b2e5e"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #174a7e"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #245f91"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #3d5869"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #8b6415"],
html body .pkp_structure_page .pkp_structure_main .page [style*="color: #8a1f2d"] {
  color: #0c1f38 !important;
}

/* Convert Numbered Circles & Badges to Navy (#0c1f38) & Gold (#c9922a) */
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-radius: 50%"][style*="background: #174f7b"] {
  background: #0c1f38 !important;
  color: #c9922a !important;
  border: 1px solid #c9922a !important;
}

html body .pkp_structure_page .pkp_structure_main .page div[style*="border-radius: 50%"][style*="background: #438AC2"],
html body .pkp_structure_page .pkp_structure_main .page div[style*="border-radius: 50%"][style*="background: #3d5869"] {
  background: #c9922a !important;
}

/* Privacy Statement Specific Inner Cleanup */
html body .pkp_structure_page .page_privacy > div {
  max-width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
}

html body .pkp_structure_page .page_privacy > div > div:nth-child(2) {
  padding: 0 !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;
  }
}
