/*
 * ESS Testimonials
 * Responsive carousel styling — v0.4.0
 */

.ess-testimonials {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.ess-testimonial {
    box-sizing: border-box;
    width: 100%;
    padding: 30px 50px;
    text-align: center;
}

.ess-testimonial-image {
    margin: 0 auto 20px;
}

.ess-testimonial-image img {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.ess-testimonial-content {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ess-testimonial-rating {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.ess-testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.ess-testimonial-source,
.ess-testimonial-date {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 5px;
}

.ess-testimonial-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
}

/* Carousel controls — added by JavaScript */

.ess-testimonials-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.ess-testimonials-controls button {
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    padding: 8px 16px;
    cursor: pointer;
    font: inherit;
}

.ess-testimonials-controls button:hover {
    opacity: 0.7;
}

.ess-testimonials-controls button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.ess-testimonials-counter {
    font-size: 0.9rem;
}

/* Small screens */

@media (max-width: 600px) {
    .ess-testimonial {
        padding: 20px 15px;
    }

    .ess-testimonial-content {
        font-size: 1rem;
    }

    .ess-testimonial-image img {
        width: 80px;
        height: 80px;
    }
}
