/* Home — Client Testimonials */

.apit-testimonials {
  position: relative;
  z-index: 20;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 8% 10%, rgba(26, 95, 191, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 45% at 95% 90%, rgba(255, 106, 61, 0.07), transparent 50%),
    #f7f9fc;
  color: #0b1b2b;
  font-family: "General Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 5.25rem 0 5.5rem;
}

.apit-testimonials-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 4.5vw;
}

.apit-testimonials-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.apit-testimonials-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 61, 122, 0.14);
  background: rgba(10, 61, 122, 0.07);
  font-family: Mulish, sans-serif;
  font-size: clamp(0.65rem, 0.78vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a3d7a;
}

.apit-testimonials-title {
  margin: 0;
  font-family: "General Sans", sans-serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.apit-testimonials-title-brand {
  display: block;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 500;
}

.apit-testimonials-title-accent {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 500;
}

.apit-testimonials-support {
  margin: 1.1rem auto 0;
  max-width: 36rem;
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
  line-height: 1.58;
  color: rgba(11, 27, 43, 0.66);
}

.apit-testimonials-slider {
  position: relative;
}

.apit-testimonials-viewport {
  overflow: hidden;
  margin: 0 -0.25rem;
  padding: 0.35rem 0.25rem 0.75rem;
}

.apit-testimonials-track {
  display: flex;
  gap: 1.15rem;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.apit-testimonial-card {
  flex: 0 0 calc((100% - 2.3rem) / 3);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-height: 18.5rem;
  padding: 1.6rem 1.45rem 1.45rem;
  border-radius: 1.35rem;
  background: #ffffff;
  border: 1px solid rgba(10, 61, 122, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px rgba(10, 61, 122, 0.06);
  box-sizing: border-box;
}

.apit-testimonial-stars {
  display: flex;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #f0b429;
}

.apit-testimonial-stars li {
  display: inline-flex;
  line-height: 0;
}

.apit-testimonial-stars svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  filter: drop-shadow(0 2px 6px rgba(240, 180, 41, 0.35));
}

.apit-testimonial-quote {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(11, 27, 43, 0.78);
}

.apit-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(10, 61, 122, 0.08);
}

.apit-testimonial-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a3d7a 0%, #1a5fbf 48%, #ff6a3d 100%);
  color: #fff;
  font-family: Mulish, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(10, 61, 122, 0.22);
}

.apit-testimonial-meta {
  min-width: 0;
}

.apit-testimonial-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #0b1b2b;
  line-height: 1.25;
}

.apit-testimonial-role {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(11, 27, 43, 0.55);
}

.apit-testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.apit-testimonials-btn {
  appearance: none;
  border: 1px solid rgba(10, 61, 122, 0.14);
  background: #ffffff;
  color: #0a3d7a;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 61, 122, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.apit-testimonials-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 61, 122, 0.28);
  background: #0a3d7a;
  color: #ffffff;
}

.apit-testimonials-btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apit-testimonials-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.apit-testimonials-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(10, 61, 122, 0.2);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.apit-testimonials-dot.is-active {
  width: 1.45rem;
  background: linear-gradient(90deg, #1a5fbf, #ff6a3d);
}

@media (max-width: 1023.98px) {
  .apit-testimonials {
    padding: 3.5rem 0 3.85rem;
  }

  .apit-testimonials-header {
    margin-bottom: 2rem;
  }

  .apit-testimonial-card {
    flex-basis: calc((100% - 1.15rem) / 2);
    min-height: 19rem;
  }
}

@media (max-width: 720px) {
  .apit-testimonials-title-brand {
    font-size: 1.4rem;
  }

  .apit-testimonials-title-accent {
    font-size: 1.9rem;
  }

  .apit-testimonial-card {
    flex-basis: 100%;
    min-height: 17.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apit-testimonials-track {
    transition: none;
  }

  .apit-testimonials-btn:hover {
    transform: none;
  }
}
