/* Reset styles for navigation - scoped to slider */
.homeforce-testimonial-slider .testimonial-nav {
  all: unset;
}

.homeforce-testimonial-slider .testimonial-nav svg {
  height: 100px !important;
  width: 100px !important;
  color: #d70929 !important;
}

.homeforce-testimonial-slider .testimonial-text {
  all: unset;
}

/* Main slider container */
.homeforce-testimonial-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    /* padding: 40px 60px; */
    padding: 0;
    overflow: visible;
}

.homeforce-testimonial-slider.has-custom-height {
    /* padding: 0 60px; */
    display: flex;
    align-items: baseline;
    min-height: var(--slider-height);
    height: auto;
}

/* Swiper container */
.homeforce-testimonial-slider .swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.homeforce-testimonial-slider.has-custom-height .swiper {
    height: auto;
    min-height: 100%;
}

.homeforce-testimonial-slider.has-custom-height .swiper {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Swiper wrapper and slides */
.homeforce-testimonial-slider .swiper-wrapper {
    align-items: flex-start;
}

.homeforce-testimonial-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Background shield - scoped to slider */
.homeforce-testimonial-slider .background-shield {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%,-40px) !important;
      width: calc(100% + 35px) !important;
      height: calc(100% + 35px) !important;
      z-index: -1;
}

.homeforce-testimonial-slider .background-shield path {
    stroke: rgba(210,210,210,0.8);
    stroke-width: 8px;
    fill: rgba(240,240,240,0.8);
}

/* Testimonial content - scoped to slider */
.homeforce-testimonial-slider .testimonial-content {
    text-align: left;
    /* padding: 20px 0; Trying to move the text up */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: baseline;
}

.homeforce-testimonial-slider .testimonial-text {
    font-family: 'Roboto', sans-serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    /* font-size: 1.25rem !important; */
    line-height: 1.6 !important;
    color: #333 !important;
    /* margin: 0 0 20px !important; */
    margin: 0;
    padding: 0 !important;
}

.homeforce-testimonial-slider .testimonial-text::before {
    content: '"';
    margin-right: 0;
}

.homeforce-testimonial-slider .testimonial-text::after {
    content: '"';
    margin-left: 0;
}

.homeforce-testimonial-slider .testimonial-author {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.25rem;
    color: #666;
    margin-top: 20px;
    text-align: left;
}

/* Swiper Navigation - Override default styles */
.homeforce-testimonial-slider .swiper-button-prev,
.homeforce-testimonial-slider .swiper-button-next {
    position: absolute;
    top: 150px;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    background: rgba(255, 255, 255, 0.9);
    /* border: 1px solid #ddd; */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.homeforce-testimonial-slider .swiper-button-prev:hover,
.homeforce-testimonial-slider .swiper-button-next:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.homeforce-testimonial-slider .swiper-button-prev {
    left: -40px;
    right: auto;
}

.homeforce-testimonial-slider .swiper-button-next {
    right: -40px;
    left: auto;
}

/* Hide default Swiper navigation arrows */
.homeforce-testimonial-slider .swiper-button-prev::after,
.homeforce-testimonial-slider .swiper-button-next::after {
    display: none;
}

/* Custom navigation icons */
.homeforce-testimonial-slider .swiper-button-prev svg,
.homeforce-testimonial-slider .swiper-button-next svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* Disable navigation when only one slide */
.homeforce-testimonial-slider .swiper-button-disabled {
    display: none;
}

/* Empty State - scoped to slider */
.homeforce-testimonial-slider .testimonial-slider-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .homeforce-testimonial-slider {
        padding: 40px 60px;
        overflow: hidden;
    }
    
    .homeforce-testimonial-slider.has-custom-height {
        padding: 0 60px;
        min-height: calc(var(--slider-height) * 1.2);
        height: auto;
    }
    
    .homeforce-testimonial-slider .testimonial-content {
        padding: 20px;
    }
    
    .homeforce-testimonial-slider .swiper-button-prev {
        left: 10px;
    }
    
    .homeforce-testimonial-slider .swiper-button-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .homeforce-testimonial-slider {
        padding: 30px 50px;
    }
    
    .homeforce-testimonial-slider.has-custom-height {
        padding: 0 50px;
    }
    
    .homeforce-testimonial-slider .testimonial-text {
        font-size: 1.1rem !important;
    }
    
    .homeforce-testimonial-slider .swiper-button-prev,
    .homeforce-testimonial-slider .swiper-button-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .homeforce-testimonial-slider {
        padding: 20px 40px;
    }
    
    .homeforce-testimonial-slider.has-custom-height {
        padding: 0 40px;
    }
    
    .homeforce-testimonial-slider .testimonial-text {
        font-size: 1rem !important;
    }
    
    .homeforce-testimonial-slider .testimonial-author {
        font-size: 1rem;
    }
}

/* Gutenberg Editor Styles */
.editor-styles-wrapper .homeforce-testimonial-slider {
    margin: 20px 0;
}
