.sg-hero-carousel {
  position: relative;
  width: 100%;
  margin: 0 0 1.5rem;
}

.sg-hero-carousel.sg-hero-carousel--single .sg-hero-carousel__dots {
  display: none;
}

.sg-hero-carousel__track {
  position: relative;
  min-height: var(--sg-hero-height-desktop, 70vh);
}

.sg-hero-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: var(--sg-hero-height-desktop, 70vh);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  margin: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

.sg-hero-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  min-height: var(--sg-hero-height-desktop, 70vh);
}

.sg-hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.sg-hero-slide__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sg-hero-slide__content {
  position: relative;
  z-index: 2;
  min-height: var(--sg-hero-height-desktop, 70vh);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.sg-hero-slide--v-top .sg-hero-slide__content {
  justify-content: flex-start;
}

.sg-hero-slide--v-center .sg-hero-slide__content {
  justify-content: center;
}

.sg-hero-slide--v-bottom .sg-hero-slide__content {
  justify-content: flex-end;
}

.sg-hero-slide--h-left .sg-hero-slide__content {
  align-items: flex-start;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.sg-hero-slide--h-center .sg-hero-slide__content {
  align-items: center;
  text-align: center;
}

.sg-hero-slide--h-right .sg-hero-slide__content {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.sg-hero-slide__logo {
  display: block;
  max-width: min(280px, 70vw);
  height: auto;
}

.sg-hero-slide__title,
.sg-hero-slide__tagline {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-size: var(--sg-title-size, 1.75rem);
}

.sg-hero-slide__description {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 42rem;
  font-size: var(--sg-description-size, 1.1rem);
}

@media (max-width: 768px) {
  .sg-hero-slide__title,
  .sg-hero-slide__tagline {
    font-size: var(--sg-title-size-mobile, var(--sg-title-size, 1.75rem));
  }

  .sg-hero-slide__description {
    font-size: var(--sg-description-size-mobile, var(--sg-description-size, 1.1rem));
  }
}

a.sg-hero-slide__link {
  flex: 1;
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.sg-hero-slide--has-link .sg-hero-slide__link {
  cursor: pointer;
}

a.sg-hero-slide__link:hover .sg-hero-slide__title,
a.sg-hero-slide__link:focus-visible .sg-hero-slide__title {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .sg-hero-carousel__track,
  .sg-hero-carousel__slide,
  .sg-hero-carousel__slide.is-active,
  .sg-hero-slide__content {
    min-height: var(--sg-hero-height-mobile, 80vh);
  }
}

.sg-hero-slide--h-left a.sg-hero-slide__link {
  align-items: flex-start;
}

.sg-hero-slide--h-center a.sg-hero-slide__link {
  align-items: center;
}

.sg-hero-slide--h-right a.sg-hero-slide__link {
  align-items: flex-end;
}

.sg-hero-slide--v-top a.sg-hero-slide__link {
  justify-content: flex-start;
}

.sg-hero-slide--v-center a.sg-hero-slide__link {
  justify-content: center;
}

.sg-hero-slide--v-bottom a.sg-hero-slide__link {
  justify-content: flex-end;
}

.sg-hero-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0;
}

.sg-hero-carousel__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.sg-hero-carousel__dot.is-active,
.sg-hero-carousel__dot:hover {
  background: #2d2d2d;
}
