/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
    text-align: center;
}

.testimonial-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #929292;
    text-align: center;
}

.testimonial-subtitle .highlight-red {
    color: #b30000;
    font-weight: 600;
}

/* Testimonial Slider Container */
.testimonial-slider-container {
    position: relative;
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Slick Slider Overrides - Force 3 slides to display */
.testimonial-slider .slick-track {
    display: flex !important;
}

.testimonial-slider .slick-slide {
    width: calc(33.33% - 20px) !important; /* Force exact 3 slides */
    margin: 0 10px;
    height: auto !important;
    float: none;
    display: flex !important;
}

.testimonial-slider .slick-slide > div {
    width: 100% !important;
    display: flex !important;
}

/* Testimonial Card */
.testimonial-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Navigation Buttons */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eaeaea;
    border: 1px solid #eaeaea;
    color: #838383;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial-nav-btn:hover {
    background-color: #b30000;
    color: #fff;
    border-color: #b30000;
}

.prev-testimonial {
    left: 10px;
}

.next-testimonial {
    right: 10px;
}

/* Author Info */
.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Rating Stars */
.testimonial-rating {
    margin-bottom: 15px;
    color: #ffd700;
}

.testimonial-rating i {
    margin-right: 2px;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

/* Custom Dots */
.testimonial-dots {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.testimonial-dots .dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #d9d9d9;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
}

.testimonial-dots .dot.active {
    background-color: #717171;
    transform: scale(1);
}

/* Slick Slider Overrides */
.testimonial-slider .slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.testimonial-slider .slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0 !important;
}

.testimonial-slider .slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: flex !important;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-slider .slick-slide {
    display: none;
    float: left;
    height: auto !important;
    min-height: 1px;
}

.testimonial-slider .slick-slide > div {
    height: 100%;
}

.testimonial-slider .slick-initialized .slick-slide {
    display: block;
}

/* Hide default slick dots */
.testimonial-slider .slick-dots {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .testimonial-slider-container {
        padding: 0 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .testimonial-subtitle {
        font-size: 20px;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }

    .testimonial-slider .slick-slide {
        width: calc(50% - 20px) !important; /* Force exact 2 slides on tablet */
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 30px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .testimonial-subtitle {
        font-size: 18px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .author-image {
        width: 45px;
        height: 45px;
    }

    .author-name {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-slider .slick-slide {
        width: calc(100% - 20px) !important; /* Force exact 1 slide on mobile */
    }
}

@media (max-width: 576px) {
    .testimonial-slider-container {
        padding: 0 30px;
    }

    .section-header h2 {
        font-size: 30px !important;
    }

    .testimonial-subtitle {
        font-size: 16px !important;
    }

    .testi-about .next-testimonial {
        /*display: none !important;*/
    }

    .section-header {
        margin-bottom: 19px !important;
    }

    .testi-about .prev-testimonial {
        /*display: none !important;*/
    }

    .testimonial-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .testimonial-dots .dot {
        width: 10px;
        height: 10px;
    }
}
