/* Civic hero "image-carousel" look (opt-in, loaded only when the option is on).
   Full-bleed photos, no copy overlay: arrows, dots, counter and pause. */
.sila-civic-home .civic-hero.civic-hero--carousel.civic-hero--v2 {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: #0b2540;
  /* Explicit width keeps the hero full-bleed: with width:auto, max-height is transferred
     through aspect-ratio and narrows the hero on wide, short screens (e.g. 2560x1440). */
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 86vh;
  overflow: hidden;
}
.sila-civic-home .civic-hero--carousel .civic-hero__sr-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sila-civic-home .civic-hero--carousel .civic-hero__rotor {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sila-civic-home .civic-hero--carousel .civic-hero__rotor-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--civic-hero-bg-position, 50% 50%);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.sila-civic-home .civic-hero--carousel .civic-hero__rotor-slide.is-active { opacity: 1; z-index: 1; }
.sila-civic-home .civic-hero--carousel .civic-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--civic-navy, #8e1218);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sila-civic-home .civic-hero--carousel .civic-hero__arrow[hidden] { display: none; }
.sila-civic-home .civic-hero--carousel .civic-hero__arrow--prev { left: 18px; }
.sila-civic-home .civic-hero--carousel .civic-hero__arrow--next { right: 18px; }
.sila-civic-home .civic-hero--carousel .civic-hero__controls {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #5c4a4a;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.sila-civic-home .civic-hero--carousel .civic-hero__controls[hidden] { display: none; }
.sila-civic-home .civic-hero--carousel .civic-hero__dots { display: inline-flex; align-items: center; }
.sila-civic-home .civic-hero--carousel .civic-hero__dot {
  position: relative;
  width: 22px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sila-civic-home .civic-hero--carousel .civic-hero__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 999px;
  background: #c9b9b9;
  transition: width 0.25s ease, margin 0.25s ease, background 0.25s ease;
}
.sila-civic-home .civic-hero--carousel .civic-hero__dot.is-active::before {
  width: 22px;
  margin-left: -11px;
  background: var(--civic-navy, #a5121c);
}
.sila-civic-home .civic-hero--carousel .civic-hero__counter { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sila-civic-home .civic-hero--carousel .civic-hero__pause {
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #c9b9b9;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.65rem;
  cursor: pointer;
}
.sila-civic-home .civic-hero--carousel button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
@media (max-width: 640px) {
  .sila-civic-home .civic-hero.civic-hero--carousel.civic-hero--v2 { aspect-ratio: 2 / 1; }
  .sila-civic-home .civic-hero--carousel .civic-hero__arrow { width: 36px; height: 36px; margin-top: -18px; font-size: 1.5rem; }
  .sila-civic-home .civic-hero--carousel .civic-hero__arrow--prev { left: 8px; }
  .sila-civic-home .civic-hero--carousel .civic-hero__arrow--next { right: 8px; }
  .sila-civic-home .civic-hero--carousel .civic-hero__controls { bottom: 12px; gap: 0.4rem; padding: 0 0.7rem; }
  .sila-civic-home .civic-hero--carousel .civic-hero__rotor-slide { object-position: var(--civic-hero-bg-position-mobile, 50% 50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sila-civic-home .civic-hero--carousel .civic-hero__rotor-slide,
  .sila-civic-home .civic-hero--carousel .civic-hero__dot::before { transition: none; }
}
