/* Frontend Styles for Testimonial Carousel */

.tc-testimonial-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

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

.tc-testimonial-track {
    display: flex;
    gap: 20px;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

.tc-testimonial-wrapper[data-pause="1"] .tc-testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tc-testimonial-card {
    min-width: 350px;
    max-width: 350px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.tc-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Overlap effect - second card partially visible */
.tc-testimonial-track::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8));
    pointer-events: none;
    z-index: 1;
}

.tc-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.tc-profile-photo {
    flex-shrink: 0;
}

.tc-profile-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.tc-profile-info {
    flex-grow: 1;
}

.tc-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.tc-subtitle {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.7;
    line-height: 1.3;
}

.tc-rating {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1;
}

.tc-star {
    display: inline-block;
    margin-right: 2px;
}

.tc-star.filled {
    color: #ff0000;
}

.tc-description {
    font-size: 15px;
    line-height: 1.6;
}

.tc-description p {
    margin: 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tc-testimonial-card {
        min-width: 300px;
        max-width: 300px;
        padding: 25px;
    }
    
    .tc-name {
        font-size: 16px;
    }
    
    .tc-subtitle {
        font-size: 13px;
    }
    
    .tc-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tc-testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 20px;
    }
    
    .tc-profile-photo img {
        width: 50px;
        height: 50px;
    }
    
    .tc-rating {
        font-size: 18px;
    }
}
