/* Testimonials page aligned to index.php dark-card visual system */

.white-rectangle,
.inner-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.inner-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 30px;
}

.inner-section h1,
.inner-section h2,
.testimonial-cta h2 {
  color: #f9fbff;
  text-align: center;
}

.inner-section h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 12px;
  line-height: 1.3;
}

.inner-section h2 {
  font-size: clamp(18px, 2.4vw, 26px);
  margin-bottom: 8px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.testimonial-card {
  background: linear-gradient(180deg, rgba(18, 25, 41, 0.78) 0%, rgba(10, 15, 27, 0.78) 100%);
  border: 1px solid rgba(254, 229, 0, 0.74);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.testimonial-card:hover {
  border-color: #fff07a;
  transform: translateY(-3px);
  box-shadow: var(--site-card-shadow-hover, 0 10px 22px rgba(0, 0, 0, 0.45));
}

.testimonial-quote p {
  font-size: 1rem;
  line-height: 1.65;
  color: #e6edff;
  margin: 0 0 0.85rem;
  font-style: normal;
  background: transparent !important;
}

.testimonial-quote p:last-child {
  margin-bottom: 0;
}

.testimonial-author {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--site-border, #32466f);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-author strong {
  font-size: 1rem;
  color: #ffffff;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: #b9cbef;
}

.testimonial-cta {
  text-align: center;
  margin: 2.4rem 0 0.8rem;
}

.testimonial-cta .btn-primary {
  display: inline-block;
  background: #fee500;
  color: #101522;
  padding: 14px 36px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.testimonial-cta .btn-primary:hover {
  background: #fff07a;
  transform: translateY(-2px);
}

.testimonial-cta .btn-secondary {
  background: transparent;
  color: var(--site-yellow, #fee500);
  border: 1px solid var(--site-yellow, #fee500);
}

.testimonial-cta .btn-secondary:hover {
  background: rgba(254, 229, 0, 0.12);
  color: #fff;
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    padding: 16px;
  }
}
