/* Carousel container - ActionAid branding */
.testimonials-carousel {
  width: 100%;
  background: transparent;
  position: relative;
  padding: 0.5rem 0 1rem;
  overflow: hidden; /* Garante que nada transborde na tela */
}

/* Viewport (swipe area) */
.carousel-viewport {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;
}
.carousel-viewport:active {
  cursor: grabbing;
}

/* Slides wrapper */
.carousel-slides {
  display: flex !important; /* Obriga a continuar em linha horizontal no mobile */
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Cada slide individual */
.testimonials {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonials .item {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 2.4rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: #e71d36;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.96);
  line-height: 1;
}
.nav-btn:hover {
  background: rgba(255,0,0,0.5);
  color: white;
  transform: translateY(-50%) scale(1.03);
}
.nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}
.btn-prev { left: 0.1rem; padding: 1.2rem 1.2rem 1.2rem 1rem; }
.btn-next { right: 0.1rem; padding: 1.2rem 1rem 1.2rem 1.2rem; }

/* Dots / indicators */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.dot {
  width: 10px;
  height: 10px;
  background: #cfcfdf;
  border-radius: 20px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.dot.active {
  width: 28px;
  background: #f00;
}
.dot:focus-visible {
  outline: 2px solid #f00;
}

/* Responsive */
@media (max-width: 800px) {
  /* REMOVIDO o .testimonials { display: block; } que quebrava o carrossel */
  .testimonials-carousel {
    padding: 0 0.2rem;
  }
  .nav-btn {
    display: none; /* Esconde setas no mobile */
  }
}

.no-transition {
  transition: none !important;
}