.testimonials-area { padding: 28px 12px; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.testimonial-carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 520ms cubic-bezier(.22,.9,.35,1);
  will-change: transform;
  padding-bottom: 6px; /* small space under cards */
}

/* card styles - adjust width as needed */
.testimonial-card {
  flex: 0 0 300px;            /* card width (adjust for more/less visible) */
  min-width: 360px;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(10,20,40,0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header { display: flex; align-items: center; gap: 12px; }
.profile-image { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.profile-info h3 { margin: 0; font-size: 1rem; line-height: 1.1; }

/* content */
.cards-content p { margin: 0; font-size: 0.80rem; color: #000; }

/* google badge */
.google-badge { width: 86px; align-self: flex-end; opacity: 0.95; }

/* controls */
.carousel-controls {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.carousel-controls button {
  border: 2px solid red;
  background: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}
.carousel-controls button:focus { outline: 2px solid #1976d2; }

.testimonial-card .google-badge {
  display: block;          /* make it a block element */
  margin: 15px auto 0;     /* auto left/right = center */
  max-width: 150px;        /* optional: control size */
}

/* responsive: smaller cards on small screens */
@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 260px; }
  .google-badge { width: 70px; }
}
@media (max-width: 520px) {
  .testimonial-card { flex: 0 0 220px; min-width: 200px; }
  .carousel-controls { right: 4px; }
}