/* Testimonial Plugin — front-end rotation styles */

.tp-rotation {
    position: relative;
    max-width: 720px;
    margin: 2em auto;
    padding: 1.5em 1.25em 2.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tp-rotation .tp-slides {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 180px;
}

.tp-rotation .tp-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    padding: 0 0.5em;
}

.tp-rotation .tp-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative; /* first slide defines the container height */
}

.tp-rotation .tp-photo-wrap img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.tp-rotation .tp-title {
    margin: 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #111;
}

.tp-rotation .tp-quote {
    font-size: 1.05em;
    line-height: 1.5;
    color: #333;
    font-style: italic;
}

.tp-rotation .tp-quote p:last-child {
    margin-bottom: 0;
}

.tp-rotation .tp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4em 0.75em;
    font-size: 0.9em;
    color: #555;
}

.tp-rotation .tp-author {
    font-weight: 600;
    color: #111;
}

/* Separator dash only when workplace follows author directly. */
.tp-rotation .tp-author + .tp-workplace::before {
    content: "— ";
    opacity: 0.6;
}

.tp-rotation .tp-rating {
    color: #f5a623;
    letter-spacing: 1px;
}

.tp-rotation .tp-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75em;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.tp-rotation .tp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #ccc;
    cursor: pointer;
    transition: background 200ms ease, transform 200ms ease;
}

.tp-rotation .tp-dot:hover,
.tp-rotation .tp-dot:focus-visible {
    background: #999;
    outline: none;
    transform: scale(1.1);
}

.tp-rotation .tp-dot.is-active {
    background: #222;
}

@media (prefers-reduced-motion: reduce) {
    .tp-rotation .tp-slide {
        transition: none;
    }
}
