/* =========================================================
   BWMC — GLOBAL STYLES
========================================================= */

:root {
    --black: #222222;
    --dark: #444444;
    --cream: #f6f3ed;
    --white: #ffffff;

    /* BWMC BLUE */
    --accent: #3978b8;
    --accent-dark: #2c6298;
    --accent-light: #dceafa;

    --muted: #939393;
    --border: rgba(17, 17, 17, 0.12);

    --max-width: 1240px;
    --radius: 24px;
    --nav-radius: 100px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--cream);
    color: var(--black);

    line-height: 1.5;
}


img {
    width: 100%;
    display: block;
    object-fit: cover;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


.container {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin-inline: auto;
}


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

.nav-wrapper {
    position: fixed;

    top: 18px;
    left: 0;

    width: 100%;

    z-index: 1000;

    pointer-events: none;
}


.navbar {
    pointer-events: auto;

    width: min(
        calc(100% - 32px),
        1160px
    );

    margin: auto;

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

    padding: 10px 10px 10px 22px;

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

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.8);

    border-radius: var(--nav-radius);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12);

    transition: all 0.3s ease;
}


.navbar.scrolled {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18);
}


.logo {
    display: flex;
    align-items: center;

    gap: 10px;

    font-size: 1.35rem;

    font-weight: 900;

    letter-spacing: -0.06em;
}


.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}


.logo-mark {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    background: var(--black);

    color: var(--accent);

    border-radius: 50%;

    font-size: 0.8rem;

    font-weight: 900;
}


.nav-links {
    display: flex;
    align-items: center;

    gap: 4px;
}


.nav-links a {
    padding: 11px 15px;

    border-radius: 100px;

    font-size: 0.86rem;

    font-weight: 650;

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


.nav-links a:hover {
    background: var(--muted);
}


.nav-cta {
    background: var(--black) !important;
    color: var(--white) !important;

    padding-inline: 20px !important;
}


.nav-cta:hover {
    background: #333 !important;
}


.menu-button {
    display: none;

    border: 0;

    background: var(--black);

    color: white;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    cursor: pointer;
}


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

.hero {
    min-height: 100svh;

    display: flex;
    align-items: flex-end;

    padding: 150px 0 60px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.05) 0%,
            rgba(0,0,0,0.65) 100%
        ),
        url("images/DSC_0878R.JPG")
        center / cover no-repeat;

    color: white;
}


.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(57, 120, 184, 0.25),
            transparent 30%
        );

    pointer-events: none;
}


.hero-content {
    position: relative;

    z-index: 2;

    width: min(900px, 100%);
}


.eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    font-size: 0.85rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.14em;
}


.eyebrow::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--accent);
}


.hero h1 {
    max-width: 850px;

    font-size: clamp(
        4rem,
        9vw,
        8.5rem
    );

    line-height: 0.87;

    letter-spacing: -0.02em;

    margin-bottom: 30px;
}


.hero-copy {
    max-width: 620px;

    font-size: clamp(
        1.05rem,
        2vw,
        1.3rem
    );

    color: rgba(255,255,255,0.84);

    margin-bottom: 32px;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;

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

    gap: 10px;

    min-height: 52px;

    padding: 0 23px;

    border-radius: 100px;

    font-size: 0.92rem;

    font-weight: 800;

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


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


.button-primary {
    background: var(--accent);

    color: var(--white);
}


.button-primary:hover {
    background: var(--accent-dark);
}


.button-light {
    background: var(--white);

    color: var(--black);
}


.button-dark {
    background: var(--black);

    color: var(--white);
}


.intro-button {
    margin-top: 28px;
}


.service-button {
    margin-top: 28px;
}


.community-button {
    margin-top: 30px;
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    padding: 80px 0;
}


.intro-grid {
    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 80px;

    align-items: start;
}


.section-label {
    font-size: 0.85rem;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: 0.15em;

    color: var(--muted);
}


.intro h2 {
    max-width: 850px;

    font-size: clamp(
        2.8rem,
        6vw,
        6rem
    );

    line-height: 0.94;

    letter-spacing: -0.02em;
}


.intro p {
    margin-top: 30px;

    max-width: 650px;

    font-size: 1.15rem;

    color: #555;
}


/* =========================================================
   SERVICE STRIP
========================================================= */

.service-section {
    padding-bottom: 30px;
    padding-top: 30px;
}


.service-card {
    background: var(--black);

    color: white;

    border-radius: var(--radius);

    padding: 60px;

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 50px;

    align-items: center;

    overflow: hidden;

    position: relative;
}


.service-card::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -100px;
    top: -160px;

    border-radius: 50%;

    background: var(--accent);

    opacity: 0.9;
}


.service-content {
    position: relative;

    z-index: 2;
}


.service-card h2 {
    font-size: clamp(
        2.4rem,
        5vw,
        5rem
    );

    line-height: 0.95;

    letter-spacing: -0.02em;

    margin: 12px 0 20px;
}


.service-card p {
    color: #bdbdbd;

    max-width: 550px;
}


.service-label {
    color: #aaa;
}


.service-times {
    position: relative;

    z-index: 2;

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

    padding: 28px;

    min-width: 250px;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,0.12);
}


.service-times strong {
    display: block;

    font-size: 1.6rem;

    margin-top: 4px;
}


.service-times p {
    color: #ccc;

    margin-top: 10px;
}


/* =========================================================
   VIDEO / TEACHING
========================================================= */

.dark-section {
    background: var(--dark);

    color: white;

    padding: 80px 0;
}


.section-heading {
    display: flex;

    justify-content: space-between;

    gap: 40px;

    align-items: end;

    margin-bottom: 45px;
}


.section-heading h2 {
    font-size: clamp(
        3rem,
        6vw,
        6rem
    );

    line-height: 1;

    letter-spacing: -0.02em;
}


.section-heading p {
    max-width: 350px;

    color: #ccc;
}


.dark-label {
    color: #ccc;
}


.teaching-card {
    min-height: 550px;

    border-radius: var(--radius);

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,0.8),
            transparent 65%
        ),
        url("images/DSC_0813R.JPG")
        center / cover no-repeat;
}


.teaching-content {
    position: absolute;

    bottom: 0;
    left: 0;

    padding: 45px;

    max-width: 700px;
}


.teaching-content h3 {
    font-size: clamp(
        2rem,
        4vw,
        4rem
    );

    line-height: 0.95;

    letter-spacing: -0.02em;

    margin: 12px 0 25px;
}


/* =========================================================
   NEXT STEPS
========================================================= */

.steps {
    padding: 80px 0;
}


.steps-header {
    margin-bottom: 55px;
}


.steps-header h2 {
    max-width: 800px;

    font-size: clamp(
        3rem,
        6vw,
        6rem
    );

    line-height: 0.9;

    letter-spacing: -0.02em;

    margin-top: 14px;
}


.steps-grid {
    display: grid;

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

    gap: 16px;
}


.step-card {
    min-height: 300px;

    padding: 30px;

    border-radius: var(--radius);

    background: white;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

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

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


.step-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.08);
}


.step-number {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--accent-light);

    color: var(--accent-dark);

    font-size: 0.8rem;

    font-weight: 900;
}


.step-card h3 {
    font-size: 1.7rem;

    line-height: 1;

    letter-spacing: -0.045em;

    margin-bottom: 12px;
}


.step-card p {
    color: var(--muted);

    font-size: 0.94rem;
}


.step-link {
    display: inline-block;

    margin-top: 25px;

    color: var(--accent-dark);

    font-size: 0.85rem;

    font-weight: 850;
}


/* =========================================================
   COMMUNITY
========================================================= */

.community {
    background: var(--accent);

    padding: 80px 0;

    overflow: hidden;
}


.community-inner {
    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    gap: 80px;

    align-items: center;
}


.community h2 {
    font-size: clamp(
        3.5rem,
        7vw,
        7rem
    );

    line-height: 0.86;

    letter-spacing: -0.02em;
}


.community-copy {
    font-size: 1.15rem;

    max-width: 500px;

    margin-top: 30px;
}


.community-image {
    border-radius: var(--radius);

    height: 500px;

    object-fit: cover;

    box-shadow:
        20px 20px 0 rgba(0,0,0,0.12);
}


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

.cta {
    padding: 130px 0;
}


.cta-box {
    background: white;

    border-radius: var(--radius);

    padding: 80px 60px;

    text-align: center;

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


.cta-box h2 {
    max-width: 800px;

    margin: auto;

    font-size: clamp(
        3rem,
        6vw,
        6rem
    );

    line-height: 0.9;

    letter-spacing: -0.02em;
}


.cta-box p {
    max-width: 600px;

    margin: 25px auto 32px;

    color: var(--muted);

    font-size: 1.1rem;
}


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

footer {
    background: var(--black);

    color: white;

    padding: 75px 0 35px;
}


.footer-top {
    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 70px;
}


.footer-logo {
    font-size: 2.5rem;

    font-weight: 900;

    letter-spacing: -0.07em;
}


.footer-intro {
    color: #999;

    max-width: 350px;

    margin-top: 15px;
}


.footer-column h4 {
    font-size: 0.75rem;

    color: #777;

    text-transform: uppercase;

    letter-spacing: 0.12em;

    margin-bottom: 18px;
}


.footer-column a {
    display: block;

    margin-bottom: 9px;

    color: #ddd;

    font-size: 0.9rem;
}


.footer-column a:hover {
    color: var(--accent);
}


.footer-bottom {
    border-top: 1px solid #333;

    padding-top: 25px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #777;

    font-size: 0.78rem;
}


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

@media (max-width: 900px) {

    .nav-links {
        display: none;

        position: absolute;

        top: 65px;
        left: 0;
        right: 0;

        padding: 12px;

        background: white;

        border-radius: 25px;

        flex-direction: column;

        align-items: stretch;

        box-shadow:
            0 15px 40px rgba(0,0,0,0.15);
    }


    .nav-links.open {
        display: flex;
    }


    .nav-links a {
        padding: 14px 16px;
    }


    .menu-button {
        display: grid;

        place-items: center;
    }


    .intro-grid,
    .community-inner {
        grid-template-columns: 1fr;

        gap: 40px;
    }


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


    .footer-top {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


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

@media (max-width: 650px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--max-width)
        );
    }


    .nav-wrapper {
        top: 10px;
    }


    .navbar {
        width: calc(100% - 20px);
    }


    .hero {
        padding-bottom: 40px;
    }


    .hero h1 {
        font-size:
            clamp(
                3.7rem,
                17vw,
                6rem
            );
    }


    .intro,
    .steps,
    .dark-section,
    .community,
    .cta {
        padding: 85px 0;
    }


    .service-card {
        padding: 35px 25px;

        grid-template-columns: 1fr;

        gap: 30px;
    }


    .service-times {
        min-width: 0;
    }


    .section-heading {
        flex-direction: column;

        align-items: start;
    }


    .teaching-card {
        min-height: 450px;
    }


    .teaching-content {
        padding: 28px;
    }


    .steps-grid {
        grid-template-columns: 1fr;
    }


    .community-image {
        height: 400px;
    }


    .cta-box {
        padding: 55px 25px;
    }


    .footer-top {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .footer-bottom {
        flex-direction: column;
    }
}



/* =========================================================
   SUB PAGE STYLES
========================================================= */


        .events-hero {
            padding: 180px 0 85px;
            background: var(--black);
            color: white;
        }

        .events-hero h1 {
            font-size: clamp(3rem, 8vw, 7rem);
            line-height: .9;
            letter-spacing: -.02em;
            margin: 18px 0 25px;
        }

        .events-hero p {
            max-width: 600px;
            color: #bbb;
            font-size: 1.1rem;
        }

        .events-main {
            padding: 75px 0 120px;
        }

        .events-heading {
            display: flex;
            justify-content: space-between;
            align-items: end;
            gap: 25px;
            margin-bottom: 35px;
        }

        .events-heading h2 {
            font-size: clamp(2.3rem, 5vw, 4rem);
            letter-spacing: -.06em;
            line-height: 1;
            margin-top: 12px;
        }

        .calendar-panel {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 30px;
            margin-bottom: 75px;
        }

        .calendar-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .calendar-top h3 {
            font-size: 1.6rem;
            letter-spacing: -.04em;
        }

        .calendar-controls {
            display: flex;
            gap: 8px;
        }

        .calendar-controls button {
            border: 1px solid var(--border);
            background: var(--cream);
            border-radius: 50%;
            width: 42px;
            height: 42px;
            cursor: pointer;
            font-size: 1.2rem;
        }

        .calendar-controls button:hover {
            background: var(--accent-light);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
        }

        .weekday {
            text-align: center;
            font-size: .75rem;
            text-transform: uppercase;
            letter-spacing: .08em;
            font-weight: 800;
            color: var(--muted);
            padding: 10px 0;
        }

        .calendar-day {
            min-height: 90px;
            padding: 10px;
            border-radius: 12px;
            border: 1px solid #eee;
            background: #fff;
            text-align: left;
            cursor: pointer;
            color: var(--black);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .calendar-day:hover {
            border-color: var(--accent);
            background: #f5f9ff;
        }

        .calendar-day.outside {
            color: #aaa;
            background: #fafafa;
        }

        .calendar-day.today {
            border: 2px solid var(--accent);
        }

        .calendar-day.selected {
            background: var(--accent-light);
            border-color: var(--accent);
        }

        .day-number {
            font-weight: 800;
            font-size: .9rem;
        }

        .day-event-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--accent);
        }

        .day-event-label {
            font-size: .68rem;
            line-height: 1.25;
            color: var(--accent-dark);
            font-weight: 750;
            overflow-wrap: anywhere;
        }

        .calendar-note {
            margin-top: 18px;
            font-size: .88rem;
            color: var(--muted);
        }

        .event-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
        }

        .filter-button {
            border: 1px solid var(--border);
            background: white;
            color: var(--black);
            border-radius: 100px;
            padding: 10px 18px;
            font-weight: 750;
            font-size: .85rem;
            cursor: pointer;
        }

        .filter-button:hover,
        .filter-button.active {
            background: var(--black);
            color: white;
        }

        .event-list {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
        }

        .event-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform .2s ease, box-shadow .2s ease;
        }

        .event-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 40px rgba(0,0,0,.07);
        }

        .event-image {
            width: 100%;
            height: 210px;
            object-fit: cover;
            background: var(--accent-light);
        }

        .event-card-body {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .event-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            color: var(--muted);
            font-size: .78rem;
            font-weight: 700;
        }

        .event-category {
            display: inline-block;
            background: var(--accent-light);
            color: var(--accent-dark);
            border-radius: 100px;
            padding: 5px 10px;
        }

        .event-card h3 {
            font-size: 1.65rem;
            line-height: 1.05;
            letter-spacing: -.045em;
            margin-bottom: 12px;
        }

        .event-card p {
            color: var(--muted);
            font-size: .92rem;
            margin-bottom: 22px;
        }

        .event-link {
            margin-top: auto;
            font-weight: 850;
            color: var(--accent-dark);
            font-size: .88rem;
            align-self: flex-start;
            border: 0;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }

        .empty-events {
            grid-column: 1 / -1;
            padding: 45px 25px;
            border: 1px dashed var(--border);
            border-radius: var(--radius);
            text-align: center;
            color: var(--muted);
        }

        .event-details {
            margin-top: 35px;
            padding: 30px;
            background: var(--accent-light);
            border-radius: var(--radius);
            display: none;
        }

        .event-details.visible {
            display: block;
        }

        .event-details h3 {
            font-size: 1.8rem;
            margin-bottom: 12px;
        }

        .event-details p {
            margin-bottom: 10px;
        }

        .event-details button {
            margin-top: 15px;
            border: 0;
            background: var(--black);
            color: white;
            border-radius: 100px;
            padding: 11px 18px;
            cursor: pointer;
        }

        .events-contact {
            margin-top: 75px;
            padding: 55px;
            background: var(--accent);
            border-radius: var(--radius);
            color: white;
        }

        .events-contact h2 {
            font-size: clamp(2.2rem, 5vw, 4rem);
            line-height: .95;
            letter-spacing: -.02em;
            margin-bottom: 18px;
        }

        .events-contact p {
            max-width: 550px;
            margin-bottom: 25px;
        }

        .events-contact .button-dark {
            background: white;
            color: var(--black);
        }

        @media (max-width: 900px) {
            .event-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .calendar-day {
                min-height: 75px;
            }
        }

        @media (max-width: 600px) {
            .events-hero {
                padding: 145px 0 65px;
            }

            .events-main {
                padding: 50px 0 80px;
            }

            .events-heading {
                align-items: flex-start;
                flex-direction: column;
            }

            .calendar-panel {
                padding: 15px;
                margin-bottom: 55px;
            }

            .calendar-top h3 {
                font-size: 1.25rem;
            }

            .calendar-grid {
                gap: 3px;
            }

            .weekday {
                font-size: .62rem;
                letter-spacing: 0;
            }

            .calendar-day {
                min-height: 49px;
                padding: 5px;
                border-radius: 7px;
                gap: 3px;
            }

            .day-number {
                font-size: .78rem;
            }

            .day-event-label {
                display: none;
            }

            .day-event-dot {
                width: 6px;
                height: 6px;
            }

            .event-list {
                grid-template-columns: 1fr;
            }

            .event-image {
                height: 230px;
            }

            .events-contact {
                padding: 35px 25px;
                margin-top: 55px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            *, *::before, *::after {
                transition-duration: .01ms !important;
            }
        }


/* ABOUT PAGE HERO */
.about-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: #c3c8cd;
    color: #24364a;
}

/* Soft church-logo watermark */
.about-hero::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: clamp(220px, 32vw, 420px);
    aspect-ratio: 1;

    right: 8%;
    top: 50%;
    transform: translateY(-50%);

    background: url("images/bwmc_logo_cross.png") center / contain no-repeat;
    opacity: 0.30;

    pointer-events: none;
}

/* Keep the heading and paragraph readable */
.about-hero h1,
.about-hero p {
    color: #24364a;
}

@media (max-width: 600px) {
    .about-hero::before {
        width: 220px;
        right: -20px;
        top: 55%;
        opacity: 0.20;
    }
}

/* Intro section logo watermark */
.intro-logo-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.intro-logo-bg::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;

    background: url("images/bwmc_logo_cross.png") no-repeat;
    background-position: 15% center;
    background-size: clamp(220px, 30vw, 400px);

    opacity: 0.30;
    pointer-events: none;
}

@media (max-width: 900px) {
    .intro-logo-bg::before {
        background-position: 70% center;
        opacity: 0.15;
    }
}


        /* Groups page */
        .groups-main {
            padding: 70px 0 100px;
            background: var(--white);
        }

        .groups-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
        }

        .group-card {
            align-self: start;
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
            overflow: hidden;
            transition: box-shadow 0.2s ease, transform 0.2s ease;
        }

        .group-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
        }

        .group-card summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            padding: 30px;
            cursor: pointer;
            list-style: none;
        }

        .group-card summary::-webkit-details-marker {
            display: none;
        }

        .group-card summary h2 {
            margin: 0 0 10px;
            font-size: 1.65rem;
            line-height: 1.1;
            letter-spacing: -0.04em;
        }

        .group-card summary p {
            margin: 0;
            color: var(--muted);
            font-size: 0.92rem;
            line-height: 1.6;
        }

        .group-number {
            display: block;
            margin-bottom: 12px;
            color: var(--accent-dark);
            font-size: 0.78rem;
            font-weight: 800;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        .group-toggle {
            flex-shrink: 0;
            display: grid;
            place-items: center;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--accent-light);
            color: var(--accent-dark);
            font-size: 1.4rem;
            font-weight: 500;
            transition: transform 0.2s ease;
        }

        .group-toggle::before {
            content: "+";
        }

        .group-card[open] .group-toggle {
            transform: rotate(45deg);
        }

        .group-details {
            padding: 0 30px 30px;
            border-top: 1px solid var(--border);
            margin: 0 30px;
            padding-left: 0;
            padding-right: 0;
        }

        .group-details p {
            margin: 22px 0 16px;
            color: var(--muted);
            line-height: 1.75;
        }

        .group-details h3 {
            margin: 22px 0 10px;
            font-size: 1.1rem;
        }

        .group-details ul {
            padding-left: 20px;
            color: var(--muted);
            line-height: 1.8;
        }

        .groups-contact {
            margin-top: 55px;
        }

        @media (max-width: 700px) {
            .groups-main {
                padding: 45px 0 70px;
            }

            .groups-list {
                grid-template-columns: 1fr;
                gap: 18px;
            }

            .group-card summary {
                padding: 24px;
            }

            .group-details {
                margin: 0 24px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .group-card,
            .group-toggle {
                transition: none;
            }
        }


    /* Giving page */

    :root {
      --giving-blue: var(--accent, #3978b8);
      --giving-dark: #152b43;
      --giving-muted: #64748b;
      --giving-border: #e2e8f0;
      --giving-surface: #f5f8fc;
    }

    .giving-page {
      max-width: 1180px;
      width: 92%;
      margin: 0 auto;
      padding-bottom: 70px;
    }

    /* Hero — consistent with events.html */
    .giving-hero {
      background: var(--giving-dark);
      color: white;
      padding: 76px 24px;
      margin: 28px 0 42px;
      border-radius: 24px;
      text-align: center;
    }

    .giving-hero .eyebrow {
      color: #b8d9ff;
      text-transform: uppercase;
      letter-spacing: 2px;
      font-size: .8rem;
      font-weight: 700;
    }

    .giving-hero h1 {
      color: white;
      font-size: clamp(2.4rem, 5vw, 4rem);
      margin: 14px 0;
    }

    .giving-hero p {
      max-width: 660px;
      margin: 0 auto;
      color: #dbe7f4;
      line-height: 1.7;
    }

    .giving-intro {
      max-width: 760px;
      margin: 0 auto 34px;
      text-align: center;
    }

    .giving-intro h2 {
      color: var(--giving-dark);
      font-size: clamp(1.6rem, 3vw, 2.1rem);
      margin-bottom: 12px;
    }

    .giving-intro p {
      color: var(--giving-muted);
      line-height: 1.8;
    }

    /* Three floating photo cards */
    .giving-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
      align-items: stretch;
    }

    .giving-card {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      background: white;
      border: 1px solid var(--giving-border);
      border-radius: 20px;
      box-shadow: 0 8px 24px rgba(21, 43, 67, .06);
      transition: transform .2s ease, box-shadow .2s ease;
    }

    .giving-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 16px 34px rgba(21, 43, 67, .13);
    }

    .giving-photo {
      position: relative;
      height: 225px;
      overflow: hidden;
      background: #dbe7f4;
    }

    .giving-photo img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .4s ease;
    }

    .giving-card:hover .giving-photo img {
      transform: scale(1.05);
    }

    .giving-photo::after {
      content: "";
      position: absolute;
      inset: 45% 0 0;
      background: linear-gradient(
        to bottom,
        transparent,
        rgba(14, 31, 51, .55)
      );
      pointer-events: none;
    }

    .giving-photo-label {
      position: absolute;
      z-index: 1;
      left: 20px;
      bottom: 17px;
      color: white;
      font-size: .78rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }

    .giving-card-content {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 24px;
    }

    .giving-card h2 {
      color: var(--giving-dark);
      font-size: 1.3rem;
      line-height: 1.35;
      margin: 0 0 12px;
    }

    .giving-card p {
      color: var(--giving-muted);
      font-size: .94rem;
      line-height: 1.75;
      margin: 0 0 18px;
    }

    .giving-scripture {
      padding: 14px;
      margin-top: auto;
      margin-bottom: 20px;
      border-left: 3px solid var(--giving-blue);
      border-radius: 0 10px 10px 0;
      background: var(--giving-surface);
      color: var(--giving-dark);
      font-size: .86rem;
      line-height: 1.65;
      font-style: italic;
    }

    .giving-scripture strong {
      display: block;
      margin-top: 6px;
      color: var(--giving-muted);
      font-size: .8rem;
      font-style: normal;
    }

    .giving-button {
      display: inline-block;
      box-sizing: border-box;
      width: 100%;
      padding: 12px 18px;
      border: 0;
      border-radius: 999px;
      background: var(--giving-blue);
      color: white;
      text-align: center;
      text-decoration: none;
      font-weight: 700;
      font-size: .92rem;
      transition: background .2s ease, opacity .2s ease;
    }

    .giving-button:hover {
      opacity: .88;
    }

    .giving-note {
      margin-top: 36px;
      padding: 30px;
      border: 1px solid var(--giving-border);
      border-radius: 20px;
      background: var(--giving-surface);
      text-align: center;
    }

    .giving-note h2,
    .giving-contact h2 {
      margin-top: 0;
      font-size: 1.4rem;
    }

    .giving-note h2 {
      color: var(--giving-dark);
    }

    .giving-note p {
      max-width: 720px;
      margin: 0 auto;
      color: var(--giving-muted);
      line-height: 1.75;
    }

    .giving-contact {
      margin-top: 28px;
      padding: 36px 24px;
      border-radius: 20px;
      background: var(--giving-dark);
      color: white;
      text-align: center;
    }

    .giving-contact h2 {
      color: white;
    }

    .giving-contact p {
      max-width: 620px;
      margin: 0 auto 18px;
      color: #dbe7f4;
      line-height: 1.7;
    }

    .giving-contact .giving-button {
      display: inline-block;
      width: auto;
      padding: 12px 24px;
      background: white;
      color: var(--giving-dark);
    }

    @media (max-width: 900px) {
      .giving-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .giving-card:last-child {
        grid-column: 1 / -1;
      }

      .giving-card:last-child .giving-photo {
        height: 260px;
      }
    }

    @media (max-width: 600px) {
      .giving-page {
        width: 94%;
      }

      .giving-hero {
        padding: 54px 20px;
        margin-top: 20px;
      }

      .giving-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .giving-card:last-child {
        grid-column: auto;
      }

      .giving-card:last-child .giving-photo,
      .giving-photo {
        height: 220px;
      }

      .giving-card-content {
        padding: 22px;
      }

      .giving-note {
        padding: 24px 20px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .giving-card,
      .giving-photo img {
        transition: none;
      }
    }