/* Frontend CSS - Thịnh Reviewer */
.trv-testimonials-section {
    padding: 50px 0;
    background-color: var(--trv-section-bg, #ffffff);
    overflow: hidden;
    position: relative;
}

.trv-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 35px auto;
    padding: 0 20px;
}

.trv-badge {
    display: inline-block;
    padding: 5px 16px;
    background-color: var(--trv-badge-bg, rgba(2, 132, 199, 0.1));
    color: var(--trv-primary-color, #0284c7);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.trv-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .trv-title {
        font-size: 22px;
    }
}

.trv-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Marquee Wrapper & Fade Overlay */
.trv-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.trv-marquee-fade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, var(--trv-section-bg, #ffffff) 0%, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0) 88%, var(--trv-section-bg, #ffffff) 100%);
    z-index: 20;
}

.trv-marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    user-select: none;
    padding: 14px 0;
}

.trv-marquee-inner {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: trv-marquee-left var(--trv-scroll-speed, 40s) linear infinite;
    will-change: transform;
    padding: 4px 0;
}

.trv-marquee-inner.trv-reverse {
    animation: trv-marquee-right var(--trv-scroll-speed, 40s) linear infinite;
}

.trv-pause-on-hover:hover .trv-marquee-inner {
    animation-play-state: paused;
}

@keyframes trv-marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

@keyframes trv-marquee-right {
    0% {
        transform: translateX(calc(-50% - 10px));
    }

    100% {
        transform: translateX(0);
    }
}

/* Testimonial Card */
.trv-card {
    flex-shrink: 0;
    width: 320px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.trv-card:hover {
    border-color: var(--trv-primary-color, #0284c7);
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.trv-stars {
    display: flex;
    gap: 4px;
    color: #f59e0b;
}

.trv-stars svg,
.trv-stars i {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.trv-content {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    font-weight: 500;
    font-style: italic;
    margin: 0;
    flex-grow: 1;
}

.trv-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.trv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--trv-primary-color, #0284c7);
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.trv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trv-user-info {
    display: flex;
    flex-direction: column;
}

.trv-user-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.3;
}

.trv-user-location {
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 2px;
}