.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  /* bumped up from 760px — sanity check against Figma if you have exact px */
}

#block-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#block-hero-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pulls the whole carousel into the same centered layer as the background */
#block-freeportinmycommunity-views-block-hero-slides-block-1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Constrains the carousel + arrows to the card's width so arrows center under it,
   and reserves space below the card so arrows don't overlap it.
   max-width was 780px — widened to 1000px to match Figma proportions */
.hero-carousel-splide {
  width: 100%;
  max-width: 1000px;
  padding-bottom: 90px;
}

.hero-carousel-splide .splide__slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* min-height: 560px removed — card content now defines slide height */
}

.hero-slide__card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.25);
  /* was 0.45 — more see-through */
  backdrop-filter: blur(6px);
  /* was 14px — less blur so terrain lines stay visible */
  -webkit-backdrop-filter: blur(6px);
  padding: 80px 100px;
  /* was 48px 56px — more breathing room now that card is wider */
  border-radius: 4px;
  text-align: center;
}

.hero-slide__heading {
  font-family: 'Crimson Text', Georgia, serif;
  font-weight: 600;
  font-size: 82px;
  line-height: 1.15;
  color: #2E2E2E;
  margin-bottom: 20px;
}

.hero-slide__body {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #2E2E2E;
  margin-bottom: 28px;
}

.hero-slide__button-wrap a {
  display: inline-block;
  font-family: 'Roboto', sans-serif;
  background: #0a2540;
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.hero-slide__button-wrap a:hover {
  background: #00AEEF;
  color: #fff;
  border-color: #00AEEF;
}

/* Arrows sit in the reserved padding-bottom space, no longer overlapping the card */
.hero-carousel-splide .splide__arrows {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  z-index: 2;
}

.hero-carousel-splide .splide__arrow {
  position: static;
  transform: none;
  background: #0a2540;
  opacity: 1;
  width: 36px;
  height: 36px;
}

.hero-carousel-splide .splide__arrow svg {
  fill: #fff;

}

.hero-carousel-splide .splide__arrow--next {
  background: #00AEEF;
}

.hero-carousel-splide .splide__counter {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  color: #0a2540;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.hero-carousel-splide .hero-scroll-down {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.hero-carousel-splide .hero-scroll-down svg {
  fill: #0a2540;
}

/* Mobile — shrinks heading/card down from desktop scale, removes the fixed
   min-height so the section doesn't leave empty space once text is smaller */
@media (max-width: 1024px) {
  .hero-banner {
    min-height: 600px;
  }

  .hero-carousel-splide {
    max-width: 100%;
    padding: 0 16px 60px;
    box-sizing: border-box;
  }

    .hero-slide__card {
      width: 68%;
      margin: 0 auto;
      padding: 44px 18px;
    }

  .hero-slide__heading {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-slide__body {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-slide__button-wrap a {
    padding: 10px 24px;
    font-size: 13px;
  }

  .hero-carousel-splide .splide__arrow {
    width: 30px;
    height: 30px;
  }

  .hero-carousel-splide .splide__counter {
    font-size: 12px;
  }
    #block-freeportinmycommunity-views-block-hero-slides-block-1>div {
      width: 100%;
    }
}
