/* =========================================================
   GLOBAL RELIEF UNITY
   CAUSE DETAIL PAGE
========================================================= */


/* =========================================================
   PAGE BASE
========================================================= */

.cause-detail-page {
    width: 100%;
    overflow: hidden;
}

.cause-detail-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   SHARED TYPOGRAPHY
========================================================= */

.cause-detail-eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #16733a;
}


/* =========================================================
   CAUSE HERO
========================================================= */

.cause-detail-hero {
    padding: 90px 0;

    background: #f7faf8;

    border-bottom: 1px solid #e4ebe6;
}

.cause-detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);

    gap: 70px;
    align-items: center;
}

.cause-detail-hero-content {
    min-width: 0;
}

.cause-detail-hero-content h1 {
    margin: 0 0 22px;

    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 700;

    color: #142019;
}

.cause-detail-hero-content p {
    max-width: 680px;
    margin: 0 0 30px;

    font-size: 18px;
    line-height: 1.75;

    color: #5f6d64;
}


/* =========================================================
   HERO BUTTON
========================================================= */

.cause-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 24px;

    border-radius: 8px;

    background: #16733a;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.cause-detail-button span {
    font-size: 18px;
    line-height: 1;
}

.cause-detail-button:hover {
    transform: translateY(-2px);

    background: #125f30;

    box-shadow: 0 8px 20px rgba(22, 115, 58, 0.18);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.cause-detail-hero-visual {
    position: relative;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background: #eef6f0;

    border: 1px solid #dce8df;

    overflow: hidden;
}

.cause-detail-visual-number {
    position: absolute;

    top: 24px;
    left: 26px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.10em;

    color: #6c7a71;
}

.cause-detail-visual-icon {
    width: 128px;
    height: 128px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    border: 1px solid rgba(22, 115, 58, 0.18);

    font-size: 58px;
    font-weight: 600;

    color: #16733a;

    box-shadow:
        0 20px 50px rgba(20, 32, 25, 0.09);
}


/* =========================================================
   CATEGORY VISUAL VARIATIONS
========================================================= */

.cause-health {
    background: #eef7f0;
}

.cause-education {
    background: #f2f7f4;
}

.cause-emergency {
    background: #faf5ef;
}

.cause-food {
    background: #f7f8ef;
}

.cause-shelter {
    background: #f1f5f7;
}

.cause-community {
    background: #eef7f2;
}

.cause-child-welfare {
    background: #f5f8f3;
}

.cause-women {
    background: #f8f3f6;
}

.cause-elderly {
    background: #f5f6f2;
}

.cause-disability {
    background: #f0f5f7;
}

.cause-livelihood {
    background: #f2f7f2;
}

.cause-disaster-relief {
    background: #faf4ee;
}

.cause-orphan-vulnerable-children {
    background: #f6f2f5;
}

.cause-water-sanitation {
    background: #eef7f8;
}

.cause-other {
    background: #f3f5f4;
}


/* =========================================================
   ABOUT THIS CAUSE
========================================================= */

.cause-detail-about {
    padding: 100px 0;

    background: #ffffff;
}

.cause-detail-content-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 80px;
}

.cause-detail-section-heading h2 {
    max-width: 520px;
    margin: 0;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 700;

    color: #142019;
}

.cause-detail-section-text {
    padding-top: 32px;
}

.cause-detail-section-text p {
    max-width: 700px;
    margin: 0;

    font-size: 17px;
    line-height: 1.8;

    color: #5f6d64;
}


/* =========================================================
   SUPPORT AREAS
========================================================= */

.cause-detail-support {
    padding: 100px 0;

    background: #f7faf8;

    border-top: 1px solid #e4ebe6;
    border-bottom: 1px solid #e4ebe6;
}

.cause-detail-support-heading {
    max-width: 760px;

    margin-bottom: 42px;
}

.cause-detail-support-heading h2 {
    margin: 0 0 16px;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;

    color: #142019;
}

.cause-detail-support-heading p {
    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color: #647168;
}


/* =========================================================
   SUPPORT CARDS
========================================================= */

.cause-detail-support-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.cause-detail-support-card {
    position: relative;

    min-height: 170px;

    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: #ffffff;

    border: 1px solid #e1e9e4;
    border-radius: 16px;

    box-shadow: 0 6px 22px rgba(20, 32, 25, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.cause-detail-support-card:hover {
    transform: translateY(-4px);

    border-color: #cbdacf;

    box-shadow: 0 14px 30px rgba(20, 32, 25, 0.07);
}

.cause-detail-support-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #f1f7f3;

    border: 1px solid #dce8df;

    font-size: 11px;
    font-weight: 700;

    color: #16733a;
}

.cause-detail-support-card h3 {
    margin: 24px 0 0;

    font-size: 17px;
    line-height: 1.4;

    color: #142019;
}


/* =========================================================
   CAMPAIGN DISCOVERY
========================================================= */

.cause-detail-discovery {
    padding: 100px 0;

    background: #ffffff;
}

.cause-detail-discovery-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;

    padding: 52px;

    border-radius: 22px;

    background: #f1f7f3;

    border: 1px solid #dce8df;
}

.cause-detail-discovery-inner > div {
    min-width: 0;
}

.cause-detail-discovery-inner h2 {
    max-width: 700px;

    margin: 0 0 16px;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;

    color: #142019;
}

.cause-detail-discovery-inner p {
    max-width: 700px;

    margin: 0;

    font-size: 16px;
    line-height: 1.75;

    color: #5f6d64;
}

.cause-detail-discovery-inner .cause-detail-button {
    flex: 0 0 auto;
}


/* =========================================================
   FINAL CTA
========================================================= */

.cause-detail-final-cta {
    padding: 75px 0;

    background: #142019;
}

.cause-detail-final-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.cause-detail-final-cta-inner > div {
    min-width: 0;
}

.cause-detail-final-cta .cause-detail-eyebrow {
    color: #a8d2b5;
}

.cause-detail-final-cta h2 {
    max-width: 760px;

    margin: 0;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;

    color: #ffffff;
}

.cause-detail-final-cta .cause-detail-button {
    flex: 0 0 auto;

    background: #ffffff;
    color: #142019;
}

.cause-detail-final-cta .cause-detail-button:hover {
    background: #eef3ef;
}


/* =========================================================
   CAUSE NOT FOUND
========================================================= */

.cause-not-found-section {
    padding: 110px 0;

    background: #f7faf8;
}

.cause-not-found {
    max-width: 700px;

    margin: 0 auto;

    padding: 60px 40px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e1e9e4;
    border-radius: 20px;

    box-shadow: 0 10px 35px rgba(20, 32, 25, 0.05);
}

.cause-not-found h1 {
    margin: 0 0 16px;

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;

    color: #142019;
}

.cause-not-found p {
    max-width: 520px;

    margin: 0 auto 28px;

    font-size: 16px;
    line-height: 1.7;

    color: #647168;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .cause-detail-container {
        width: min(100% - 32px, 900px);
    }

    .cause-detail-hero-grid {
        grid-template-columns: 1fr 0.8fr;

        gap: 40px;
    }

    .cause-detail-hero-visual {
        min-height: 320px;
    }

    .cause-detail-content-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .cause-detail-section-text {
        padding-top: 0;
    }

    .cause-detail-support-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .cause-detail-discovery-inner {
        padding: 40px;

        gap: 35px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .cause-detail-container {
        width: calc(100% - 28px);
    }

    .cause-detail-hero {
        padding: 60px 0;
    }

    .cause-detail-hero-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .cause-detail-hero-content h1 {
        font-size: 40px;
    }

    .cause-detail-hero-content p {
        font-size: 16px;
    }

    .cause-detail-hero-visual {
        min-height: 260px;

        border-radius: 20px;
    }

    .cause-detail-visual-icon {
        width: 100px;
        height: 100px;

        font-size: 46px;
    }

    .cause-detail-about,
    .cause-detail-support,
    .cause-detail-discovery {
        padding: 70px 0;
    }

    .cause-detail-section-heading h2,
    .cause-detail-support-heading h2 {
        font-size: 32px;
    }

    .cause-detail-support-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .cause-detail-support-card {
        min-height: 145px;

        padding: 22px;
    }

    .cause-detail-discovery-inner {
        display: block;

        padding: 30px 24px;

        border-radius: 18px;
    }

    .cause-detail-discovery-inner h2 {
        font-size: 30px;
    }

    .cause-detail-discovery-inner .cause-detail-button {
        width: 100%;

        margin-top: 26px;
    }

    .cause-detail-final-cta {
        padding: 60px 0;
    }

    .cause-detail-final-cta-inner {
        display: block;
    }

    .cause-detail-final-cta h2 {
        font-size: 32px;
    }

    .cause-detail-final-cta .cause-detail-button {
        width: 100%;

        margin-top: 28px;
    }

    .cause-not-found-section {
        padding: 70px 0;
    }

    .cause-not-found {
        padding: 45px 24px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .cause-detail-container {
        width: calc(100% - 24px);
    }

    .cause-detail-hero-content h1 {
        font-size: 34px;
    }

    .cause-detail-hero-visual {
        min-height: 220px;
    }

    .cause-detail-visual-icon {
        width: 84px;
        height: 84px;

        font-size: 40px;
    }

    .cause-detail-section-heading h2,
    .cause-detail-support-heading h2 {
        font-size: 28px;
    }

    .cause-detail-discovery-inner h2 {
        font-size: 27px;
    }

    .cause-detail-final-cta h2 {
        font-size: 28px;
    }

}