/* media (max-width: 767px) — per explicit mockup supplied by the user:
   a single unified rounded card (image fused directly into the same box
   as title/desc/button/dots/scroll-down, no visible seam).
   .home_hero-banner__swiper itself becomes that rounded card (bg +
   radius + overflow:hidden to clip the image's top corners);
   .home_hero-banner__content drops its own separate card/gradient
   treatment since it's no longer a visually distinct box. The outer
   .home_hero-banner section keeps its usual navy background + gradient
   (unchanged from every other breakpoint) rather than switching to
   white, per explicit request. */

.home_hero-banner {
  --home-hero-banner-card-gap: var(--sp5);
  --home-hero-banner-dot-gap: var(--sp2);
  padding: var(--sp8) var(--sp5);
  padding-top: 80px;
}

.home_hero-banner__swiper.swiper {
  position: relative;
  /* No background — the outer .home_hero-banner section's own navy +
     gradient shows through directly instead of a separate card color.
     This also means the motif (previously layered into this element's
     own background) isn't visible here anymore either. */
  background: none;
  border-radius: var(--home-hero-banner-card-radius);
  overflow: hidden;
  /* Room for the pagination dots + scroll-down below the content, still
     inside the rounded card (not the Highlights-gap padding the base
     rule's own padding-bottom:var(--sp11) is for — that still applies
     after this, unchanged, same as every other breakpoint). Needs to fit
     dots(~12px) + gap(~10px) + scroll-down's own icon+label(~65px) +
     its own bottom inset stacked. */
  padding-bottom: 110px;
  margin-bottom: 40px;
}

.home_hero-banner__slide {
  padding: 0;
}

.home_hero-banner__inner {
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  gap: 0;
}

.home_hero-banner__media {
  /* Fixed height (not the width:100%/height:auto every other breakpoint
     uses) + width:auto, per explicit request — a smaller, centered
     portrait instead of edge-to-edge full card width. */
  width: auto;
  height: 360px;
  flex-shrink: 0;
}

.home_hero-banner__media img {
  /* height:360px directly (not height:100% of the parent) — width:auto
     on the parent + height:100% on this img creates a circular sizing
     dependency (the browser can't resolve the image's intrinsic width
     without first knowing the parent's width, which itself is only
     auto-derived FROM this image's content) that several browsers
     resolve by falling back to full-width behavior instead, which is
     what was actually happening — confirmed via !important not changing
     the rendered result, ruling out a cascade/specificity cause. Setting
     the height directly on the image breaks that cycle: width:auto then
     derives cleanly from the image's own real file dimensions. */
  width: auto;
  height: 360px;
  border-radius: 0;
}

.home_hero-banner__content {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
}

.home_hero-banner__content-inner {
  position: relative;
  z-index: 1;
  align-items: center;
  padding: var(--sp8) var(--sp6) var(--sp5);
  /* Overrides the base rule's own box look (background/border/box-shadow,
     added for the desktop/tablet "glass panel" card) — this breakpoint
     keeps its own unified-card treatment instead (image+content fused
     into one flat-color box, no separate card-within-a-card — see
     .home_hero-banner__swiper.swiper's own comment above). */
  background: none;
  border: none;
  box-shadow: none;
  border-radius: var(--home-hero-banner-content-radius);
  border-top: 1px solid var(--home-hero-banner-content-border-clr);
}

.home_hero-banner__content:after {
  content: "";
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 0;
  top: 0;
  height: calc(100% + 200px);
  width: 100%;
  z-index: 0;
  border-top-left-radius: var(--home-hero-banner-content-radius);
  border-top-right-radius: var(--home-hero-banner-content-radius);
}

.home_hero-banner__cta-row {
  align-self: center;
  justify-content: center;
}

/* field_title_description (new) - side-by-side with the title at desktop/
   tablet reads cramped on this breakpoint's narrow column: title's own
   flex:none width plus a squeezed description produced many short, ragged
   lines (reported, screenshot). Stacked instead, like every other kicker/
   title/desc line already is here. */
.home_hero-banner__title-row {
  flex-direction: column;
  gap: var(--sp2);
}

.home_hero-banner__title-description {
  padding-top: 0;
}

/* Goal/step cards (new) - the base rule's flex:1 1 0/no-wrap (kpi.css
   equivalent: home_hero-banner.css) divides the row evenly regardless of
   count, which squeezed a 4-card step strip to ~70px each here (reported,
   screenshot: every label wrapped to 4+ ragged lines). Wraps to a 2-up
   grid instead - still reads fine at 2 cards (the original Goal 1/Goal 2
   case), just taller for 4. */
.home_hero-banner__goals {
  flex-wrap: wrap;
}

/* :not(--step) - step cards get their own list treatment starting at
   991px now (home_hero-banner--tablet.css), wider than this file's own
   767px tier - excluded here so this rule (equal specificity, loads
   AFTER tablet.css) doesn't clobber that one back to a grid card below
   767px just by loading later. */
.home_hero-banner__goal-card:not(.home_hero-banner__goal-card--step) {
  flex: 1 1 calc(50% - var(--sp3) / 2);
  min-width: 130px;
}

.home_hero-banner__goal-card--step .home_hero-banner__goal-title > * {
  font-size: inherit;
  line-height: inherit;
}

/* Narrower than this, even 2-up (min-width:130px above) starts forcing
   text as tight as the original 4-up squeeze did - one full-width card
   per row instead. Nested @media (this file's own link tag is already
   gated at max-width:767px - this narrows it further, same file). */
@media (max-width: 520px) {
  .home_hero-banner__goal-card:not(.home_hero-banner__goal-card--step) {
    flex: 1 1 100%;
  }
}

/* prefix_text + button (new, .home_hero-banner__goals + .cta-row:has(...)
   in home_hero-banner.css) - that rule's own justify-content:space-between/
   flex-wrap:nowrap is a desktop-width layout (prefix and button pinned to
   the same line, pushed to the row's far edges) that doesn't fit this
   breakpoint's narrow, centered-stack column at all (reported, screenshot:
   prefix text left-aligned off on its own, button floating disconnected
   to its right). Re-declared here (same selector, so this wins on source
   order despite equal specificity) back to the plain stacked/centered
   layout the rest of this breakpoint already uses. */
.home_hero-banner__goals + .home_hero-banner__cta-row:has(.home_hero-banner__prefix) {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp4);
}

.home_hero-banner__goals + .home_hero-banner__cta-row:has(.home_hero-banner__prefix) .home_hero-banner__prefix {
  text-align: center;
}

.home_hero-banner__goals + .home_hero-banner__cta-row:has(.home_hero-banner__prefix) .home_hero-banner__cta-group {
  flex-shrink: 1;
}

.home_hero-banner__pagination.swiper-pagination {
  position: relative;
  margin-top: var(--sp5);
}

.home_hero-banner__scroll {
  /* Own position:absolute here (the base rule is static/in-flow at
     every other breakpoint) — centered under the pagination dots and
     bottom-anchored to the rounded card itself, with extra breathing
     room (var(--sp8), was var(--sp3)) below it, per explicit request. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--sp8);
  margin-top: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* No display:none override here — the motif is kept visible, as a
   background layer on .home_hero-banner__swiper above instead. */
