.testimonial-slider-wrapper {
    position: relative;
}

.testimonial-slider-wrapper .swiper {
    position: relative;
    overflow: hidden;
}

.testimonial-slider-wrapper > .swiper .swiper-wrapper {
    align-items: stretch;
    padding-bottom: 0;
}

.testimonial-slider-wrapper > .swiper .swiper-slide {
    height: auto;
    display: flex;
    width: 380px;
    max-width: 380px;
    flex-shrink: 0;
}

/* Horizontal Scrollbar - positioned below swiper-wrapper */
.testimonial-scrollbar {
  position: relative !important;
  width: calc(100% - 40px) !important;
  height: 5px !important;
  background: rgba(111, 66, 193, 0.15);
  border-radius: 5px;
  margin: 10px 0 0 0 !important;
}

.testimonial-scrollbar .swiper-scrollbar-drag {
  background: linear-gradient(90deg, #6f42c1 0%, #8a5cf5 50%, #6f42c1 100%);
  border-radius: 6px;
  height: 100%;
  position: relative;
  cursor: grab;
  min-width: 60%;
  max-width: 75%;
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-scrollbar .swiper-scrollbar-drag:hover {
  background: linear-gradient(90deg, #8a5cf5 0%, #9d6bff 50%, #8a5cf5 100%);
  box-shadow: 0 3px 6px rgba(111, 66, 193, 0.4);
  transform: scaleY(1.2);
}

.testimonial-scrollbar .swiper-scrollbar-drag:active {
    cursor: grabbing;
}

/* Navigation - positioned below scrollbar (or below swiper-wrapper if no scrollbar) */
.testimonial-navigation {
  position: relative;
  display: flex;
  gap: 15px;
  margin-top: 40px;
  align-items: center;
  bottom: 5px;
  left: 5px;
}

/* If no scrollbar exists, add more top margin to navigation */
.testimonial-slider-wrapper .swiper:not(:has(.testimonial-scrollbar)) .testimonial-navigation,
.testimonial-slider-wrapper .swiper:not(:has(.swiper-scrollbar)) .testimonial-navigation {
  margin-top: 25px;
}

/* Navigation Arrows - Side by side */
.testimonial-nav-prev,
.testimonial-nav-next {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #6f42c1;
  border-radius: 50%;
  color: #6f42c1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
}

.testimonial-nav-prev:hover,
.testimonial-nav-next:hover {
    background: #6f42c1;
    color: white;
    transform: scale(1.1);
}

.testimonial-nav-prev:after,
.testimonial-nav-next:after {
    display: none;
}

.testimonial-nav-prev i,
.testimonial-nav-next i {
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-slider-wrapper > .swiper .swiper-slide {
    width: 320px !important;
    max-width: 320px;
  }

  .testimonial-image{
    height: auto;
  }
  
  .testimonial-navigation {
    gap: 15px;
    margin: 40px 0 0 0;
    left: 5px;
  }
  
  .testimonial-nav-prev,
  .testimonial-nav-next {
    width: 35px;
    height: 35px;
  }
  
  .testimonial-nav-prev i,
  .testimonial-nav-next i {
    font-size: 0.9rem;
  }
  
  .testimonial-scrollbar {
    width: calc(100% - 30px) !important;
    margin: 20px 0 !important;
  }
}

 /* Testimonial Item Base Styles */
.testimonial-item { padding: 0.5rem; }

/* Style 1: Image Card with Hover Overlay */
.testimonial-card--style1 { 
  position: relative; 
  border-radius: 15px; 
  overflow: hidden; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: white;
}

.testimonial-image { 
  width: 100%; 
  height: 380px; 
  overflow: hidden; 
  position: relative;
}
.testimonial-card--style1 .testimonial-avatar { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.3s ease;
}
.testimonial-card--style1:hover .testimonial-avatar { 
  transform: scale(1.1); 
}
.testimonial-card--style1 .avatar-placeholder { 
  width: 100%; 
  height: 100%; 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: white; 
  font-size: 4rem; 
}

.testimonial-author-name { 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  background: white; 
  color: #6f42c1; 
  padding: 1rem; 
  text-align: center;
}
.testimonial-author-name h5 { 
  margin: 0; 
  font-size: 1.1rem; 
  font-weight: 600; 
  color: #6f42c1;
  font-family: 'Clash Display', sans-serif;
}

.testimonial-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: white; 
  color: #333; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
  padding: 1rem;
}
.testimonial-card--style1:hover .testimonial-overlay { 
  opacity: 1; 
}

.overlay-content { 
  text-align: center; 
  max-width: 100%; 
}
.testimonial-quote { 
  margin-bottom: 0.25rem;
  font-size: 12px;
}
.testimonial-quote i { 
  font-size: 0.85rem; 
  color: #6f42c1; 
  margin-bottom: 0; 
  display: block;
  text-align: left;
}
.testimonial-quote p { 
  font-size: 0.85rem; 
  line-height: 1.6; 
  font-style: italic; 
  margin: 0; 
  color: #333;
  font-family: 'Archivo';
}

.testimonial-details { 
  border-top: 1px solid rgba(111, 66, 193, 0.2); 
  padding-top: 1rem; 
}
.testimonial-details .author-name { 
  font-size: 1rem; 
  font-weight: 600; 
  color: #6f42c1;
  font-family: 'Clash Display';
}
.testimonial-details .author-role, 
.testimonial-details .author-location { 
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #6f42c1;
  font-family: 'Archivo';
  font-weight: 400;
}

/* Style 2: Horizontal Layout */
.testimonial-card--style2 { 
  position: relative; 
  overflow: hidden; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
}

.testimonial-content {
  position: relative;
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.testimonial-card--style2 .testimonial-avatar {
  flex-shrink: 0;
}

.testimonial-card--style2 .testimonial-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.testimonial-card--style2 .avatar-placeholder {
  width: 80px;
  height: 80px;
  background: #e9ecef;
  color: #6c757d;
  font-size: 2rem;
}

.testimonial-card--style2 .testimonial-author {
  flex: 1;
}

.testimonial-card--style2 .author-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #5519E6;
  margin-bottom: 0.25rem;
}

.testimonial-card--style2 .author-role {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

.testimonial-card--style2 .testimonial-quote {
  margin-bottom: 1.5rem;
}

.testimonial-card--style2 .testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  font-style: italic;
  margin-bottom: 0;
}

/* Style 2 Navigation - Top Right */
.testimonial-card--style2 .swiper-button-prev,
.testimonial-card--style2 .swiper-button-next {
  color: white;
  background: #5519E6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  top: 20px;
  right: 20px;
  margin-top: 0;
}

.testimonial-card--style2 .swiper-button-prev {
  right: 70px;
}

.testimonial-card--style2 .swiper-button-prev:after,
.testimonial-card--style2 .swiper-button-next:after {
  font-size: 1rem;
  font-weight: bold;
}

/* Style 2 Pagination - Bottom Left */
.testimonial-card--style2 .swiper-pagination {
  bottom: 20px;
  left: 20px;
  width: auto;
}

.testimonial-card--style2 .swiper-pagination-bullet {
  background: #333;
  opacity: 1;
  width: 8px;
  height: 8px;
  margin: 0 4px;
}

.testimonial-card--style2 .swiper-pagination-bullet-active {
  background: #5519E6;
}

/* Style 2 Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card--style2 .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .testimonial-card--style2 .testimonial-avatar {
    margin-bottom: 0.5rem;
  }
  
  .testimonial-card--style2 .swiper-button-prev,
  .testimonial-card--style2 .swiper-button-next {
    display: none;
  }
}

/* Style 3: Clean Card - Quote Icon, Text, Author (No Image) */
.testimonial-card--style3 {
  background: #F5F7FA;
  border-radius: 20px;
  padding: 1rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card--style3:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-card--style3 .testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card--style3 .quote-icon {
  margin-bottom: 0.5rem;
}

.testimonial-card--style3 .quote-icon i {
  font-size: 1rem;
  color: var(--taevas-blue);
  opacity: 1;
}

.testimonial-card--style3 .testimonial-text {
  flex: 1;
  margin-bottom: 1rem;
  background: #fff;
  padding: 15px;
  border-radius: 20px;
}

.testimonial-card--style3 .testimonial-text p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #000;
  margin-bottom: 10px;
  font-family: 'Archivo';
}

.testimonial-card--style3 .testimonial-author {
  border-top: none;
  padding-top: 0;
  margin-top: auto;
}

.testimonial-card--style3 .author-name {
  font-size: 1rem;
  color: #000;
  margin-bottom: 0.25rem;
  font-family: 'Archivo' !important;
}

.testimonial-card--style3 .author-location {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  font-family: 'Archivo';
}

/* Style 3 Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card--style3 {
    padding: 2rem 1.5rem;
  }
  
  .testimonial-card--style3 .quote-icon i {
    font-size: 2rem;
  }
  
  .testimonial-card--style3 .testimonial-text {
    margin-bottom: 1.5rem;
  }
  
  .testimonial-card--style3 .testimonial-text p {
    font-size: 0.95rem;
  }
  
  .testimonial-card--style3 .author-name {
    font-size: 1rem;
  }
  
  .testimonial-card--style3 .author-location {
    font-size: 0.85rem;
  }
}
