 /* General Styles */
 body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Testimonial Section Background */
#testimonial-section {
  background: linear-gradient(135deg, rgba(242, 242, 243, 0.6) 0%, rgba(37, 117, 252, 0.6) 100%);
  border-radius: 20px;
  padding: 60px 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Testimonial Carousel */
.testimonial-carousel {
  position: relative;
  display: flex;
  gap: 30px;
  justify-content: center;
  overflow: visible;
  margin: auto;
  max-width: 1200px;
  padding: 50px 0;
  flex-wrap: nowrap;
  perspective: 1500px;
  transition: transform 0.5s ease;
}

/* Testimonial Item */
.testimonial-item {
  flex: 0 0 320px;
  margin: 40px 20px;
  min-height: 350px;
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.8) 0%, rgba(37, 117, 252, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: auto; /* Allow content to scroll if necessary */
  max-height: none; /* Remove fixed height */
  transition: transform 0.5s ease, box-shadow 0.4s ease, opacity 0.4s ease, filter 0.4s ease, background 0.4s ease;
}

/* Active Testimonial */
.testimonial-item.active {
  transform: scale(1.1) translateY(0px) rotate(5deg);
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(37, 117, 252, 0.9) 0%, rgba(106, 17, 203, 0.9) 100%);
  transition: all 0.5s ease-in-out;
}

/* Foggy Effect for Inactive Items */
.testimonial-item.foggy {
  opacity: 0.5;
  filter: blur(4px) saturate(80%);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Hover Effect */
.testimonial-item:hover {
  transform: translateY(-12px) scale(1.05) rotate(2deg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(37, 155, 252, 0.9) 0%, rgba(60, 140, 231, 0.9) 100%);
  cursor: pointer;
}

/* Quote Icon */
.testimonial-item::before {
  content: '"';
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 20px;
  left: 20px;
  font-weight: bold;
  opacity: 0.4;
}

/* Testimonial Content Styles */
.testimonial-item h5 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  margin-top: 15px;
  transition: color 0.4s ease;
}

.testimonial-item span {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.testimonial-item p {
  font-size: 1rem;
  color: #fff;
  line-height: 1.8;
  font-style: italic;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

/* Dots Navigation Styling */
.testimonial-carousel .owl-dots {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-carousel .owl-dot {
  width: 18px;
  height: 18px;
  margin: 0 8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: transparent;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-carousel .owl-dot.active {
  background: #fff;
  transform: scale(1.4);
  box-shadow: 0 0 12px #fff;
}

.testimonial-carousel .owl-dot:hover {
  background-color: #2575fc;
  transform: scale(1.5);
  box-shadow: 0 0 12px #2575fc;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .testimonial-item {
    flex: 0 0 240px;
    min-height: 270px;
    margin: 50px 20px;
  }
  .testimonial-item h5 {
    font-size: 1.4rem;
  }
  .testimonial-item p {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .testimonial-item {
    flex: 0 0 280px;
    min-height: 300px;
  }
  .testimonial-carousel {
    gap: 10px;
  }
  .testimonial-item h5 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .testimonial-item {
    flex: 0 0 380px;
    min-height: 400px;
  }
  .testimonial-carousel {
    gap: 40px;
  }
}