.page-submissions {
  position: relative;

}

.page-submissions::after {
  content: "";
  display: table;
  clear: both;
}

/* Make the content column full width ONLY on static pages */
.page-static .col-md-8 {
  width: 100%;
  max-width: 1200px; /* optional cap */
}

/* Stop Bootstrap centring it */
.page-static .row.justify-content-md-center {
  justify-content: flex-start;
}

.page-submissions .alert-primary a,
.page-submissions .alert-primary a:visited,
.page-submissions .alert-primary a:hover,
.page-submissions .alert-primary a:active,
.page-submissions .alert-primary a:focus {
  color: #ffffff;
  text-decoration: underline; /* optional but recommended for accessibility */
}

.page-submissions h1,
.page-submissions h2,
.page-submissions h3,
.page-submissions h4 {
  color: #222;
}

.page-submissions h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e5e5e5;
}

.page-submissions h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700; 
}

.page-submissions h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-weight: 600; 
}

.page-submissions p,
.page-submissions li {
  line-height: 1.6;
}

.page-submissions a {
  color: #1e6bb8;
  text-decoration: none;
}

.page-submissions a:hover,
.page-submissions a:focus {
  text-decoration: underline;
}

.page-nav {
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 3px;
  padding: 1rem 1rem 0.8rem;
  margin: 0 0 2rem 0;
}

.page-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #333;
}

.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-nav li {
  margin: 0 0 0.55rem 0;
}

.page-nav li:last-child {
  margin-bottom: 0;
}

.return-top {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.return-top a {
  color: #5a5a5a;
}

.submission-download {
  margin: 1rem 0 1.5rem;
  font-weight: 600;
}

.flowchart {
  margin: 1.5rem 0;
  text-align: center;
}

.flowchart img {
  max-width: 100%;
  height: auto;
  border: 1px solid #dddddd;
  background: #ffffff;
}

.page-tip {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid #cfcfcf;
  background: #f8f8f8;
}

.page-submissions h2,
.page-submissions h3,
.page-submissions h4 {
  scroll-margin-top: 110px;
}

@media (min-width: 980px) {
  .page-nav {
    float: left;
    width: 240px;
    position: sticky;
    top: 1.5rem;
    margin-right: 2rem;
  }

  .page-submissions-content {
    margin-left: 280px;
  }
}

@media (max-width: 979px) {
  .page-nav {
    position: static;
    float: none;
    width: 100%;
  }

  .page-submissions-content {
    margin-left: 0;
  }
}


/* YASJ homepage refinements for OJS 3.5 / Health Sciences theme.
   Append to your existing Journal Style Sheet under Website > Appearance > Advanced.
   These rules are intentionally scoped to the journal homepage. */

/* 1. Keep the photograph as a banner rather than behind the issue details. */
.homepage-image-behind-issue {
  position: relative;
  z-index: auto;
  height: 330px;
  max-height: none;
  overflow: hidden;
}
.homepage-image-behind-issue img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.homepage-image-behind-issue::after {
  background: rgba(0, 0, 0, 0.08);
}

/* 2. Move the issue heading onto the page, with clearer hierarchy. */
.homepage-image-behind-issue + .container-homepage-issue {
  margin-top: 0;
  padding-top: 2rem;
}
.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-current,
.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-identifier,
.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-published {
  color: #24343a;
  text-shadow: none;
  margin-top: 0;
  margin-bottom: 0.45rem;
}
.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-current {
  color: #0a7681;
  font: 700 0.85rem/1.5 "Fira Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-identifier {
  font-size: 1.8rem;
  line-height: 1.25;
}
.homepage-image-behind-issue + .container-homepage-issue .homepage-issue-published {
  font-size: 0.85rem;
  color: #69767a;
}

/* 3. Present the cover and description as one connected feature. */
.container-homepage-issue .homepage-issue-header {
  max-width: 1050px;
  margin: 1.8rem auto 2.8rem;
  padding: 1.8rem;
  align-items: center;
  background: #f6f9f9;
  border: 1px solid #e4ecec;
  border-radius: 5px;
}
.container-homepage-issue .homepage-issue-cover {
  max-width: 195px;
  max-height: none;
  margin-bottom: 0;
  box-shadow: 0 8px 22px rgba(24, 54, 65, 0.14);
}
.container-homepage-issue .homepage-issue-description-wrapper {
  padding: 0.4rem 1.2rem;
  background: transparent;
}
.container-homepage-issue .homepage-issue-description {
  max-height: none;
  padding-bottom: 0;
  overflow: visible;
}
.container-homepage-issue .homepage-issue-description::after,
.container-homepage-issue .homepage-issue-description-more {
  display: none;
}
.container-homepage-issue .homepage-issue-description .h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
}
.container-homepage-issue .homepage-issue-description p {
  margin: 0.6rem 0;
}
.container-homepage-issue .homepage-issue-galleys {
  margin-top: 1rem;
  padding-bottom: 0;
}
.container-homepage-issue .homepage-issue-galleys .h3 {
  display: inline-block;
  margin: 0 1rem 0 0;
  font-size: 1rem;
}

/* 4. Make the six articles a compact, scannable contents list. */
.container-homepage-issue .issue-wrapper {
  max-width: 1050px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1.5rem;
}
.container-homepage-issue .issue-wrapper > .col-12.col-lg-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

.container-homepage-issue .issue-toc-section-title {
  margin: 0 0 0.8rem;
  color: #0a7681;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.col-3.col-md-2.col-lg-2
.article-summary-pages.text-right {
    width: 100%;
    text-align: right !important;
}
.container-homepage-issue .article-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  margin: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid #e5ecec;
}
.container-homepage-issue .article-summary > .row {
  grid-column: 1 / -1;
  margin: 0;
}
.container-homepage-issue .article-summary > .row > .col:first-child {
  padding-left: 0;
}
.container-homepage-issue .article-summary > .row > :last-child {
  padding-right: 0;
}
.container-homepage-issue .article-summary-title {
  grid-column: 1;
  font-size: 1.17rem;
  line-height: 1.4;
}
.container-homepage-issue .article-summary-galleys {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  margin-top: 0;
}
.container-homepage-issue .article-summary .btn,
.container-homepage-issue .homepage-issue-galleys .btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

/* 5. Separate the information for contributors from the issue contents. */
.container-homepage-issue .homepage-additional-content {
  max-width: 1050px;
  margin: 3rem auto 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5ecec;
}
.container-homepage-issue .homepage-additional-content > .col-lg-9 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 991px) {
  .homepage-image-behind-issue { height: 190px; }
  .homepage-image-behind-issue + .container-homepage-issue { padding-top: 1.5rem; }
  .container-homepage-issue .homepage-issue-header { padding: 1.5rem; }
  .container-homepage-issue .homepage-issue-cover { margin-bottom: 1.5rem; }
  .container-homepage-issue .homepage-issue-description-wrapper { padding: 0; }
}
@media (max-width: 575px) {
  .homepage-image-behind-issue { height: 160px; }
  .homepage-image-behind-issue + .container-homepage-issue .homepage-issue-identifier { font-size: 1.45rem; }
  .container-homepage-issue .homepage-issue-header { margin: 1.5rem 0 2.3rem; padding: 1.25rem; }
  .container-homepage-issue .homepage-issue-cover { max-width: 170px; }
  .container-homepage-issue .article-summary-title { grid-column: 1 / -1; }
  .container-homepage-issue .article-summary-galleys { grid-column: 1 / -1; grid-row: auto; margin-top: 0.5rem; }
  .container-homepage-issue .article-summary { padding: 1rem 0; }
  .container-homepage-issue .homepage-issue-galleys .h3 { margin-right: 0.65rem; }
}



/* Additional homepage content */

.container-homepage-issue .issue-wrapper {
    margin-bottom: 1.5rem;
}

.homepage-additional-content .yasj-about {
    max-width: 1050px;
    margin: 0 auto;
}

.yasj-about h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #24343a;
}

.yasj-about > p {
    line-height: 1.7;
    max-width: 850px;
}

/* Author and reviewer cards */

.yasj-home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.yasj-home-card {
    background: #f6f9f9;
    border: 1px solid #e4ecec;
    border-radius: 5px;
    padding: 1.5rem;
}

.yasj-home-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #0a7681;
    margin-top: 0.5rem;
}

.yasj-home-card p {
    line-height: 1.6;
}

.yasj-home-card a {
    font-weight: 600;
    color: #087787;
    text-decoration: none;
}

.yasj-home-card a:hover {
    text-decoration: underline;
}

.yasj-contact {
    font-size: 0.9rem;
    color: #66757a;
}

/* Mobile */

@media (max-width: 767px) {
    .yasj-home-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

