.review-section {
  background-color: #fdf4fd;
  color: #5a2ec3;
  padding: 3rem;
  margin-bottom: 1.5rem;
}

.review-header {
  text-align: center;
  margin-bottom: 3rem;
}

.review-header .subtitle {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #5a2ec3;
}

.review-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #5a2ec3;
}

.review-header .desc {
  color: #5a2ec3;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.review-header .all-btn {
  background-color: #5a2ec3;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.review-header .all-btn:hover {
  background-color: #7d4cdb;
  color: white !important;
}

.review-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.rating-box {
  background-color: #e7d9fd;
  padding: 2rem;
  border-radius: 1rem;
  flex: 0 0 30%;
  min-width: 260px;
  color: #5a2ec3;
  box-shadow: 0 4px 12px rgba(90, 46, 195, 0.15);
}

.testimonial-box {
  background-color: #e7d9fd;
  padding: 2rem;
  border-radius: 1rem;
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  height: 300px;
  box-shadow: 0 4px 12px rgba(90, 46, 195, 0.15);
}

.rating-box h1 {
  font-size: 3rem;
  margin: 0;
}

.stars {
  color: gold;
  font-size: 1.2rem;
  margin: 0.3rem 0;
}

.rating-box .caption {
  margin-top: 0.5rem;
  font-weight: 500;
}

.avatars {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-top: 1rem;
}

.avatars img {
  border-radius: 50%;
  border: 2px solid #5a2ec3;
  width: 30px;
  height: 30px;
}

.testimonial-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.testimonial-slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-slide .logo {
  color: #5a2ec3;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.testimonial-slide .testimonial {
  color: #5a2ec3;
  margin: 1rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile img {
  border-radius: 50%;
  border: 2px solid #5a2ec3;
  width: 40px;
  height: 40px;
}

.profile h4 {
  margin: 0;
  color: #5a2ec3;
}

.profile p {
  margin: 0;
  font-size: 0.85rem;
  color: #7a5bcf;
}

@media (max-width: 768px) {
  .review-content {
    flex-direction: column;
    align-items: center;
  }

  .rating-box,
  .testimonial-box {
    flex: 1 1 100%;
    width: 100%;
    max-width: 600px;
  }

  .review-header h2 {
    font-size: 1.6rem;
  }

  .review-header .desc {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .review-section {
    padding: 2rem 1rem;
  }

  .review-header h2 {
    font-size: 1.4rem;
  }

  .review-header .desc {
    font-size: 0.9rem;
  }

  .review-header .all-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .testimonial-slide .testimonial {
    font-size: 0.9rem;
  }

  .stars {
    font-size: 1rem;
  }
}
