/* Home: "Trusted by Leading Global Brands" (home.php) — CSS only.
   Marquee animation (marquee-ltr / marquee-rtl) unchanged. Cream band, split head,
   flat white logo tiles in edge-faded rows; logos go from muted to full colour on hover. */

section.trusted-customers-section {
    display: block !important;
    position: relative;
    padding: 110px 0 !important;
    background: #f5f3ef !important;
    overflow: hidden;
}

section.trusted-customers-section::before,
section.trusted-customers-section::after {
    display: none !important;
}

/* ---------- head ---------- */
section.trusted-customers-section > .container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: end;
    gap: 64px;
    max-width: 1320px !important;
    margin: 0 auto 64px !important;
    padding: 0 24px !important;
    text-align: left !important;
}

section.trusted-customers-section > .container .h2 {
    margin: 0 !important;
    color: #111 !important;
    font-size: 52px !important;
    line-height: 1.1 !important;
    letter-spacing: -.03em;
}

section.trusted-customers-section > .container .body-1 {
    margin: 0 !important;
    color: #55524c !important;
    font-size: 17px !important;
    line-height: 1.75 !important;
    opacity: 1 !important;
}

/* ---------- rows ---------- */
section.trusted-customers-section .trusted-sliders-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

section.trusted-customers-section .marquee-container {
    padding: 0 !important;
}

section.trusted-customers-section .marquee-content {
    gap: 18px !important;
}

section.trusted-customers-section .marquee-ltr .marquee-content,
section.trusted-customers-section .marquee-rtl .marquee-content {
    animation-duration: 55s !important;
}

section.trusted-customers-section .customer-logo-card {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 240px !important;
    height: 112px !important;
    margin: 0 !important;
    padding: 22px 30px !important;
    border: 1px solid #e6e2db !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color .35s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1) !important;
}

section.trusted-customers-section .customer-logo-card figure {
    width: 100% !important;
    margin: 0 !important;
    line-height: 0;
}

section.trusted-customers-section .customer-logo-card img {
    display: block;
    width: 100% !important;
    height: 56px !important;
    max-height: none !important;
    object-fit: contain !important;
    filter: grayscale(1);
    opacity: .6;
    transition: filter .4s ease, opacity .4s ease;
}

section.trusted-customers-section .customer-logo-card:hover {
    border-color: #ff9f0a !important;
    transform: translateY(-4px) !important;
}

section.trusted-customers-section .customer-logo-card:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- reveal (JS adds .tc-anim / .tc-in) ---------- */
section.trusted-customers-section.tc-anim > .container > *,
section.trusted-customers-section.tc-anim .marquee-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1);
}

section.trusted-customers-section.tc-anim.tc-in > .container > *,
section.trusted-customers-section.tc-anim.tc-in .marquee-container {
    opacity: 1;
    transform: none;
}

section.trusted-customers-section.tc-anim.tc-in > .container > *:nth-child(2) { transition-delay: .1s; }
section.trusted-customers-section.tc-anim.tc-in .marquee-ltr { transition-delay: .2s; }
section.trusted-customers-section.tc-anim.tc-in .marquee-rtl { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    section.trusted-customers-section > .container .h2 {
        font-size: 42px !important;
    }
}

@media (max-width: 991px) {
    section.trusted-customers-section {
        padding: 80px 0 !important;
    }

    section.trusted-customers-section > .container {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px !important;
        padding: 0 20px !important;
    }

    section.trusted-customers-section > .container .h2 {
        font-size: 34px !important;
    }

    section.trusted-customers-section .trusted-sliders-wrap {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    }

    section.trusted-customers-section .customer-logo-card {
        min-width: 190px !important;
        height: 92px !important;
        padding: 18px 22px !important;
        border-radius: 16px !important;
    }

    section.trusted-customers-section .customer-logo-card img {
        height: 44px !important;
    }
}

@media (max-width: 575px) {
    section.trusted-customers-section {
        padding: 56px 0 !important;
    }

    section.trusted-customers-section > .container {
        padding: 0 16px !important;
    }

    section.trusted-customers-section > .container .h2 {
        font-size: 27px !important;
    }

    section.trusted-customers-section > .container .body-1 {
        font-size: 15px !important;
    }

    section.trusted-customers-section .trusted-sliders-wrap,
    section.trusted-customers-section .marquee-content {
        gap: 12px !important;
    }

    section.trusted-customers-section .customer-logo-card {
        min-width: 150px !important;
        height: 76px !important;
        padding: 14px 18px !important;
        border-radius: 14px !important;
    }

    section.trusted-customers-section .customer-logo-card img {
        height: 36px !important;
        filter: none;
        opacity: 1;
    }
}

@media (hover: none) {
    section.trusted-customers-section .customer-logo-card img {
        filter: none;
        opacity: 1;
    }
}

/* ---------- v2: hover card no longer clipped by the row ---------- */
section.trusted-customers-section .marquee-container {
    padding: 10px 0 !important;
    overflow: hidden;
}

section.trusted-customers-section .trusted-sliders-wrap {
    gap: 4px !important;
}

section.trusted-customers-section .customer-logo-card,
section.trusted-customers-section .customer-logo-card:hover {
    transform: none !important;
}

section.trusted-customers-section .customer-logo-card:hover {
    border-color: #ff9f0a !important;
    box-shadow: 0 0 0 3px rgba(255, 159, 10, .15) !important;
}

/* ---------- v2: centered head ---------- */
section.trusted-customers-section > .container {
    display: block !important;
    max-width: 860px !important;
    margin: 0 auto 56px !important;
    text-align: center !important;
}

section.trusted-customers-section > .container .h2 {
    margin: 0 0 20px !important;
    font-size: 56px !important;
    text-align: center !important;
}

/* short orange rule under the title */
section.trusted-customers-section > .container .h2::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 26px auto 0;
    border-radius: 3px;
    background: #ff9f0a;
}

section.trusted-customers-section > .container .body-1 {
    max-width: 620px;
    margin: 0 auto !important;
    font-size: 18px !important;
    text-align: center !important;
}

@media (max-width: 1199px) {
    section.trusted-customers-section > .container .h2 {
        font-size: 44px !important;
    }
}

@media (max-width: 991px) {
    section.trusted-customers-section > .container {
        margin-bottom: 40px !important;
    }

    section.trusted-customers-section > .container .h2 {
        font-size: 34px !important;
    }

    section.trusted-customers-section > .container .h2::after {
        margin-top: 20px;
    }

    section.trusted-customers-section > .container .body-1 {
        font-size: 16px !important;
    }
}

@media (max-width: 575px) {
    section.trusted-customers-section > .container .h2 {
        font-size: 28px !important;
    }

    section.trusted-customers-section > .container .body-1 {
        font-size: 15px !important;
    }

    section.trusted-customers-section .marquee-container {
        padding: 6px 0 !important;
    }
}
