.voices-success {
  position: relative;
  width: 100%;
  padding: clamp(60px, 10vw, 120px) 0;
  background: radial-gradient(75% 120% at 0% 100%, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
  overflow: hidden;
}

.voices-success__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 60px);
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 64px);
}

.voices-success__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.voices-success__header .word-animate {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(20px);
  will-change: transform, opacity;
}

.voices-success.animated .word-animate {
  animation: slideUpFade 0.5s ease-out forwards;
}

.voices-success__header span {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(20px);
  will-change: transform;
}

.voices-success.animated .voices-success__header span {
  animation: slideUpFade 0.5s ease-out 0.1s forwards;
}

.voices-success__word {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(20px);
  will-change: transform;
}

.voices-success.animated .voices-success__word {
  animation: slideUpFade 0.5s ease-out forwards;
}

.voices-success__eyebrow {
  color: rgba(0, 0, 0, 0.7);
  font-family: "Lexend", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.voices-success__title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 5vw, 72px);
  width: 100%;
}

.voices-success__title {
  margin: 0;
  color: #000;
  font-family: "Lexend", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.voices-success__title-line {
  --c-section-line-gradient: linear-gradient(90deg, #0000 0%, #2dcb71 6.60016%);
  --c-section-line-mask: transparent;
  --c-section-line-before-width: 0;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin-left: clamp(24px, 6vw, 96px);
  position: relative;
  height: 2px;
  background: transparent;
  margin-right: -9999px;
}

.voices-success__title-line::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0000 0%, #2dcb71 6.60016%);
  opacity: 1;
  will-change: width;
}

.voices-success.animated .voices-success__title-line::after {
  animation: lineExpand 0.55s cubic-bezier(0.2, 0.92, 0.35, 1) forwards;
  animation-delay: 0.18s;
}

.voices-success__title-line::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  opacity: 0;
  z-index: 1;
}

.voices-success.animated .voices-success__title-line::before {
  animation: whiteOverlayFade 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.voices-success.is-resetting .voices-success__title-line::after {
  animation: none !important;
  width: 0;
}

.voices-success.is-resetting .voices-success__title-line::before {
  animation: none !important;
  opacity: 0;
}

.voices-success__description {
  margin: 0;
  max-width: 640px;
  color: rgba(0, 0, 0, 0.7);
  font-family: "Lexend", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
}

.voices-success__description p {
  margin: 0 0 1em;
}

.voices-success__description p:last-child {
  margin-bottom: 0;
}

.voices-success__carousel {
  position: relative;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  flex-wrap: wrap;
}

.voices-success__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: color 0.2s ease;
  order: 2;
}

.voices-success__nav-btn:hover {
  color: var(--Adlook-Green, #2ECC71);
}

.voices-success__nav-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.voices-success__track {
  flex: 1 1 100%;
  overflow: hidden;
  position: relative;
  order: 1;
}

.voices-success__slides {
  display: flex;
  transition: transform 0.5s ease;
}

.voices-success__slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
  background: transparent;
}

.voices-success__slide-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center;
  will-change: transform, opacity;
}

.voices-success.animated .voices-success__slide.is-active .voices-success__slide-inner {
  animation: voicesSuccessElementZoom 1.4s ease-out forwards;
  animation-delay: 0s;
}

.voices-success__quote,
.voices-success__author {
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center center;
  will-change: transform, opacity;
}

.voices-success.animated .voices-success__slide.is-active .voices-success__quote {
  animation: voicesSuccessElementZoom 1.4s ease-out forwards;
  animation-delay: 0.55s;
}

.voices-success.animated .voices-success__slide.is-active .voices-success__quote-icon {
  animation: voicesSuccessElementZoom 1.4s ease-out forwards;
  animation-delay: 0s;
}

.voices-success__content {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 4vw, 32px);
  margin: 0 auto;
}

.voices-success__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voices-success__quote-icon {
  width: 47px;
  height: 32px;
  display: block;
  color: #25d366;
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center center;
  will-change: transform, opacity;
}

.voices-success__quote {
  margin: 0;
  color: #000;
  font-family: "Lexend", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 26px;
  transform: scale(0.84);
  transform-origin: center center;
  will-change: transform, opacity;
}

.voices-success__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "Lexend", sans-serif;
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center center;
  will-change: transform, opacity;
}

.voices-success.animated .voices-success__slide.is-active .voices-success__author {
  animation: voicesSuccessElementZoom 1.4s ease-out forwards;
  animation-delay: 0.55s;
}

.voices-success__cta {
  opacity: 0;
  transform: scale(0.84);
  transform-origin: center;
}

.voices-success.animated .voices-success__cta.is-animating {
  animation: voicesSuccessElementZoom 1.4s ease-out forwards;
  animation-delay: 0.55s;
}

.voices-success.is-resetting .voices-success__cta,
.voices-success.is-resetting .voices-success__slide-inner,
.voices-success.is-resetting .voices-success__quote,
.voices-success.is-resetting .voices-success__quote-icon,
.voices-success.is-resetting .voices-success__author {
  animation: none !important;
  opacity: 0;
  transform: scale(0.84);
}

.voices-success__author-name {
  color: var(--Adlook-Green, #2ECC71);
  font-family: "Lexend", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.voices-success__author-role {
  color: var(--Adlook-Green, #2ECC71);
  font-family: "Lexend", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.voices-success__cta {
  align-self: center;
}

.voices-success__cta:hover {
  opacity: 0.92;
}

.voices-success__cta.c-btn--link {
  align-self: flex-start;
  margin-left: 0;
  padding: 0;
  box-shadow: none;
}

.voices-success__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.voices-success__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.voices-success__dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: #25d366;
}

@media (min-width: 769px) {
  .voices-success__carousel {
    max-width: 1080px;
  }

  .voices-success__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    order: initial;
  }

  .voices-success__nav-btn--prev {
    left: -8%;
  }

  .voices-success__nav-btn--next {
    right: -3%;
  }

  .voices-success__container {
    gap: 40px;
  }

  .voices-success__title-row {
    gap: 20px;
    width: 100%;
  }
  
  .voices-success__title {
    flex-shrink: 1;
    min-width: 0;
  }

  .voices-success__title-line {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    height: 2px;
  }

  .voices-success__carousel {
    gap: clamp(24px, 5vw, 40px);
    flex-wrap: nowrap;
  }

  .voices-success__track {
    order: initial;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .voices-success {
    padding: clamp(48px, 12vw, 80px) 0;
  }

  .voices-success__container {
    padding: 0 clamp(16px, 6vw, 32px);
  }

  .voices-success__title-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .voices-success__title {
    flex-shrink: 1;
    min-width: 0;
    white-space: normal;
  }

  .voices-success__title-line {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    margin-right: calc(-1 * clamp(16px, 6vw, 32px));
  }

  .voices-success__carousel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
  }

  .voices-success__nav-btn {
    position: static;
    transform: none;
    width: 36px;
    height: 36px;
  }

  .voices-success__track {
    width: 100%;
  }

  .voices-success__slides {
    gap: 0;
  }

  .voices-success__slide {
    padding: clamp(24px, 8vw, 36px);
    background: transparent;
  }

  .voices-success__content {
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .voices-success__container {
    padding: 0 clamp(12px, 6vw, 24px);
  }

  .voices-success__carousel {
    padding-bottom: 32px;
  }

  .voices-success__nav-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 1200px) {
  .voices-success__title-line {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1024px) {
   .voices-success__container {
     gap: 40px;
     padding-right: clamp(16px, 6vw, 40px);
   }
 
   .voices-success__title-row {
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 4vw, 24px);
    margin-left: clamp(12px, 4vw, 28px);
    margin-right: 0;
    width: 100%;
   }
   
   .voices-success__title {
     flex-shrink: 0;
     min-width: 0;
     white-space: normal;
     width: 70%;
   }
 
   .voices-success__title-line {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    margin-right: calc(-1 * clamp(12px, 4vw, 28px));
    height: 2px;
   }
}

@keyframes voicesSuccessElementZoom {
  0% {
    opacity: 0;
    transform: scale(0.84);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lineExpand {
  0% {
    width: 0;
  }
  35% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}

@keyframes whiteOverlayFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Editor preview - show first slide in admin */
body.wp-admin .voices-success__slide--editor-preview .voices-success__slide-inner,
body.wp-admin .voices-success__slide--editor-preview .voices-success__quote,
body.wp-admin .voices-success__slide--editor-preview .voices-success__quote-icon,
body.wp-admin .voices-success__slide--editor-preview .voices-success__author {
  opacity: 1 !important;
  transform: scale(1) !important;
  animation: none !important;
}

body.wp-admin .voices-success__slide--editor-preview {
  display: flex !important;
}

body.wp-admin .voices-success__slide:not(.voices-success__slide--editor-preview) {
  display: none;
}

