/* Style for Testimonials Section */
.flex-row .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}

.flex-row .swiper-slide {
  display: flex;
  flex: 0 0 calc(33.33% - 20px);
  margin: 10px;
  box-sizing: border-box;
  height: auto;
}

@media (max-width: 768px) {
  .flex-row .swiper-slide {
    flex: 0 0 100%;
    margin: 10px 0;
  }
}

.flex-text {
  flex-grow: 1;
}

.swiper-slide .testimonial-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  border: 3px solid transparent;
  flex-grow: 1;
  height: 100%;
}

.swiper-slide .testimonial-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.6);
  border-color: #007bff;
}

.thumbnail {
  position: relative;
}

.caption {
  text-align: center;
  margin-top: 15px;
}

.swiper-slide .blockquote-footer {
  color: #555;
  font-weight: 600;
}

/* Additional styling for navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #007bff;
  transition: color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #0056b3;
}

/* Styling for pagination bullets */
.swiper-pagination-bullet {
  background: #007bff;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* Ensure equal height of testimonials */
.flex-row img {
  height: auto;
  width: 100%;
}

.flex-row .testimonial-item {
  align-self: stretch;
  height: 100%;
}
