.ws-hero-overlay-wrap {
  margin: 24px 0;
}

.ws-hero-overlay {
  position: relative;
  min-height: var(--ws-hero-min-height, 460px);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9f3ff 0%, #d6e6ff 100%);
  box-shadow: 0 14px 30px rgba(15, 34, 76, 0.12), 0 2px 4px rgba(15, 34, 76, 0.08);
}

.ws-hero-overlay__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ws-bg-pos-x, 50%) var(--ws-bg-pos-y, 50%);
}

.ws-hero-overlay__content {
  position: absolute;
  z-index: 2;
  width: min(100% - 40px, var(--ws-content-width, 560px));
  display: grid;
  gap: 16px;
}

.ws-hero-overlay.is-x-left .ws-hero-overlay__content {
  left: 20px;
  right: auto;
  transform: translate(var(--ws-offset-x, 0), var(--ws-offset-y, 0));
}

.ws-hero-overlay.is-x-center .ws-hero-overlay__content {
  left: 50%;
  right: auto;
  transform: translate(calc(-50% + var(--ws-offset-x, 0)), var(--ws-offset-y, 0));
}

.ws-hero-overlay.is-x-right .ws-hero-overlay__content {
  right: 20px;
  left: auto;
  transform: translate(var(--ws-offset-x, 0), var(--ws-offset-y, 0));
}

.ws-hero-overlay.is-y-top .ws-hero-overlay__content {
  top: 20px;
  bottom: auto;
}

.ws-hero-overlay.is-y-middle .ws-hero-overlay__content {
  top: 50%;
  bottom: auto;
}

.ws-hero-overlay.is-x-left.is-y-middle .ws-hero-overlay__content,
.ws-hero-overlay.is-x-right.is-y-middle .ws-hero-overlay__content {
  transform: translate(var(--ws-offset-x, 0), calc(-50% + var(--ws-offset-y, 0)));
}

.ws-hero-overlay.is-x-center.is-y-middle .ws-hero-overlay__content {
  transform: translate(calc(-50% + var(--ws-offset-x, 0)), calc(-50% + var(--ws-offset-y, 0)));
}

.ws-hero-overlay.is-y-bottom .ws-hero-overlay__content {
  bottom: 20px;
  top: auto;
}

.ws-hero-overlay__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5eaef7 0%, #1f62ce 100%);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.86rem, 1.8vw, 1rem);
}

.ws-hero-overlay__title {
  margin: 0;
  color: #0b2f6a;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
}

.ws-hero-overlay__desc {
  margin: 0;
  color: #1c2a42;
  font-size: clamp(1rem, 2.2vw, 1.8rem);
  line-height: 1.6;
}

.ws-hero-overlay__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ws-button-gap, 14px);
  transform: translate(var(--ws-btn-offset-x, 0), var(--ws-btn-offset-y, 0));
}

.ws-hero-overlay.is-btn-left .ws-hero-overlay__buttons {
  justify-content: flex-start;
}

.ws-hero-overlay.is-btn-center .ws-hero-overlay__buttons {
  justify-content: center;
}

.ws-hero-overlay.is-btn-right .ws-hero-overlay__buttons {
  justify-content: flex-end;
}

.ws-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.ws-hero-btn.is-primary {
  background: linear-gradient(180deg, #2d7fee 0%, #1f63cf 100%);
  color: #fff;
  border-color: #1c5ec6;
  box-shadow: 0 8px 18px rgba(25, 88, 190, 0.26);
}

.ws-hero-btn.is-secondary {
  background: #fff;
  color: #1f56b6;
  border-color: #d5def0;
}

.ws-hero-btn.is-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}

@media (hover: hover) and (pointer: fine) {
  .ws-hero-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
  }
}

.ws-hero-btn:focus-visible {
  outline: 3px solid #003472;
  outline-offset: 2px;
}

.ws-hero-overlay--editor {
  padding: 0;
}

.ws-hero-overlay--editor .ws-hero-overlay__content {
  pointer-events: none;
}

@media (max-width: 767px) {
  .ws-hero-overlay {
    border-radius: 16px;
    min-height: max(300px, var(--ws-hero-min-height, 460px));
  }

  .ws-hero-overlay__content {
    width: calc(100% - 24px);
  }

  .ws-hero-overlay.is-x-left .ws-hero-overlay__content {
    left: 12px;
  }

  .ws-hero-overlay.is-x-right .ws-hero-overlay__content {
    right: 12px;
  }

  .ws-hero-overlay.is-y-top .ws-hero-overlay__content {
    top: 12px;
  }

  .ws-hero-overlay.is-y-bottom .ws-hero-overlay__content {
    bottom: 12px;
  }

  .ws-hero-overlay__buttons {
    flex-direction: column;
    align-items: stretch;
    transform: translate(var(--ws-btn-offset-x, 0), var(--ws-btn-offset-y, 0));
  }

  .ws-hero-btn {
    width: 100%;
    min-height: 44px;
  }
}
