.video-testimonials {
  background-color: var(--color-4);
  padding-top: 80px;
  padding-bottom: 80px;
}

.video-testimonials-heading {
  color: var(--color-6);
  text-align: center;
  padding-bottom: 50px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop carousel styles */
.video-testimonials-desktop {
  display: block;
}

.video-testimonials-clients-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 100px;
  width: 80%;
  margin: 0 auto;
  margin-bottom: 30px;
}

.video-testimonials-client {
  display: flex;
  opacity: 0.7;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.video-testimonials-client.active {
  opacity: 1;
}

.video-testimonials-client-content {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.video-testimonials-client-image {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}

.video-testimonials-client-logo {
  width: 100px;
}

/* Progress bar styles */
.video-testimonials-progress-container {
  width: 100%;
  height: 3px;
  background-color: rgba(244, 244, 244, 0.3);
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

.video-testimonials-progress-bar {
  height: 100%;
  background-color: var(--color-1);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.video-testimonials-progress-bar.active {
  animation: progressAnimation 10s linear forwards;
}

@keyframes progressAnimation {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.video-testimonials-container {
  width: 80%;
  margin: 0 auto;
}

.video-testimonials-video-container {
  position: relative;
  display: none;
  border-radius: 20px;
  height: 400px;
  max-width: 1000px;
  margin: 0 auto;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.video-testimonials-video-container.active {
  display: flex;
}

.video-testimonials-video-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  font-size: 16px;
  text-align: center;
  width: 45%;
  max-width: 450px;
  gap: 30px;
  line-height: 28px;
  margin-left: 20px;
  padding: 40px 0;
}

.video-testimonials-video-text p {
  margin: 0;
}

.video-testimonials-client-name {
  font-weight: 600;
}

.video-testimonials-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: rgba(27, 42, 86, 0.9);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.video-testimonials-play-icon:hover {
  background-color: rgba(27, 42, 86, 1);
}

.video-testimonials-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #FFFFFF;
  margin-left: 4px;
}

/* Mobile accordion styles */
.video-testimonials-accordion {
  display: none;
  width: 90%;
  margin: 0 auto;
}

.video-testimonials-accordion-item {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.video-testimonials-accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.video-testimonials-accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.video-testimonials-accordion-client {
  display: flex;
  align-items: center;
  gap: 15px;
}

.video-testimonials-accordion-client-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.video-testimonials-accordion-client-logo {
  width: 80px;
  height: auto;
}

.video-testimonials-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.video-testimonials-accordion-item.active .video-testimonials-accordion-panel {
  max-height: 600px;
}

.video-testimonials-accordion-video-container {
  position: relative;
  display: flex;
  border-radius: 0 0 12px 12px;
  height: 400px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.video-testimonials-accordion-video-container .video-testimonials-video-text {
  width: 100%;
  margin: 0;
  padding: 20px;
  gap: 20px;
  font-size: 16px;
  line-height: 24px;
}

/* Modal overlay */
.video-testimonials-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-testimonials-modal.active {
  display: flex;
}
.video-testimonials-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1;
}
.video-testimonials-modal-content {
  position: relative;
  z-index: 2;
  background: transparent;
  max-width: 90vw;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.video-testimonials-modal-close {
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  position: absolute;
  padding-top: 40px;
  z-index: 3;
  line-height: 1;
}
.video-testimonials-modal-video {
  width: 100%;
  max-width: 800px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-testimonials-modal-video iframe {
  width: 100%;
  height: 60vh;
  max-width: 800px;
  border: none;
  border-radius: 8px;
  background: #000;
}
/* Prevent background scroll when modal is open */
body.video-testimonials-modal-open {
  overflow: hidden;
}

/* Responsive styles */
@media (min-width: 1200px) {
  .video-testimonials-video-container {
    height: 350px;
    max-width: 900px;
  }
  
  .video-testimonials-video-text {
    width: 50%;
    max-width: 500px;
    font-size: 18px;
    line-height: 32px;
  }
  
  .video-testimonials-play-icon {
    width: 80px;
    height: 80px;
  }
  
  .video-testimonials-play-icon::after {
    border-width: 15px 0 15px 25px;
    margin-left: 5px;
  }
}

@media (max-width: 768px) {
  .video-testimonials {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .video-testimonials-heading {
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hide desktop version on mobile */
  .video-testimonials-desktop {
    display: none;
  }

  /* Show mobile accordion on mobile */
  .video-testimonials-accordion {
    display: block;
  }

  .video-testimonials-accordion-video-container {
    height: 250px;
  }

  .video-testimonials-accordion-video-container .video-testimonials-video-text {
    font-size: 14px;
    line-height: 20px;
    padding: 15px;
  }

  .video-testimonials-play-icon {
    width: 60px;
    height: 60px;
  }

  .video-testimonials-play-icon::after {
    border-width: 12px 0 12px 20px;
  }
}

@media (max-width: 480px) {
  .video-testimonials-accordion {
    width: 95%;
  }

  .video-testimonials-accordion-header {
    padding: 15px;
  }

  .video-testimonials-accordion-client {
    gap: 10px;
  }

  .video-testimonials-accordion-client-image {
    width: 40px;
    height: 40px;
  }

  .video-testimonials-accordion-client-logo {
    width: 60px;
  }

  .video-testimonials-accordion-video-container {
    height: 250px;
  }

  .video-testimonials-accordion-video-container .video-testimonials-video-text {
    font-size: 13px;
    line-height: 18px;
    padding: 10px;
  }
  
  .video-testimonials-heading {
    padding-left: 10px;
    padding-right: 10px;
  }
}