/* Reviews Horizontal Scrollable Styling */
.reviews-grid-container {
  position: relative;
  width: 100%;
  margin: 1rem auto;
  padding: 0;
  min-height: 400px;
  height: auto;
  display: block !important;
  visibility: visible !important;
  overflow-x: hidden;
}

.reviews-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 0.5rem 0;
  width: 100%;
  min-height: 350px;
  position: relative;
  visibility: visible !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px; /* Space for scrollbar */
  justify-content: flex-start;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.reviews-grid::-webkit-scrollbar {
  height: 8px;
}

/* Track */
.reviews-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Handle */
.reviews-grid::-webkit-scrollbar-thumb {
  background: #0073e6;
  border-radius: 10px;
}

/* Handle on hover */
.reviews-grid::-webkit-scrollbar-thumb:hover {
  background: #005bb8;
}

.review-card {
  min-width: 300px;
  max-width: 300px;
  flex: 0 0 300px;
  scroll-snap-align: start;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin: 0.25rem 0;
  transition: all 0.3s ease;
  position: relative;
  display: block !important;
  visibility: visible !important;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.review-header {
  margin-bottom: 0.5rem;
}

.review-header img {
  display: none !important;
}

.review-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

.review-card h4 {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-top: 0.2rem;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.review-date {
  display: block;
  font-size: 0.8rem;
  color: #888;
  text-align: right;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-button {
  background-color: #0073e6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.carousel-button:hover {
  background-color: #005bb7;
  transform: scale(1.1);
}

.carousel-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-dot.active {
  background-color: #0073e6;
  transform: scale(1.2);
}

.carousel-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Rating elements removed as requested */
/*
.overall-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overall-rating .stars {
  margin: 0;
}

.total-reviews {
  font-size: 0.9rem;
  color: #666;
}
*/

/* Responsive adjustments */
@media (min-width: 768px) {
  .review-card {
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
  }
}

@media (min-width: 1024px) {
  .review-card {
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
  }
}

/* Review animation effects */
.review-card {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .review-card {
    background-color: #2a2a2a;
  }
  
  .review-header h4 {
    color: #f0f0f0;
  }
  
  .review-text {
    color: #d0d0d0;
  }
  
  .review-date {
    color: #aaa;
  }
}
