/* ================================================================
   TESTIMONIALS — Dark Marquee Section
   Infinite right-to-left ticker. Pure CSS animation.
   Cards: dark glass + gradient border glow.
   ================================================================ */

/* ─── SECTION ──────────────────────────────────────────────── */
.testimonials-section {
    background: var(--creo-dark);
    padding: 96px 0 80px;
    overflow: hidden;
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.testimonials-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 32px;
    margin-bottom: 64px;
}

.testimonials-header__left .tag {
    margin-bottom: 20px;
}

.testimonials-header__left h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--creo-white);
    line-height: 1.05;
    margin: 0;
}

.testimonials-header__sub {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(239, 229, 207, 0.5);
    max-width: 400px;
    padding-bottom: 4px;
}

/* ─── DIVIDER LINE ───────────────────────────────────────────── */
.testimonials-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 48px;
}

/* ─── MARQUEE WRAPPER ────────────────────────────────────────── */
.marquee-wrap {
    overflow: hidden;
    /* Fade in/out on left & right edges */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 6%,
            black 94%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 6%,
            black 94%,
            transparent 100%);
}

/* ─── MARQUEE TRACK ──────────────────────────────────────────── */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

/* Pause on hover */
.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ─── TESTIMONIAL CARD ───────────────────────────────────────── */
.tcard {
    min-width: 340px;
    max-width: 340px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 28px 28px 24px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.25s ease;
}

/* Animated gradient border */
.tcard::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg,
            rgba(255, 106, 0, 0.45),
            rgba(255, 255, 255, 0.06) 40%,
            rgba(11, 23, 61, 0.0) 70%,
            rgba(255, 106, 0, 0.3));
    background-size: 300% 300%;
    animation: tcardGlow 6s ease-in-out infinite;
    z-index: -1;
}

.tcard::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    background: #0b1a40;
    z-index: -1;
}

@keyframes tcardGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.tcard:hover {
    transform: translateY(-3px);
}

/* Stars */
.tcard__stars {
    display: flex;
    gap: 3px;
}

.tcard__star {
    color: var(--creo-accent-hover);
    font-size: 14px;
    line-height: 1;
}

/* Quote text */
.tcard__quote {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(239, 229, 207, 0.82);
    font-style: italic;
    flex: 1;
}

/* Author row */
.tcard__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tcard__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--creo-accent-hover), rgba(255, 106, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--creo-white);
    flex-shrink: 0;
}

.tcard__name {
    font-size: 14px;
    font-weight: 700;
    color: var(--creo-white);
    line-height: 1.2;
}

.tcard__role {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(239, 229, 207, 0.4);
}

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 72px 0 64px;
    }

    .testimonials-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }

    .testimonials-header__sub {
        max-width: 100%;
    }

    .tcard {
        min-width: 280px;
        max-width: 280px;
        padding: 22px 22px 18px;
    }
}