.pattern-overlay {
  position: absolute;
  top: -9%;
  right: 30px;
  width: 250px;
  height: 190px;
  background-image: url("../assets/decors/dots.png");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

.testimonial-card .content {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.testimonial-card .quote-text {
  display: -webkit-box;
  margin: 3px 0;
  -webkit-line-clamp: 9;
  line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-card .read-more-link {
  position: absolute;
  left: 50%;
  margin-top: 7px;
  transform: translateX(-50%);
  background: linear-gradient(126deg, #9333ea 0%, #8b49aa 100%);
  color: white;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(147, 51, 234, 0.2);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  width: auto;
  min-width: 120px;
  text-align: center;
}

/* Adjust hover effect for centered button */
.testimonial-card .read-more-link:hover {
  background: linear-gradient(126deg, #8b49aa 0%, #9333ea 100%);
  box-shadow: 0 5px 10px rgba(147, 51, 234, 0.3);
}

.testimonial-card .read-more-link:hover {
  background: linear-gradient(126deg, #8b49aa 0%, #9333ea 100%);
  box-shadow: 0 5px 10px rgba(147, 51, 234, 0.3);
}

.testimonial-section {
  background: linear-gradient(126.14deg,
      rgba(255, 255, 255, 0.9) 2.24%,
      rgba(228, 185, 248, 0.9) 97.78%);
  margin: 80px 0;
  padding: 50px 0;
  height: auto;
  min-height: unset;
  z-index: 2;
  position: relative;
}

.section-title {
  color: black;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 60px;
  z-index: 2;
  font-family: "Poppins", sans-serif;
}

.testimonial-card {
  background: #fcf5ff;
  border-radius: 20px;
  padding: 20px;
  gap: 20px;
  position: relative;
  margin: 90px 20px;
}

.shape-bg {
  position: absolute;
  height: 530px;
  width: 100%;
  top: -12px;
  left: 28%;
  border-radius: 1rem;
  z-index: -1;
}

.purple-bg {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: 0;
  background: rgba(147, 112, 219, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
  border-radius: 15px;
  z-index: -1;
}

.profile-image {
  background-color: rgb(136, 58, 225);
  width: 130px;
  height: 130px;
  border-radius: 90%;
  position: absolute;
  top: -30px;
  left: 5px;
  border: 4px solid #9333ea;
  z-index: 2;
  object-fit: cover;
}

.content {
  margin-top: 30px;
  min-height: 100px;
  max-height: 370px;
}

.author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: unset;
  max-width: 100%;
}

.author-details {
  flex: 1;
  text-align: left;
}

.quote-icon {
  margin-left: 10px;
}

.testimonial-quote {
  margin-top: 10px;
  font-size: 18px;
  color: #222;
  line-height: 1.6;
  word-break: break-word;
}

.author-name {
  font-weight: 700;
  font-size: 22.42px;
  letter-spacing: 10%;
  max-width: 300px;
}

.author-title {
  color: #000;
  font-size: 19px;
  width: 100%;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 4px;
  height: 40px;
}

.content {
  color: #000;
  text-align: justify;
  font-size: 19px;
  line-height: 27px;
}

.quotes {
  display: block !important;
  position: absolute;
  right: 15px;
  top: 5px;
  width: 50px;
}

@media screen and (min-width: 1400px) {
  .shape-bg {
    left: 33%;
    height: 510px;
  }

}

@media (max-width: 1200px) {
  .author-details {
    margin-left: 70px;
  }

  .shape-bg {
    left: 26%;
    height: 520px;
  }

  .author-details {
    margin-left: 5px
  }
}

@media (max-width: 992px) {

  .shape-bg {
    left: 34%;
    height: 520px;
  }

  .profile-image {
    left: 30px
  }

  .testimonial-section {
    padding: 24px 0;
    min-height: auto;
  }

  .quote {
    padding-left: 0px;
  }

}

@media (max-width: 768px) {

  .profile-image {
    left: -10px;
  }

  .author-details {
    margin-left: 110px;
  }

  .pattern-overlay {
    width: 125px;
    height: 78px;
  }

  .pattern-overlay {
    position: absolute;
    top: -7%;
    right: 30px;
    width: 250px;
    height: 190px;
    background-image: url("../assets/decors/dots.png");
    background-size: cover;
    background-repeat: no-repeat;
  }

  .testimonials {
    flex-direction: column;
    gap: 60px;
  }

  .testimonial-card {
    padding: 20px;
    height: 100% !important;
  }

  .shape-bg {
    height: 470px;
    left: 31%;
    top: 10%;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .quote-icon {
    align-self: flex-end;
    margin-top: 8px;
    margin-left: 0;
  }

  .quotes {
    width: 30px;
  }

  .testimonial-quote {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
.profile-image {
   top: 20px;
  }

  .author-title {
    font-size: 16px;
    height: auto;
  }

  .content {
    font-size: 17px;
  }

  .testimonial-section {
    margin-bottom: 10px;
  }

  .author-details {
    margin-left: 120px
  }

  .shape-bg {
    width: 100%;
    height: 460px;
    left: 19%;
    border-radius: 1rem;
    z-index: -1;
  }

  .testimonial-card {
    padding: 20px;
    margin: 65px 10px;
    min-height: max-content;
    max-height: 110vh;
  }


  .profile-image {
    width: 120px;
    height: 120px;
    top: -20px;
    left: 5px;
    border-width: 3px;
  }

  .content {
    margin-top: 10px;
  }

  .author-info {
    min-height: fit-content;
    margin-left: 0;
    padding: 10px 0;
  }

  .author-name {
    font-size: 1.2rem;
  }

  .quote {
    font-size: 15px;
    padding-left: 0px;
  }

  .quote::before {
    font-size: 3rem;
    left: 85%;
    top: -60px;
  }

  .pattern-overlay {
    position: absolute;
    top: -7%;
    right: 20px;
    width: 180px;
    height: 120px;
    background-image: url("../assets/decors/dots.png");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .slick-track {
    max-height: fit-content !important;
  }
}