/* ==========================================================================
   Onlesson Testimonials
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CARROSSEL — [onlesson_carousel]
   -------------------------------------------------------------------------- */

.onlesson-testimonial-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 40px 0;
}

.onl-carousel-viewport {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  margin: 0 50px;
}

.onl-carousel-track {
  display: flex;
  width: 100%;
  min-height: 200px;
  align-items: stretch;
  transform: translateX(0);
}

.onl-testimonial-card {
  min-width: 33.333%;
  box-sizing: border-box;
  padding: 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.85);
  opacity: 0.5;
}

.onl-testimonial-card.highlight {
  transform: scale(1.1);
  opacity: 1;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   2. LISTA — [onlesson_testimonials_list]
   -------------------------------------------------------------------------- */

.onlesson-testimonials-list {
  display: grid;
  gap: 30px;
  margin: 0 auto;
}

.onlesson-testimonials-list.onl-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.onlesson-testimonials-list.onl-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.onl-list-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Aspas decorativas */
.onl-list-card::before {
  content: "\201C";
  font-size: 80px;
  line-height: 1;
  color: #ede9ff;
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: Georgia, serif;
}

.onl-list-content {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}

.onl-list-content p:last-child {
  margin-bottom: 0;
}

.onl-list-footer {
  border-top: 2px solid #ede9ff;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA COMUM
   -------------------------------------------------------------------------- */

.onl-t-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.onl-t-name {
  color: #2a1b75;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. SETAS DO CARROSSEL
   -------------------------------------------------------------------------- */

.onl-nav-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onl-prev-btn {
  left: 0;
}
.onl-next-btn {
  right: 0;
}

.onl-arrow-shape {
  border: solid #e0e0e0;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 15px;
  transition: border-color 0.3s ease;
}

.onl-prev-btn .onl-arrow-shape {
  transform: rotate(135deg);
}
.onl-next-btn .onl-arrow-shape {
  transform: rotate(-45deg);
}
.onl-nav-btn:hover .onl-arrow-shape {
  border-color: #2a1b75;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .onlesson-testimonials-list.onl-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .onl-testimonial-card {
    min-width: 100%;
    padding: 15px 15px;
    transform: scale(0.9);
  }
  .onl-testimonial-card.highlight {
    transform: scale(1);
  }
  .onl-carousel-viewport {
    margin: 0 30px;
  }
  .onl-arrow-shape {
    padding: 10px;
  }

  .onlesson-testimonials-list.onl-cols-2,
  .onlesson-testimonials-list.onl-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. LINK DOS CARDS
   -------------------------------------------------------------------------- */

.onl-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.onl-card-link:hover,
.onl-card-link:focus,
.onl-card-link:visited {
  text-decoration: none;
  color: inherit;
}

.onl-card-link:hover {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
