/*testimonial-texts */
.client-stories {
  color: #fff;
  text-align: center;
  .section-heading {
    margin-bottom: 50px;
  }
}

.client-stories .container {
  max-width: 1200px;
  margin: auto;
}

.testimonial-videos {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  justify-content: space-between;

}

.video-card {
  cursor: pointer;
  position: relative;
  width: 260px;
    height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
}





.video-card .name {
  padding: 10px;
  font-size: 14px;
  text-align: left;
  position: absolute;
  z-index: 111;
  bottom: 0;
  background-color: #020817;
  width: 100%;
  font-size: 10px;
    line-height: 1.2;
}

.video-card .name span {
  color: #aaa;
  font-size: 13px;
}



/* Text testimonials */
.testimonial-texts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.text-card {
  background: #111836;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.text-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ddd;
}

.text-card h4 {
  font-size: 16px;
  font-weight: 600;
}

.text-card h4 span {
  display: block;
  font-size: 14px;
  color: #aaa;
}



  .review-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
    width: 260px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }

 

  .review-image,
  .review-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

 

  .expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border-radius: 5px;
    width: 20px;
    height: 20px;
  }

  .review-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: .75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .review-item:hover .review-overlay {
    opacity: 1;
  }

  .review-name {
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 0;
  }

  .review-company {
    color: rgba(255,255,255,0.8);
    font-size: .75rem;
  }




.cta-wrapper {
  margin-top: 20px;
}

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  .client-name{
    position: absolute;
    background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
    z-index: 111;
    top: 80%;
    width: 100%;
    padding: 20px 10px 10px 10px;
    left: 0;
  }
}


@media screen and (max-width: 768px) {
    .client-stories{
 
  .container{
    overflow: hidden;
  }
  .reviews-section{
    .container{
          overflow: visible;
    padding: 0;
    }
  }

  .video-card {
    min-width: 140px;
     max-width: 140px;
    height: 200px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    
   
}


.testimonial-videos {
      /* overflow-x: scroll; */
    gap: 20px;

}
.testimonial-videos ::-webkit-scrollbar{
  display: none;
}

.review-item {
    height: 220px;
    min-width: 140px;

}
.reviews-grid{
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}
}

.video-card {
    .client-name {
        top: 68%;
      
    }
}
}
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .client-stories .container {
    overflow: hidden;
}
.testimonial-videos{
  min-width: 1200px;
}
}



/* Review Lightbox */
.review-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1100;
  display: none;
}

.lightbox-content {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90%;
  height: 80%;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .lightbox-content {
    flex-direction: row;
    height: 60%;
  }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.lightbox-image {
  width: 100%;
  height: 50%;
  background-color: #f0f0f0;
}

@media (min-width: 768px) {
  .lightbox-image {
    width: 60%;
    height: 100%;
  }
}

.lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-details {
  width: 100%;
  height: 50%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .lightbox-details {
    width: 40%;
    height: 100%;
  }
}

.lightbox-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lightbox-details p:first-of-type {
  color: black;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.lightbox-details p:nth-of-type(2) {
  flex-grow: 1;
  overflow-y: auto;
  font-style: italic;
  color: rgba(0, 0, 0, 0.926);
}

.lightbox-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.579);
}

.lightbox-nav button {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.579);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

#reviewCounter {
  font-size: 0.875rem;
  color: black;
}
    #testimonials{
      min-height: auto;
    
    }
    @media only screen and (max-width: 768px) {
    #testimonials {
        display: block;
        padding: 0;
    }
    .lightbox-image {
      height: 47%;
    }
    .lightbox-details{
      height: 53%;
      padding: 1rem;
    }
    #lightboxName{
      margin: 0;
    }
}
#lightboxComment::-webkit-scrollbar {
  display: none;
}
.review-name{
  margin-bottom: 0;
}
#lightboxName{
  color: #1a1a2e;
}
.lightbox-nav button{
  color: #020817;
}