:root {
  --tangerine: #FF914D;
  --lemon: #FFF566;
  --aqua: #70E4EF;
  --royal-purple: #BC7AF9;
  --navy: #1B1F3B;
  --white: #FFFFFF;
}

/* Testimonials Section */
.testimonials-section {
  padding: 62px 0 46px 0;
  background: linear-gradient(110deg, #f8f6ff 70%, #e3fafc 100%);
  scroll-margin-top: 70px;
  border-radius: 28px;
  margin: 0 0 4px 0;
  box-shadow: 0 8px 45px rgba(135, 137, 156, 0.934);
}

.testimonials-section h2 {
  text-align: center;
  color: var(--royal-purple);
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 38px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(188,122,249,0.04);
}

/* Carousel wrapper for side scroll buttons */
.testimonial-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px; /* adds space so buttons always visible */
  box-sizing: border-box;
  min-height: 1px;
}
.scroll-btn.scroll-left,
.scroll-btn.scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 4px 16px rgba(31, 34, 90, 0.22), 0 0 0 2px var(--white);
  border: 2px solid var(--aqua);
}
.scroll-btn.scroll-left {
  left: 12px;
}
.scroll-btn.scroll-right {
  right: 12px;
}
@media (max-width: 900px) {
  .testimonial-carousel-wrapper {
    padding: 0 8px;
  }
  .scroll-btn.scroll-left { left: 6px; }
  .scroll-btn.scroll-right { right: 6px; }
}

/* Horizontal scroll carousel for testimonials */
.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none; /* Firefox */
  margin-bottom: 32px;
}
.testimonials-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Individual scroll button design */
.scroll-btn {
  background: var(--royal-purple);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.45rem;
  box-shadow: 0 2px 9px rgba(188,122,249,0.16);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: none; /* border now set from scroll-btn.scroll-left/right for visibility */
}

.scroll-btn:hover {
  background: var(--tangerine);
  box-shadow: 0 4px 14px rgba(255,145,77,0.25), 0 0 0 2px var(--white);
  transform: scale(1.08);
}

.scroll-btn:active,
.scroll-btn:focus {
  background: var(--aqua);
  outline: none;
}

/* Testimonial Card Styles */
.testimonial-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 28px rgba(188,122,249,0.13);
  padding: 30px 22px 24px 22px;
  min-width: 340px;
  max-width: 340px;
  flex-shrink: 0;
  border-top: 5px solid var(--aqua);
  border-right: 4px solid var(--tangerine);
  margin-bottom: 18px;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-card:hover {
  box-shadow: 0 14px 36px rgba(188,122,249,0.21);
  transform: translateY(-8px) scale(1.03);
}

.testimonial-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 0.99rem;
  flex-wrap: wrap;
}

.testimonial-name {
  font-weight: bold;
  color: var(--tangerine);
}

.testimonial-role {
  background: var(--lemon);
  color: var(--navy);
  font-size: 0.94rem;
  padding: 2.5px 10px;
  border-radius: 7px;
}

.testimonial-rating {
  color: #fbbe32;
  font-size: 1.13rem;
  letter-spacing: 2px;
  font-weight: bold;
}

.testimonial-card p {
  color: #30325c;
  font-size: 1.09rem;
  margin: 0;
  line-height: 1.55;
}

/* Client Stats */
.client-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.client-stat {
  text-align: center;
  padding: 16px 34px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 3px 17px rgba(255,145,77,0.11);
  min-width: 120px;
  border: 2px solid var(--aqua);
  transition: box-shadow 0.22s, transform 0.22s;
}

.client-stat:hover {
  box-shadow: 0 8px 25px rgba(188,122,249,0.18);
  transform: translateY(-4px);
}

.client-stat h3 {
  color: var(--royal-purple);
  font-size: 1.7rem;
  margin: 0 0 7px 0;
  font-weight: bold;
  letter-spacing: 1px;
}

.client-stat span {
  color: var(--tangerine);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Responsive testimonial styles */
@media (max-width: 900px) {
  .testimonials-carousel {
    gap: 15px;
    margin-bottom: 24px;
  }

  .testimonial-card {
    min-width: 300px;
    max-width: 300px;
  }

  .scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }

  .client-stats {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .client-stat {
    max-width: 95vw;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .testimonials-section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
    padding: 24px 18px 20px 18px;
  }

  .testimonial-card p {
    font-size: 0.95rem;
  }

  .scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .client-stat h3 {
    font-size: 1.4rem;
  }

  .client-stat span {
    font-size: 0.85rem;
  }
}
