/*
 * Modern Testimonial Card
 * Path: assets/css/components/modern-testimonial.css
 */
.modern-testimonial-card {
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.05));
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  color: var(--text-color, #1f2937);
}

[data-theme="dark"] .modern-testimonial-card {
  background: #1e293b; /* More visible background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modern-testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .modern-testimonial-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(12, 224, 122, 0.3);
}

.modern-testimonial-card .testimonial-video-side {
  width: 100%;
  position: relative;
  min-height: 220px;
  background-color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modern-testimonial-card .testimonial-video-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.modern-testimonial-card:hover .testimonial-video-side img {
  opacity: 0.8;
}

.modern-testimonial-card .video-play-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--primary-color, #0CE07A);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px; /* offset for play triangle */
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 20px rgba(12, 224, 122, 0.5);
  transition: transform 0.3s ease, background 0.3s ease;
}

.modern-testimonial-card .video-play-btn:hover {
  transform: scale(1.1);
  background: #04bc66;
  color: #fff;
}

.modern-testimonial-card .testimonial-content-side {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modern-testimonial-card .quote-icon {
  font-size: 24px;
  color: var(--primary-color, #0CE07A);
  margin-bottom: 15px;
  opacity: 0.5;
}

.modern-testimonial-card .testimonial-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  font-style: italic;
}

[data-theme="dark"] .modern-testimonial-card .testimonial-text {
  color: #e2e8f0;
}

.modern-testimonial-card .author-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.modern-testimonial-card .author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color, #0CE07A);
  background: #fff;
}

.modern-testimonial-card .author-details h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

[data-theme="dark"] .modern-testimonial-card .author-details h5 {
  color: #f8fafc;
}

.modern-testimonial-card .author-details span {
  font-size: 13px;
  color: var(--text-muted, #666);
  line-height: 1.4;
  display: block;
}

[data-theme="dark"] .modern-testimonial-card .author-details span {
  color: #94a3b8;
}

.modern-testimonial-stars {
  color: #FFB800;
  margin-bottom: 10px;
  font-size: 13px;
}

/* Wrapper externo — controla overflow sem cortar os dots */
.testimonials-carousel-wrap {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

/* Custom Slider Controls */
.modern-testimonials-carousel {
  position: relative;
  padding-bottom: 80px;
  width: 100%;
  min-width: 0;
}

/* Garante que o Slick não estoure lateralmente */
.modern-testimonials-carousel .slick-list {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.modern-testimonials-carousel .slick-track {
  display: flex !important;
  min-width: 0;
}

.modern-testimonials-carousel .slick-slide {
  height: auto !important;
  display: flex;
  min-width: 0;
}

.modern-testimonials-carousel .slick-slide > div {
  width: 100%;
  display: flex;
  min-width: 0;
}

.modern-testimonials-carousel .slick-slide .px-2 {
  width: 100%;
  display: flex;
  min-width: 0;
}

.modern-testimonials-carousel .modern-testimonial-card {
  width: 100%;
  min-width: 0;
}

.modern-slider-prev,
.modern-slider-next {
  position: absolute;
  bottom: 10px;
  top: auto;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modern-slider-prev:hover,
.modern-slider-next:hover {
  background: var(--primary-color, #0CE07A);
  border-color: var(--primary-color, #0CE07A);
  color: #fff;
}

.modern-slider-prev {
  left: calc(50% - 90px);
}

.modern-slider-next {
  right: calc(50% - 90px);
}

.modern-testimonials-carousel .slick-dots {
  position: absolute;
  bottom: 27px; /* Align vertically with the center of the arrows */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-testimonials-carousel .slick-dots li {
  margin: 0 4px;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}

.modern-testimonials-carousel .slick-dots button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 1 !important;
}

.modern-testimonials-carousel .slick-dots li:after {
  display: none !important;
}

.modern-testimonials-carousel .slick-dots li.slick-active button {
  width: 24px;
  background: var(--primary-color, #0CE07A);
  border-radius: 10px;
}

.modern-testimonials-carousel .slick-dots li:hover button {
  background: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Responsivo — Mobile
   ============================================ */
@media (max-width: 991px) {
  .testimonials-area .hero-text-col {
    padding-bottom: 30px !important;
  }

  .modern-testimonials-carousel {
    padding-bottom: 60px;
  }
}

@media (max-width: 576px) {
  .modern-testimonial-card .testimonial-video-side {
    min-height: 180px;
  }

  .modern-testimonial-card .testimonial-content-side {
    padding: 18px;
  }
}
