/* --- Full‑width hero carousel (one slide visible) --- */
.ss-hero {
  position: relative;
  margin: 2.5rem auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--md-default-bg-color);
  box-shadow: var(--md-shadow-z2);
}

/* track: full‑width columns, smooth snap scrolling */
.ss-hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* each slide spans the track width */
.ss-hero-slide {
  position: relative;
  min-height: clamp(280px, 52vw, 520px);
  scroll-snap-align: start;
}

.ss-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.01);
  transition: transform .4s ease;
}
.ss-hero-slide:hover img { transform: scale(1.02); }

/* dark gradient to guarantee caption legibility */
.ss-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

.ss-hero-content {
  position: absolute;
  left: clamp(16px, 6vw, 56px);
  bottom: clamp(16px, 5vw, 48px);
  max-width: min(42ch, 70%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.ss-hero-kicker {
  font: 600 0.8rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: .25rem;
}

.ss-hero-title {
  font: 700 clamp(1.25rem, 2.8vw, 2rem)/1.15 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  margin: 0 0 .5rem 0;
}

.ss-hero-cta {
  display: inline-block;
  margin-top: .35rem;
  padding: .55rem .9rem;
  border-radius: 6px;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  backdrop-filter: saturate(110%) blur(1px);
  transition: background .2s ease, transform .15s ease;
  border: 1px solid rgba(255,255,255,.28);
}
.ss-hero-cta:hover, .ss-hero-cta:focus-visible {
  background: rgba(255,255,255,.22);
  transform: translateY(-1px);
}

/* arrows overlay */
.ss-hero-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.ss-hero-btn {
  pointer-events: auto;
  border: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  margin: 0 clamp(6px, 2vw, 12px);
  background: rgba(0,0,0,.45);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, opacity .2s;
  opacity: .9;
}
.ss-hero-btn:hover, .ss-hero-btn:focus-visible {
  background: rgba(0,0,0,.6);
  transform: scale(1.03);
}
.ss-hero-btn svg { width: 18px; height: 18px; }

/* dot indicators */
.ss-hero-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(8px, 2.2vw, 16px);
  display: flex;
  gap: 8px;
}
.ss-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .15s ease, background .2s ease, opacity .2s;
  opacity: .9;
}
.ss-hero-dot[aria-current="true"] {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 420px){
  .ss-hero-slide{ min-height: 260px; }
  .ss-hero-title{ font-size: clamp(1.1rem, 6vw, 1.6rem); }
}
