/* ================================================= */
/* PAGE LAYOUT */
/* ================================================= */

section.dailychallenge-page {
    position: relative;
    min-height: 100vh;
    padding: 70px 0 90px;
    background: linear-gradient(160deg, #fffde7 0%, #fff9c4 25%, #fff176 55%, #ffee58 80%, #fdd835 100%) !important;
    overflow: hidden;
}

.dailychallenge-wrap {
    position: relative;
    z-index: 2;
}

/* ================================================= */
/* HEADER */
/* ================================================= */

.dailychallenge-header {
    margin-bottom: 36px;
}

.dailychallenge-title {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0d2b7a;
    margin-bottom: 16px;
}

.dailychallenge-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #1f3b7a;
    max-width: 760px;
    margin: 0 auto;
}

/* ================================================= */
/* CARD WIDTH */
/* ================================================= */

.quote-card,
.challenge-card,
.action-row {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================= */
/* QUOTE CARD */
/* ================================================= */

.quote-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
    border: 1px solid rgba(48,74,142,.10);
    padding: 60px 70px;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quote-text {
    font-size: 2rem;
    line-height: 1.55;
    color: #0d2b7a;
    font-weight: 700;
    font-style: italic;
    margin: 0;
}

.quote-author {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #666;
    justify-content: center;
}

.quote-author::before {
    display: none !important;
}

.quote-author-line {
    width: 36px;
    height: 2px;
    background: linear-gradient(to right, rgba(0,0,0,.35), rgba(0,0,0,0));
}

/* ================================================= */
/* CHALLENGE CARD */
/* ================================================= */

.challenge-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(13,43,122,.12);
    border: 1px solid rgba(48,74,142,.10);
    padding: 50px 40px 46px;
    margin-bottom: 40px;
    text-align: center;
}

.challenge-badge {
    display: inline-block;
    background: linear-gradient(135deg,#304a8e,#1f3b7a);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 999px;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(13,43,122,.25);
    margin-bottom: 18px;
}

.challenge-day {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: #1f3b7a;
    margin-bottom: 18px;
}

.challenge-divider {
    width: 160px;
    height: 1px;
    background: #e5e7eb;
    margin: 0 auto 22px;
}

.challenge-text-wrapper {
    background: #e8efff;
    padding: 28px 34px;
    border-radius: 16px;
    margin: 26px auto 18px;
    max-width: 720px;
}

.challenge-text {
    font-size: 1.35rem;
    line-height: 1.7;
    font-weight: 500;
    color: #2a2a2a;
}

.challenge-note {
    font-size: 1rem;
    font-weight: 600;
    color: #304a8e;
    margin-top: 16px;
}

/* ================================================= */
/* ACTION BUTTON ROW */
/* ================================================= */

.action-row {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.action-col {
    display: grid;
    grid-template-rows: 56px auto;
    row-gap: 14px;
    justify-items: center;
    text-align: center;
}

/* ================================================= */
/* BUTTONS */
/* ================================================= */

.share-btn,
.hero-cta.btn {
    min-width: 300px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 40px;
    font-weight: 700;
    font-size: 1rem;
}

.share-btn {
    background: #304a8e;
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(13,43,122,.25);
}

.hero-cta.btn {
    background: #22b24c !important;
    color: #fff;
    border: none;
    box-shadow: 0 6px 16px rgba(255,191,0,.35);
}

/* ================================================= */
/* BUTTON NOTES */
/* ================================================= */

.share-text,
.hero-cta-note {
    margin: 0;
    max-width: 320px;
    line-height: 1.4;
    font-size: .95rem;
}

.share-text {
    color: #304a8e;
}

.hero-cta-note {
    color: #6b7280;
}

/* ================================================= */
/* TABLET */
/* ================================================= */

@media (max-width:1024px) {

    .dailychallenge-page {
        padding-top: 50px;
    }

    .dailychallenge-title {
        font-size: 2.7rem;
    }

    .quote-text {
        font-size: 1.75rem;
    }
}

/* ================================================= */
/* MOBILE */
/* ================================================= */

@media (max-width:767px) {

    .quote-card {
        padding: 38px 28px;
        border-radius: 18px;
    }

    .challenge-card {
        padding: 38px 24px 30px;
        border-radius: 18px;
    }

    .quote-text {
        font-size: 1.45rem;
        line-height: 1.5;
    }

    .quote-author {
        margin-top: 18px;
        font-size: .95rem;
    }

    .action-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .share-btn,
    .hero-cta.btn {
        min-width: 260px;
        width: 100%;
        max-width: 320px;
    }
}

/* ================================================= */
/* CAUSE THEMES — SHARED BASE                        */
/* ================================================= */

/* Cause-specific backgrounds override the default wave via higher specificity below */

/* White text defaults for header on colored backgrounds */
[data-cause] .dailychallenge-title { color: #fff; }
[data-cause] .dailychallenge-subtitle { color: rgba(255,255,255,0.88); }
[data-cause] .qr-welcome-banner {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    backdrop-filter: blur(8px);
}
[data-cause] .qr-welcome-icon { color: #fff; }
[data-cause] .share-text { color: rgba(255,255,255,0.85); }
[data-cause] .hero-cta-note { color: rgba(255,255,255,0.75); }

/* Cards get semi-transparent white */
[data-cause] .quote-card {
    background: rgba(255,255,255,0.92);
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
[data-cause] .challenge-card {
    background: rgba(255,255,255,0.92);
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
[data-cause] .dc-own-card {
    background: rgba(255,255,255,0.92);
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* ================================================= */
/* BREAST CANCER — PINK                              */
/* ================================================= */

section.dailychallenge-page[data-cause="bc"] {
    background: linear-gradient(160deg, #f48fb1 0%, #ec407a 30%, #e91e8c 60%, #d81b60 100%) !important;
}
[data-cause="bc"] .quote-text { color: #c2185b; }
[data-cause="bc"] .quote-author { color: #d81b60; }
[data-cause="bc"] .quote-author-line { background: linear-gradient(to right, #ec407a, transparent); }
[data-cause="bc"] .challenge-badge {
    background: linear-gradient(135deg, #ec407a, #e91e8c);
    box-shadow: 0 8px 24px rgba(236,64,122,0.4);
}
[data-cause="bc"] .challenge-day { color: #d81b60; }
[data-cause="bc"] .challenge-text-wrapper { background: #fce4ec; }
[data-cause="bc"] .challenge-note { color: #d81b60; }
[data-cause="bc"] .share-btn {
    background: #fff;
    color: #d81b60;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
[data-cause="bc"] .hero-cta.btn {
    background: rgba(255,255,255,0.2) !important;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
[data-cause="bc"] .dc-own-title { color: #d81b60; }
[data-cause="bc"] .dc-own-option-icon {
    background: linear-gradient(135deg, #ec407a, #e91e8c);
}
[data-cause="bc"] .dc-own-option strong { color: #d81b60; }
[data-cause="bc"] .dc-own-cta-subscribe {
    background: #d81b60 !important;
    box-shadow: 0 6px 18px rgba(216,27,96,0.35);
}
[data-cause="bc"] .dc-own-cta-gear {
    border-color: #d81b60;
    color: #d81b60;
}
[data-cause="bc"] .dc-own-cta-gear:hover {
    background: #d81b60;
    color: #fff;
}
[data-cause="bc"] .challenge-divider { background: rgba(216,27,96,0.2); }

/* ================================================= */
/* MENTAL HEALTH — GREEN                             */
/* ================================================= */

section.dailychallenge-page[data-cause="mh"] {
    background: linear-gradient(160deg, #66bb6a 0%, #43a047 30%, #2e7d32 60%, #1b5e20 100%) !important;
}
[data-cause="mh"] .quote-text { color: #1b5e20; }
[data-cause="mh"] .quote-author { color: #2e7d32; }
[data-cause="mh"] .quote-author-line { background: linear-gradient(to right, #43a047, transparent); }
[data-cause="mh"] .challenge-badge {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    box-shadow: 0 8px 24px rgba(67,160,71,0.4);
}
[data-cause="mh"] .challenge-day { color: #2e7d32; }
[data-cause="mh"] .challenge-text-wrapper { background: #e8f5e9; }
[data-cause="mh"] .challenge-note { color: #2e7d32; }
[data-cause="mh"] .share-btn {
    background: #fff;
    color: #2e7d32;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
[data-cause="mh"] .hero-cta.btn {
    background: rgba(255,255,255,0.2) !important;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
[data-cause="mh"] .dc-own-title { color: #1b5e20; }
[data-cause="mh"] .dc-own-option-icon {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}
[data-cause="mh"] .dc-own-option strong { color: #1b5e20; }
[data-cause="mh"] .dc-own-cta-subscribe {
    background: #2e7d32 !important;
    box-shadow: 0 6px 18px rgba(46,125,50,0.35);
}
[data-cause="mh"] .dc-own-cta-gear {
    border-color: #2e7d32;
    color: #2e7d32;
}
[data-cause="mh"] .dc-own-cta-gear:hover {
    background: #2e7d32;
    color: #fff;
}
[data-cause="mh"] .challenge-divider { background: rgba(46,125,50,0.2); }

/* ================================================= */
/* SUICIDE PREVENTION — DEEP AMBER / WARM GOLD       */
/* ================================================= */

section.dailychallenge-page[data-cause="sp"] {
    background: linear-gradient(160deg, #ffb300 0%, #f9a825 30%, #f57f17 60%, #e65100 100%) !important;
}
[data-cause="sp"] .quote-text { color: #4e342e; }
[data-cause="sp"] .quote-author { color: #6d4c41; }
[data-cause="sp"] .quote-author-line { background: linear-gradient(to right, #e65100, transparent); }
[data-cause="sp"] .challenge-badge {
    background: linear-gradient(135deg, #e65100, #bf360c);
    box-shadow: 0 8px 24px rgba(230,81,0,0.4);
}
[data-cause="sp"] .challenge-day { color: #bf360c; }
[data-cause="sp"] .challenge-text-wrapper { background: #fff3e0; }
[data-cause="sp"] .challenge-note { color: #bf360c; }
[data-cause="sp"] .share-btn {
    background: #fff;
    color: #e65100;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
[data-cause="sp"] .hero-cta.btn {
    background: rgba(255,255,255,0.2) !important;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
[data-cause="sp"] .dc-own-title { color: #e65100; }
[data-cause="sp"] .dc-own-option-icon {
    background: linear-gradient(135deg, #e65100, #bf360c);
}
[data-cause="sp"] .dc-own-option strong { color: #e65100; }
[data-cause="sp"] .dc-own-cta-subscribe {
    background: #e65100 !important;
    box-shadow: 0 6px 18px rgba(230,81,0,0.35);
}
[data-cause="sp"] .dc-own-cta-gear {
    border-color: #e65100;
    color: #e65100;
}
[data-cause="sp"] .dc-own-cta-gear:hover {
    background: #e65100;
    color: #fff;
}
[data-cause="sp"] .challenge-divider { background: rgba(230,81,0,0.2); }

/* ================================================= */
/* KINDNESS / ANTI-BULLYING — BLUE                   */
/* ================================================= */

section.dailychallenge-page[data-cause="kind"] {
    background: linear-gradient(160deg, #42a5f5 0%, #1976d2 30%, #1565c0 60%, #0d47a1 100%) !important;
}
[data-cause="kind"] .quote-text { color: #0d47a1; }
[data-cause="kind"] .quote-author { color: #1565c0; }
[data-cause="kind"] .quote-author-line { background: linear-gradient(to right, #1976d2, transparent); }
[data-cause="kind"] .challenge-badge {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    box-shadow: 0 8px 24px rgba(25,118,210,0.4);
}
[data-cause="kind"] .challenge-day { color: #1565c0; }
[data-cause="kind"] .challenge-text-wrapper { background: #e3f2fd; }
[data-cause="kind"] .challenge-note { color: #1565c0; }
[data-cause="kind"] .share-btn {
    background: #fff;
    color: #1565c0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
[data-cause="kind"] .hero-cta.btn {
    background: rgba(255,255,255,0.2) !important;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
[data-cause="kind"] .dc-own-title { color: #0d47a1; }
[data-cause="kind"] .dc-own-option-icon {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
}
[data-cause="kind"] .dc-own-option strong { color: #0d47a1; }
[data-cause="kind"] .dc-own-cta-subscribe {
    background: #1565c0 !important;
    box-shadow: 0 6px 18px rgba(21,101,192,0.35);
}
[data-cause="kind"] .dc-own-cta-gear {
    border-color: #1565c0;
    color: #1565c0;
}
[data-cause="kind"] .dc-own-cta-gear:hover {
    background: #1565c0;
    color: #fff;
}
[data-cause="kind"] .challenge-divider { background: rgba(21,101,192,0.2); }
