/* Testimonials Section */
.testimonials-section {
    background: var(--rp-background);
    padding: 80px 20px 130px;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    margin: 0 auto;
    width: 100%;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.testimonials-section .section-title {
    color: var(--rp-headlines);
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonials-decorations {
    position: absolute;
    top: 0;
    left: 63%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: auto;
    opacity: 1;
}

/* Slick Slider Wrapper */
.testimonials-slider-wrapper {
    position: relative;
    padding-bottom: 80px;
}

.testimonials-slider {
    margin: 0 -15px;
}

/* Equal height for slick slides */
.testimonials-slider .slick-track {
    display: flex !important;
    width: 100%;
    overflow-x: visible !important;
}

.testimonials-slider .slick-slide {
    height: inherit !important;
    display: flex !important;
}

.testimonials-slider .slick-list {
    overflow: visible !important;
}

.testimonials-slider .slick-slide > div {
    height: 100%;
    width: 100%;
}

.testimonial-slide {
    padding: 15px;
    height: 100%;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--rp-white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 22px;
    height: 344px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-image {
    flex-shrink: 0;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px !important;
}

/* Stars */
.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i,
.star-image {
    color: var(--rp-warning);
    font-size: var(--paragraph-lg-size);
    width: 18px;
    height: 18px;
}

.stars .far,
.star-image.empty {
    color: #e0e0e0;
}

/* Testimonial Quote */
.testimonial-quote {
    font-size: var(--heading-sm-size);
    font-weight: var(--weight-bold);
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.4;
}

.testimonial-quote p {
    margin: 0;
}

/* Testimonial Text */
.testimonial-text {
    font-size: var(--paragraph-sm-size);
    line-height: 1.7;
    color: var(--rp-headlines);
    margin-bottom: 10px !important;
    flex-grow: 1;
}

/* Testimonial Footer */
.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    color: var(--rp-headlines);
    font-size: var(--paragraph-sm-size);
    font-weight: var(--weight-bold);
}

.author-name {
    margin: 0 0 5px 0;
}

.author-title {
    margin: 0;
}

/* Arrow Link */
.arrow-link {
    width: 40px;
    height: 40px;
    background: var(--rp-bright-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rp-white);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.arrow-link:hover {
    background: var(--rp-dark-red);
    transform: scale(1.1);
}

.arrow-link i {
    font-size: 16px;
}

/* Custom Navigation Arrows */
.testimonial-nav {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.custom-arrow-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}


.no-testimonials {
    text-align: center;
    padding: 40px;
    font-size: var(--paragraph-lg-size);
    color: var(--rp-dark-grey);
}

/* Tablet */

@media (max-width: 1200px) {
    .testimonial-card {
        flex-direction: column;
        height: auto;
        min-height: 344px;
    }
}

@media (max-width: 991px) {
    .testimonial-nav {
        gap: 20px;
    }
    
    .testimonial-card {
        max-width: 100%;
    }
}

/* Tablet specific adjustments */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 20px 23px;
    }

    .testimonial-card {
        flex-direction: column;
        height: auto;
        min-height: 320px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }

    .testimonial-slide {
        padding: 10px;
    }

    .section-title {
        font-size: var(--heading-mobile-lg-size);
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .testimonial-quote {
        font-size: var(--heading-xs-size);
    }
    
    .testimonial-text {
        font-size: var(--paragraph-sm-size);
        margin-bottom: 10px !important;
    }

    .testimonial-content {
        gap: 12px !important;
}
}


/* Mobile specific adjustments */
@media (max-width: 576px) {
    
    .testimonial-card {
        padding: 40px 30px;
        flex-direction: column;
        height: auto;
        min-height: 300px;
    }
    
    .author-image {
        width: 85px;
        height: 85px;
    }
    
    .author-name {
        font-size: var(--paragraph-sm-size);
    }
    
    .author-title {
        font-size: var(--paragraph-xs-size);
    }
    
    .arrow-link {
        width: 35px;
        height: 35px;
    }
    
    .arrow-link i {
        font-size: var(--paragraph-sm-size);
    }
    
    .slick-prev-custom,
    .slick-next-custom {
        width: 45px;
        height: 45px;
    }
}

