.testimonial-carousel {
  position: relative;
  margin-top: 36px;
  padding: 70px 70px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 20%, rgba(121,180,222,.24), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(198,214,224,.72));
  border: 1px solid rgba(231,192,129,.65);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  overflow: hidden;
}

.testimonial-window {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}

.testimonial-track {
  display: flex;
  gap: 34px;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  cursor: grab;
}

.testimonial-track:active {
  cursor: grabbing;
}

.testimonial-card {
  flex: 0 0 calc((100% - 68px) / 3);
  min-height: 310px;
  background: rgba(255,255,255,.92);
  color: #2f3d4a;
  border-radius: 26px;
  overflow: hidden;
  padding: 34px 30px;
  box-shadow: 0 22px 55px rgba(22,34,48,.20);
  border: 1px solid rgba(255,255,255,.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #d8a24a;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.testimonial-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.55;
  color: #344454;
  margin-bottom: 28px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8a24a, #79b4de);
  color: #0a0e15;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.testimonial-user h4 {
  margin: 0;
  font-size: 1rem;
  color: #263443;
}

.testimonial-user span {
  font-size: .86rem;
  color: #647587;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #3d4c5b;
  font-size: 2.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.testimonial-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}

.testimonial-prev { left: 28px; }
.testimonial-next { right: 28px; }

@media(max-width: 980px) {
  .testimonial-carousel { padding: 56px 56px; }
  .testimonial-card { flex: 0 0 calc((100% - 34px) / 2); }
}

@media(max-width: 640px) {
  .testimonial-carousel {
    padding: 42px 18px 70px;
    border-radius: 28px;
  }

  .testimonial-track { gap: 18px; }
  .testimonial-card { flex: 0 0 100%; }

  .testimonial-arrow {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.8rem;
  }

  .testimonial-prev { left: calc(50% - 56px); }
  .testimonial-next { right: calc(50% - 56px); }
}
