.testimonial-block {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 92px 40px;

  /* Fixed full-bleed technique - prevents overflow */
  /* width: 100vw; */
  width: 100%;
  max-width: 100vw;
  /* margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%); */

  /* keep background behaviour as intended */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

/* Full-width background image */
.testimonial-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: 0;
}

/* Dark overlay */
.testimonial-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.testimonial-block .testimonial-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.testimonial-block .author-image {
  width: 295px;
  height: 295px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 40px;
}

.testimonial-block .testimonial-content {
  flex: 1;
  color: #fff;
}

.testimonial-block .quote {
  font-family: 'FFAcanthus';
  font-weight: 400;
  font-style: Regular;
  font-size: 36px;
  leading-trim: NONE;
  line-height: 50px;
  letter-spacing: 0.5%;
  text-align: start;

  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  padding-left: 60px;
}

.testimonial-block .quote-icon {
  /* position: absolute; */
  left: 56px;
  top: -44px;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  justify-content: start;
  margin-bottom: 20px;
}

/* .testimonial-block .quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -20px;
  font-size: 100px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  font-family: Georgia, serif;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
} */

.testimonial-block .author {
  margin-top: 18px;
  padding-left: 60px;
}

.testimonial-block .author-name {
  display: inline-block;
  font-family: Lato;
  font-weight: 700;
  font-style: Bold;
  font-size: 26px;
  leading-trim: NONE;
  line-height: 30px;
  letter-spacing: 16%;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Pagination dots */
.testimonial-block .pagination-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 18px;
}

.testimonial-block .pagination-dots .dot {
  background: transparent;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #fff;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
  flex-shrink: 0;
}

.testimonial-block .pagination-dots .dot.active {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 35%, transparent 70%);
  border-color: rgba(255, 255, 255, 0.6);
}

.testimonial-block .pagination-dots .dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

/* Hide non-active testimonials */
.testimonial-block .testimonial-item {
  display: none;
  margin: 0;
  opacity: 0;
  animation: fadeOut 0.6s ease-out forwards;
}

.testimonial-block .testimonial-item.active {
  display: flex;
  align-items: center;
  gap: 54px;
  width: 100%;
  opacity: 1;
  animation: fadeIn 0.6s ease-in forwards;
}

/* When no author image is present, center everything */
.testimonial-block .testimonial-item.active.no-image {
  justify-content: center;
  flex-direction: column;
}

.testimonial-block .testimonial-item.active.no-image .testimonial-content {
  text-align: center;
}

.testimonial-block .testimonial-item.active.no-image .quote {
  padding-left: 0;
}

.testimonial-block .testimonial-item.active.no-image .quote-icon {
  position: static;
  margin: 0 auto 10px auto;
  display: flex;
  justify-content: center;
}

.testimonial-block .testimonial-item.active.no-image .author {
  padding-left: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* WordPress alignment support */
.testimonial-block.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.alignfull>.testimonial-block {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.testimonial-block.alignwide,
.alignwide>.testimonial-block {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 992px) {
  .testimonial-block {
    padding: 80px 30px;
    min-height: 500px;
  }

  .testimonial-block .testimonial-inner {
    gap: 40px;
  }

  .testimonial-block .author-image {
    width: 160px;
    height: 160px;
  }

  .testimonial-block .quote {
    font-size: 28px;
    padding-left: 50px;
  }

  .testimonial-block .quote-icon {
    top: -12px;
  }

  .testimonial-block .quote::before {
    font-size: 80px;
    top: -15px;
  }

  .testimonial-block .author {
    padding-left: 50px;
  }
}

@media (max-width: 768px) {
  .testimonial-block {
    padding: 60px 20px;
    min-height: 450px;
  }

  .testimonial-block .testimonial-item.active {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .testimonial-block .author-image {
    width: 140px;
    height: 140px;
  }

  .testimonial-block .quote {
    font-size: 24px;
    padding-left: 0;
    padding-top: 40px;
  }

  .testimonial-block .quote-icon {
    justify-content: center;
    position: static;
    margin-bottom: 10px;

  }

  .testimonial-block .quote::before {
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    font-size: 70px;
  }

  .testimonial-block .author {
    padding-left: 0;
  }

  .testimonial-block .author-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .testimonial-block {
    padding: 50px 16px;
    min-height: 400px;
  }

  .testimonial-block::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
  }

  .testimonial-block .author-image {
    width: 183px;
    height: 183px;
  }

  .testimonial-block .quote {
    font-size: 20px;
    line-height: 1.5;
    padding-top: 23px;
    padding-left: 50px !important;
    padding-right: 50px !important;
    font-family: 'FFAcanthus';
    font-weight: 400;
    font-style: Regular;
    font-size: 26px;
    leading-trim: NONE;
    line-height: 32px;
    letter-spacing: 0.5%;
    text-align: center;
  }

  .testimonial-block .quote::before {
    font-size: 60px;
    top: -15px;
  }

  .testimonial-block .author-name {
    font-size: 14px;
    letter-spacing: 1.5px;
  }

  .testimonial-block .pagination-dots {
    bottom: 25px;
    gap: 10px;
  }

  .testimonial-block .pagination-dots .dot {
    width: 10px;
    height: 10px;
  }
}