/* ═══════════════════════════════════════════
   JEFIS — OJS 3.5.0.4 — Final Scoped CSS
   Journal of Emerging Finance & Intelligent Systems
   Monarch Research Press
═══════════════════════════════════════════ */

/* ── Navigation bar background ── */
.pkp_site_nav_menu {
  background-color: #0D2B4E !important;
}

/* ── Top-level nav items ── */
.pkp_navigation_primary > ul > li {
  background-color: #0D2B4E !important;
}
.pkp_navigation_primary > ul > li > a {
  color: #ffffff !important;
  background-color: transparent !important;
}
.pkp_navigation_primary > ul > li > a:hover,
.pkp_navigation_primary > ul > li:hover > a,
.pkp_navigation_primary > ul > li:focus-within > a {
  color: #00A6A6 !important;
  background-color: #0D2B4E !important;
}

/* ── Dropdown container ── */
.pkp_navigation_primary > ul > li > ul {
  background-color: #0D2B4E !important;
  border: 1px solid #00A6A6 !important;
  border-top: 3px solid #00A6A6 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  min-width: 230px !important;
  z-index: 99999 !important;
}

/* ── Dropdown items ── */
.pkp_navigation_primary > ul > li > ul > li {
  background-color: #0D2B4E !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pkp_navigation_primary > ul > li > ul > li:last-child {
  border-bottom: none !important;
}

/* ── Dropdown links ── */
.pkp_navigation_primary > ul > li > ul > li > a {
  color: #ffffff !important;
  background-color: #0D2B4E !important;
  display: block !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}
.pkp_navigation_primary > ul > li > ul > li > a:hover {
  background-color: #00A6A6 !important;
  color: #ffffff !important;
  padding-left: 22px !important;
}

/* ── Public page headings ── */
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 {
  color: #0D2B4E;
}

/* ── Public page links ── */
.pkp_structure_main a { color: #0D2B4E; }
.pkp_structure_main a:hover { color: #00A6A6; }

/* ── Article listing titles ── */
.obj_article_summary .title a { color: #0D2B4E !important; }
.obj_article_summary .title a:hover { color: #00A6A6 !important; }

/* ── Primary buttons ── */
.pkp_button_primary {
  background-color: #00A6A6 !important;
  border-color: #00A6A6 !important;
  color: #ffffff !important;
}
.pkp_button_primary:hover {
  background-color: #0D2B4E !important;
  border-color: #0D2B4E !important;
  color: #ffffff !important;
}

/* ── Footer ── */
.pkp_structure_footer {
  background-color: #0D2B4E !important;
  color: #D6DCE5 !important;
}
.pkp_structure_footer a { color: #00A6A6 !important; }
.pkp_structure_footer a:hover { color: #ffffff !important; }

/* ── Sidebar block headings ── */
.pkp_block h2 {
  color: #00A6A6;
  border-bottom: 2px solid #D6DCE5;
  padding-bottom: 5px;
}
.pkp_block .title {
  color: #0D2B4E !important;
  font-weight: bold;
}

/* ── Logo area padding reduction ── */
@media (min-width: 992px) {
  .has_site_logo .pkp_head_wrapper {
    padding-top: 1rem !important;
  }
}

/* ── Logo max height increase ── */
@media (min-width: 992px) {
  .pkp_site_name .is_img img {
    max-height: 96px !important;
  }
}

/* ── Hide PKP brand footer ── */
.pkp_brand_footer {
  display: none !important;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   Breakpoint: 768px and below
═══════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Footer table: stack columns vertically ── */
  .pkp_structure_footer table,
  .pkp_structure_footer tbody,
  .pkp_structure_footer tr,
  .pkp_structure_footer td {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
  }

  /* ── Hide logo column on mobile ── */
  .pkp_structure_footer td:last-child {
    display: none !important;
  }

  /* ── Footer text sizing ── */
  .pkp_structure_footer p,
  .pkp_structure_footer a {
    font-size: 13px !important;
    line-height: 1.8 !important;
  }

  /* ── Quick links: stack vertically ── */
  .pkp_structure_footer p:last-child a {
    display: block !important;
    margin: 4px 0 !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  /* ── Remove pipe separators on mobile ── */
  .pkp_structure_footer p:last-child {
    line-height: 2.2 !important;
  }

  /* ── Banner image responsive ── */
  .pkp_structure_main img[src*="homepageImage"] {
    width: 100% !important;
    height: auto !important;
  }

  /* ── About stats table: 2 columns on mobile ── */
  .pkp_structure_main table td {
    width: 50% !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    margin-bottom: 4px !important;
  }

  /* ── Sidebar below main content on mobile ── */
  .pkp_structure_sidebar {
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 2px solid #D6DCE5 !important;
  }

  /* ── Navigation logo size ── */
  .pkp_site_name .is_img img {
    max-height: 60px !important;
  }

  /* ── Highlight/CTA block ── */
  .pkp_block_highlight {
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
  }

  /* ── General text readability ── */
  .pkp_structure_main {
    padding: 0 12px !important;
  }

  /* ── Make submission button full width ── */
  .pkp_block_makeSubmission a {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

}

@media (max-width: 480px) {

  /* ── Extra small screens ── */
  .pkp_structure_main table td {
    width: 100% !important;
    display: block !important;
  }

  /* ── Footer padding ── */
  .pkp_structure_footer {
    padding: 20px 16px !important;
  }

  /* ── Journal name font size ── */
  .pkp_structure_footer strong {
    font-size: 15px !important;
  }

}

/* ── Mobile header fixes ── */
@media (max-width: 768px) {

  /* Reduce header padding on mobile */
  .has_site_logo .pkp_head_wrapper {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Logo max height on mobile */
  .pkp_site_name .is_img img {
    max-height: 52px !important;
    width: auto !important;
  }

  /* Journal name font on mobile */
  .pkp_site_name a {
    font-size: 13px !important;
    line-height: 1.3 !important;
  }

  /* Header wrapper flex alignment */
  .pkp_head_wrapper {
    display: flex !important;
    align-items: center !important;
  }

  /* Footer quick links — remove any leftover pipe display */
  .pkp_structure_footer ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .pkp_structure_footer ul li a {
    display: block !important;
    color: #00A6A6 !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
  }
  .pkp_structure_footer ul li a:hover {
    color: #ffffff !important;
  }
}

/* ── Mobile header — refined fixes ── */
@media (max-width: 768px) {

  /* Compact header height */
  .pkp_head_wrapper {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  /* Smaller logo on mobile */
  .pkp_site_name .is_img img {
    max-height: 44px !important;
    width: auto !important;
  }

  /* Hide journal name text on mobile
     (it is already visible on the banner image) */
  .pkp_site_name .is_img + a,
  .pkp_site_name span,
  .pkp_site_name a span,
  .pkp_site_name .title {
    display: none !important;
  }

  /* Keep only the logo image visible */
  .pkp_site_name {
    display: flex !important;
    align-items: center !important;
  }

  /* Reduce top nav bar overall height */
  .pkp_site_nav_menu {
    min-height: unset !important;
  }

  /* Hamburger menu button alignment */
  .pkp_navigation_toggle {
    padding: 8px !important;
  }
}

/* ── Logo margin fix — mobile only ── */
@media (max-width: 768px) {
  .pkp_site_name .is_img {
    display: inline-block !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
}

/* ── Footer Quick Links — inline on desktop ── */
@media (min-width: 769px) {
  .pkp_structure_footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
  }

  .pkp_structure_footer ul li {
    display: inline-flex !important;
    align-items: center !important;
    border-bottom: none !important;
    padding: 0 !important;
  }

  .pkp_structure_footer ul li a {
    display: inline !important;
    color: #00A6A6 !important;
    padding: 0 !important;
    font-size: 14px !important;
  }

  .pkp_structure_footer ul li a:hover {
    color: #ffffff !important;
  }

  /* Add pipe separator between items */
  .pkp_structure_footer ul li::after {
    content: " | " !important;
    color: rgba(255,255,255,0.3) !important;
    margin: 0 6px !important;
  }

  .pkp_structure_footer ul li:last-child::after {
    content: "" !important;
  }
}

/* ── Footer logo alignment — desktop ── */
@media (min-width: 769px) {
  .pkp_structure_footer table {
    height: 100% !important;
  }
  .pkp_structure_footer table > tbody > tr {
    display: flex !important;
    align-items: center !important;
  }
  .pkp_structure_footer table > tbody > tr > td:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    vertical-align: middle !important;
    padding-left: 20px !important;
  }
  .pkp_structure_footer table > tbody > tr > td:last-child img {
    display: block !important;
    margin: 0 auto !important;
  }
}