/* ════════════════════════════════════════════════════════════
   Testimonials
   White cards on the off-white band, serif quote mark,
   brass stars.
   ════════════════════════════════════════════════════════════ */

/* Clearfix for the floated card layout */
.cf:before,
.cf:after {
  content: " ";
  display: table;
}

.cf:after {
  clear: both;
}

/* Section wrapper */
.bd-testimonials {
  background: var(--bd-off-white, #f8f7f4);
  border-top: 1px solid var(--bd-line, #e7e4dd);
  padding: 4.5rem 0 3rem;
}

/* Section header */
.containerT {
  text-align: center;
  padding: 0 25px 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.containerT h2 {
  color: var(--bd-navy, #041e42);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.containerT p {
  color: var(--bd-muted, #5c6470);
  margin-bottom: 0;
}

.containerT h2 .fa {
  display: none;
}

/* Animation element: gentle rise into view */
.animation-element {
  opacity: 0;
  position: relative;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.animation-element.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial cards */
.animation-element.slide-left.testimonial {
  float: left;
  background: #fff;
  border: 1px solid var(--bd-line, #e7e4dd);
  border-radius: 6px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow: 0 2px 10px rgba(2, 19, 43, 0.05);
  transition: opacity 600ms ease, transform 600ms ease,
              box-shadow 0.3s ease;
}

.animation-element.slide-left.testimonial:hover {
  box-shadow: 0 16px 36px rgba(2, 19, 43, 0.12);
}

.animation-element.slide-left.testimonial:nth-of-type(odd) {
  width: 48.5%;
  margin: 0% 1.5% 3% 0%;
}

.animation-element.slide-left.testimonial:nth-of-type(even) {
  width: 48.5%;
  margin: 0% 0% 3% 1.5%;
}

/* Feature card: spans the full row beneath the paired cards */
.animation-element.slide-left.testimonial.testimonial-wide,
.animation-element.slide-left.testimonial.testimonial-wide:nth-of-type(odd),
.animation-element.slide-left.testimonial.testimonial-wide:nth-of-type(even) {
  width: 100%;
  margin: 0 0 3% 0;
}

/* Hide the inline quote icons; the card draws its own */
.testimonial .fa-quote-left,
.testimonial .fa-quote-right {
  display: none;
}

.animation-element.slide-left.testimonial .header {
  float: left;
  width: 100%;
  margin-bottom: 0.5rem;
}

.animation-element.slide-left.testimonial .left {
  float: left;
  margin-right: 15px;
}

.animation-element.slide-left.testimonial .right {
  float: right;
  text-align: right;
}

.animation-element.slide-left.testimonial h3 {
  font-family: var(--bd-font-display, Georgia, serif);
  font-size: 1.4rem;
  color: var(--bd-navy, #041e42);
  margin: 0 0 5px 0;
}

.animation-element.slide-left.testimonial h4 {
  font-family: var(--bd-font-body, sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bd-brass, #b6985a);
  margin: 8px 0 5px 0;
}

.animation-element.slide-left.testimonial .right h5 {
  font-family: var(--bd-font-body, sans-serif);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bd-muted, #5c6470);
  margin: 0;
}

.animation-element.slide-left.testimonial .content {
  float: left;
  width: 100%;
  margin-bottom: 0.85rem;
  position: relative;
  padding-top: 1.6rem;
  color: var(--bd-ink, #1f2430);
  font-size: 0.95rem;
}

.animation-element.slide-left.testimonial .content::before {
  content: '\201C';
  position: absolute;
  top: 0.4rem;
  left: -0.35rem;
  font-family: var(--bd-font-display, Georgia, serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--bd-brass, #b6985a);
  opacity: 0.55;
}

.animation-element.slide-left.testimonial .rating i {
  color: var(--bd-brass, #b6985a);
  margin-right: 4px;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .animation-element {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Small devices */
@media screen and (max-width: 678px) {
  .animation-element.slide-left.testimonial,
  .animation-element.slide-left.testimonial:nth-of-type(odd),
  .animation-element.slide-left.testimonial:nth-of-type(even) {
    width: 100%;
    margin: 0 0 20px 0;
  }

  .animation-element.slide-left.testimonial .right,
  .animation-element.slide-left.testimonial .left,
  .animation-element.slide-left.testimonial .content,
  .animation-element.slide-left.testimonial .rating {
    text-align: center;
    float: none;
  }
}
