/* Testimonial Slider Styles */

.testimonials-slider {
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
    background: #ffffff;
}

.testimonials-slider-content {
    max-width: 1356px;
    margin: 0 auto;
    padding: 0 22px;
}

.testimonials-slider-content h2 {
    text-align: center;
    color: #3B3939;
    margin-bottom: 40px;
}

/* Slider Container */
.testimonials-slider-testimonials {
    margin: 0 -11px;
}

/* Individual Testimonial Item */
.testimonials-item {
    padding: 0 11px;
    height: auto;
}

.testimonials__wrap {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 9px rgba(59, 57, 57, 0.1);
    padding: 30px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f5f5f5;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.testimonials__wrap:hover {
    box-shadow: 0 8px 35px rgba(59, 57, 57, 0.15);
    transform: translateY(-2px);
}

/* Testimonial Top Section (Name + Stars) */
.testimonial__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.testimonial__top h4 {
    color: #3B3939;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: none;
}

/* Star Rating */
.testimonial__stars {
    display: flex;
    gap: 3px;
}

.testimonial__stars i {
    color: #FFD700;
    font-size: 16px;
}

.testimonial__stars i.icon-star:before {
    content: "★";
    font-family: inherit;
}

/* Testimonial Content */
.testimonial__content {
    flex: 1;
    margin-top: auto;
}

.testimonial__content p {
    color: #8c8888;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6em;
    margin: 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 15.5em;
}

/* Quote Styling */
.testimonials__wrap::before {
    content: "''";
    position: absolute;
    top: 120px;
    left: 0px;
    font-size: 90px;
    color: #D7182A;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
    display: none;
}

/* Button Container */
.testimonials-slider-button {
    text-align: center;
    margin-top: 40px;
}

/* Slick Slider Customization */
.testimonials-slider .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.testimonials-slider .slick-dots li {
    margin: 0 5px;
}

.testimonials-slider .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    text-indent: -9999px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-slider .slick-dots li.slick-active button {
    background: #D7182A;
}

.testimonials-slider .slick-dots li button:hover {
    background: #D7182A;
}

/* Slick Arrow Customization */
.testimonials-slider .slick-prev,
.testimonials-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #D7182A;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-indent: -9999px; /* Hide default text */
    overflow: hidden;
}

.testimonials-slider .slick-prev {
    left: -25px;
}

.testimonials-slider .slick-next {
    right: -25px;
}

.testimonials-slider .slick-prev:hover,
.testimonials-slider .slick-next:hover {
    background: #3B3939;
}

.testimonials-slider .slick-prev:before,
.testimonials-slider .slick-next:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0; /* Reset text-indent for pseudo-elements */
    font-size: 16px;
    line-height: 1;
}

.testimonials-slider .slick-prev:before {
    content: "❮";
}

.testimonials-slider .slick-next:before {
    content: "❯";
}

.testimonial__company {
    font-size: 14px;
    font-weight: 400;
    color: #8c8888;
    display: block;
    margin-top: 0;
    width: 100%;
}

/* Hide arrows on mobile */
/* @media (max-width: 767px) {
    .testimonials-slider .slick-prev,
    .testimonials-slider .slick-next {
        display: none !important;
    }
} */

/* Tablet Styles */
@media (min-width: 768px) {
    .testimonials-slider {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    
    .testimonials-slider-content {
        padding: 0 16px;
    }
    
    .testimonials-slider-content h2 {
        margin-bottom: 50px;
    }
    
    .testimonials-slider-testimonials {
        margin: 0 -8px;
    }
    
    .testimonials-item {
        padding: 0 8px;
    }
    
    .testimonials__wrap {
        padding: 35px 30px;
    }
    
    .testimonial__top h4 {
        font-size: 18px;
    }
    
    .testimonial__stars i {
        font-size: 18px;
    }
    
    .testimonial__content p {
        font-size: 15px;
        line-height: 1.7em;
    }
    
    .testimonials-slider .slick-dots {
        margin-top: 50px;
    }
    
    .testimonials-slider .slick-dots li button {
        width: 14px;
        height: 14px;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .testimonials__wrap::before {
        display: none;
    }

    .testimonials-slider {
        padding-top: 90px;
        padding-bottom: 90px;
    }
    
    .testimonials-slider-content h2 {
        margin-bottom: 60px;
    }
    
    .testimonials__wrap {
        padding: 40px 35px;
        min-height: 280px;
    }
    
    .testimonial__top {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .testimonial__top h4 {
        font-size: 20px;
    }
    
    .testimonial__stars i {
        font-size: 20px;
        gap: 4px;
    }
    
    .testimonial__content p {
        font-size: 16px;
        line-height: 1.75em;
    }
    
    .testimonials-slider .slick-dots {
        margin-top: 60px;
    }
    
    .testimonials-slider .slick-dots li button {
        width: 16px;
        height: 16px;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .testimonials-slider-testimonials {
        margin: 0 -10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .testimonials-item {
        padding: 0 10px;
    }
    
    .testimonials__wrap {
        padding: 45px 40px;
        min-height: 320px;
        max-width: 410px;
        margin: 0 auto;
    }
    
    .testimonials-slider .slick-prev {
        left: -60px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
    
    .testimonials-slider .slick-next {
        right: -60px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .testimonials-slider .slick-track {
        display: flex;
    }

    .testimonials-slider .slick-slide {
        height: inherit !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .testimonials-slider .slick-slide > div,
    .fx-slide {
        height: 100%;
    }
}

/* Alternative Background Option */
.testimonials-slider--alt {
    background: #f9f9f9;
}

.testimonials-slider--alt .testimonials__wrap {
    background: #ffffff;
    box-shadow: 0 4px 30px rgba(59, 57, 57, 0.08);
}

/* Centered Layout Option */
.testimonials-slider--centered .testimonials-slider-content {
    text-align: center;
}

.testimonials-slider--centered .testimonial__top {
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.testimonials-slider--centered .testimonial__content {
    text-align: center;
}

/* Loading State */
.testimonials-slider-testimonials.slick-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Accessibility */
.testimonials-slider .slick-prev:focus,
.testimonials-slider .slick-next:focus,
.testimonials-slider .slick-dots li button:focus {
    outline: 2px solid #D7182A;
    outline-offset: 2px;
}

.testimonials-slider .slick-dots {
    width: 100%;
}

/* Print Styles */
@media print {
    .testimonials-slider .slick-prev,
    .testimonials-slider .slick-next,
    .testimonials-slider .slick-dots {
        display: none !important;
    }
    
    .testimonials-slider-testimonials {
        display: block !important;
    }
    
    .testimonials-item {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 30px;
    }
}
