.reviews-section {
  padding: 4rem 1rem;
  background: linear-gradient(to bottom, #fff8ec, #fcebdc);
  color: #333;
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #7c4a1c;
  font-weight: 700;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* Force 5 per row on large screens */
@media (min-width: 1200px) {
  .reviews-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.review-card {
  background: #ffffffee;
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ensures content starts from top */
  height: 100%;
  min-height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}


.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffa85c;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3d2e18;
  margin: 0;
}

.review-rating {
  font-size: 1.1rem;
  color: #f5a623;
  margin-top: 0.25rem;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  margin-top: auto; /* pushes the text to consume available space */
  white-space: normal;
  word-break: break-word;
  flex-grow: 1; /* lets it fill the remaining vertical space */
}
