.voices-success-wrapper {
  position: relative;
  width: 100%;
  overflow: visible !important;
}

/* Force overflow visible on WordPress containers */
.wp-block-acf-voices-success,
[data-type="acf/voices-success"],
.wp-block[data-type="acf/voices-success"] {
  overflow: visible !important;
}

.wp-block-acf-voices-success > *,
[data-type="acf/voices-success"] > *,
.wp-block[data-type="acf/voices-success"] > * {
  overflow: visible !important;
}

.voices-success-section,
.editor-styles-wrapper .voices-success-section,
.block-editor-block-list__layout .voices-success-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  opacity: 1;
  filter: none;
  overflow: visible;
  margin: 0;
}

.voices-success-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(30px, 5vw, 60px);
}

.voices-success-header {
  margin-bottom: 0;
}

.voices-success-grid-title {
  margin: 0 0 30px;
  font-family: Lexend;
  font-style: normal;
  font-weight: 400;
  font-size: 31px;
  line-height: 100%;
  letter-spacing: 0;
  color: #000;
}

.voices-success-lead {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.voices-success-lead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(45deg, #2ecc71, transparent 15%, transparent 85%, #2ecc71);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.voices-success-lead p {
  margin: 0;
  font-family: Lexend;
  color: #000;
  font-size: 16px;
  line-height: 22px;
  font-style: normal;
  font-weight: 300;
}
.voices-success-lead p strong,
.voices-success-description strong {
  font-weight: 500;
}
.voices-success-lead > * {
  position: relative;
  z-index: 1;
}

.voices-success-subtitle {
  color: #000;
  font-family: Lexend;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 100%;
  letter-spacing: 0;
  margin-bottom: 30px;
  display: block;
}

.voices-success-title-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  flex-wrap: nowrap;
  margin-bottom: 12px;
  position: relative;
  overflow: visible;
}

.voices-success-main-title {
  color: #000;
  font-family: Lexend;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  margin-right: 20px;
  flex-shrink: 1;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: nowrap;
}

.voices-success-title-line {
  flex: 1;
  min-width: 0;
  height: 1px;
  background: #2ECC71;
  margin-right: -9999px;
  align-self: center;
  position: relative;
}
.voices-success-title-line::after {
  content: '';
  position: absolute;
  left: 100%;
  right: calc(-100vw + 100% + 60px);
  top: 0;
  height: 1px;
  background: #2ECC71;
  pointer-events: none;
}
.editor-styles-wrapper .voices-success-title-line::after,
.block-editor-block-list__layout .voices-success-title-line::after {
  display: none;
}
body.wp-admin .editor-styles-wrapper .voices-success-title-line::after,
body.wp-admin .block-editor-block-list__layout .voices-success-title-line::after {
  display: none;
}

.voices-success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default, will be overridden by JS */
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .voices-success-grid {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
}

.voices-success-item {
  display: flex;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 0 0;
  border-radius: 12px;
  background-color: #fff;
  background-image: radial-gradient(circle at 100% 0, #00a69c8c, #fff 43%);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 2px 21.1px 0 rgba(0, 0, 0, 0.20);
  position: relative;
  z-index: 1;
  overflow: visible;
  visibility: visible;
}

.voices-success-icon {
  order: -1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voices-success-icon img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

.voices-success-title {
  color: #000 !important;
  font-family: Lexend;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  margin-bottom: 0;
  max-width: 273px;
  display: block;
  position: relative;
  z-index: 2;
  visibility: visible;
  opacity: 1;
}

.voices-success-line {
    width: 100%;
  height: 1px;
  background: #2ECC71;
}

.voices-success-description {
  color: #000 !important;
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 26px;
  margin: 0;
  position: relative;
  z-index: 2;
  visibility: visible;
  opacity: 1;
}

.voices-success-description strong,
.voices-success-description b {
  font-weight: 500;
}

@media (max-width: 1024px) {
  .voices-success-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {

  .voices-success-container {
    padding: 0 30px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .voices-success-wrapper {
    overflow: hidden;
  }
  .voices-success-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .voices-success-item {
    padding: 24px;
    gap: 20px;
  }

  .voices-success-title {
    font-size: 22px;
    max-width: 100%;
  }

  .voices-success-description {
    font-size: 14px;
    line-height: 22px;
  }

  .voices-success-icon {
    width: 40px;
    height: 40px;
  }

  .voices-success-lead {
    padding: 24px;
    margin-bottom: 24px;
  }

  .voices-success-main-title {
    font-size: 28px;
  }

  .voices-success-title-row {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .voices-success-title-line {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-width: 60px;
  }
  .voices-success-title-line::after {
    right: calc(-100vw + 100% + 30px);
  }

  .voices-success-grid-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .voices-success-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

