/* Swiper specific styles */
.swiper {
  width: 100%;
  height: 180px; /* تم إعادة تعيين الارتفاع إلى 350px كما طلبت */
  padding: 40px 0;
  overflow: hidden; /* لمنع ظهور أي نص يتجاوز الارتفاع المحدد */
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide.testimonial-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  /* جعل الارتفاع تلقائيًا ليتناسب مع المحتوى */
  height: auto; 
  /* السماح للنص بالظهور بالكامل */
  overflow: visible; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.swiper-slide.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: right;
  height: auto;
}

.testimonial-card h4 {
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0;
  text-align: left;
  width: 100%;
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 1.3rem !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--secondary-color);
  color: #fff !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Swiper pagination */
.swiper-pagination-bullet {
  background-color: var(--primary-color) !important;
  opacity: 0.5;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background-color: var(--secondary-color) !important;
}
