/* reviews-page.css — requires style.css */

.reviews-container {
  max-width: 90%;
  margin: 6rem auto;
  padding: 0 var(--space-lg);
}

.review-block {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-xxl);
  gap: var(--space-xl);
  align-items: center;
}

.review-text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.review-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 5px;
  background: var(--primary-color);
  margin-top: 1rem;
}

.review-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.review-media img {
  border-radius: var(--radius-image);
  border: 4px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xxl);
}

.quote-card {
  background: var(--card-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
}

.quote-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.quote-card h3 {
  margin-bottom: var(--space-sm);
}

.quote-card p {
  font-style: italic;
  color: var(--text-body);
}

.review-block,
.quote-card {
  animation: slideUp 0.8s ease-out forwards;
}

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

@media (min-width: 850px) {
  .has-image {
    flex-direction: row;
    justify-content: space-between;
  }

  .has-image.reverse {
    flex-direction: row-reverse;
  }

  .review-text,
  .review-media {
    flex: 1;
  }

  .text-only {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 8rem;
  }

  .text-only h2::after {
    margin: 1rem auto 0;
  }
}
