/* ملف testimonials.css - أنماط قسم آراء العملاء */

.testimonials-section {
  padding: 5rem 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.dark-theme .testimonials-section {
  background-color: rgba(30, 41, 59, 0.5);
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('../images/testimonials-bg.svg') no-repeat center center;
  background-size: cover;
  opacity: 0.03;
  z-index: 0;
}

.testimonials-container {
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
  border: 1px solid rgba(78, 107, 255, 0.1);
}

.dark-theme .testimonial-card {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(78, 107, 255, 0.1);
}

.testimonial-rating {
  color: var(--warning-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark-color);
  font-style: italic;
  position: relative;
  padding: 0 1rem;
  margin-bottom: 2rem;
}

.dark-theme .testimonial-text {
  color: rgba(255, 255, 255, 0.8);
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  line-height: 1;
}

.testimonial-text::before {
  top: -15px;
  right: 0;
}

.testimonial-text::after {
  bottom: -40px;
  left: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1.5rem;
  border: 3px solid var(--primary-color);
}

.author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--dark-color);
}

.dark-theme .author-info h4 {
  color: white;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--dark-gray);
  display: block;
}

.dark-theme .author-info span {
  color: rgba(255, 255, 255, 0.6);
}

/* تخصيص السلايدر */
.testimonials-slider {
  margin-top: 3rem;
  padding-bottom: 4rem;
}

.testimonials-slider .swiper-pagination {
  bottom: 0;
}

.testimonials-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--gray-color);
  opacity: 1;
}

.testimonials-slider .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.testimonials-slider .swiper-slide {
  padding: 1rem;
  height: auto;
}

/* تأثيرات خاصة للبطاقات */
.testimonial-card:nth-child(odd) {
  border-top: 3px solid var(--primary-color);
}

.testimonial-card:nth-child(even) {
  border-top: 3px solid var(--secondary-color);
}

/* الشكل المميز للبطاقات */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: all 0.3s ease;
}

.testimonial-card:hover::after {
  opacity: 1;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 0;
  }
  
  .testimonial-card {
    padding: 2rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
  
  .testimonial-text::before,
  .testimonial-text::after {
    font-size: 2.5rem;
  }
  
  .testimonial-author img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.9375rem;
  }
  
  .author-info h4 {
    font-size: 1.1rem;
  }
  
  .author-info span {
    font-size: 0.8rem;
  }
}