.unified-hero {
  position: relative;
  overflow: visible;
  padding: 18px 64px 44px;
}

.unified-hero::before,
.unified-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}

.unified-hero::before {
  width: 1200px;
  height: 780px;
  left: 20%;
  top: 48%;
  transform: translate(-36%, -50%) rotate(-4deg);
  background:
    radial-gradient(120% 90% at 32% 32%, rgba(233, 213, 255, 0.9) 0%, rgba(196, 181, 253, 0.72) 40%, rgba(196, 181, 253, 0.14) 74%),
    radial-gradient(90% 70% at 44% 58%, rgba(196, 181, 253, 0.5) 0%, rgba(171, 153, 240, 0.24) 50%, rgba(171, 153, 240, 0) 82%);
  filter: blur(42px);
  opacity: 0.92;
}

.unified-hero::after {
  width: 1120px;
  height: 760px;
  left: 64%;
  top: 52%;
  transform: translate(-38%, -50%) rotate(6deg);
  background:
    radial-gradient(120% 90% at 58% 46%, rgba(233, 213, 255, 0.86) 0%, rgba(196, 181, 253, 0.62) 38%, rgba(196, 181, 253, 0.1) 76%),
    radial-gradient(95% 75% at 64% 64%, rgba(196, 181, 253, 0.48) 0%, rgba(171, 153, 240, 0.26) 50%, rgba(171, 153, 240, 0) 84%);
  filter: blur(40px);
  opacity: 0.8;
}

.unified-hero__swiper {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.unified-hero__slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 440px;
  padding: 26px 10px 30px;
}

.unified-hero__content {
  width: 46%;
  max-width: 560px;
  position: relative;
  z-index: 4;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 300px;
  padding-bottom: 72px;
}

.unified-hero__content * {
  pointer-events: auto;
}

.unified-hero__title {
  margin: 0;
  font-family: "Source Sans Pro", "Gilroy", Arial, sans-serif;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  color: #26264c;
}

.unified-hero__subtitle {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: #132f67;
}

.unified-hero__subtitle p,
.unified-hero__subtitle ul,
.unified-hero__subtitle ol {
  margin: 0;
}

.unified-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 66px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e1278 0%, #3570b6 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 6;
  margin: 0 !important;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  flex: 0 0 auto;
  box-shadow: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.unified-hero__button:hover,
.unified-hero__button:focus,
.unified-hero__button:active,
.unified-hero__button:visited {
  color: #ffffff;
  text-decoration: none;
}

.unified-hero__button:hover {
  background: linear-gradient(180deg, #38198f 0%, #3f7dc7 100%);
  box-shadow: 0 12px 26px rgba(46, 18, 120, 0.34);
  transform: translateY(-1px);
}

.unified-hero__media {
  width: 48%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.unified-hero__media img {
  width: auto;
  max-width: 120%;
  max-height: 560px;
  transform: translateX(var(--img-offset-x, 0));
  transform-origin: center center;
  animation: unifiedHeroFloatGentle 8.5s ease-in-out infinite;
}

.unified-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  color: #132f67;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.unified-hero__nav svg {
  width: 22px;
  height: 22px;
}

.unified-hero__nav::before,
.unified-hero__nav::after {
  content: none;
  display: none;
}

.unified-hero__nav--prev {
  left: 12px;
}

.unified-hero__nav--next {
  right: 12px;
}

.unified-hero .swiper-pagination,
.unified-hero .swiper-pagination-bullets {
  display: none !important;
}

.unified-hero__pagination {
  position: relative;
  margin: 12px auto 0;
  width: max-content;
  z-index: 3;
}

.unified-hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(19, 47, 103, 0.28);
  opacity: 1;
}

.unified-hero__pagination .swiper-pagination-bullet-active {
  background: #132f67;
  box-shadow: 0 4px 10px rgba(19, 47, 103, 0.22);
}

@media (max-width: 1199px) {
  .unified-hero {
    padding: 16px 52px 40px;
  }

  .unified-hero__slide {
    min-height: 400px;
    padding: 22px 22px 26px;
  }

  .unified-hero__title {
    font-size: 40px;
  }

  .unified-hero__subtitle {
    font-size: 17px;
  }

  .unified-hero__media img {
    max-width: 112%;
    max-height: 480px;
  }
}

@media (max-width: 991px) {
  .unified-hero {
    padding: 14px 14px 34px;
  }

  .unified-hero::before,
  .unified-hero::after {
    opacity: 0.65;
    filter: blur(34px);
  }

  .unified-hero__slide {
    min-height: auto;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 14px 22px;
  }

  .unified-hero__content,
  .unified-hero__media {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .unified-hero__title {
    font-size: 30px;
    line-height: 1.15;
  }

  .unified-hero__subtitle {
    font-size: 16px;
    margin-bottom: 18px;
  }

  .unified-hero__content {
    min-height: auto;
    padding-bottom: 0;
  }

  .unified-hero__media {
    justify-content: center;
  }

  .unified-hero__button {
    position: relative;
    left: auto;
    bottom: auto;
    min-width: 240px;
    white-space: normal;
  }

  .unified-hero__media img {
    max-width: 95%;
    max-height: 300px;
    transform: translateX(var(--img-offset-x, 0));
    animation: none;
  }

  .unified-hero__nav {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .unified-hero__nav--prev {
    left: 6px;
  }

  .unified-hero__nav--next {
    right: 6px;
  }
}

@keyframes unifiedHeroFloatGentle {
  0%,
  100% {
    transform: translateX(var(--img-offset-x, 0)) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(var(--img-offset-x, 0)) translateY(-8px) rotate(1deg);
  }
  50% {
    transform: translateX(var(--img-offset-x, 0)) translateY(-4px) rotate(-0.5deg);
  }
  75% {
    transform: translateX(var(--img-offset-x, 0)) translateY(-12px) rotate(0.8deg);
  }
}

/* Extra desktop spacing for title/subtitle/button in hero */
@media (min-width: 992px) {
  .unified-hero__content {
    gap: 30px !important;
  }

  .unified-hero__title {
    margin: 0 !important;
  }

  .unified-hero__subtitle {
    margin: 0 !important;
  }

  .unified-hero__button {
    margin-top: 0 !important;
  }
}
