/* Trust Bar Section - Government Logos Below Cards */

.trust-bar-section {
    background: #F8F9FA;
    padding: 50px 0;
    border-top: 1px solid #E5E7EB;
}

.trust-bar-header {
    text-align: center;
    margin-bottom: 35px;
}

.trust-bar-title {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6B7280;
    margin: 0;
}

.trust-bar-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.trust-bar-carousel {
    display: flex;
    gap: 40px;
    align-items: center;
    width: max-content;
    animation: trustBarScroll 35s linear infinite;
}

.trust-bar-logos:hover .trust-bar-carousel {
    animation-play-state: paused;
}

@keyframes trustBarScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

.trust-capsule {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    min-width: 160px;
    min-height: 90px;
    flex-shrink: 0;
}

.trust-capsule:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.02);
    border-color: #D1D5DB;
}

.trust-capsule img {
    height: 64px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.trust-capsule:hover img {
    filter: drop-shadow(0 4px 8px rgba(14, 43, 72, 0.15));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .trust-bar-section {
        padding: 40px 0;
    }
    
    .trust-bar-header {
        margin-bottom: 28px;
    }
    
    .trust-bar-title {
        font-size: 12px;
    }
    
    .trust-bar-logos {
        gap: 15px;
    }
    
    .trust-bar-carousel {
        gap: 30px;
        animation-duration: 28s;
    }
    
    .trust-capsule {
        padding: 16px 28px;
        min-width: 140px;
        min-height: 75px;
    }
    
    .trust-capsule img {
        height: 52px;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .trust-bar-section {
        padding: 35px 0;
    }
    
    .trust-bar-carousel {
        gap: 24px;
        animation-duration: 25s;
    }
    
    .trust-capsule {
        padding: 14px 24px;
        min-width: 130px;
        min-height: 70px;
    }
    
    .trust-capsule img {
        height: 48px;
        max-width: 110px;
    }
}

/* Dark Mode Support - Improved Logo Treatment */
body.theme-dark .trust-bar-section {
    background: var(--surface-raised, rgba(18, 27, 42, 0.9));
    border-top-color: var(--border-medium, rgba(255, 255, 255, 0.1));
}

body.theme-dark .trust-bar-title {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
}

/* Light background capsules for logo visibility in dark mode */
body.theme-dark .trust-capsule {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

body.theme-dark .trust-capsule:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Keep logos in original colors - no filter needed with light capsule background */
body.theme-dark .trust-capsule img {
    filter: none;
    opacity: 1;
}

body.theme-dark .trust-capsule:hover img {
    filter: drop-shadow(0 2px 4px rgba(14, 43, 72, 0.2));
}
