/* =============================================
   TRUSTED LOGOS — Dual-Row Infinite Marquee
============================================= */
.trusted-logos-section {
    padding: 70px 0 90px;
    background: linear-gradient(160deg, #faf8ff 0%, #f3eeff 50%, #f8f9ff 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle top/bottom divider lines */
.trusted-logos-section::before,
.trusted-logos-section::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), transparent);
}
.trusted-logos-section::before { top: 0; }
.trusted-logos-section::after  { bottom: 0; }

/* Header */
.tl-header {
    text-align: center;
    margin-bottom: 44px;
}
.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.18);
    color: #7c3aed;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.tl-badge i { font-size: 14px; }
.tl-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.25;
}
.tl-header h3 span {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tl-header p {
    color: #5f6b7a;
    font-size: 15px;
    margin: 0;
}

/* Stats row */
.tl-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}
.tl-stat {
    text-align: center;
}
.tl-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}
.tl-stat span {
    font-size: 13px;
    color: #5f6b7a;
}

/* Marquee wrapper — clips overflow, adds edge fade */
.tl-marquee-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.tl-marquee-wrap:last-of-type { margin-bottom: 0; }

/* Left + right gradient fade masks */
.tl-marquee-wrap::before,
.tl-marquee-wrap::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.tl-marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #f3eeff 0%, transparent 100%);
}
.tl-marquee-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #f3eeff 0%, transparent 100%);
}

/* The scrolling track — wide enough so loop is seamless */
.tl-track {
    display: flex;
    width: max-content;
    gap: 16px;
    padding: 8px 0;
}

/* Animations */
@keyframes tl-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes tl-scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.tl-track.row-left  { animation: tl-scroll-left  28s linear infinite; }
.tl-track.row-right { animation: tl-scroll-right 32s linear infinite; }

/* Pause on hover for the whole row */
.tl-marquee-wrap:hover .tl-track { animation-play-state: paused; }

/* Individual logo card */
.tl-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 72px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(124,58,237,0.10);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(124,58,237,0.06);
    flex-shrink: 0;
    transition: all 0.32s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shine sweep on hover */
.tl-logo-card::before {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}
.tl-logo-card:hover::before { left: 150%; }

.tl-logo-card:hover {
    background: #ffffff;
    border-color: rgba(124,58,237,0.25);
    box-shadow: 0 12px 36px rgba(124,58,237,0.15);
    transform: translateY(-4px) scale(1.04);
}

/* Logo image */
.tl-logo-card img {
    max-width: 110px;
    max-height: 44px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.32s ease, transform 0.32s ease;
}
.tl-logo-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

/* Responsive */
@media (max-width: 768px) {
    .trusted-logos-section { padding: 50px 0 65px; }
    .tl-header h3 { font-size: 22px; }
    .tl-stats { gap: 24px; }
    .tl-stat strong { font-size: 18px; }
    .tl-logo-card { width: 130px; height: 62px; }
    .tl-logo-card img { max-width: 88px; max-height: 36px; }
    .tl-marquee-wrap::before,
    .tl-marquee-wrap::after { width: 60px; }
}
@media (max-width: 480px) {
    .tl-header h3 { font-size: 18px; }
    .tl-badge { font-size: 11px; }
    .tl-stats { gap: 16px; }
}
