.testimonial-card {
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 28px 18px 36px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.95) 45%, rgba(248, 250, 252, 0.98));
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
    position: relative;
}

.testimonial-card::before,
.testimonial-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}

.testimonial-card::before {
    width: 180px;
    height: 180px;
    top: -40px;
    left: -30px;
    background: rgba(241, 54, 37, 0.22);
}

.testimonial-card::after {
    width: 220px;
    height: 220px;
    right: -40px;
    bottom: -60px;
    background: rgba(56, 189, 248, 0.18);
    animation-delay: -3s;
}

.testimonial-label {
    color: #f13625;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.82rem;
    font-weight: 800;
}

.testimonial-card h2 {
    margin: 8px 0 16px;
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.testimonial-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98), rgba(239,246,255,0.92) 18%, rgba(239,246,255,0.92) 82%, rgba(255,255,255,0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 14px 30px rgba(15, 23, 42, 0.08);
    z-index: 1;
}

.testimonial-track {
    display: flex;
    width: max-content;
    gap: 16px;
    padding: 12px;
    animation: marqueeScroll 58s linear infinite;
}

.testimonial-card:hover .testimonial-track {
    animation-play-state: paused;
}

.testimonial-item {
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,250,252,0.84));
    border: 1px solid rgba(241, 54, 37, 0.20);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.55),
        0 10px 18px rgba(15, 23, 42, 0.10),
        0 18px 30px rgba(15, 23, 42, 0.08),
        0 0 18px rgba(56, 189, 248, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.95);
    box-shadow:
        0 12px 18px rgba(15, 23, 42, 0.10),
        0 18px 30px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.95);
    transform: perspective(900px) rotateX(0deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.testimonial-item::before {
    content: "💬";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.9rem;
    opacity: 0.75;
}

.testimonial-item::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.45),
        0 0 12px rgba(241, 54, 37, 0.10),
        inset 0 0 10px rgba(56, 189, 248, 0.08);
    pointer-events: none;
}

.testimonial-item:hover::after {
    border-color: rgba(241, 54, 37, 0.35);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.6),
        0 0 14px rgba(241, 54, 37, 0.18),
        inset 0 0 10px rgba(56, 189, 248, 0.12);
}


.testimonial-item:hover {
    transform: perspective(900px) translateY(-2px) rotateX(1deg);
    box-shadow:
        0 14px 24px rgba(15, 23, 42, 0.12),
        0 24px 38px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(241, 54, 37, 0.10),
        0 0 18px rgba(241, 54, 37, 0.12);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #f13625;
    box-shadow: 0 8px 18px rgba(241, 54, 37, 0.18);
}

.testimonial-quote {
    color: #334155;
    line-height: 1.6;
    margin: 0;
    font-size: 0.97rem;
    width: 400px;
}

.testimonial-author {
    color: #111827;
    font-weight: 700;
    margin: 0;
}

.testimonial-badge {
    color: #f13625;
    font-size: 0.9rem;
    font-weight: 600;
}

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

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.18;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.28;
    }
}

@media (max-width: 900px) {
    .testimonial-item {
        min-width: 280px;
    }
}
