/* =========================================
   About Page – Trusted Partners
   ========================================= */

.ap-partners {
    position: relative;
    background: #ffffff;
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.ap-partners__inner {
    position: relative;
    z-index: 2;
}

/* ── Eyebrow ───────────────────────────── */
.ap-partners__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3rem;
}

.ap-partners__eyebrow-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px dotted #2ecc71;
    border-radius: 50%;
    animation: ap-partners-spin 8s linear infinite;
}

@keyframes ap-partners-spin {
    to { transform: rotate(360deg); }
}

/* ── Strip wrapper (with edge fade) ────── */
.ap-partners__strip {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
            mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

/* ── Logo list ─────────────────────────── */
.ap-partners__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
    flex-wrap: nowrap;
}

.ap-partners__item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.ap-partners__item img {
    max-height: 100%;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Render all logos in a uniform near-black tone */
    filter: grayscale(100%) brightness(0);
    opacity: 0.85;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.ap-partners__item img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ── Decorative dot grid (top-right) ──── */
.ap-partners__dots-deco {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 280px;
    height: 200px;
    background-image: radial-gradient(circle, #2ecc71 2px, transparent 2.5px);
    background-size: 22px 22px;
    background-repeat: repeat;
    opacity: 0.6;
    -webkit-mask-image: radial-gradient(ellipse at top right, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at top right, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 1024px) {
    .ap-partners__dots-deco {
        width: 220px;
        height: 170px;
    }
}

@media (max-width: 768px) {
    .ap-partners {
        padding: 4rem 0 3rem;
    }
    .ap-partners__eyebrow {
        margin-bottom: 2rem;
    }
    .ap-partners__list {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .ap-partners__item {
        height: 38px;
        flex: 0 0 calc(50% - 1.5rem);
    }
    .ap-partners__item img {
        max-width: 130px;
    }
    /* No need for edge fade when wrapped */
    .ap-partners__strip {
        -webkit-mask-image: none;
                mask-image: none;
    }
    .ap-partners__dots-deco {
        width: 160px;
        height: 130px;
        top: -30px;
        right: -30px;
    }
}

@media (max-width: 480px) {
    .ap-partners__item {
        flex: 0 0 calc(50% - 1rem);
        height: 32px;
    }
    .ap-partners__item img {
        max-width: 110px;
    }
}
