/* Scope CSS to .testimonial-slider */

.testimonial-slider {
  
  width: 90%;
  height: 390px; /* Adjusted height */
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

/* Responsive height based on device width */
@media screen and (max-width: 768px) {
  .testimonial-slider {
    height: 600px; /* Adjusted height for mobile devices */
  }
}

@media screen and (min-width: 769px) {
  .testimonial-slider {
    height: 320px; /* Adjusted height for larger screens (desktop) */
  }
}

@media screen and (max-width: 768px) {
  .testimonial-slider {
    width: 99%; /* Adjusted height for mobile devices */
  }
}

@media screen and (min-width: 769px) {
  .testimonial-slider {
    width: 90%; 
  }
}

.testimonial-slider .testimonial-list {
  display: flex;
  overflow: hidden;
}

.testimonial-slider .testimonial {
  flex: 1 0 100%;
  text-align: center;
  padding: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slider .testimonial .bi-quote {
  font-size: 4rem;
  color: var(--sunglow);
  opacity: 0.75;
}

.testimonial-slider .testimonial blockquote {
  font-size: 1.25rem;
  margin-inline: 20px;
}

.testimonial-slider .user-info {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.testimonial-slider .user-info img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.testimonial-slider .user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonial-slider .user-details .name {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark-cyan);
}

.testimonial-slider .user-details .company {
  color: var(--muted-color);
}

/* button navigation */

.testimonial-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--paynes-gray);
  transition: 0.3s;
  opacity: 0;
}

.testimonial-slider:hover .nav {
  opacity: 1;
}

.testimonial-slider .nav:hover {
  background-color: var(--dark-cyan);
  color: var(--light-color);
}

.testimonial-slider .nav.prev {
  left: 10px;
}

.testimonial-slider .nav.next {
  right: 10px;
}

/* dot navigation */

.testimonial-slider .dots-container {
  text-align: center;
}

.testimonial-slider .dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 5px;
  margin-inline: 5px;
  background-color: var(--dot-color);
  transition: width 0.2s;
}

.testimonial-slider .dot.active {
  width: 30px;
  background-color: var(--paynes-gray);
}