/* Testimonial Slider CSS - Crypto Ninja Trades */

.testimonial-slider-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: scale(1);
}

.testimonial-card-new {
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 51, 51, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.testimonial-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: rgba(55, 95, 124, 0.5);
}

.testimonial-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #375F7C, #567890);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #375F7C;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.testimonial-card-new:hover .testimonial-avatar {
  transform: scale(1.05);
}

.testimonial-author {
  flex-grow: 1;
}

.testimonial-name {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #E0E0E0;
}

.testimonial-badge {
  display: inline-block;
  background: linear-gradient(90deg, #375F7C, #567890);
  color: #0A0A0A;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  margin-top: 0.3rem;
}

.testimonial-content {
  font-style: italic;
  color: rgba(224, 224, 224, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.testimonial-content::before {
  content: '"';
  font-size: 2rem;
  color: #375F7C;
  line-height: 0;
  margin-right: 0.3rem;
  vertical-align: -0.4rem;
}

.testimonial-content::after {
  content: '"';
  font-size: 2rem;
  color: #375F7C;
  line-height: 0;
  margin-left: 0.3rem;
  vertical-align: -0.4rem;
}

.slider-navigation {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background-color: #375F7C;
  transform: scale(1.2);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 26, 26, 0.7);
  border: 1px solid rgba(51, 51, 51, 0.5);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.slide-arrow:hover {
  background-color: #375F7C;
  border-color: #567890;
}

.slide-arrow.prev {
  left: 10px;
}

.slide-arrow.next {
  right: 10px;
}

.slide-arrow i {
  color: #E0E0E0;
}

/* Animation for new testimonials */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-slide.animate {
  animation: float-in 0.8s ease-out forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .slide-arrow {
    width: 40px;
    height: 40px;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .testimonial-slide {
    padding: 0 0.5rem;
  }
}

/* Custom animation for testimonial slides */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(55, 95, 124, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(55, 95, 124, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(55, 95, 124, 0.5);
  }
}

.testimonial-card-new.highlight {
  animation: glow 2s infinite;
}