/* Testimonial Carousel Styles */

.tc-container-wrapper {
    width: 100%;
    overflow: hidden;
    /* Hide horizontal overflow */
    padding: 40px 0;
    position: relative;
    box-sizing: border-box;
}

/* --- Static Grid (<= 3 items) --- */
.tc-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tc-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* --- Infinite Scroll (> 3 items) --- */
.tc-scroll-container {
    width: 100%;
}

.tc-track {
    display: flex;
    gap: 40px;
    /* Space between cards */
    width: max-content;
    /* Allow content to stretch */
    animation: tc-scroll-animation 40s linear infinite;
}

/* Pause animation on hover for readability */
.tc-track:hover {
    animation-play-state: paused;
}

@keyframes tc-scroll-animation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the width (since we duplicated items) */
    }
}

/* --- Card Design --- */
.tc-card {
    background: #fff;
    /* Optional: subtle shadow or border as request mentioned "no shadow or very subtle" */
    /* border: 1px solid #eee; */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 30px;
    width: 350px;
    /* Fixed width */
    height: 350px;
    /* Fixed height container */
    flex-shrink: 0;
    /* Prevent shrinking in flex */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Stars */
.tc-stars {
    color: #c5a47e;
    /* Gold/Bronze color from image */
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Content Text */
.tc-content {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    overflow-y: auto;
    /* Enable internal scrolling */
    margin-bottom: 20px;
    padding-right: 10px;
    /* Space for scrollbar */

    /* Scrollbar styling for webkit */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.tc-content::-webkit-scrollbar {
    width: 4px;
}

.tc-content::-webkit-scrollbar-track {
    background: transparent;
}

.tc-content::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 4px;
}

/* Author Name */
.tc-author {
    text-align: right;
}

.tc-author-name {
    color: #008b8b;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tc-author-title {
    font-size: 12px !important;
    line-height: 17px;
    color: #666;
    font-weight: 400;
    text-transform: none;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .tc-card {
        width: 300px;
    }

    /* On mobile, grid might need to be column */
    .tc-grid {
        flex-direction: column;
        align-items: center;
    }
}