.reviews-section {
  text-align: center;
  padding: 60px 20px;
  background: #f7f7f7;
  color: #333;
  overflow: hidden;
}

.reviews-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-bottom: 40px;
}

.reviews-track {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 20px;
  will-change: transform;
  width: auto; /* Let the track grow based on content */
}

.review-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-top: 5px solid #881719;
  border-radius: 8px;
  padding: 20px 18px;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  flex-shrink: 0;
  transition: transform .3s ease;
  text-align: center;
}

.review-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #FFD700 !important;
  font-size: 17px;
  margin-bottom: 12px;
}

.review-card h4 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 17px;
  color: #222;
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 14px;
}

.verified {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 10px;
}

.logo {
  width: 65px;
  height: auto;
  margin-top: 6px;
  opacity: 0.95;
}

/* Upwork Review Styles */
.upwork-review {
  border-top: 5px solid #14A800;
}

.upwork-review .verified {
  color: #14A800;
}

/* Freelancer Review Styles */
.freelancer-review {
  border-top: 5px solid #29B2FE;
}

.freelancer-review .verified {
  color: #29B2FE;
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .review-card { min-width: 260px; }
}

@media (max-width: 768px) {
  .reviews-section { padding: 40px 10px; }
  .review-card { min-width: 210px; max-width: 230px; padding: 14px; }
  .stars { font-size: 15px; }
  .review-text { font-size: 13px; }
  .logo { width: 55px; }
}
