/* ── Affiliate Why Join Block ── */

.affiliate-why-join {
    position: relative;
    padding: 100px 0;
    background: #faf4e7;
    overflow-x: clip;
    overflow-y: visible;
}

/* ── Decorative coins ── */

.affiliate-why-join__coins {
    position: absolute;
    top: -40px;
    width: 127px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    display: block;
    opacity: .8;
}

.affiliate-why-join__coins--left {
    left: -70px;
    top: -120px;
    transform: rotate(15deg);
    transform-origin: center center;
}

.affiliate-why-join__coins--right {
    right: -70px;
    top: -80px;
    transform: rotate(-15deg);
    transform-origin: center center;
}

/* ── Container ── */

.affiliate-why-join .container {
    position: relative;
    z-index: 1;
}

/* ── Section title ── */

.affiliate-why-join__title {
    font-family: "GT Flexa", sans-serif;
    font-size: 48px;
    font-weight: 700;
    font-style: normal;
    line-height: 53px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #2d4059;
    text-align: center;
    margin: 0 0 72px;
    text-wrap: balance;
}

/* ── Cards grid ── */

.affiliate-why-join__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 27px;
}

/*
 * 3 cards → fills the row exactly: 3 × ((100% - 54px) / 3) + 2 × 27px = 100%
 * 2 cards → 2 cards side by side, centered via justify-content
 * 1 card  → single card, centered
 */
.affiliate-why-join__card {
    flex: 0 0 calc((100% - 54px) / 3);
}

/* ── Single card ── */

.affiliate-why-join__card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* subtle shadow from design */
    box-shadow:
        0 2px 8px rgba(0,0,0,.05),
        0 0 2.35px rgba(228,65,61,.01);
}

/* ── Card icon wrapper ── */

.affiliate-why-join__card-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 10px;
    flex-shrink: 0;
}

.affiliate-why-join__card-icon {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ── Card title ── */

.affiliate-why-join__card-title {
    font-family: "GT Flexa", sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 28px;
    letter-spacing: 0;
    color: #2d4059;
    margin: 0;
}

/* ── Card description ── */

.affiliate-why-join__card-desc {
    font-family: Figtree, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 26px;
    color: #505869;
    margin: 0;
}

/* ── Tablet ── */

@media (max-width: 991px) {
    .affiliate-why-join {
        padding: 72px 0;
    }

    .affiliate-why-join__title {
        font-size: 40px;
        line-height: 46px;
        margin-bottom: 48px;
    }

    .affiliate-why-join__cards {
        gap: 20px;
    }

    /* 2 columns on tablet: each card is half minus gap */
    .affiliate-why-join__card {
        flex: 0 0 calc((100% - 20px) / 2);
    }

    .affiliate-why-join__coins {
        width: 90px;
    }
}

/* ── Mobile ── */

@media (max-width: 767px) {
    .affiliate-why-join {
        padding: 48px 0;
    }

    .affiliate-why-join__title {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 40px;
    }

    .affiliate-why-join__cards {
        gap: 32px;
    }

    /* Full width on mobile */
    .affiliate-why-join__card {
        flex: 0 0 100%;
    }

    .affiliate-why-join__coins {
        width: 60px;
        top: -48px;
        right: -20px;
    }

    .affiliate-why-join__coins--left {
        display: none;
    }

}
