/* --- Загальна структура --- */
.reviews-slider-section {
  overflow: hidden; /* Запобігаємо появі горизонтальної прокрутки */
  padding-top:140px;
  padding-bottom:80px;
}
.reviews-slider-container {
  display: flex;
  gap: 24px;
}

/* --- Стилі лівої колонки --- */
.reviews-slider-container .section {
  padding: 0;
  width: 50%; /* Для десктопу */
  display: flex;
  align-items: center;
  padding-right: 120px;
}
.reviews-slider-container .section .row {
  display: flex;
}
.reviews-slider-container .section .row .text-content .main-title {
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 64px;
  line-height: 66.56px;
  letter-spacing: -1px;
  color: #0b0b0a;
  text-transform: uppercase;
  margin-top: 39px;
  margin-bottom: 16px;
}
.reviews-slider-container .section .row .text-content .main-title strong {
  font-weight: 800;
}
.reviews-slider-container .section .row .text-content .text {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: #2d2d2a;
}

/* --- Стилі правої колонки (Слайдер) --- */
.reviews-slider-wrapper {
  width: 50%; /* Для десктопу */
  position: relative;
}
.reviews-swiper-js {
  width: 100%;
  overflow: visible;
}

/* --- Стилі Карток --- */
.review-card {
  background: #E8EEEE;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #eee;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  
  /* Додаємо transition сюди, щоб він застосовувався до всіх станів */
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.review-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.review-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid #FF5F33;
}
.review-author {
  display: flex;
  flex-direction: column;
}
.review-name {
  font-weight: 500;
  font-size: 24px;
  color: #0B0B0A;
}
.review-position {
  font-size: 12px;
  color: #696963;
}
.review-quote blockquote {
  font-size: 20px;
  color: #0B0B0A;
  font-weight: 500;
  margin: 0;
  padding: 0;
  border: 0;
}

/* --- Пагінація (для мобільних) --- */
.reviews-pagination {
  position: static;
  margin-top: 25px;
}
.reviews-pagination .swiper-pagination-bullet {
  background-color: #ccc;
  opacity: 1;
}
.reviews-pagination .swiper-pagination-bullet-active {
  background-color: #333;
}


/* --- 📱 МОБІЛЬНА ВЕРСІЯ (≤ 991px) --- */
@media (max-width: 991px) {
  .reviews-slider-container {
      flex-direction: column; /* Складаємо колонки */
  }
  .reviews-slider-container .section,
  .reviews-slider-wrapper {
      width: 100%; /* На всю ширину */
  }
  
  /* Мобільні стилі для тексту */
  .reviews-slider-container .section .row .text-content .main-title {
      font-size: 40px;
      line-height: 41.6px;
  }
  .reviews-slider-container .section .row .text-content .text {
      font-size: 16px;
      line-height: 24px;
  }
}


/* --- 💻 ДЕСКТОПНА ВЕРСІЯ (≥ 992px) --- */
@media (min-width: 992px) {
  .reviews-slider-wrapper {
      height: 700px; 
      overflow: hidden;
      -webkit-mask-image: linear-gradient(to bottom, 
          transparent 0%, 
          black 20%, 
          black 80%, 
          transparent 100%
      );
      mask-image: linear-gradient(to bottom, 
          transparent 0%, 
          black 20%, 
          black 80%, 
          transparent 100%
      );
  }
  .reviews-swiper-js {
      height: 100%;
      overflow: hidden;
      width: 590px;
  }
  .reviews-pagination {
      display: none;
  }
  .swiper-slide.review-card{
    opacity: 0;
    box-shadow: none;
    border-color: transparent;
    transform: scale(1) !important; /* Базовий стан */
    width: 500px;
  }
  .swiper-vertical>.swiper-wrapper{
    margin-top: -100px;
  }
  /* 2. Активний слайд (Центральний) */
  .swiper-slide-active.review-card {
      opacity: 1;
      background: #E8EEEE;
      border-color: #EBEBEA;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      /* Повертаємо на місце, прибираємо кут */
      transform: scale(1) translateX(0) rotate(0) !important;
  }

  /* 3. Попередній слайд (Верхній) */
  .swiper-slide-prev.review-card {
      opacity: 0.3;
      /* Кут в один бік */
      transform: scale(1) rotate(-3deg) !important;
  }

  /* 4. Наступний слайд (Нижній) */
  .swiper-slide-next.review-card {
      opacity: 0.3;
      /* Кут в інший бік */
      transform: scale(1) rotate(3deg) !important;
  }
}