/* === SEKCJA OPINII (TESTIMONIALS) === */
.testimonials-section {
  background-color: white;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Gill Sans', sans-serif;
  overflow: hidden;
  position: relative;
}

.testimonials-section h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 2s ease, opacity 1s ease;
}

/* Animacja nagłówka */
.testimonials-section h2.visible {
  opacity: 1;
  transform: translateY(0);
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1020px;
  margin: auto;
}

.testimonials-container {
  display: flex;
  width: fit-content;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.testimonial {
  background-color: #fff;
  padding: 30px 20px 20px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  min-width: 270px;
  margin: 0 15px;
  text-align: left;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

/* Animacja kaskadowa */
.testimonial.card-visible {
  opacity: 1;
  transform: translateY(0);
  animation: bounceIn 0.8s forwards;
}

/* Opóźnienia dla animacji */
.testimonial:nth-child(1).card-visible { transition-delay: 0.2s; }
.testimonial:nth-child(2).card-visible { transition-delay: 0.4s; }
.testimonial:nth-child(3).card-visible { transition-delay: 0.6s; }

/* Efekt kaskady */
@keyframes bounceIn {
  0% { opacity: 1; transform: translateY(60px); }
  60% { opacity: 1; transform: translateY(-20px); }
  80% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

.gender-icon {
  width: 40px;
  position: absolute;
  top: 15px;
  left: 15px;
}

.testimonial-text {
  margin-top: 60px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.author {
  margin-top: 20px;
  font-weight: bold;
  color: #2ca955;
}

/* Slider buttons */
.slider-btn {
  background-color: rgba(0,0,0,0.1);
  border: none;
  color: #333;
  font-size: 24px;
  padding: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s;
}

.slider-btn:hover {
  background-color: rgba(0,0,0,0.2);
}

.slider-btn.left {
  left: 0;
}

.slider-btn.right {
  right: 0;
}
