/* Simple, quiet customer-review surface */
.testimonials.py-section {
  padding: clamp(44px, 4.4vw, 64px) 0 !important;
  background: linear-gradient(180deg, #faf8f4 0%, #f3eee5 100%) !important;
  color: #071b5c !important;
}

.testimonials::before {
  background-image: radial-gradient(
    rgba(164, 124, 65, 0.13) 0.7px,
    transparent 0.7px
  ) !important;
  background-size: 18px 18px !important;
  opacity: 0.38;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 22%,
    #000 78%,
    transparent
  );
}

.testimonials::after {
  background: radial-gradient(
    circle at 82% 12%,
    rgba(208, 174, 117, 0.14),
    transparent 30%
  ) !important;
}

.testimonials .testimonial-intro {
  margin-bottom: 28px;
}

.testimonials .testimonial-intro h2 {
  color: #071b5c !important;
  text-shadow: none !important;
}

.testimonials .testimonial-intro h2 em {
  color: #a78350 !important;
}

.testimonials .testimonial-intro .eyebrow.dark {
  border-color: rgba(179, 138, 80, 0.28) !important;
  background: linear-gradient(
    135deg,
    rgba(196, 158, 97, 0.12),
    rgba(255, 255, 255, 0.72)
  ) !important;
  color: #815a24 !important;
  box-shadow:
    0 4px 12px rgba(72, 51, 20, 0.05),
    inset 0 1px rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: none;
}

.testimonials .rating-summary {
  border: 1px solid #ded3c2 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #071b5c !important;
  box-shadow: 0 10px 26px rgba(27, 39, 67, 0.08) !important;
  backdrop-filter: none;
}

.testimonials .rating-score,
.testimonials .rating-summary strong {
  color: #071b5c !important;
}

.testimonials .rating-summary span {
  color: var(--color-text-muted) !important;
}

.testimonials .testimonial-card,
.testimonials .testimonial-card.featured-review {
  border: 1px solid #ddd3c3 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 28px rgba(27, 39, 67, 0.08) !important;
  backdrop-filter: none;
}

.testimonials .testimonial-card::before {
  content: "";
  position: absolute;
  right: 24%;
  top: -1px;
  left: 24%;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #c49a59, transparent);
}

.testimonials .testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(179, 138, 80, 0.42) !important;
  box-shadow: 0 18px 36px rgba(27, 39, 67, 0.13) !important;
}

.testimonials .testimonial-card > p {
  color: #4c5870 !important;
}

.home-page .testimonials .testimonial-card-header,
.home-page .testimonials .testimonial-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-page .testimonials .testimonial-card-header {
  justify-content: space-between;
  flex-wrap: wrap;
}

.home-page .testimonials .testimonial-card .quote-mark {
  position: static;
  flex: 0 0 34px;
}

.home-page .testimonials .testimonial-card .reviewer > div {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "name" "category";
}

.home-page .testimonials .testimonial-card .reviewer > div > small {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.testimonials .owl-dots .owl-dot span {
  background: #c7c0b4 !important;
}

.testimonials .owl-dots .owl-dot.active span {
  background: #0b2a70 !important;
}

/* Homepage testimonials: compact heading and section rhythm, aligned to other home containers. */
.testimonials .testimonial-intro {
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: 24px;
}

.testimonials .testimonial-intro > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.testimonials .testimonial-slider-wrap {
  overflow: hidden;
}

.testimonials .testimonial-slider .owl-nav {
  inset-inline: 0;
  width: auto;
  z-index: 2;
}

.testimonials .testimonial-intro h2 {
  max-width: min(100%, 34rem);
  font-size: clamp(30px, 2.65vw, 38px);
  line-height: 1.4;
  letter-spacing: -0.4px;
}

@media (max-width: 991px) {
  .testimonials .testimonial-intro > div:first-child {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .testimonials .testimonial-intro h2 {
    max-width: 100%;
    font-size: clamp(27px, 6vw, 32px);
  }
}
