/* ==============================================
   SGB Banner Slider
   ============================================== */

.sgb-slider {
  position: relative;
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1920 / 667;
  min-height: 160px;
  overflow: hidden;
  background: #f6f6f6; /* sama mis avalehe hero-sektsioon — laadimise ajal ei paista musta kasti */
}

.sgb-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.sgb-slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.sgb-slide--active {
  transform: translateX(0);
}

.sgb-slide--above {
  transform: translateX(-100%);
}

.sgb-slide__link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.sgb-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Navigation --- */

.sgb-nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.sgb-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff !important;
  cursor: pointer;
  padding: 6px !important;
  margin: 0 !important;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.sgb-btn:hover,
.sgb-btn:focus-visible {
  opacity: 1;
  outline: none;
}

.sgb-btn svg {
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* --- Dots --- */

.sgb-dots {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
}

.sgb-dot {
  display: block !important;
  width: 24px !important;
  height: 3px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 2px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.45) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
  transition:
    background 0.25s,
    width 0.25s;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.sgb-dot:hover {
  background: rgba(255, 255, 255, 0.75) !important;
}

.sgb-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sgb-dot--active {
  background: #fff !important;
  width: 36px !important;
}

/* --- Counter --- */

.sgb-counter {
  position: absolute;
  bottom: 18px;
  right: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: 0.12em;
  z-index: 20;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
  font-family: inherit;
}

.sgb-counter__sep {
  margin: 0 3px;
  opacity: 0.55;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .sgb-slider {
    min-height: 100px;
  }

  .sgb-nav {
    bottom: 12px;
    gap: 8px;
  }

  .sgb-btn {
    width: 28px;
    height: 28px;
    padding: 4px;
  }

  .sgb-dot {
    width: 6px;
    height: 6px;
  }

  .sgb-counter {
    bottom: 12px;
    right: 14px;
    font-size: 10px;
  }
}
