#testimonial .star-rating {
    color: #a11526;
}

#testimonial .quote-icon {
    color: #a11526;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 23.5%;
    box-sizing: border-box;
    display: flex;
    height: auto; /* Changed from 100% to auto */
}

/* Style the Bootstrap card to fill the space */
.testimonial-card .card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.testimonial-card .card-body {
    padding-top: 2rem;
    flex: 1; /* This makes the card body expand to fill available space */
    display: flex;
    flex-direction: column;
}

/* Make the quote text take available space */
.testimonial-card .card-text {
    flex-grow: 1;
    margin-bottom: auto;
}

.testimonial-slider::before,
.testimonial-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 1));
}

.testimonial-slider::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 1));
}

/* Mobile styles for testimonals */

@media (min-width:769px) and (max-width: 1200px) {
    .testimonial-slider {
        width: 100%;
    }

    .testimonial-track {
        gap: 16px;
    }

    .testimonial-card {
        flex: 0 0 30%;
    }

    .testimonial-slider::before,
    .testimonial-slider::after {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .testimonial-slider {
        width: 100%;
    }

    .testimonial-track {
        gap: 16px;
    }

    .testimonial-card {
        flex: 0 0 80%;
    }

    .testimonial-slider::before,
    .testimonial-slider::after {
        width: 20%;
    }
}

@media (max-width: 480px) {
    .testimonial-track {
        gap: 8px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        padding: 20px;
    }

    .testimonial-slider::before,
    .testimonial-slider::after {
        display: none;
    }
}