.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent; /* No box, as requested */
    min-height: 80px; /* Minimum height to prevent cut-off */
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: left;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.testimonial-slider .testimonial-slide:nth-child(1) {
    animation: slideAnimation 48s infinite;
}

.testimonial-slider .testimonial-slide:nth-child(2) {
    animation: slideAnimation 48s infinite 6s;
}

.testimonial-slider .testimonial-slide:nth-child(3) {
    animation: slideAnimation 48s infinite 12s;
}

.testimonial-slider .testimonial-slide:nth-child(4) {
    animation: slideAnimation 48s infinite 18s;
}

.testimonial-slider .testimonial-slide:nth-child(5) {
    animation: slideAnimation 48s infinite 24s;
}

.testimonial-slider .testimonial-slide:nth-child(6) {
    animation: slideAnimation 48s infinite 30s;
}

.testimonial-slider .testimonial-slide:nth-child(7) {
    animation: slideAnimation 48s infinite 36s;
}

.testimonial-slider .testimonial-slide:nth-child(8) {
    animation: slideAnimation 48s infinite 42s;
}

@keyframes slideAnimation {
    0% { opacity: 0; }
    12.5% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

.testimonial-slide p {
    font-size: 1.1em;
    color: black;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-left: 0;
    font-style: italic;
    line-height: 1.5;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center; /* Center the text horizontally */
    width: 100%;
}
