/* ─── Testimonials Section ─────────────────────────────────────────── */
.testimonials {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonials__header {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 2;
}

/* World map dotted background effect */
.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1200px;
  height: 600px;
  background-image: radial-gradient(rgba(0,0,0,0.18) 2px, transparent 2px);
  background-size: 24px 24px;
  transform: translateX(-50%);
  z-index: 1;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  pointer-events: none;
}

.testimonials__title {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.testimonials__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
}

.testimonials__content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

@media (max-width: 1200px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Mobile: horizontal carousel — one review at a time, swipeable + arrow nav. */
  .testimonials__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-inline: var(--container-padding);
    margin-inline: calc(var(--container-padding) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonials__grid::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 calc(100% - 2rem);
    scroll-snap-align: center;
  }
}

.review-card {
  background-color: #f7f3f2; /* Light soft beige from image */
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.review-card__user {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  color: #fff;
  font-weight: 500;
  font-size: 1.125rem;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__avatar--c { background-color: #7c5cb1; }
.review-card__avatar--a { background-color: #4b636e; }
.review-card__avatar--j { background-color: #5c6bc0; }
.review-card__avatar--b { background-color: #b85a7a; }

.review-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
}

.review-card__date {
  font-size: 0.8125rem;
  color: #888;
}

.review-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: #f4c150;
  font-size: 1.125rem;
  letter-spacing: -2px;
}

.review-card__text {
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.review-card__more {
  font-size: 0.875rem;
  color: #888;
  text-decoration: underline;
  font-weight: 500;
}

.slider-btn {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  z-index: 10;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background-color: #111;
  color: #fff;
}

.slider-btn--prev { left: 1rem; }
.slider-btn--next { right: 1rem; }

@media (max-width: 768px) {
  .testimonials__content {
    padding: 0 1rem;
  }
}

/* Mobile carousel arrows: pulled below the cards so they're tappable. */
@media (max-width: 640px) {
  .testimonials__content {
    padding: 0;
  }
  .slider-btn {
    position: static;
    transform: none;
    display: inline-flex;
    margin-top: 1.25rem;
  }
  .slider-btn--prev { margin-right: 0.5rem; }
  .slider-btn--next { margin-left: 0; }
  .testimonials__content {
    text-align: center;
  }
}
