:root {
  --navy: #0a1f44;
  --gold: var(--primary-color);
}

* {
  box-sizing: border-box;
}

.testimonials-section {
  padding: 80px 0;
  background: #f9fafb;
}

.testimonials-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px 0;
}

@media (min-width: 768px) {
  .testimonials-header h2 {
    font-size: 3rem;
  }
}

.testimonials-header p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto;
}

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
  gap: 8px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  background: #fff;
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-btn:hover {
  background: var(--gold);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.nav-btn svg {
  stroke: var(--navy);
  transition: stroke 0.3s ease;
}
.nav-btn:hover svg {
  stroke: #fff;
}

.testimonials-track-wrap {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
}

.testimonial-card-wrap {
  width: 100%;
  max-width: 42rem;
  transition: all 0.5s ease;
  opacity: 0.4;
  transform: scale(0.9);
  pointer-events: none;
}

.testimonial-card-wrap.is-center {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.testimonial-card {
  background: #fff;
  border-radius: 1rem;
  padding: 32px;
  position: relative;
  border: 2px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.testimonial-card-wrap.is-center .testimonial-card {
  border-color: var(--gold);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.1;
}

.testimonial-content {
  position: relative;
  z-index: 10;
}

.testimonial-text {
  color: #374151;
  line-height: 1.7;
  margin: 0 0 24px 0;
  font-size: 1rem;
  transition: font-size 0.3s ease;
}

.testimonial-card-wrap.is-center .testimonial-text {
  font-size: 1.125rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.author-name {
  font-weight: 700;
  color: var(--navy);
}

.author-role {
  color: #4b5563;
  font-size: 0.875rem;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dot {
  height: 12px;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  width: 12px;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: #9ca3af;
}

.dot.active {
  width: 32px;
  background: var(--gold);
}

.testimonials-cta {
  text-align: center;
  margin-top: 48px;
}

.testimonials-cta p {
  color: #4b5563;
  font-size: 1.125rem;
  margin: 0;
}

@media (max-width: 768px) {
  .testimonial-card-wrap:not(.is-center) {
    display: none;
  }
}
