.carousel-container {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 16px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  /* animation handled by JS */
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.review-card {
  flex: 0 0 350px;
  background: white;
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s ease;
  border: 1px solid silver;
}

.review-card:hover {
  transform: translateY(-8px);
}

.card-image {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.875rem;
  color: #718096;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .carousel-track {
    flex-direction: column;
    animation: scrollVertical 50s linear infinite;
    width: fit-content;
  }
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@media (max-width: 768px) {
  .review-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (min-width: 769px) {
  .carousel-track {
    padding-right: 24px;
  }
}
