/* Testimonial Carousel — critical layout only; inherits theme typography/colors */

.tc-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tc-track-wrapper {
    overflow: hidden;
}

.tc-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Each slide: 1/3 width with a small gap */
.tc-slide {
    flex: 0 0 calc(33.333% - 14px);
    margin: 0 7px;
    box-sizing: border-box;
}

/* Card: white background, square edges, inherits font/border styling */
.tc-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin: 0;
    padding: 1.5em;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tc-content {
    margin: 0 0 1em;
    flex: 1;
}

.tc-footer {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    height:stretch;
}

.tc-author {
    display: block;
}

.tc-role {
    display: block;
    font-size: 0.875em;
    opacity: 0.7;
}

/* Navigation */
.tc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-top: 1.25em;
}

.tc-btn {
    background: none;
    border: 1px solid currentColor;
    border-radius: 0;
    cursor: pointer;
    padding: 0.4em 0.75em;
    line-height: 1;
    font-size: 1.1em;
}

.tc-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.tc-dots {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.tc-dot {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: currentColor;
    opacity: 0.25;
    border: none;
    padding: 0;
    cursor: pointer;
}

.tc-dot.is-active {
    opacity: 1;
}

/* Responsive: 2-up on tablets, 1-up on mobile */
@media (max-width: 768px) {
    .tc-slide {
        flex: 0 0 calc(50% - 14px);
    }
}

@media (max-width: 480px) {
    .tc-slide {
        flex: 0 0 calc(100% - 14px);
    }
}
