/* ============================================================
   Spark — SITE stylesheet  (public/site/styleSheet.css)
   Loaded on EVERY page of this OJS install (publisher site AND
   all journals), so everything here is GLOBAL / shared.

   Publisher-only styling lives in the sparkHome theme:
   plugins/themes/sparkHome/styles/spark.css
   ============================================================ */

/* ---------- Global: font ---------- */
body {
  font-family: Georgia, "Times New Roman", serif !important;
}

/* ---------- Global: justified paragraphs with hyphenation ---------- */
p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ---------- Global: hide the "About the Journal" homepage section ---------- */
.homepage_about {
  display: none !important;
}

/* ---------- Global: banner background for journal site headers ---------- */
.pkp_site_name {
  position: relative;
  background-color: transparent !important;
}

.pkp_site_name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://sparkjournals.com/public/site/images/spark-banner.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  z-index: 0;
  pointer-events: none;
}

.pkp_site_name > a,
.pkp_site_name > .is_img {
  position: relative;
  z-index: 1;
}

.pkp_site_name > a img,
.pkp_site_name > .is_img img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 991px) {
  .pkp_site_name::before {
    background-size: 50% auto !important;
  }
}

@media (max-width: 600px) {
  .pkp_site_name::before {
    background-size: 42% auto !important;
  }
}

/* ---------- Global: primary navigation ---------- */
.pkp_navigation_primary_row {
  background: #e65100;
}

.pkp_navigation_primary_wrapper {
  padding: 0 !important;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkp_navigation_primary {
  text-align: center;
}

.pkp_navigation_primary > li > a {
  display: inline-block;
  padding: 8px 20px !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffb300;
  text-decoration: none;
}

.pkp_navigation_primary > li > a:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
}

.pkp_navigation_primary ul a {
  color: #e65100 !important;
}

.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  background: #fff3e0;
  border-color: #fb8c00;
}

/* ---------- Global: header + mobile toggle ---------- */
.pkp_structure_head {
  background: #fff;
  border-bottom: 1px solid #ffe0b2;
}

.pkp_site_nav_toggle {
  background: #e65100;
  border: 1px solid #e65100;
  color: #ffffff;
}

.pkp_site_nav_toggle:focus {
  outline: 2px solid #ffb300;
}

/* ---------- Global: register / login (user nav) ---------- */
.pkp_navigation_user a {
  color: #e65100 !important;
}

.pkp_navigation_user a:hover,
.pkp_navigation_user a:focus {
  color: #fb8c00 !important;
  text-decoration: underline;
}

/* ---------- Global: mobile navigation panel ---------- */
@media (max-width: 991px) {
  .pkp_site_nav_menu {
    background: #ffffff;
  }

  .pkp_navigation_primary_row {
    background: #ffffff;
  }

  .pkp_navigation_primary > li > a {
    color: #e65100 !important;
  }
}

/* ---------- Global: footer (hide OJS branding, keep custom footer) ---------- */
.pkp_brand_footer {
  display: none !important;
}

.pkp_structure_footer_wrapper {
  padding: 0;
}

.pkp_structure_footer {
  padding: 0;
  text-align: left;
}
