/* 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;
}

/* --- New Grid Layout Style (.tc-style-grid) --- */

.tc-style-grid .tc-grid {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(436px, 1fr));
    gap: 30px;
    justify-content: start;
}

.tc-style-grid .tc-card {
    width: 100%;
    height: auto;
    min-height: 250px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    /* No shadow per design */
    border-radius: 12px;
    padding: 30px;
}

.tc-style-grid .tc-stars {
    color: #14625b;
    /* Dark Teal */
    text-align: left;
    margin-bottom: 20px;
    font-size: 22px;
    letter-spacing: 2px;
}

.tc-style-grid .tc-content {
    text-align: left;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    flex-grow: 1;
    margin-bottom: 30px;
}

.tc-style-grid .tc-author {
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: flex-start;
}

.tc-style-grid .tc-author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9f2f0;
    /* Light Teal background */
    color: #14625b;
    /* Dark Teal text */
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.tc-style-grid .tc-author-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tc-style-grid .tc-author-name {
    color: #111;
    /* Dark text for name in grid */
    font-weight: 700;
    font-size: 16px;
    text-transform: none;
    /* Normal casing */
    letter-spacing: 0;
}

.tc-style-grid .tc-author-title {
    color: #666;
    font-size: 13px !important;
    margin-top: 2px;
}

/* 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;
    }
	
	.tc-style-grid .tc-grid {
        /* Itt kényszerítjük az egy oszlopot, ami kitölti a szélességet */
        grid-template-columns: 1fr; 
        gap: 15px; /* Mobilon kisebb hézag jobban mutat */
    }
}