/* ===== Vars ===== */
:root {
  --hs-min-h: 64vh;
  --hs-overlay: 0.45; /* arka plan karartma */
  --hs-fg: #fff; /* yazı rengi */
  --hs-progress-h: 3px;
  --hs-progress: #ffc107; /* progress bar rengi */
  --hs-radius: 0; /* slider köşeleri (örn. 1rem) */
}

.hero-slider {
  position: relative;
  min-height: var(--hs-min-h);
  border-radius: var(--hs-radius);
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}
.hs-track {
  position: relative;
  height: 100%;
  min-height: inherit;
}

/* Slide */
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: grid;
  place-items: center;
}
.hs-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Media (CLS önleme: oran) */
.hs-media {
  position: absolute;
  inset: 0;
}
.hs-media::before {
  content: "";
  display: block;
  width: 100%; /* 16:9 oran */
  padding-top: 56.25%;
}
.hero-slider {
  aspect-ratio: 16 / 9;
} /* modern tarayıcılar */

/* Görsel */
.hs-bg-desktop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filter: brightness(calc(1 - var(--hs-overlay))); */
}

.hs-bg {
  display: none;
}

/* İçerik */
.hs-content {
  position: relative;
  color: var(--hs-fg);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Oklar */
.hs-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}
.hs-control:hover {
  background: rgba(0, 0, 0, 0.55);
}
.hs-control.prev {
  left: 12px;
}
.hs-control.next {
  right: 12px;
}

/* Dots */
.hs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 2;
}
.hs-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hs-dots button[aria-selected="true"] {
  background: #fff;
  transform: scale(1.2);
}

/* Progress */
.hs-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--hs-progress-h);
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.hs-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--hs-progress);
  transition: width linear;
}

/* Hover/focus’ta progress animasyonunu durdur (bar donsun) */
.hero-slider:hover .hs-progress span,
.hero-slider:focus-within .hs-progress span {
  transition-duration: 0s !important;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  .hs-control,
  .hs-dots button {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 991px) {
  :root {
    --hs-min-h: 56vh;
  }
  .hs-content .display-5 {
    font-size: 1.75rem;
  }
  .hs-bg {
    position: absolute;
    display: flex;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* filter: brightness(calc(1 - var(--hs-overlay))); */
  }

  .hs-bg-desktop {
    display: none;
  }
}
