/* Home page hero carousel. Ported from legacy's application.css; Bootstrap 3's .carousel-inner > .item
   becomes Bootstrap 5's .carousel-inner > .carousel-item, and the arrow glyphs move from Glyphicons
   (.glyphicon) to Bootstrap Icons (.bi) -- see app/views/home/index.html.erb for the matching markup. */

.snHero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 30, 61, 0.18);
}
.snHero .carousel-inner > .carousel-item > img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.snHeroCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 24px 56px;
  background: linear-gradient(to top, rgba(11, 30, 61, 0.78) 0%, rgba(11, 30, 61, 0.35) 60%, rgba(11, 30, 61, 0) 100%);
  color: #ffffff;
  text-align: center;
}
.snHeroCaption h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.snHeroCaption p {
  margin: 0 0 16px;
  font-size: 16px;
  opacity: 0.95;
}
.snHero .carousel-indicators {
  bottom: 12px;
  z-index: 2;
}
/* Bootstrap 5's indicators are <button> elements (not <li>), already styled white/semi-transparent by
   bootstrap.min.css -- legacy's li-based border/active color overrides aren't needed here. */
.snHero .carousel-control-prev,
.snHero .carousel-control-next {
  width: 48px;
  opacity: 1;
}
.snHero .carousel-control-prev .bi,
.snHero .carousel-control-next .bi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(11, 30, 61, 0.35);
  transition: background-color 0.15s ease;
}
.snHero .carousel-control-prev:hover .bi,
.snHero .carousel-control-next:hover .bi {
  background-color: rgba(11, 30, 61, 0.6);
}

@media (max-width: 767px) {
  .snHero .carousel-inner > .carousel-item > img {
    height: 260px;
  }
  .snHeroCaption {
    padding: 20px 16px 40px;
  }
  .snHeroCaption h1 {
    font-size: 20px;
  }
  .snHeroCaption p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  /* Dots remain tappable for slide navigation; arrows are dropped on mobile since they collide with the
     (now shorter) caption text. */
  .snHero .carousel-control-prev,
  .snHero .carousel-control-next {
    display: none;
  }
}

.snCta {
  font-size: 16px;
  padding: 10px 28px;
}
