.testimonials-section {
  --tm-navy: #1a3a4a;
  --tm-teal: #17a2b8;
  --tm-teal-light: #20c997;
  --tm-gold: #d4a574;
  --tm-white: #ffffff;
  --tm-cream: #faf8f5;
  --tm-text: #2d3436;
  --tm-text-light: #636e72;
  --tm-overlay: rgba(26, 58, 74, 0.85);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  min-height: 600px;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.testimonials-bg__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 30%;
     object-position: center 30%;
}
.testimonials-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 58, 74, 0.92) 0%, rgba(23, 162, 184, 0.75) 50%, rgba(26, 58, 74, 0.88) 100%);
}

.testimonials-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 50px;
}
.testimonials-header__badge {
  display: inline-block;
  background: rgba(212, 165, 116, 0.2);
  border: 1px solid rgba(212, 165, 116, 0.4);
  color: var(--tm-gold);
  padding: 8px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.testimonials-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--tm-white);
  margin: 0 0 12px;
  line-height: 1.2;
}
.testimonials-header__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.testimonials-carousel {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 60px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s var(--transition-smooth);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
.testimonial-card__image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.testimonial-card__image img {
  width: 100%;
  height: 250px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.testimonial-card__content {
  background: var(--tm-white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  margin: 0 auto;
}
.testimonial-card__content--no-image {
  margin-top: 20px;
}
.testimonial-card__stars {
  margin-bottom: 20px;
}
.testimonial-card__stars i {
  color: #f4c150;
  font-size: 1.25rem;
  margin: 0 3px;
}
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--tm-text);
  line-height: 1.7;
  margin: 0 0 24px;
  padding: 0;
  border: none;
}
.testimonial-card__quote::before, .testimonial-card__quote::after {
  content: none;
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.testimonial-card__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--tm-navy);
}
.testimonial-card__location {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--tm-text-light);
}

.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--tm-white);
  color: var(--tm-navy);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
.testimonials-nav:hover {
  background: var(--tm-teal);
  color: var(--tm-white);
  transform: translateY(-50%) scale(1.1);
}
.testimonials-nav:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.4);
}
.testimonials-nav i {
  font-size: 1.1rem;
}
.testimonials-nav--prev {
  left: 0;
}
.testimonials-nav--next {
  right: 0;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonials-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  padding: 0;
}
.testimonials-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.testimonials-dot--active {
  background: var(--tm-gold);
  transform: scale(1.2);
}
.testimonials-dot:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.4);
}

.testimonials-trust {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.testimonials-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}
.testimonials-trust__item i {
  font-size: 1.5rem;
  color: var(--tm-gold);
}

@media (max-width: 991px) {
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-carousel {
    padding: 0 50px;
  }
  .testimonial-card__content {
    padding: 30px;
  }
}
@media (max-width: 767px) {
  .testimonials-section {
    padding: 50px 0;
    min-height: auto;
  }
  .testimonials-header {
    margin-bottom: 30px;
  }
  .testimonials-header__badge {
    font-size: 0.75rem;
    padding: 6px 18px;
  }
  .testimonials-carousel {
    padding: 0 15px;
  }
  .testimonials-nav {
    width: 40px;
    height: 40px;
  }
  .testimonials-nav--prev {
    left: -5px;
  }
  .testimonials-nav--next {
    right: -5px;
  }
  .testimonials-nav i {
    font-size: 0.9rem;
  }
  .testimonial-card {
    padding: 0 5px;
  }
  .testimonial-card__image img {
    height: 200px;
  }
  .testimonial-card__content {
    padding: 25px 20px;
    border-radius: 12px;
  }
  .testimonial-card__stars i {
    font-size: 1rem;
  }
  .testimonial-card__quote {
    font-size: 1rem;
    line-height: 1.6;
  }
  .testimonials-trust {
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
  }
  .testimonials-trust__item {
    font-size: 0.85rem;
  }
  .testimonials-trust__item i {
    font-size: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    transition: none;
  }
  .testimonials-nav,
.testimonials-dot {
    transition: none;
  }
}