/* Testimonials Section */
.testimonials {
  padding: 4rem 0;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
}

.testimonials-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  flex: 1;
}

.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  padding: 2rem;
  border-radius: 16px;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 16px 16px 0 0;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.author-section {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}

.author-image {
  flex-shrink: 0;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

.author-origin {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.author-origin i {
  color: var(--primary-color);
}

.testimonial-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.university-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(79, 172, 254, 0.15);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  align-self: flex-start;
}

.country-flag {
  width: 18px;
  height: 14px;
  border-radius: 2px;
}

.author-degree {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.achievement-item i {
  color: var(--primary-color);
  font-size: 0.8rem;
  width: 12px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  font-style: italic;
  position: relative;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: var(--gradient-primary);
  color: var(--bg-white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
  flex-shrink: 0;
}

.nav-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.testimonial-indicators-mobile {
  display: none;
}

.testimonial-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(79, 172, 254, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 906px) {
  .testimonials-container {
    flex-direction: column;
    gap: 0;
  }

  .desktop-nav {
    display: none;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .author-section {
    align-self: center;
  }

  .testimonial-details {
    align-items: center;
    text-align: center;
  }

  .university-badge {
    align-self: center;
  }

  .author-photo {
    width: 100px;
    height: 100px;
  }

  .testimonial-indicators-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .testimonial-indicators {
    display: none;
  }

  .wide {
    display: none;
  }
}

@media (max-width: 768px) {
  .testimonial-content p {
    text-align: center;
  }
  .testimonial-indicators-mobile {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .author-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .author-photo {
    width: 80px;
    height: 80px;
  }

  .author-info h4 {
    font-size: 1.2rem;
  }

  .achievement-item {
    justify-content: center;
  }

  .testimonial-indicators-mobile {
    gap: 1rem;
  }
}
