.testimonial-section {
  max-width: 150rem;
  margin: 0 auto;
  padding: 5rem 1rem;
}

.testimonial-section .section-header {
  text-align: center;
  margin-bottom: 10rem;
}

.testimonial-section .section-header h2 {
  font-size: 6.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 5rem;
}

@media (max-width: 650px) {
  .testimonial-section .section-header h2 {
    font-size: 3.5rem;
  }
}

.testimonial-section .section-header p {
  font-size: 2.125rem;
  color: #718096;
}

.testimonial-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 7rem;
}

@media (min-width: 768px) {
  .testimonial-block {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-block.reverse {
    direction: rtl;
  }

  .testimonial-block.reverse > * {
    direction: ltr;
  }
}

.testimonial-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card .image-wrapper {
  aspect-ratio: 9 / 14;
  width: 100%;
  overflow: hidden;
}

.testimonial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
}

.testimonial-overlay h4 {
  font-size: 2.25rem;
  font-weight: bold;
}

.testimonial-overlay p {
  font-size: 1.875rem;
  margin-top: 0.25rem;
}

.testimonial-content {
  text-align: center;
  padding: 2.5rem 1rem;
  max-width: 500px;
}

@media (min-width: 768px) {
  .testimonial-content {
    text-align: center;
  }
}

.testimonial-content p.quote {
  font-size: 3rem;
  color: #4a5568;
  line-height: 1.55;
  margin-bottom: 2rem;
  position: relative;
  font-style: italic;
}

@media (max-width: 650px) {
  .testimonial-content p.quote {
    font-size: 1.9rem;
  }
}

.testimonial-content p.quote::before,
.testimonial-content p.quote::after {
  content: "“";
  font-size: 2.5rem;
  color: #cbd5e0;
  position: relative;
  top: -0.5rem;
}

.testimonial-content p.quote::after {
  content: "”";
  margin-left: 0.25rem;
}

.testimonial-content .info {
  margin-bottom: 2.5rem;
}

.testimonial-content .info h4 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #1a202c;
}

.testimonial-content .info p {
  color: #718096;
}

.testimonial-content .visit-btn {
  display: inline-block;
  padding: 1.5rem 4.5rem;
  background-color: #000;
  color: #fff;
  font-size: 1.275rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.testimonial-content .visit-btn:hover {
  background-color: #2d3748;
}
.testimonial-card .testimonial-overlay {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.testimonial-card:hover .testimonial-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
