/* TGWV Hero Slider — vanilla carousel (prefix: tgwv-hsl) */

.tgwv-hsl {
  --tgwv-hsl-accent: var(--tgwv-brand, #000000);
  position: relative;
  width: 100%;
  aspect-ratio: var(--tgwv-hsl-ratio, 3 / 1);
  overflow: hidden;
  background-color: #000;
}

.tgwv-hsl--empty {
  aspect-ratio: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.tgwv-hsl__empty-note {
  color: #ccc;
  font-size: 14px;
  padding: 16px;
  text-align: center;
}

.tgwv-hsl__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 1.2s ease;
}

.tgwv-hsl__slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.tgwv-hsl__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 44, 84, 0.4);
  z-index: 1;
  pointer-events: none;
}

.tgwv-hsl__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.tgwv-hsl__text-wrap {
  padding: 0 100px;
  box-sizing: border-box;
}

.tgwv-hsl__title {
  font-size: 45px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0 0 15px;
  opacity: 0;
  transform: translateY(30px);
  color: #fff;
  line-height: 1.25;
}

.tgwv-hsl__subtitle {
  font-size: 18px;
  margin: 0 0 25px;
  opacity: 0;
  transform: translateY(30px);
  color: #fff;
  line-height: 1.4;
}

.tgwv-hsl__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  background: transparent;
}

.tgwv-hsl__btn i {
  font-size: 0.85em;
}

.tgwv-hsl__btn:hover {
  background-color: var(--tgwv-hsl-accent);
  border-color: var(--tgwv-hsl-accent);
  color: #fff;
}

.tgwv-hsl__slide.active .tgwv-hsl__title {
  animation: tgwvHslFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.tgwv-hsl__slide.active .tgwv-hsl__subtitle {
  animation: tgwvHslFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.tgwv-hsl__slide.active .tgwv-hsl__btn {
  opacity: 1;
  transform: translateY(0);
  animation: tgwvHslFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

@keyframes tgwvHslFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tgwv-hsl__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: transparent;
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0;
}

.tgwv-hsl__arrow:hover {
  background-color: var(--tgwv-hsl-accent);
  color: #fff;
}

.tgwv-hsl__arrow--left {
  left: 30px;
}

.tgwv-hsl__arrow--right {
  right: 30px;
}

.tgwv-hsl__dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tgwv-hsl__dots--hidden {
  display: none !important;
}

.tgwv-hsl__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tgwv-hsl__dot.active,
.tgwv-hsl__dot:hover {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 1124px) {
  .tgwv-hsl {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 991.98px) {
  .tgwv-hsl__text-wrap {
    padding: 0 70px;
  }

  .tgwv-hsl__title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .tgwv-hsl__subtitle {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .tgwv-hsl__btn {
    padding: 8px 14px;
    font-size: 14px;
  }

  .tgwv-hsl__arrow {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .tgwv-hsl__arrow--left {
    left: 15px;
  }

  .tgwv-hsl__arrow--right {
    right: 15px;
  }
}

@media (max-width: 575.98px) {
  .tgwv-hsl {
    aspect-ratio: 16 / 10;
  }

  .tgwv-hsl__text-wrap {
    padding: 0 50px;
  }

  .tgwv-hsl__title {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .tgwv-hsl__subtitle {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .tgwv-hsl__btn {
    padding: 4px 12px;
    font-size: 14px;
  }

  .tgwv-hsl__arrow {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .tgwv-hsl__arrow--left {
    left: 10px;
  }

  .tgwv-hsl__arrow--right {
    right: 10px;
  }

  .tgwv-hsl__dots {
    bottom: 15px;
  }
}
