/* =====================================================
   BIBLE READING CHALLENGES
   ===================================================== */

:root {
    --challenge-primary: #8b5e34;
    --challenge-primary-dark: #6f4726;
    --challenge-bg: #f7f5f1;
    --challenge-surface: #ffffff;
    --challenge-text: #252525;
    --challenge-muted: #77736d;
    --challenge-border: #e7e0d6;
    --challenge-shadow:
        0 12px 35px rgba(60, 42, 25, 0.08);
}


/* =====================================================
   RESET
   ===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--challenge-bg);
    color: var(--challenge-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}


/* =====================================================
   HEADER
   ===================================================== */

.challenge-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid var(--challenge-border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.challenge-header-inner {
    width: min(1180px, calc(100% - 40px));

    min-height: 70px;

    margin: 0 auto;

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

    gap: 30px;
}


/* =====================================================
   BRAND
   ===================================================== */

.challenge-brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    color: var(--challenge-text);

    text-decoration: none;
}


.challenge-brand-icon {
    width: 42px;
    height: 42px;

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

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #a87545,
            #7a4d29
        );

    font-size: 21px;

    box-shadow:
        0 5px 15px rgba(111, 71, 38, 0.18);
}


.challenge-brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.challenge-brand-text strong {
    font-size: 16px;
    font-weight: 700;
}


.challenge-brand-text small {
    margin-top: 4px;

    color: var(--challenge-muted);

    font-size: 11px;
}


/* =====================================================
   DESKTOP NAVIGATION
   ===================================================== */

.challenge-nav {
    display: flex;

    align-items: center;

    gap: 6px;
}


.challenge-nav a {
    padding: 9px 14px;

    border-radius: 9px;

    color: #625d57;

    text-decoration: none;

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

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.challenge-nav a:hover {
    background: #f2eee8;

    color: var(--challenge-primary-dark);
}


.challenge-nav a.active {
    background: #f0e7dc;

    color: var(--challenge-primary-dark);

    font-weight: 650;
}


/* =====================================================
   MOBILE MENU BUTTON
   ===================================================== */

.challenge-menu-btn {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--challenge-border);

    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    font-size: 20px;
}


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

.challenge-mobile-nav {
    display: none;
}


/* =====================================================
   MAIN
   ===================================================== */

.challenge-page {
    min-height: calc(100vh - 70px);
}


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

.challenge-hero {
    position: relative;

    overflow: hidden;

    padding:
        82px 20px
        78px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(139, 94, 52, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(139, 94, 52, 0.08),
            transparent 35%
        ),
        #fbfaf8;

    border-bottom:
        1px solid var(--challenge-border);
}


.challenge-hero-content {
    width: min(900px, 100%);

    margin: 0 auto;

    text-align: center;
}


.challenge-hero-badge {
    display: inline-flex;

    align-items: center;

    padding: 7px 13px;

    border:
        1px solid rgba(139, 94, 52, 0.18);

    border-radius: 999px;

    background: #f5eee7;

    color: var(--challenge-primary-dark);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.challenge-hero h1 {
    margin:
        18px 0
        12px;

    font-size: clamp(34px, 5vw, 52px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    font-weight: 750;
}


.challenge-hero p {
    max-width: 650px;

    margin: 0 auto;

    color: var(--challenge-muted);

    font-size: 17px;

    line-height: 1.7;
}


/* =====================================================
   CHALLENGE SECTION
   ===================================================== */

.challenge-section {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding:
        70px 0
        85px;
}


.challenge-section-heading {
    margin-bottom: 38px;

    text-align: center;
}


.section-label {
    color: var(--challenge-primary);

    font-size: 11px;

    font-weight: 750;

    letter-spacing: 0.12em;
}


.challenge-section-heading h2 {
    margin:
        9px 0
        8px;

    font-size: 30px;

    line-height: 1.25;

    letter-spacing: -0.5px;
}


.challenge-section-heading p {
    margin: 0;

    color: var(--challenge-muted);

    font-size: 15px;
}


/* =====================================================
   CHALLENGE GRID
   ===================================================== */

.challenge-grid {
    display: grid;

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

    gap: 22px;
}


/* =====================================================
   CHALLENGE CARD
   ===================================================== */

.challenge-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 345px;

    padding: 27px;

    background: var(--challenge-surface);

    border:
        1px solid var(--challenge-border);

    border-radius: 18px;

    box-shadow: var(--challenge-shadow);

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


.challenge-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(139, 94, 52, 0.25);

    box-shadow:
        0 18px 45px
        rgba(60, 42, 25, 0.12);
}


/* =====================================================
   CARD TOP
   ===================================================== */

.challenge-card-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;
}


.challenge-icon {
    width: 48px;
    height: 48px;

    display: flex;

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

    border-radius: 13px;

    background: #f5eee7;

    font-size: 23px;
}


.challenge-days {
    color: var(--challenge-primary);

    font-size: 11px;

    font-weight: 750;

    letter-spacing: 0.1em;
}


/* =====================================================
   CARD CONTENT
   ===================================================== */

.challenge-card h3 {
    margin: 0 0 10px;

    color: var(--challenge-text);

    font-size: 21px;

    line-height: 1.3;
}


.challenge-card p {
    margin: 0;

    color: var(--challenge-muted);

    font-size: 14px;

    line-height: 1.65;
}


/* =====================================================
   CARD META
   ===================================================== */

.challenge-meta {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-top: 20px;

    color: #706b65;

    font-size: 12px;
}


/* =====================================================
   START BUTTON
   ===================================================== */

.challenge-start-btn {
    width: 100%;

    margin-top: auto;
    padding: 12px 15px;

    display: flex;

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

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--challenge-primary),
            var(--challenge-primary-dark)
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 650;

    cursor: pointer;

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


.challenge-start-btn span {
    font-size: 17px;

    transition:
        transform 0.2s ease;
}


.challenge-start-btn:hover {
    box-shadow:
        0 8px 20px
        rgba(111, 71, 38, 0.22);

    transform: translateY(-1px);
}


.challenge-start-btn:hover span {
    transform: translateX(3px);
}


/* =====================================================
   FEATURED 365 DAYS
   ===================================================== */

.challenge-card-featured {
    border:
        1.5px solid
        rgba(139, 94, 52, 0.32);

    background:
        linear-gradient(
            180deg,
            #fffdf9 0%,
            #ffffff 100%
        );
}


.challenge-featured-badge {
    position: absolute;

    top: 16px;
    right: 16px;

    padding: 5px 9px;

    border-radius: 6px;

    background: #8b5e34;

    color: #ffffff;

    font-size: 9px;

    font-weight: 750;

    letter-spacing: 0.08em;
}


/* =====================================================
   INFO SECTION
   ===================================================== */

.challenge-info {
    width: min(900px, calc(100% - 40px));

    margin:
        0 auto
        70px;

    padding: 27px 30px;

    display: flex;

    align-items: center;

    gap: 20px;

    background: #ffffff;

    border:
        1px solid var(--challenge-border);

    border-radius: 16px;

    box-shadow:
        0 8px 25px
        rgba(60, 42, 25, 0.05);
}


.challenge-info-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 13px;

    background: #f5eee7;

    font-size: 23px;
}


.challenge-info-content h2 {
    margin: 0 0 5px;

    font-size: 18px;
}


.challenge-info-content p {
    margin: 0;

    color: var(--challenge-muted);

    font-size: 13px;

    line-height: 1.6;
}


/* =====================================================
   FOOTER
   ===================================================== */

.challenge-footer {
    background: #2d261f;

    color: #ffffff;
}


.challenge-footer-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding:
        35px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.challenge-footer strong {
    font-size: 16px;
}


.challenge-footer p {
    margin: 5px 0 0;

    color: #bdb5ad;

    font-size: 12px;
}


.challenge-footer-links {
    display: flex;

    gap: 20px;
}


.challenge-footer-links a {
    color: #ddd5cd;

    text-decoration: none;

    font-size: 13px;
}


.challenge-footer-links a:hover {
    color: #ffffff;
}


.challenge-footer-bottom {
    padding:
        15px 20px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    text-align: center;

    color: #a9a19a;

    font-size: 11px;
}


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

@media (max-width: 950px) {

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

}


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

@media (max-width: 700px) {

    .challenge-header-inner {
        width: min(
            100% - 28px,
            1180px
        );

        min-height: 62px;
    }


    .challenge-nav {
        display: none;
    }


    .challenge-menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    .challenge-mobile-nav {
        position: fixed;

        top: 62px;
        left: 0;
        right: 0;

        z-index: 999;

        display: none;

        flex-direction: column;

        padding: 10px 14px;

        background: #ffffff;

        border-bottom:
            1px solid var(--challenge-border);

        box-shadow:
            0 12px 25px
            rgba(0, 0, 0, 0.08);
    }


    .challenge-mobile-nav.open {
        display: flex;
    }


    .challenge-mobile-nav a {
        padding: 13px 12px;

        color: var(--challenge-text);

        text-decoration: none;

        border-radius: 8px;

        font-size: 14px;
    }


    .challenge-mobile-nav a.active {
        background: #f3ece4;

        color: var(--challenge-primary-dark);

        font-weight: 650;
    }


    .challenge-hero {
        padding:
            60px 18px
            55px;
    }


    .challenge-hero h1 {
        font-size: 34px;
    }


    .challenge-hero p {
        font-size: 15px;
    }


    .challenge-section {
        width: min(
            100% - 28px,
            1180px
        );

        padding:
            50px 0
            60px;
    }


    .challenge-section-heading h2 {
        font-size: 25px;
    }


    .challenge-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }


    .challenge-card {
        min-height: 320px;

        padding: 23px;
    }


    .challenge-info {
        width: min(
            100% - 28px,
            900px
        );

        margin-bottom: 50px;

        padding: 22px;

        align-items: flex-start;
    }


    .challenge-footer-inner {
        width: min(
            100% - 28px,
            1180px
        );

        flex-direction: column;

        align-items: flex-start;
    }

}


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

@media (max-width: 420px) {

    .challenge-brand-text small {
        display: none;
    }


    .challenge-hero h1 {
        font-size: 30px;

        letter-spacing: -0.8px;
    }


    .challenge-card {
        border-radius: 15px;
    }


    .challenge-info {
        flex-direction: column;
    }

}


/* =====================================================
   COMMON SITE HEADER
   MATCH INDEX.HTML
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 68px;

    background: rgba(255, 255, 255, 0.97);

    border-bottom: 1px solid var(--video-border);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.site-header-inner {
    width: 100%;
    max-width: 1500px;

    min-height: 68px;

    margin: 0 auto;
    padding: 0 32px;

    display: flex;
    align-items: center;
}


/* =====================================================
   BRAND
===================================================== */

.site-brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: var(--video-text);

    text-decoration: none;

    flex-shrink: 0;
}


.site-brand-icon {
    width: 40px;
    height: 40px;

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

    border-radius: 10px;

    background: var(--video-primary);

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;
}


.site-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}


.site-brand-text strong {
    color: var(--video-text);

    font-size: 15px;
    font-weight: 800;
}


.site-brand-text small {
    margin-top: 3px;

    color: var(--video-text-secondary);

    font-size: 11px;
    font-weight: 500;
}


/* =====================================================
   MAIN NAVIGATION
===================================================== */

.site-navigation {
    display: flex;
    align-items: center;

    gap: 4px;

    margin-left: auto;
    margin-right: 5px;
}


.site-navigation a {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 8px 10px;

    border-radius: 8px;

    color: var(--video-text-secondary);

    text-decoration: none;

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

    white-space: nowrap;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}


.site-navigation a:hover {
    background: var(--video-surface-soft);

    color: var(--video-primary);

    transform: translateY(-1px);
}


.site-navigation a.active {
    background: rgba(139, 94, 52, 0.09);

    color: var(--video-primary);

    font-weight: 700;
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.site-menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    margin-left: auto;

    border: 1px solid var(--video-border);

    border-radius: 9px;

    background: var(--video-surface);

    color: var(--video-text);

    font-size: 19px;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}


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

.videos-mobile-nav {
    display: none;
}

.videos-mobile-nav.open {
    display: flex;

    flex-direction: column;

    position: fixed;

    top: 68px;
    left: 0;
    right: 0;

    z-index: 999;

    padding: 10px 15px;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid var(--video-border);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}


.videos-mobile-nav a {
    display: block;

    padding: 11px 12px;

    border-radius: 8px;

    color: var(--video-text);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}


.videos-mobile-nav a:hover,
.videos-mobile-nav a.active {
    background: var(--video-surface-soft);

    color: var(--video-primary);
}


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

@media (max-width: 1000px) {

    .site-header-inner {
        padding: 0 22px;
    }

    .site-navigation {
        gap: 2px;
    }

    .site-navigation a {
        padding: 7px 8px;

        font-size: 12px;
    }

}


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

@media (max-width: 760px) {

    .site-header {
        min-height: 62px;
    }

    .site-header-inner {
        min-height: 62px;

        padding: 0 15px;
    }

    .site-navigation {
        display: none;
    }

    .site-menu-btn {
        display: flex;
    }

    .videos-mobile-nav.open {
        top: 62px;
    }

}


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

@media (max-width: 430px) {

    .site-brand-icon {
        width: 36px;
        height: 36px;

        font-size: 17px;
    }

    .site-brand-text strong {
        font-size: 13px;
    }

    .site-brand-text small {
        font-size: 10px;
    }

}