.reviews-wrapper {
  width: 100%;
  height: 200px; /* visible height */
  overflow: hidden;
  position: relative;
}

/* This is the scrolling column */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  position: relative;
  /* Continuous bottom-to-top scroll (loop) */
  animation: vertical-marquee 15s linear infinite;
  will-change: transform;
}

.reviews-wrapper:hover .reviews-container {
  animation-play-state: paused;
}

.review-card p {
  margin: 4px 0 0 0;
  line-height: 1.4;
  text-align: justify;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

/* Continuous bottom-to-top animation
   We duplicate the content in JS, so total height is 2x.
   -50% moves one full set up and loops smoothly. */
@keyframes vertical-marquee {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* ---------------------------------------- */
/* HORIZONTAL BLOG MARQUEE (FIXED)          */
/* ---------------------------------------- */

.horizontal-scroll {
  width: 100%;
  overflow: hidden;
  background: transparent;
}

/* The moving track */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content; /* KEY FIX */
  white-space: nowrap;
  animation: marquee-left 40s linear infinite;
  animation-delay: 2s;
  will-change: transform;
}

/* Individual titles */
.marquee-track a {
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}

.blog-marquee-link {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.blog-marquee-link:first-child {
  padding-left: 500px;
}

.blog-marquee-link:hover {
  text-decoration: underline;
}

.horizontal-scroll:hover .marquee-track {
  animation-play-state: paused;
}

/* Smooth infinite loop */
@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
