/* testimonials.css
   Modern + classic testimonial carousel styling
   Uses global variables --accent, --muted, --glass, --shadow if present.
*/

:root {
  --t-accent: var(--accent, #0d6efd);
  --t-muted: var(--muted, #6c757d);
  --t-glass: var(--glass, rgba(255, 255, 255, 0.85));
  --t-shadow: var(--shadow, 0 6px 18px rgba(21, 32, 43, 0.08));
  --t-gold: #f4c542;
}

/* Section spacing */
#testimonials {
  background: transparent;
  color: inherit;
}

/* Carousel indicators — pill style */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(11, 18, 32, 0.08);
  border: none;
  box-shadow: none;
  margin: 0 0.28rem;
  opacity: 0.9;
}
.carousel-indicators .active {
  background: linear-gradient(90deg, var(--t-gold), var(--t-accent));
  transform: scale(1.15);
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.08);
}

/* Testimonial card */
.testimonial-card {
  background: var(--glass);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: var(--t-shadow);
  border: 1px solid rgba(11, 18, 32, 0.04);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Quote */
.testimonial-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(11, 18, 32, 0.9);
  font-style: normal;
  position: relative;
}

/* avatar */
.t-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.06);
  flex-shrink: 0;
}

/* meta */
.testimonial-card figcaption .fw-bold {
  color: rgba(11, 18, 32, 0.96);
  font-size: 0.95rem;
}
.testimonial-card .text-muted {
  color: var(--t-muted);
}

/* stars (simple accessible text; visually styled) */
.stars {
  color: #ffb74d;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* controls (prev/next) - make them subtle and circular */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.03);
  box-shadow: 0 6px 18px rgba(11, 18, 32, 0.06);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0.05) invert(1);
  width: 20px;
  height: 20px;
}

/* responsive typography */
@media (max-width: 575.98px) {
  .testimonial-card blockquote {
    font-size: 0.98rem;
  }
  .t-avatar {
    width: 48px;
    height: 48px;
  }
}

/* hover/keyboard focus polish */
@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    transform: translateY(-6px);
    transition: transform 0.22s ease;
    box-shadow: 0 26px 60px rgba(11, 18, 32, 0.12);
  }
}

/* reduced-motion: minimize transitions and stop carousel auto animation */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .carousel-control-prev,
  .carousel-control-next {
    transition: none !important;
    transform: none !important;
  }
}
