/* ==================================================
   TRUSTED PARTNER SECTION
   ================================================== */
.trust-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.trust-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 40px;
    gap: 40px;
}

.trust-header-left {
    flex: 1;
}

.trust-header-left h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 1000;
    font-size: clamp(32px, 6vw, 42px);
    letter-spacing: -1.5px;
    color: #4F94D2;
    text-transform: uppercase;
    line-height: 1.1;
}

.trust-header-right {
    flex: 1;
}

.trust-header-right p {
    font-size: 20px;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.6;
    max-width: 500px;
}

.trust-cards {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    max-width: 1280px;
    margin: auto;
    padding: 0 40px;
}

/* =========================================================
   TRUSTED PARTNER CARD — HOVER EFFECT
   ========================================================= */

/* Card */
.trust-card {
    position: relative;
    border-radius: 24px;
    padding: 40px;
    flex: 1;
    text-align: left;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer; /* Allows hover effects to trigger on mobile tap */
}

/* Yellow decorative layer (Behind) */
.trust-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-yellow);
    border-radius: 24px;
    z-index: -2;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms ease;
}

/* White card layer (In front of yellow, behind content) */
.trust-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 24px;
    z-index: -1;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: box-shadow 400ms ease;
}

/* Ensure content stays above pseudo-elements */
.trust-card>* {
    position: relative;
    z-index: 1;
}

/* Icon container */
.trust-icon-box {
    width: 48px;
    height: 48px;
    background: #f4f4f4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--primary-black);
    perspective: 600px;
    transition: background 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Icon */
.trust-icon-box i {
    display: inline-block;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 1000;
    margin-bottom: 16px;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card hover */
.trust-card:hover {
    transform: translateY(-4px);
}

.trust-card:hover::after {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

/* Yellow layer hover animation */
.trust-card:hover::before {
    opacity: 1;
    transform: rotate(-3deg) translate(5px, -4px) scale(1.02);
}

.trust-card:hover .trust-icon-box {
    background: var(--accent-yellow);
}

/* Icon flip animation */
.trust-card:hover .trust-icon-box i {
    transform: rotateY(360deg);
}

/* Title Animation */
.trust-card:hover h4 {
    transform: translateY(-2px);
}

.trust-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {

    .trust-card,
    .trust-card::before,
    .trust-card h4,
    .trust-icon-box i {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

@media (max-width: 991px) {
    .trust-header-row {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .trust-cards {
        flex-direction: column;
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .trust-section {
        padding: 60px 0;
    }

    .trust-header-row {
        flex-direction: column;
        text-align: center;
    }

    .trust-header-right p {
        margin: auto;
    }

    .trust-cards {
        flex-direction: column;
    }

    .trust-card {
        padding: 24px;
    }
}