.card-wrapper-testimonial {
  display: flex;
  gap: 10px;
  /* justify-content: space-between; */
}

.card-wrapper-testimonial .card-container {
  margin-bottom: 20px;
}

.testimonial-card {
  position: relative;
  /* width: 377px; */
  width: 427px;
  height: 580px;
  overflow: hidden;
  background-color: white;
  transition: all 0.5s ease-in-out;
}

.card-wrapper-testimonial .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease-in-out;
}

.card-wrapper-testimonial .content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 30px 44px 22px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: color 0.5s ease-in-out;
}

.card-wrapper-testimonial .profile-img {
  width: 71px;
  height: 72px;
  margin-bottom: 40px;
}

.card-wrapper-testimonial .profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.card-wrapper-testimonial .quote-sign {
  width: 20px;
  margin-bottom: 20px;
  transition: opacity 0.5s ease-in-out;
}

.card-wrapper-testimonial .quote-block {
  transition: opacity 0.5s ease-in-out;
  flex-grow: 1;
}

.card-wrapper-testimonial .quote {
  color: var(--e-global-color-primary);
  font-size: var(--e-global-typography-41b1649-font-size);
  line-height: var(--e-global-typography-41b1649-line-height);
  letter-spacing: var(--e-global-typography-41b1649-letter-spacing);
  word-spacing: var(--e-global-typography-41b1649-word-spacing);
  transition: color 0.5s ease-in-out;
}

.card-wrapper-testimonial .brand {
  margin-top: 20px;
  height: 110px;
}

.card-wrapper-testimonial .brand img {
  /* width: 80px; */
  height: 32px;
  display: block;
  filter: none;
  transition: filter 0.5s ease-in-out;
}

.card-wrapper-testimonial .name {
  color: var(--e-global-color-primary);
  font-size: var(--e-global-typography-3871339-font-size);
  line-height: var(--e-global-typography-3871339-line-height);
  letter-spacing: var(--e-global-typography-3871339-letter-spacing);
  transition: color 0.5s ease-in-out;
}

.card-wrapper-testimonial .title {
  opacity: 0.6;
  color: var(--e-global-color-primary);
  font-size: var(--e-global-typography-aef3d18-font-size);
  line-height: var(--e-global-typography-aef3d18-line-height);
  letter-spacing: var(--e-global-typography-aef3d18-letter-spacing);
  transition: color 0.5s ease-in-out;
}

.card-wrapper-testimonial .play-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.card-wrapper-testimonial .play-section img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.card-wrapper-testimonial .play-button {
  width: 56px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: white;
  background-color: #707070;
  cursor: pointer;
}

/* .play-button::before {
  content: '▶';
  margin-left: 2px;
} */

.card-wrapper-testimonial .play-section-mobile {
  position: relative;
  opacity: 1;
  display: none;
}

@media (hover: hover) {
  .testimonial-card:hover .title,
  .testimonial-card:hover .name,
  .testimonial-card:hover .content {
    color: #fff;
  }
  .testimonial-card:hover .play-section,
  .testimonial-card:hover .background-image {
    opacity: 1;
  }

  .testimonial-card:hover .brand img {
    filter: brightness(0) invert(1);
  }

  .testimonial-card:hover .quote-block,
  .testimonial-card:hover .profile-img img,
  .testimonial-card:hover .quote-sign {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .card-wrapper-testimonial .play-section {
    display: none;
  }
  .card-wrapper-testimonial .play-section-mobile {
    display: block;
  }
  .card-wrapper-testimonial .client_logo_play_btn {
    display: flex;
    justify-content: space-between;
  }
  .card-wrapper-testimonial .play-section-mobile .play-button {
    width: 40px;
    height: 40px;
    /* background-color: var(--e-global-color-primary); */
  }
}

/* Overlay styles */

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  line-height: 0 !important;
  z-index: 1001;
}

.video-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Swiper Styles */
.card-wrapper-testimonial {
  display: block;
}
.card-wrapper-testimonial .swiper {
  width: 100%;
  height: 100%;
}
.card-wrapper-testimonial .swiper-slide {
  width: fit-content;
  transition: all 0.5s linear;
}
.card-wrapper-testimonial .swiper-pagination {
  /* display: none; */
  position: relative !important;
  width: fit-content !important;
}
.card-wrapper-testimonial .swiper-button-next,
.card-wrapper-testimonial .swiper-button-prev {
  width: 45px !important;
  height: 45px !important;
  background-color: #ffffff;
  position: relative !important;
}
.card-wrapper-testimonial .swiper-button-next {
  margin-left: 20px;
}
.card-wrapper-testimonial .swiper-button-prev {
  margin-right: 20px;
}
.card-wrapper-testimonial .swiper-button-next:after,
.card-wrapper-testimonial .swiper-button-prev:after {
  content: none !important;
}
.card-wrapper-testimonial .swiper-button-next:hover,
.card-wrapper-testimonial .swiper-button-prev:hover {
  background-color: #d5e3f0;
}
.card-wrapper-testimonial .carousel-navigation {
  display: flex;
  margin-top: 30px;
  justify-content: center;
}
.card-wrapper-testimonial .swiper-pagination-bullet {
  width: 11px !important;
  height: 11px !important;
  background: #c9c9c9;
}
.card-wrapper-testimonial .swiper-pagination-bullets {
  bottom: 0 !important;
}
.card-wrapper-testimonial .swiper-pagination-bullet-active {
  background: var(--e-global-color-secondary) !important;
}
.card-wrapper-testimonial-nav {
  width: 100%;
  display: none;
  align-items: center;
  flex-direction: row;
  margin-top: 40px;
  justify-content: center;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .card-wrapper-testimonial .swiper-pagination {
    display: block;
  }

  .values-carousel {
    padding-left: max(30px, (100% - 85%)/2);
  }
} /* 768px */

@media (min-width: 1366px) {
  .card-wrapper-testimonial .swiper-button-prev,
  .card-wrapper-testimonial .swiper-button-next {
    width: 50px !important;
    height: 50px !important;
  }
  .card-wrapper-testimonial .carousel-navigation {
    margin-top: 60px;
  }
  .card-wrapper-nav {
    display: none;
  }
  .card-wrapper-testimonial .cta-wrapper {
    font-size: 22px !important;
    bottom: -60px !important;
  }
} /* 1366px */

@media (max-width: 1365px) {
  .card-wrapper-nav {
    display: flex;
  }
  /* .testimonial-card {
    width: 427px;
  } */
}
@media (min-width: 1366px) and (max-width: 1799px) {
  .card-wrapper-testimonial .cta-wrapper {
    font-size: 20px !important;
  }
}

@media (max-width: 768px) {
  .card-wrapper-testimonial .testimonial-card {
    width: 100%;
    height: 550px;
  }
}

/* CTA styles */

.card-wrapper-testimonial .cta-wrapper {
  opacity: 0;
  position: absolute;
  bottom: -10px;
  right: 0;
  color: #ffffff !important;
  border-bottom: 1px solid #ffffff;
  transition: opacity 0.3s ease;
  padding: 10px 0 8px;
  font-family: 'Polysans', Sans-serif !important;
  font-size: 18px;
  line-height: var(--e-global-typography-547cd0e-line-height);
  letter-spacing: var(--e-global-typography-547cd0e-letter-spacing);
}
.card-wrapper-testimonial .cta-wrapper label {
  transition: opacity 0.3s ease;
  opacity: 0;
  cursor: pointer;
}

.card-wrapper-testimonial .cta-wrapper .cta-svg {
  width: 21px;
  height: 18px;
  margin-left: 10px;
}
