.testimonials-section {
  background-color: #f8f9fa;
}

.testimonials-section h2 {
  color: #212529;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.testimonial-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.testimonial-avatar,
.testimonial-author-image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 15px;
}

.testimonial-author-name,
.testimonial-author-info h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #212529;
  font-size: 1.1rem;
  line-height: 1.4;
}

.testimonial-author-name .text-primary,
.testimonial-author-info h6 .text-primary {
  color: #5840ba !important;
  font-weight: 700;
}

.testimonial-author-position,
.testimonial-author-info p,
.testimonial-author-info small {
  color: #6c757d;
  font-size: 0.875rem;
}

.testimonial-card .bi-quote,
.quote-icon {
  font-size: 2.5rem !important;
  color: #5840ba;
  position: absolute;
  top: 0;
  right: 1.5rem;
  z-index: 1;
}

.testimonial-content,
.testimonial-excerpt {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: #6c757d;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
}

.swp-testimonial-carousel-container .carousel-indicators button {
  background-color: #adb5bd;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  opacity: 0.5;
}

.swp-testimonial-carousel-container .carousel-indicators button.active {
  background-color: #5840ba;
  opacity: 1;
}

.swp-testimonial-carousel-container .carousel-control-prev-icon,
.swp-testimonial-carousel-container .carousel-control-next-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.2rem 1.2rem;
}

.swp-testimonial-carousel-container .carousel-control-prev,
.swp-testimonial-carousel-container .carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.archive-testimonial .testimonial-card {
  height: 100%;
}

.archive-testimonial .testimonial-rating {
  margin-bottom: 1rem;
}

.single-testimonial .testimonial-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #f8f9fa;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.single-testimonial .entry-content {
  position: relative;
  padding: 2rem;
  font-size: 1.1rem;
}

.btn-outline-primary {
  color: #5840ba !important;
  border-color: #5840ba !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #5840ba !important;
  border-color: #5840ba !important;
  color: #ffffff !important;
}

.btn-primary {
  background-color: #5840ba !important;
  border-color: #5840ba !important;
}

.swp-testimonial-carousel-container .carousel-item {
  padding: 20px;
}

.swp-testimonial-carousel-container .carousel-control-prev,
.swp-testimonial-carousel-container .carousel-control-next {
  background-color: #5840ba;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.swp-testimonial-carousel-container .carousel-indicators {
  margin-bottom: 0;
}

.testimonial-carousel-content {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
}

.testimonial-carousel-content .testimonial-author-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-carousel-content .testimonial-content p {
    margin-bottom: 1rem;
}

.testimonial-carousel-content .testimonial-author-info h6 {
    margin-bottom: 0.25rem;
}

.testimonial-carousel-content .testimonial-author-info p {
    font-size: 0.875rem;
}

.testimonial-author-block {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.testimonial-author-block .testimonial-author-image .swpt-author-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-author-block .testimonial-author-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.testimonial-author-details .testimonial-author-name {
    margin-bottom: 0.15rem;
}

.testimonial-author-details .testimonial-author-position {
    font-size: 0.9em;
    margin-top: 0;
}

.swp-testimonial-carousel-container {
    position: relative;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 40px;
    overflow: visible;
}

.swp-testimonial-carousel-container .carousel-control-prev {
    left: 0;
}

.swp-testimonial-carousel-container .carousel-control-next {
    right: 0;
}

.swp-testimonial-carousel-container .carousel-indicators {
    position: absolute;
    bottom: 10px;
}
