/* =========================================================
   Best Years: Parallax Wide section
   Position: parallax-wide
   Purpose: separate full-width parallax/banner block above link-follow
   ========================================================= */

.by-parallax-wide-section {
  overflow: hidden;
}

/* Only target modules directly inside the parallax-wide section */
.by-parallax-wide-section > .moduletable,
.by-parallax-wide-section > .mod-custom,
.by-parallax-wide-section .mod-position-parallax-wide,
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body,
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > .mod-custom {
  margin: 0;
}

/* Apply parallax treatment only to modules in the parallax-wide position */
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > .mod-custom,
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > [id^="mod-custom"],
.by-parallax-wide-section > .mod-custom,
.by-parallax-wide-section > [id^="mod-custom"] {
  position: relative;
  min-height: 320px;
  padding: 4.5rem 1.5rem;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > .mod-custom,
  .by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > [id^="mod-custom"],
  .by-parallax-wide-section > .mod-custom,
  .by-parallax-wide-section > [id^="mod-custom"] {
    min-height: 380px;
    background-attachment: fixed;
  }
}

/* Avoid fixed-background jank on iOS/mobile */
@media (max-width: 991.98px), (prefers-reduced-motion: reduce) {
  .by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > .mod-custom,
  .by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > [id^="mod-custom"],
  .by-parallax-wide-section > .mod-custom,
  .by-parallax-wide-section > [id^="mod-custom"] {
    background-attachment: scroll;
  }
}

/* Optional readable overlay, scoped only to parallax-wide module */
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > .mod-custom::before,
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > [id^="mod-custom"]::before,
.by-parallax-wide-section > .mod-custom::before,
.by-parallax-wide-section > [id^="mod-custom"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Keep parallax module content above overlay, scoped only to parallax-wide */
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > .mod-custom > *,
.by-parallax-wide-section .mod-position-parallax-wide > .mod-row-body > [id^="mod-custom"] > *,
.by-parallax-wide-section > .mod-custom > *,
.by-parallax-wide-section > [id^="mod-custom"] > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   Best Years: Link Follow section
   Position: link-follow
   ========================================================= */

.by-link-follow-section {
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding: 2.25rem 0;
}

.by-link-follow-section .row {
  align-items: flex-start !important;
}

.by-link-follow-section .mod-position-link-follow {
  align-self: flex-start !important;
}

.by-link-follow-section .moduletable,
.by-link-follow-section .mod-custom {
  margin-bottom: 0;
}