.nixtheme-home-hero {
  padding: 24px 0 34px;
  width: min(var(--nixtheme-body-width, var(--nixtheme-max-width, 1200px)), 100%);
  margin: 0 auto;
  position: relative;
}

.nixtheme-home-hero.is-fullwidth {
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.nixtheme-home-hero__viewport {
  position: relative;
  min-height: var(--nixtheme-home-hero-height, 520px);
  height: var(--nixtheme-home-hero-height, 520px);
  border-radius: var(--nixtheme-home-hero-radius, 18px);
  overflow: hidden;
}

.nixtheme-home-hero.is-fullwidth .nixtheme-home-hero__viewport {
  border-radius: 0;
}

.nixtheme-home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .42s ease, visibility .42s ease;
}

.nixtheme-home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nixtheme-home-hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.nixtheme-home-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--nixtheme-home-hero-overlay-color, #000000);
  opacity: var(--nixtheme-home-hero-overlay-opacity, .4);
}

.nixtheme-home-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px 48px 74px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--nixtheme-home-hero-content-gap, 28px);
  justify-content: var(--nixtheme-home-hero-justify, center);
  align-items: var(--nixtheme-home-hero-align, center);
  text-align: var(--nixtheme-home-hero-text-align, center);
}

.nixtheme-home-hero.is-fullwidth .nixtheme-home-hero__content {
  width: min(var(--nixtheme-body-width, var(--nixtheme-max-width, 1200px)), 100%);
  margin-left: auto;
  margin-right: auto;
}

.nixtheme-home-hero__title {
  margin: 0;
  max-width: min(840px, 100%);
  color: var(--nixtheme-home-hero-heading-color, #ffffff);
  font-family: var(--nixtheme-home-hero-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: var(--nixtheme-home-hero-heading-size, 48px);
  line-height: 1.12;
  font-weight: var(--nixtheme-home-hero-heading-weight, 700);
  font-style: var(--nixtheme-home-hero-heading-style, normal);
  text-wrap: balance;
}

.nixtheme-home-hero__text {
  margin: 0;
  max-width: min(760px, 100%);
  color: var(--nixtheme-home-hero-paragraph-color, rgba(255,255,255,.9));
  font-family: var(--nixtheme-home-hero-paragraph-font, var(--nixtheme-home-hero-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
  font-size: var(--nixtheme-home-hero-paragraph-size, 18px);
  line-height: 1.55;
  font-weight: 500;
}

.nixtheme-home-hero__cta {
  margin: 0;
}

.nixtheme-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 10px;
  background: var(--nixtheme-home-hero-button-bg, #14b8a6);
  color: var(--nixtheme-home-hero-button-color, #ffffff);
  text-decoration: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.nixtheme-home-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nixtheme-home-hero__dots button {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.nixtheme-home-hero__dots button.is-active {
  background: #ef4444;
}

.editor-styles-wrapper .nixfubu-hero-block-editor {
  width: 100%;
  max-width: none;
}

.editor-styles-wrapper .nixfubu-hero-editor-preview {
  width: 100%;
}

.editor-styles-wrapper .nixfubu-hero-editor-preview .nixtheme-home-hero__slide:nth-child(n+2) {
  display: none;
}

.editor-styles-wrapper .nixfubu-hero-editor-preview .nixtheme-home-hero__slide.is-active {
  display: block;
}

@media (max-width: 767px) {
  .nixtheme-home-hero,
  .nixtheme-home-hero.is-fullwidth {
    padding: 0 0 24px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .nixtheme-home-hero__viewport {
    min-height: var(--nixtheme-home-hero-height-mobile, 320px);
    height: var(--nixtheme-home-hero-height-mobile, 320px);
  }

  .nixtheme-home-hero__content {
    padding: 28px 22px 58px;
    gap: var(--nixtheme-home-hero-content-gap-mobile, var(--nixtheme-home-hero-content-gap, 18px));
  }

  .nixtheme-home-hero.is-fullwidth .nixtheme-home-hero__content {
    width: 100%;
  }

  .nixtheme-home-hero__title {
    font-size: var(--nixtheme-home-hero-heading-size-mobile, 30px);
  }

  .nixtheme-home-hero__text {
    font-size: var(--nixtheme-home-hero-paragraph-size-mobile, 15px);
  }

  .nixtheme-home-hero__button {
    min-height: 48px;
    padding: 0 24px;
  }
}
