/* Transparent OJS navigation */
.pkp_site_nav_menu {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Make every navigation link white */
.pkp_navigation_primary a,
.pkp_navigation_primary > li > a,
.pkp_site_nav_menu a {
  color: #ffffff !important;
}

/* Light green dropdown background */
.pkp_navigation_primary ul,
.pkp_navigation_primary li ul,
.pkp_navigation_primary .dropdown-menu {
  background-color: #4f8f70 !important;
  background: #4f8f70 !important;
}

/* White dropdown text */
.pkp_navigation_primary ul li a,
.pkp_navigation_primary li ul li a,
.pkp_navigation_primary .dropdown-menu a {
  color: #ffffff !important;
}

/* Slightly darker green on hover */
.pkp_navigation_primary ul li a:hover,
.pkp_navigation_primary li ul li a:hover,
.pkp_navigation_primary .dropdown-menu a:hover {
  background-color: #367456 !important;
  color: #ffffff !important;
}

/* Dropdown border and subtle shadow */
.pkp_navigation_primary ul,
.pkp_navigation_primary li ul {
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* =========================================
   JICSPBR HOMEPAGE HERO
   Scoped styles to protect the rest of OJS
   ========================================= */

.jicspbr-hero {
  --jicspbr-navy: #06264b;
  --jicspbr-blue: #07558a;
  --jicspbr-teal: #007e75;
  --jicspbr-mint: #91f0d2;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto 2rem;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);

  color: #ffffff;
  background:
    radial-gradient(
      ellipse at 95% 15%,
      rgba(0, 170, 120, 0.28),
      transparent 42%
    ),
    linear-gradient(115deg, #041d3c 0%, #06446c 52%, #006b5a 100%);

  border: 1px solid rgba(145, 240, 210, 0.2);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(4, 29, 60, 0.16);
}

.jicspbr-hero,
.jicspbr-hero * {
  box-sizing: border-box;
}

.jicspbr-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1120px;
  margin: 0 auto;
}

.jicspbr-hero-copy {
  min-width: 0;
}

.jicspbr-hero .jicspbr-eyebrow {
  margin: 0 0 1rem;
  color: var(--jicspbr-mint);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.jicspbr-hero h1 {
  margin: 0 0 1.25rem;
  padding: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.jicspbr-hero h1 span {
  display: block;
  color: #ffffff;
}

.jicspbr-hero h1 .jicspbr-accent {
  margin-top: 0.15em;
  color: var(--jicspbr-mint);
}

.jicspbr-hero .jicspbr-description {
  max-width: 620px;
  margin: 0 0 1.8rem;
  color: #e0edf5;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
}

.jicspbr-hero .jicspbr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.jicspbr-hero .jicspbr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--jicspbr-mint);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.jicspbr-hero .jicspbr-btn-primary {
  color: #062b40;
  background: var(--jicspbr-mint);
}

.jicspbr-hero .jicspbr-btn-primary:hover {
  color: #062b40;
  background: #ffffff;
  border-color: #ffffff;
}

.jicspbr-hero .jicspbr-btn-outline {
  color: #ffffff;
  background: transparent;
}

.jicspbr-hero .jicspbr-btn-outline:hover {
  color: #062b40;
  background: var(--jicspbr-mint);
}

.jicspbr-hero .jicspbr-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.jicspbr-hero-visual {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  text-align: center;
}

.jicspbr-hero .jicspbr-cover-frame {
  padding: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.jicspbr-hero .jicspbr-cover-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 3px;
}

.jicspbr-hero .jicspbr-cover-caption {
  margin: 0.85rem 0 0;
  color: var(--jicspbr-mint);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Tablet and mobile layout */
@media (max-width: 768px) {
  .jicspbr-hero {
    padding: 2rem 1.25rem;
    border-radius: 8px;
  }

  .jicspbr-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .jicspbr-hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
  }

  .jicspbr-hero-visual {
    width: min(100%, 260px);
  }

  .jicspbr-hero .jicspbr-cover-frame img {
    max-height: 340px;
  }
}

@media (max-width: 420px) {
  .jicspbr-hero .jicspbr-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jicspbr-hero .jicspbr-btn {
    width: 100%;
  }
}

/* Make hero background full browser width */
.jicspbr-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

/* Keep hero content neatly centered */
.jicspbr-hero .jicspbr-hero-inner {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Fix horizontal overflow from the full-width hero */
html,
body {
  overflow-x: hidden;
}

/* Keep the hero above the surrounding content borders */
.jicspbr-hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Keep the hero content centered */
.jicspbr-hero .jicspbr-hero-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

/* Hide the homepage About the Journal section only */
body.pkp_page_index .homepage_about {
  display: none !important;
}

/* Remove the empty About section on homepage */
body.pkp_page_index .homepage_about {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

/* Remove borders and spacing from the empty wrapper */
body.pkp_page_index .page_index_journal {
  border: 0 !important;
}

/* Remove the gap above Additional Content */
body.pkp_page_index .additional_content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* Remove borders from the content container around the hero */
body.pkp_page_index .pkp_structure_content {
  border-top: 0 !important;
}

/* Keep hero aligned directly after the preceding content */
body.pkp_page_index .jicspbr-hero {
  margin-top: 0 !important;
}

/* Remove excess top spacing on the homepage */
body.pkp_page_index .pkp_structure_main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove the top spacing from the main content wrapper */
body.pkp_page_index .pkp_structure_content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove extra spacing around homepage content */
body.pkp_page_index .pkp_structure_main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove spacing around the hero section */
body.pkp_page_index .jicspbr-hero {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove extra padding from the hero's content wrapper */
body.pkp_page_index .additional_content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Hide OJS / PKP branding in footer */
.pkp_brand_footer {
  display: none !important;
}

/* ///////////////////////////////////////////////////////////////////////////////// */

/* FIX: JICSPBR footer background and oversized logo */

.pkp_structure_footer_wrapper {
  padding: 0 !important;
  margin: 0 !important;
  background: #05264a !important;
  border: 0 !important;
  box-shadow: none !important;
}

.jicspbr-footer {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 22px 15px 12px !important;
  overflow: hidden !important;
  text-align: center !important;
  background: linear-gradient(
    110deg,
    #05264a 0%,
    #064b69 55%,
    #007568 100%
  ) !important;
  color: #ffffff !important;
  border-top: 3px solid #8af0d5 !important;
}

/* Force the logo to stay small */
.jicspbr-footer-logo {
  display: block !important;
  width: 100% !important;
  margin: 0 auto 8px !important;
  text-align: center !important;
}

.jicspbr-footer-logo img {
  display: block !important;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Footer text */
.jicspbr-footer-name {
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 auto 10px !important;
}

.jicspbr-footer-divider {
  width: 90% !important;
  max-width: 850px !important;
  height: 1px !important;
  margin: 0 auto 10px !important;
  background: rgba(138, 240, 213, 0.6) !important;
}

.jicspbr-copyright {
  color: #d7f4ee !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  margin: 0 auto !important;
}

.pkp_brand_footer {
  display: none !important;
}
