/* References page styles (renamed from testimonials.css) */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr; /* stack vertically */
  gap: 1.25rem;
  margin-top: 1.5rem; /* add more space above testimonials */
  max-width: 820px; /* comfortable reading width */
  margin-left: auto;
  margin-right: auto;
}

.testimonial {
  background: #fff;
  border: 1px solid #e8e6ef;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.testimonial-quote {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  color: #333;
  margin: 0 0 0.75rem;
  quotes: "\201C" "\201D" "\2018" "\2019";
  position: relative;
}

/* Larger, decorative quotes with tighter spacing */
.testimonial-quote::before,
.testimonial-quote::after {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", Times, serif; /* traditional 66/99 glyphs */
  font-size: 2.5em; /* exaggerated size as requested */
  font-weight: 400; /* regular weight for a traditional look */
  line-height: 0; /* remove vertical extra space */
  display: inline-block;
  vertical-align: -0.3em; /* lower further so large marks align with text */
}
.testimonial-quote::before {
  content: open-quote;
  margin-right: -0.12em; /* pull closer to first character */
  transform: translateX(-0.1em); /* tuck closer to text */
}
.testimonial-quote::after {
  content: close-quote;
  margin-left: -0.12em; /* pull closer to last character */
  transform: translateX(0.1em); /* tuck closer to text */
}

.testimonial-footer {
  color: #fff; /* white text on purple bar if any text leaks */
  font-size: 0.95rem;
  display: flex;
  gap: 0.85rem; /* a bit more space between badges */
  align-items: center;
  flex-wrap: wrap;
  justify-content: center; /* center the badges */
  position: relative; /* anchor pseudo element line */
  padding: 0.35rem 0; /* give the bar breathing room */
  background-color: #663399; /* purple bar */
  border-radius: 6px; /* match badge rounding nicely */
}

/* badges */
.testimonial-author {
  font-weight: 800; /* heavier for readability */
  color: #0b6d62; /* dark teal text */
  background: #e6fffa; /* light teal background */
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}
.testimonial-org {
  color: #639; /* site purple text for readability on white */
  opacity: 1;
  font-weight: 700; /* bolder for readability */
  background: #ffffff; /* force white background */
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

/* Keep containers roomy but consistent with the site's look */
.section-main .container-2 > p { max-width: 70ch; }

/* Subtle separators between stacked references */
.testimonials-grid .testimonial + .testimonial {
  position: relative;
  margin-top: 1rem;
  padding-top: 1.25rem;
}
.testimonials-grid .testimonial + .testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.25rem;
  right: 0.25rem;
  height: 1px;
  /* Purple divider to match organizational text color */
  background: linear-gradient(
    to right,
    rgba(102, 51, 153, 0.28),
    rgba(102, 51, 153, 0.16),
    rgba(102, 51, 153, 0.28)
  );
}

/* Trusted by section */
.trusted-by {
  padding: 2.25rem 0 3rem;
}
.trusted-by h2 {
  margin: 0 0 1.75rem; /* add more space below heading */
  color: var(--primary);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  text-align: center;
}
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 1rem 1.25rem; /* row gap, column gap */
  max-width: 820px;
  margin: 0 auto;
}
.trusted-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px; /* ~25% taller */
  width: 75%; /* ~25% narrower than cell width */
  margin-inline: auto; /* center the narrower tile */
  border: 1px dashed rgb(0 0 0 / 20%);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 6%);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.trusted-text-logo {
  font-family: "Red Hat Display", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  color: #0b6d62; /* dark teal */
  letter-spacing: 0.2px;
}
.trusted-logo span {
  color: #666;
  font-weight: 600;
}
.trusted-logo:hover,
.trusted-logo:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
  border-color: var(--primary);
}
.trusted-logo img {
  max-width: 80%;
  max-height: 80px; /* ~25% taller for base logos */
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Odyssey in Christ logo — scale about 25% larger within the same box */
.trusted-logo-img--odyssey {
  max-width: 100%;
  max-height: 100px; /* larger than base but within taller tile */
}

/* Stack to single column on very narrow screens */
@media (width <= 420px) {
  .trusted-grid { grid-template-columns: 1fr; }
  .trusted-logo { width: 100%; } /* full width on very small screens for readability */
}

/* On wider screens, open up spacing a touch more */
@media (width >= 1200px) {
  .testimonials-grid { margin-top: 2rem; }
  .trusted-by h2 { margin-bottom: 2rem; }
}
