/* ============================================
   TRUST SECTION - MODERN REDESIGN
   ============================================ */

.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

/* ── Desktop grid ── */
.trust-grid-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Mobile CSS marquee ── */
.trust-marquee {
    display: none;
    /* hidden on desktop */
    overflow: hidden;
    width: 100%;
    /* pointer-events: none so touch passes through to page scroll */
    pointer-events: none;
}

.trust-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: trustScroll 18s linear infinite;
}

[dir="rtl"] .trust-marquee-track {
    animation-name: trustScrollRTL;
}

@keyframes trustScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes trustScrollRTL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

/* ── Shared trust-item styles ── */
.trust-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    /* needed for marquee items */
}

@media (min-width: 769px) {
    .trust-item {
        min-height: 280px;
        padding: 40px 30px;
        min-width: unset;
    }
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ffa600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item:hover::before {
    transform: scaleX(1);
}

.trust-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.1);
}

.trust-icon {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    margin: 0 auto 25px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow removed */
.trust-item:hover .trust-icon::before {
    opacity: 0;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
}

.trust-icon i {
    font-size: 40px;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item:hover .trust-icon i,
.trust-item:hover .trust-icon img {
    transform: scale(1.1);
}

.trust-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.trust-item:hover h3 {
    color: #ff6b35;
}

.trust-item p {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 768px) {

    /* Hide desktop grid, show CSS marquee */
    .trust-grid-desktop {
        display: none;
    }

    .trust-marquee {
        display: block;
    }

    .trust-section {
        padding: 50px 0;
    }

    .trust-item {
        padding: 25px 20px;
        min-width: 180px;
    }

    .trust-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .trust-icon i {
        font-size: 30px;
    }

    .trust-item h3 {
        font-size: 14px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .trust-grid-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .trust-section {
        padding: 60px 0;
    }
}

/* RTL Support */
[dir="rtl"] .trust-item::before {
    transform-origin: right;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .trust-marquee-track {
        animation: none;
    }

    .trust-item,
    .trust-icon,
    .trust-icon i,
    .trust-item::before {
        transition: none;
    }

    .trust-item:hover {
        transform: none;
    }

    .trust-item:hover .trust-icon {
        transform: none;
    }
}