/* ===========================================
   Client Testimonials
   Shared across About and Fund Reporting pages
   =========================================== */

.testimonials-section {
  padding: 3.5rem 0 4.5rem;
}

.testimonials-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonials-section-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--theme-text-primary);
  margin-bottom: 0.75rem;
}

.testimonials-section-header p {
  font-size: 1.1rem;
  color: var(--theme-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--theme-glass-bg);
  border: 1px solid var(--theme-glass-border);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .testimonial-card:hover {
    border-color: rgba(30, 79, 226, 0.35);
    box-shadow: 0 12px 32px rgba(30, 79, 226, 0.08);
  }
}

.testimonial-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  min-height: 48px;
}

.testimonial-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.testimonial-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

/* Wide wordmarks (e.g. Fisch) need more room to stay legible */
.testimonial-logo--wide img {
  height: 52px;
  max-width: 300px;
}

.testimonial-quote {
  position: relative;
  flex: 1;
  margin: 0 0 1.75rem;
  padding-left: 1.65rem;
}

/* Hanging quote aligned to the first line of text */
.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 1.75rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  color: var(--octigen-blue);
  opacity: 0.55;
  pointer-events: none;
}

.testimonial-quote p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--theme-text-secondary);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--theme-border-secondary);
  margin-top: auto;
}

.testimonial-author-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--theme-text-primary);
}

.testimonial-author-title {
  font-size: 0.85rem;
  color: var(--theme-text-tertiary);
  line-height: 1.45;
}

@media (max-width: 991px) {
  .testimonials-section {
    padding: 3rem 0 4rem;
  }

  .testimonials-section-header h2 {
    font-size: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.75rem;
  }
}

@media (max-width: 767px) {
  .testimonials-section-header h2 {
    font-size: 1.75rem;
  }

  .testimonial-quote {
    padding-left: 1.4rem;
  }

  .testimonial-quote p {
    font-size: 1rem;
  }

  .testimonial-logo img {
    height: 38px;
    max-width: 180px;
  }

  .testimonial-logo--wide img {
    height: 44px;
    max-width: 260px;
  }
}
