/* 1. Make homepage image fill the screen properly */
img[src*="homepageImage_en"] {
  display: block;
  width: 100%;
  height: 100vh;
  /* full viewport height */
  object-fit: cover;
  /* keep aspect ratio */
  object-position: center;
}

/* 2. Force homepage hero/description grid into a single column */
.pkp_page_index .mx-auto.grid {
  grid-template-columns: 1fr !important;
}

/* 3. Limit logo height with min and max */
img[src*="pageHeaderLogoImage_en"] {
  max-height: 110px !important;
  height: auto !important;
  width: auto !important;
}


/* 4. Make header scroll normally (not sticky) */
header.sticky {
  position: static !important;
  top: auto !important;
}

/* 5. Hide the dark mode toggle button */
button[aria-label="Theme"] {
  display: none !important;
}

/* 6. Hide "About the Journal" section on homepage */
section.homepage_about {
  display: none !important;
}

/* 7. "Submit an Article" button style for homepage hero and nav menu */
a[href*="/about/submissions"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  /* hide original text */
  position: relative;
  background-color: #D36135 !important;
  /* orange */
  color: #ffffff !important;
  /* white text */
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

/* Pseudo-element with correct label */
a[href*="/about/submissions"]::after {
  content: "Submit an Article";
  display: inline-block;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

/* Hover / active */
a[href*="/about/submissions"]:hover,
a[href*="/about/submissions"]:active {
  background-color: #bf4e2d !important;
  color: #ffffff !important;
}




/* 8. Hide the "Archives" button */

/* 81) Hide "Archives" only in the homepage hero buttons row (the div with mt-8 flex) */
.pkp_page_index div.mt-8.flex>a[href*="/issue/archive"] {
  display: none !important;
}

/* 82) Make sure the "Archives" link in the header / primary navigation remains visible */
header a[href*="/issue/archive"],
.pkp_navigation_primary a[href*="/issue/archive"],
#navigationPrimary a[href*="/issue/archive"] {
  display: inline-flex !important;
  visibility: visible !important;
}

/* 83) Scope the "Send article" → "Submit an Article" text replacement and styling
   to only the homepage hero button (so the nav "Submissions" stays untouched) */
.pkp_page_index div.mt-8.flex>a[href*="/about/submissions"] {
  font-size: 0 !important;
  /* hide original text */
  position: relative;
  background-color: #D36135 !important;
  /* your custom background */
  color: #ffffff !important;
  /* white text */
}

/* pseudo-element that shows the new label */
.pkp_page_index div.mt-8.flex>a[href*="/about/submissions"]::after {
  content: "Submit an Article";
  display: inline-block;
  font-size: 0.875rem;
  /* matches text-sm */
  font-weight: 600;
  /* matches font-semibold */
  line-height: 1;
  color: #ffffff;
}

/* 84) Optional: keep hover/active states consistent for the hero button */
.pkp_page_index div.mt-8.flex>a[href*="/about/submissions"]:hover,
.pkp_page_index div.mt-8.flex>a[href*="/about/submissions"]:active {
  background-color: #bf4e2d !important;
  /* slightly darker on hover */
  color: #ffffff !important;
}

/* 9. Add a down arrow for menu items with submenus */

#navigationPrimary li>div:has(ul)>a {
  position: relative;
  padding-right: 1.25rem;
  /* space for the arrow */
}

#navigationPrimary li>div:has(ul)>a::after {
  content: "▼";
  /* always down arrow */
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  /* smaller arrow */
  color: inherit;
  pointer-events: none;
}


/* 10. Fix: Ensure the primary navigation is on top of homepage content when submenus are open */
#navigationPrimary {
  z-index: 1000;
  /* Use a high value to ensure it's on top */
  position: relative;
  /* z-index only works on positioned elements */
}

/* Also ensure the main header is above the hero content */
header {
  z-index: 1010;
  /* Slightly higher than the navigation, if necessary */
  position: relative;
}

/* 11. Fix Hide the screen-reader-only text that is being displayed visually */
.pkp_screen_reader {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}