/* ================================================
   JOURNAL OF COMPUTER ENGINEERING
   OJS 3.5 · Health Sciences · Bootstrap 5
   v3 — Logo + Banner + Nav + Sidebar fixes
   ================================================ */
/* Add to top of jce_v3.css to reduce font render blocking */


/* BODY */
body {
  background-color: #fdf8f0 !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  color: #1e1e1e !important;
}

/* =====================
   TOP USER BAR (JCE_ADMIN area)
   ===================== */
#navigationUser,
.main-header > .container > .row:first-child {
  background: #1a0508 !important;
  padding: 4px 0 !important;
  font-size: 12px !important;
}
#navigationUser a,
#navigationUser .nav-link,
#navigationUser .dropdown-toggle {
  color: #c48090 !important;
  font-family: sans-serif !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
}
#navigationUser a:hover { color: #d4a017 !important; }

/* =====================
   MAIN HEADER
   ===================== */
.main-header {
  background: #3b0d1a !important;
  border-bottom: 3px solid #d4a017 !important;
  padding: 0 !important;
}

/* =====================
   LOGO — bigger, proper fit
   ===================== */
.navbar-brand {
  padding: 10px 20px !important;
}
.navbar-brand img,
.navbar-logo img,
.navbar-brand .img-fluid {
  height: 70px !important;
  width: auto !important;
  max-width: 340px !important;
  object-fit: contain !important;
  display: block !important;
}

/* =====================
   NAVIGATION BAR
   ===================== */
.navbar {
  background: #270810 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.navbar-nav .nav-link,
.navbar-nav .nav-item > a {
  color: #c48090 !important;
  font-family: sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  padding: 14px 24px !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.2s ease !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-item > a:hover {
  color: #ffffff !important;
  background: rgba(212,160,23,0.1) !important;
  border-bottom-color: rgba(212,160,23,0.4) !important;
}
.nav-item.nmi_type_current > a,
.nav-item.nmi_type_current .nav-link {
  color: #ffffff !important;
  border-bottom: 3px solid #d4a017 !important;
}

/* DROPDOWN */
.dropdown-menu {
  background: #3b0d1a !important;
  border: 0.5px solid #5a1525 !important;
  border-top: 2px solid #d4a017 !important;
  border-radius: 0 0 6px 6px !important;
  padding: 4px 0 !important;
  margin-top: 0 !important;
}
.dropdown-item {
  color: #e8b4c0 !important;
  font-size: 12px !important;
  font-family: sans-serif !important;
  padding: 9px 20px !important;
}
.dropdown-item:hover {
  background: #270810 !important;
  color: #d4a017 !important;
}
.dropdown-toggle::after { border-top-color: #c48090 !important; }

/* =====================
   CURRENT ISSUE LABEL
   ===================== */
.homepage-issue-current,
h2.homepage-issue-current {
  background: #3b0d1a !important;
  color: #d4a017 !important;
  font-family: sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 7px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid #5a1525 !important;
}

/* Vol/Issue and Date */
.homepage-issue-identifier,
.issue-identifier {
  color: #3b0d1a !important;
  font-family: Georgia, serif !important;
  font-size: 22px !important;
  font-weight: bold !important;
  text-align: center !important;
  padding: 16px 0 4px !important;
  margin: 0 !important;
}
.homepage-issue-published,
.issue-published {
  color: #7a3545 !important;
  font-family: sans-serif !important;
  font-size: 12px !important;
  text-align: center !important;
  padding-bottom: 16px !important;
}

/* Page background */
.page-content,
.container-homepage-issue,
.issue-wrapper {
  background: #fdf8f0 !important;
}

/* =====================
   SIDEBAR — enable layout
   ===================== */
.pkp_structure_main,
main.pkp_structure_main {
  float: left !important;
  width: 72% !important;
}
.pkp_structure_sidebar,
aside.pkp_structure_sidebar {
  float: right !important;
  width: 26% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Sidebar blocks */
.pkp_block,
.pkp_structure_sidebar .pkp_block {
  background: #ffffff !important;
  border: 0.5px solid #e8d5c4 !important;
  border-top: 3px solid #8b1a2e !important;
  border-radius: 6px !important;
  margin-bottom: 16px !important;
  padding: 14px 16px !important;
  overflow: hidden !important;
}
.pkp_block .title,
.pkp_block h2,
.pkp_block .pkp_block_title {
  color: #3b0d1a !important;
  font-family: Georgia, serif !important;
  font-size: 13px !important;
  font-weight: bold !important;
  border-bottom: 1px solid #e8d5c4 !important;
  padding-bottom: 7px !important;
  margin-bottom: 10px !important;
}
.pkp_block a {
  color: #8b1a2e !important;
  font-size: 12px !important;
  font-family: sans-serif !important;
  line-height: 2 !important;
  display: block !important;
}
.pkp_block a:hover { color: #d4a017 !important; }

/* Submit button block */
.pkp_block .pkp_helpers_align_center,
.pkp_block a.submit {
  display: block !important;
  background: #8b1a2e !important;
  color: #fff !important;
  text-align: center !important;
  padding: 9px 16px !important;
  border-radius: 4px !important;
  font-family: sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  transition: background 0.2s !important;
}
.pkp_block a.submit:hover { background: #3b0d1a !important; color: #d4a017 !important; }

/* =====================
   ARTICLE CARDS
   ===================== */
.issue-toc-section-title {
  color: #3b0d1a !important;
  font-family: Georgia, serif !important;
  font-size: 17px !important;
  font-weight: bold !important;
  border-bottom: 2px solid #d4a017 !important;
  padding-bottom: 7px !important;
  margin: 24px 0 16px !important;
}
.article-summary {
  background: #ffffff !important;
  border: 0.5px solid #e8d5c4 !important;
  border-top: 3px solid #3b0d1a !important;
  border-radius: 6px !important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
  transition: border-top-color 0.25s !important;
}
.article-summary:hover { border-top-color: #d4a017 !important; }
.article-summary-title a {
  color: #3b0d1a !important;
  font-family: Georgia, serif !important;
  font-size: 15px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  line-height: 1.55 !important;
}
.article-summary-title a:hover { color: #8b1a2e !important; }
.article-summary-authors {
  color: #7a3545 !important;
  font-size: 12px !important;
  font-family: sans-serif !important;
  margin: 5px 0 10px !important;
}

/* PDF / GALLEY */
.article-summary-galleys a,
.article-summary-galleys .btn,
.btn-primary {
  background: #8b1a2e !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 5px 16px !important;
  font-size: 11px !important;
  font-family: sans-serif !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.article-summary-galleys a:hover,
.btn-primary:hover {
  background: #3b0d1a !important;
  color: #d4a017 !important;
}

/* VIEW ALL ISSUES */
.btn-outline-primary {
  border: 1.5px solid #8b1a2e !important;
  color: #8b1a2e !important;
  background: transparent !important;
  border-radius: 4px !important;
  font-family: sans-serif !important;
  font-size: 13px !important;
  padding: 9px 28px !important;
  transition: all 0.2s !important;
}
.btn-outline-primary:hover {
  background: #8b1a2e !important;
  color: #fff !important;
}

/* ADDITIONAL CONTENT (metrics strip) */
.homepage-additional-content { padding: 0 !important; margin: 0 !important; }

/* FOOTER */
.site-footer {
  background: #270810 !important;
  border-top: 3px solid #d4a017 !important;
  margin-top: 40px !important;
  padding: 0 !important;
  clear: both !important;
}
.site-footer-content { background: #270810 !important; padding: 0 !important; }
.site-footer-sidebar { display: none !important; }

/* GENERAL */
a { color: #8b1a2e !important; transition: color 0.2s !important; }
a:hover { color: #d4a017 !important; text-decoration: none !important; }
h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6 {
  font-family: Georgia, 'Times New Roman', serif !important;
  color: #3b0d1a !important;
}

/* MOBILE */
@media (max-width: 991px) {
  .pkp_structure_main { width: 100% !important; float: none !important; }
  .pkp_structure_sidebar { width: 100% !important; float: none !important; }
  .homepage-image, .homepage-image-behind-issue,
  .homepage-image img, .homepage-image-behind-issue img {
    height: 220px !important;
  }
  .navbar-brand img { height: 50px !important; }
}
@media (max-width: 768px) {
  .navbar-collapse { background: #270810 !important; }
}



/* ================================================
   TARGETED FIXES — v3.1
   1. Submission page login link visibility
   2. Mobile hamburger icon
   3. Mobile nav link colors
   4. Footer link hover colors
   ================================================ */

/* =====================
   FIX 1: SUBMISSION PAGE
   "Make a new submission or [login link]"
   The login link was white on maroon — invisible
   ===================== */
.pkp_page_submissions .submission_login,
.pkp_page_index .submission_login,
.cmp_submissions .pkp_link,
.submissions-notice a,
.submissions-notice .pkp_linkAction,
.pkp_page_submissions a,
.pkp_page_submissions .pkp_link {
  color: #d4a017 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

/* Fix the maroon submission notice bar */
.pkp_page_submissions .pkp_block_login,
.pkp_page_submissions .pkp_notice,
div[class*="submission"] a,
.submissions_login a,
.pkp_page_submissions > .pkp_structure_main a:not(.btn):not(.pkp_button) {
  color: #d4a017 !important;
}

/* The "or" separator text and login link on submissions page */
.pkp_page_submissions .pkp_login_banner a,
.pkp_page_submissions p a,
.cmp_submission_login a,
.submission-reminder a {
  color: #d4a017 !important;
  font-weight: 600 !important;
}

/* =====================
   FIX 2: MOBILE HAMBURGER ICON
   Navbar toggler must be visible on dark background
   ===================== */
.navbar-toggler {
  border: 1.5px solid #d4a017 !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  background: rgba(212,160,23,0.1) !important;
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 2px rgba(212,160,23,0.4) !important;
  outline: none !important;
}
/* Replace dark icon with white/gold one */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212%2C160%2C23%2C1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 22px !important;
  height: 22px !important;
}

/* =====================
   FIX 3: MOBILE NAV LINKS
   Expanded mobile menu — all links clearly visible
   ===================== */
@media (max-width: 991px) {

  /* Mobile nav container */
  .navbar-collapse {
    background: #270810 !important;
    border-top: 2px solid #d4a017 !important;
    padding: 8px 0 16px !important;
    margin: 0 !important;
  }

  /* All mobile nav links */
  .navbar-collapse .navbar-nav .nav-link,
  .navbar-collapse .navbar-nav .nav-item > a,
  .navbar-collapse .nav-link {
    color: #e8b4c0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
    border-bottom: 0.5px solid rgba(212,160,23,0.15) !important;
    letter-spacing: 1px !important;
    display: block !important;
    text-transform: uppercase !important;
  }

  /* Active mobile nav item */
  .navbar-collapse .nav-item.nmi_type_current > a,
  .navbar-collapse .nav-item.nmi_type_current .nav-link {
    color: #ffffff !important;
    border-left: 3px solid #d4a017 !important;
    background: rgba(212,160,23,0.08) !important;
    padding-left: 21px !important;
  }

  /* Mobile nav hover */
  .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar-collapse .navbar-nav .nav-item > a:hover {
    color: #ffffff !important;
    background: rgba(212,160,23,0.12) !important;
  }

  /* Mobile dropdown toggle arrow */
  .navbar-collapse .dropdown-toggle {
    color: #e8b4c0 !important;
  }
  .navbar-collapse .dropdown-toggle::after {
    border-top-color: #d4a017 !important;
    margin-left: 8px !important;
  }

  /* Mobile dropdown submenu */
  .navbar-collapse .dropdown-menu {
    background: #1a0508 !important;
    border: none !important;
    border-left: 3px solid #d4a017 !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    margin: 0 !important;
  }
  .navbar-collapse .dropdown-item {
    color: #c48090 !important;
    padding: 10px 32px !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    border-bottom: 0.5px solid rgba(212,160,23,0.1) !important;
  }
  .navbar-collapse .dropdown-item:hover {
    color: #d4a017 !important;
    background: rgba(212,160,23,0.08) !important;
  }

  /* Hide Register/Login from mobile nav — they're in user bar */
  .navbar-collapse .nmi_type_register,
  .navbar-collapse .nmi_type_login {
    display: none !important;
  }

  /* Logo smaller on mobile */
  .navbar-brand img {
    height: 48px !important;
    max-width: 220px !important;
  }

  /* Article cards full width on mobile */
  .article-summary {
    padding: 14px 16px !important;
  }

  /* Footer stack on mobile */
  .site-footer .container > div {
    flex-direction: column !important;
  }
}

/* =====================
   FIX 4: SUBMISSION PAGE BANNER
   "Make a new submission or [login]"
   Full fix for the maroon bar text
   ===================== */
.pkp_page_submissions .pkp_structure_main > div:first-child,
.cmp_make_submission {
  background: #3b0d1a !important;
  color: #e8b4c0 !important;
  border-radius: 6px !important;
  padding: 14px 20px !important;
  font-family: sans-serif !important;
  font-size: 13px !important;
}
.cmp_make_submission a,
.pkp_page_submissions .make_submission a {
  color: #d4a017 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(212,160,23,0.4) !important;
}
.cmp_make_submission a:hover {
  color: #fff !important;
}

/* ================================================
   ARCHIVES — Clean 4-column grid
   Exact structure: container.page-archives >
   row.justify-content-around > col-md-3.col-lg-2 >
   card.issue-summary
   Cards visible by default — JS enhances with year groups
   ================================================ */

/* Page */
.page-archives {
  background: #fdf8f0 !important;
  padding: 24px 0 48px !important;
}

/* Archives heading */
.page-archives-header,
.page-archives h1.title {
  color: #3b0d1a !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 26px !important;
  font-weight: bold !important;
  border-bottom: 2px solid #d4a017 !important;
  padding-bottom: 10px !important;
  margin-bottom: 28px !important;
}

/* Override Bootstrap justify-content-around
   to make a proper 4-column grid */
.page-archives .row.justify-content-around {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  justify-content: unset !important;
  margin: 0 !important;
}

/* Column wrappers — reset Bootstrap */
.page-archives .col-md-3,
.page-archives .col-lg-2 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  display: block !important;
}

/* Issue card */
.page-archives .card.issue-summary {
  background: #ffffff !important;
  border: 0.5px solid #e8d5c4 !important;
  border-top: 3px solid #3b0d1a !important;
  border-radius: 6px !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
  box-shadow: none !important;
  transition: border-top-color 0.2s ease, transform 0.2s ease !important;
}
.page-archives .card.issue-summary:hover {
  border-top-color: #d4a017 !important;
  transform: translateY(-2px) !important;
}

/* Card body */
.page-archives .card-body {
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Issue title */
.page-archives .card-title.issue-summary-series {
  font-family: Georgia, serif !important;
  font-size: 14px !important;
  font-weight: bold !important;
  color: #3b0d1a !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.45 !important;
}
.page-archives .card-title.issue-summary-series a {
  color: #3b0d1a !important;
  text-decoration: none !important;
}
.page-archives .card-title.issue-summary-series a:hover {
  color: #8b1a2e !important;
}

/* Date */
.page-archives .card-text {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 0.5px solid #e8d5c4 !important;
}
.page-archives .issue-summary-date {
  color: #7a3545 !important;
  font-size: 11px !important;
  font-family: sans-serif !important;
  margin: 0 !important;
}

/* Pagination */
.page-archives .cmp_pagination,
.page-archives .pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 32px 0 !important;
  font-family: sans-serif !important;
  list-style: none !important;
  padding: 0 !important;
}
.page-archives .page-link,
.page-archives .cmp_pagination a {
  border: 1.5px solid #8b1a2e !important;
  color: #8b1a2e !important;
  background: transparent !important;
  padding: 7px 16px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-size: 12px !important;
  transition: all 0.2s !important;
}
.page-archives .page-link:hover,
.page-archives .cmp_pagination a:hover {
  background: #8b1a2e !important;
  color: #fff !important;
}
.page-archives .page-item.active .page-link {
  background: #3b0d1a !important;
  border-color: #3b0d1a !important;
  color: #fff !important;
}

/* Year group styles — used by JS below */
.jce-year-section { margin-bottom: 36px; }
.jce-year-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.jce-year-pill {
  background: #3b0d1a;
  color: #d4a017;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 20px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.jce-year-divider { flex: 1; height: 1px; background: #e8d5c4; }
.jce-year-meta {
  color: #7a3545;
  font-family: sans-serif;
  font-size: 11px;
  white-space: nowrap;
}
.jce-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .page-archives .row.justify-content-around,
  .jce-year-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
@media (max-width: 480px) {
  .page-archives .row.justify-content-around,
  .jce-year-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Fix: Submit button text visibility on static pages */
a[style*="background: #8b1a2e"],
a[style*="background:#8b1a2e"] {
  color: #ffffff !important;
}

a[style*="background: #8b1a2e"]:hover,
a[style*="background:#8b1a2e"]:hover {
  color: #d4a017 !important;
}

/* Hide honeypot label text but keep the field for spam protection */
.form-group-honeypot,
[id*="honeypot"],
label[for*="honeypot"] {
  opacity: 0 !important;
  position: absolute !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Fix: Login modal Register here link visibility */
.modal a,
.pkp_modal a,
[id*="login"] a,
.login-form a {
  color: #d4a017 !important;
}

/* Fix: Login button in modal */
.modal .btn,
.modal button[type="submit"],
.pkp_modal .btn {
  color: #ffffff !important;
  background: #8b1a2e !important;
}

/* Remove border from Login nav item */
.nmi_type_login a,
#navigationUser .nmi_type_login a {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Clean white form fields on register/login pages */
.pkp_page_register input,
.pkp_page_register select,
.pkp_page_login input,
input[type="text"],
input[type="email"],
input[type="password"] {
  background: #ffffff !important;
  border-bottom: 1px solid #e8d5c4 !important;
}

/* Hide honeypot spam trap — visually hidden but functional */
#adminAssignOptions,
label[for="adminAssignOptions"],
.adminAssignOptions,
label:has(#adminAssignOptions) {
  position: absolute !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix contrast ratio in footer for WCAG AA compliance */
.site-footer,
[style*="background:#270810"] {
  color: #d4a4b0 !important;
}
.site-footer a,
[style*="background:#270810"] a {
  color: #e8c4cc !important;
}

/* Force scroll anchor to top */
html {
  scroll-behavior: auto !important;
}

/* ================================================
   FIX — Reduce homepage banner height
   Currently fills entire screen, needs to be shorter
   ================================================ */

/* Desktop — reduce from full-screen to compact banner */
.homepage-image,
.homepage-image-behind-issue {
  height: 320px !important;
  max-height: 320px !important;
}

.homepage-image img,
.homepage-image-behind-issue img {
  height: 320px !important;
  max-height: 320px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Tablet (991px and below) */
@media (max-width: 991px) {
  .homepage-image,
  .homepage-image-behind-issue {
    height: 240px !important;
    max-height: 240px !important;
  }
  .homepage-image img,
  .homepage-image-behind-issue img {
    height: 240px !important;
    max-height: 240px !important;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .homepage-image,
  .homepage-image-behind-issue {
    height: 180px !important;
    max-height: 180px !important;
  }
  .homepage-image img,
  .homepage-image-behind-issue img {
    height: 180px !important;
    max-height: 180px !important;
  }
}

/* ================================================
   FIX — Reduce oversized header
   ================================================ */

/* Reduce the top user bar padding */
.pkp_site_nav_user {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Reduce logo area height */
.navbar-brand img,
.pkp_site_name img {
  height: 50px !important;
  max-height: 50px !important;
}

/* Reduce navbar padding */
.navbar,
.pkp_navigation_primary_row {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  min-height: 0 !important;
}

/* Reduce the header block overall */
#headerNavigationContainer,
.pkp_structure_head {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
/* ================================================
   BANNER + HEADER — FINAL CLEAN v3.4
   ================================================ */

/* --- Image container --- */
.homepage-image,
.homepage-image-behind-issue {
  width: 100% !important;
  height: auto !important;         /* let image breathe naturally */
  max-height: none !important;
  overflow: hidden !important;
  display: block !important;
  position: relative !important;
  z-index: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* Remove OJS dark overlay */
.homepage-image-behind-issue::after {
  display: none !important;
}

/* --- Image — show full, no crop --- */
.homepage-image img,
.homepage-image-behind-issue img {
  width: 100% !important;
  height: auto !important;         /* preserves full ratio — shows SJR boxes */
  max-height: none !important;
  object-fit: fill !important;     /* no cropping at all */
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Remove OJS 320px overlay margin --- */
.issue-only-image {
  margin-top: 0 !important;
}

/* --- Content directly below image --- */
.container-homepage-issue,
.container-homepage-issue.page-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* --- Current Issue / Vol / Published tighten --- */
.homepage-issue-current,
h2.homepage-issue-current {
  margin-top: 0 !important;
  padding-top: 12px !important;
}

.homepage-issue-current,
.homepage-issue-identifier,
.homepage-issue-published {
  margin-bottom: 8px !important;
}

.homepage-issue-published,
.issue-published {
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}

.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-published {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* --- Header — reduce logo size only, keep layout --- */
.navbar-brand img,
.navbar-logo img,
.navbar-brand .img-fluid {
  height: 55px !important;
  max-height: 55px !important;
  width: auto !important;
}

.navbar-brand {
  padding: 4px 16px !important;   /* was 10px — saves ~12px */
}

/* --- Prevent browser scroll restoration --- */
html {
  scroll-behavior: auto !important;
}

/* --- Tablet (max 991px) --- */
@media (max-width: 991px) {
  .homepage-image img,
  .homepage-image-behind-issue img {
    width: 100% !important;
    height: auto !important;
  }

  .navbar-brand img {
    height: 48px !important;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 40px !important;
  }
}

/* Add to end of jce_v11.css — reduces header on smaller viewports only */
@media (max-width: 1200px) {
  .navbar-brand img,
  .navbar-logo img,
  .navbar-brand .img-fluid {
    height: 46px !important;
  }

  .navbar-brand {
    padding: 2px 12px !important;
  }

  .navbar-nav .nav-link,
  .navbar-nav .nav-item > a {
    padding: 10px 16px !important;  /* was 14px top/bottom */
    font-size: 12px !important;
  }
}

@media (max-width: 900px) {
  .navbar-brand img {
    height: 38px !important;
  }

  .main-header {
    padding: 0 !important;
  }
}