/* =========================================================
   TESTIMONIALS GRID
========================================================= */

.block_testimonials .customer-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}


/* =========================================================
   TESTIMONIAL ITEM
========================================================= */

.block_testimonials .customer-testimonial-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  min-height: 260px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.block_testimonials .testimonial_title {
  span {
    color: var(--blue);
  }
}

/* =========================================================
   TESTIMONIAL CARD
========================================================= */

.block_testimonials .testimonial-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.block_testimonials .testimonials_title {
  span {
    color: var(--blue);
  }
}

/* =========================================================
   HOVER
========================================================= */

.block_testimonials .customer-testimonial-item:hover .testimonial-card {
  transform: translateY(-4px);
  border-color: #dcdcdc;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   VIDEO / PHOTO CONTAINER
========================================================= */

.block_testimonials .testimonial-card__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 20px;
}


/* =========================================================
   YOUTUBE IFRAME
========================================================= */

.block_testimonials .testimonial-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* =========================================================
   PHOTO
========================================================= */

.block_testimonials .testimonial-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================================================
   VIDEO COVER
========================================================= */

.block_testimonials .testimonial-card__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  overflow: hidden;
}

.block_testimonials .testimonial-card__cover.is-hidden {
  display: none;
}

/* =========================================================
   COVER IMAGE
========================================================= */

.block_testimonials .testimonial-card__cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}


/* =========================================================
   COVER HOVER
========================================================= */

.block_testimonials .testimonial-card__cover:hover .testimonial-card__cover-image {
  transform: scale(1.03);
  filter: brightness(0.85);
}


/* =========================================================
   PLAY ICON
========================================================= */

.block_testimonials .testimonial-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.block_testimonials .testimonial-card__play img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


.block_testimonials .testimonial-card__cover:hover .testimonial-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 0, 0, 0.8);
}


/* =========================================================
   PLAY BUTTON WITHOUT COVER
========================================================= */

.block_testimonials .testimonial-card__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  z-index: 3;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}


.block_testimonials .testimonial-card__play-button:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 0, 0, 0.8);
}


.block_testimonials .testimonial-card__play-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* =========================================================
   CONTENT
========================================================= */

.block_testimonials .testimonial-card__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px 30px;
  box-sizing: border-box;
}


/* =========================================================
   TESTIMONIAL TEXT
========================================================= */

.block_testimonials .testimonial-card__text {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.65;
}


.block_testimonials .testimonial-card__text small {
  display: block;
  font-size: inherit;
  line-height: inherit;
}


.block_testimonials .testimonial-card__text i {
  font-style: italic;
}


/* =========================================================
   SPEAKER WRAPPER
========================================================= */

.block_testimonials .testimonial-card__speaker-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}


/* =========================================================
   SPEAKER NAME
========================================================= */

.block_testimonials .testimonial-card__speaker {
  margin: 0;
  color: #222;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;

  span {
    color : #5a14e6;
  }
}


/* =========================================================
   SPEAKER PHOTO
========================================================= */

.block_testimonials .testimonial-card__speaker_photo {
  display: flex;
  align-items: center;
  justify-content: center;
}


.block_testimonials .testimonial-card__speaker_photo_img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #f0f0f0;
}


/* =========================================================
   SLIDER
========================================================= */

.block_testimonials .customer-testimonials-slider {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 32px;
  box-sizing: border-box;
}


/* =========================================================
   SLIDER CARD
========================================================= */

.block_testimonials .customer-testimonials-slider .customer-testimonial-item {
  flex: 0 0 calc((100% - 48px) / 2.5);
  min-width: 0;
  scroll-snap-align: start;
}


/* =========================================================
   SLIDER SCROLLBAR
========================================================= */

.block_testimonials .customer-testimonials-slider::-webkit-scrollbar {
  height: 8px;
}


.block_testimonials .customer-testimonials-slider::-webkit-scrollbar-track {
  background: #ececec;
  border-radius: 999px;
}


.block_testimonials .customer-testimonials-slider::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    #7c3aed,
    #4f46e5
  );
  border-radius: 999px;
}


.block_testimonials .customer-testimonials-slider::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    90deg,
    #8b5cf6,
    #6366f1
  );
}


/* Firefox */

.block_testimonials .customer-testimonials-slider {
  scrollbar-width: thin;
  scrollbar-color:
    #6366f1
    #ececec;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

  .block_testimonials .customer-testimonials-grid {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }


  .block_testimonials .customer-testimonials-slider .customer-testimonial-item {
    flex-basis: calc((100% - 24px) / 2);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

  .block_testimonials .customer-testimonials-grid {
    grid-template-columns: 1fr;
  }


  .block_testimonials .customer-testimonials-slider {
    gap: 16px;

    padding-bottom: 24px;
  }


  .block_testimonials .customer-testimonials-slider .customer-testimonial-item {
    flex-basis: 85%;
  }


  .block_testimonials .testimonial-card__content {
    padding: 24px 20px 26px;
  }


  .block_testimonials .testimonial-card__text {
    font-size: 15px;
    line-height: 1.6;
  }


  .block_testimonials .testimonial-card__speaker-wrapper {
    margin-top: 20px;
  }


  .block_testimonials .testimonial-card__speaker_photo_img {
    width: 48px;
    height: 48px;
  }


  .block_testimonials .testimonial-card__play,
  .block_testimonials .testimonial-card__play-button {
    width: 52px;
    height: 52px;
  }


  .block_testimonials .testimonial-card__play img,
  .block_testimonials .testimonial-card__play-button img {
    width: 22px;
    height: 22px;
  }

}