/* Homepage initiatives: verse first, then gifts, then volunteering. */
body.orphan-site-shell .orphan-home-page .join-us.join-us--initiatives {
    width: 100% !important;
    margin: 0 !important;
    padding: 78px 24px !important;
    overflow: hidden !important;
    background: #fff !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-container {
    width: min(1180px, 100%) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, .82fr)) !important;
    align-items: stretch !important;
    gap: 22px !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 320px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
    border-radius: 28px !important;
    color: #001d35 !important;
    text-align: start !important;
    box-shadow: none !important;
    transform: none !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives button.join-us-card {
    appearance: none !important;
    cursor: pointer !important;
    font: inherit !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card::after,
body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card .title::before {
    display: none !important;
    content: none !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card .content {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    margin: 0 !important;
    padding: 34px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    color: #001d35 !important;
    background: transparent !important;
    text-align: start !important;
    text-shadow: none !important;
    transform: none !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-icon {
    width: 62px !important;
    height: 62px !important;
    margin: 0 0 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 62px !important;
    border: 1px solid rgba(var(--ogs-accent-rgb), .18) !important;
    border-radius: 20px !important;
    color: var(--ogs-accent, #b00059) !important;
    background: rgba(255, 255, 255, .58) !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-icon i {
    color: var(--ogs-accent, #b00059) !important;
    font-size: 28px !important;
    line-height: 1 !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-copy {
    width: 100% !important;
    min-width: 0 !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card .title {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #001d35 !important;
    font-family: "bold", sans-serif !important;
    font-size: 23px !important;
    line-height: 1.45 !important;
    font-weight: 800 !important;
    text-align: start !important;
    text-shadow: none !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-description {
    margin: 0 0 24px !important;
    color: rgba(0, 29, 53, .68) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    text-align: start !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-link {
    margin-top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--ogs-accent-dark, #7d003f) !important;
    font-family: "bold", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-link i {
    color: var(--ogs-accent, #b00059) !important;
    font-size: 12px !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-gift-card {
    background: rgba(var(--ogs-accent-rgb), .075) !important;
    border-color: rgba(var(--ogs-accent-rgb), .12) !important;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-volunteer-card {
    background: rgba(var(--ogs-primary-rgb), .075) !important;
    border-color: rgba(var(--ogs-primary-rgb), .12) !important;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives button.join-us-card:hover,
body.orphan-site-shell .orphan-home-page .join-us--initiatives button.join-us-card:focus-visible {
    transform: translateY(-5px) !important;
    border-color: rgba(var(--ogs-accent-rgb), .28) !important;
    box-shadow: 0 18px 42px rgba(0, 29, 53, .10) !important;
    outline: none !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card {
    min-height: 320px !important;
    overflow: visible !important;
    border: 0 !important;
    background: #fff !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card .content {
    min-height: 320px !important;
    padding: 38px 42px !important;
    justify-content: center !important;
    border-inline-start: 4px solid var(--ogs-accent, #b00059) !important;
    border-radius: 0 !important;
    background: linear-gradient(135deg, rgba(var(--ogs-primary-rgb), .035), transparent 62%) !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-quote-icon {
    width: 58px !important;
    height: 58px !important;
    margin: 0 0 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: var(--ogs-accent, #b00059) !important;
    box-shadow: 0 12px 28px rgba(var(--ogs-accent-rgb), .20) !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-quote-icon i {
    color: #fff !important;
    font-size: 23px !important;
}

body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card .title {
    margin: 0 !important;
    color: #001d35 !important;
    font-size: clamp(21px, 2vw, 29px) !important;
    line-height: 1.85 !important;
    text-align: start !important;
}

/* Override the legacy mobile white title rule and any color saved inside the rich-text verse. */
body.orphan-site-shell .orphan-home-page .join-us.join-us--initiatives .join-us-container .join-us-hadith-card .content .title,
body.orphan-site-shell .orphan-home-page .join-us.join-us--initiatives .join-us-container .join-us-hadith-card .content .title * {
    color: #001d35 !important;
    -webkit-text-fill-color: #001d35 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

@media (max-width: 991.98px) {
    body.orphan-site-shell .orphan-home-page .join-us.join-us--initiatives {
        padding: 48px 18px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-container {
        grid-template-columns: 1fr 1fr !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card {
        grid-column: 1 / -1 !important;
        min-height: 230px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card .content {
        min-height: 230px !important;
    }
}

@media (max-width: 767.98px) {
    body.orphan-site-shell .orphan-home-page .join-us.join-us--initiatives {
        padding: 26px 14px 32px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card {
        min-height: 0 !important;
        height: auto !important;
        border-radius: 20px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card {
        order: 1 !important;
        min-height: 0 !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-gift-card {
        order: 2 !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-volunteer-card {
        order: 3 !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card .content {
        min-height: 190px !important;
        height: auto !important;
        padding: 26px 24px !important;
        align-items: center !important;
        text-align: center !important;
        border-inline-start: 0 !important;
        border-top: 4px solid var(--ogs-accent, #b00059) !important;
        border-radius: 20px !important;
        background: linear-gradient(180deg, rgba(var(--ogs-primary-rgb), .055), #fff) !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-quote-icon {
        width: 50px !important;
        height: 50px !important;
        flex: 0 0 50px !important;
        margin-bottom: 14px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-hadith-card .title {
        font-size: 18px !important;
        line-height: 1.8 !important;
        text-align: center !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives button.join-us-card .content {
        min-height: 150px !important;
        height: auto !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 16px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-icon {
        width: 58px !important;
        height: 58px !important;
        flex: 0 0 58px !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-icon i {
        font-size: 25px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card .title {
        margin-bottom: 5px !important;
        font-size: 18px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-description {
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-link {
        margin-top: 0 !important;
        font-size: 12px !important;
    }
}

@media (max-width: 374.98px) {
    body.orphan-site-shell .orphan-home-page .join-us--initiatives button.join-us-card .content {
        padding: 17px !important;
        gap: 12px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .initiative-icon {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
    }

    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card .title {
        font-size: 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.orphan-site-shell .orphan-home-page .join-us--initiatives .join-us-card {
        transition: none !important;
    }
}
