/* Mobile counter box: a compact dark card that overlaps the bottom of the hero.
   Two stats side by side, with the "Watch video" button as a full-width row. */
@media (max-width: 767px) {
    .elementor-10 .elementor-element.elementor-element-c605006 {
        display: block !important;
        margin: -44px 0 0 !important;
        padding: 0 16px !important;
        position: relative;
        z-index: 5;
        background: transparent !important;
    }
    .elementor-10 .elementor-element-c605006 > .elementor-background-overlay { display: none !important; }
    .elementor-10 .elementor-element-c605006 > .elementor-container,
    .elementor-10 .elementor-element-c605006 .elementor-element-d6324e3,
    .elementor-10 .elementor-element-c605006 .elementor-element-d6324e3 > .elementor-widget-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .elementor-10 .elementor-element-c605006 .elementor-element-beddb75 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #1c1c1c !important;
        border-radius: 18px !important;
        overflow: hidden;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    }
    .elementor-10 .elementor-element-beddb75 > .elementor-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .elementor-10 .elementor-element-beddb75 .elementor-inner-column {
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
    }
    .elementor-10 .elementor-element-beddb75 .elementor-inner-column > .elementor-widget-wrap {
        padding: 18px 10px 16px !important;
        text-align: center;
    }
    .elementor-10 .elementor-element-beddb75 .elementor-inner-column > .elementor-widget-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }
    .elementor-10 .elementor-element-beddb75 .elementor-widget,
    .elementor-10 .elementor-element-beddb75 .elementor-widget-container,
    .elementor-10 .elementor-element-beddb75 .philantrop_heading_widget,
    .elementor-10 .elementor-element-beddb75 .philantrop_video_widget {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        text-align: center;
    }
    /* Stats: first two columns after the video column */
    .elementor-10 .elementor-element-7bcf582 { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid rgba(255, 255, 255, .12); }
    .elementor-10 .elementor-element-c2a1bf2 { grid-column: 1; grid-row: 1; border-right: 1px solid rgba(255, 255, 255, .12); }
    .elementor-10 .elementor-element-54dfcb1 { grid-column: 2; grid-row: 1; }
    .elementor-10 .elementor-element-7bcf582 > .elementor-widget-wrap { padding: 12px 10px !important; }
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582,
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582 .elementor-widget-wrap,
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582 .philantrop_preview_container,
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582 .philantrop_video_button_container,
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582 .philantrop_video_button_wrapper,
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582 .philantrop_video_button {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    body .elementor-10 .elementor-element-beddb75 .elementor-element-7bcf582 > .elementor-widget-wrap {
        padding: 14px 10px !important;
    }
    .elementor-10 .elementor-element-beddb75 .elementor-counter-number-wrapper {
        justify-content: center;
        font-size: clamp(34px, 11vw, 46px) !important;
        line-height: 1 !important;
        color: #ffce59 !important;
        -webkit-text-stroke: 0 !important;
        display: flex;
        align-items: baseline;
    }
    .elementor-10 .elementor-element-beddb75 .elementor-counter-number,
    .elementor-10 .elementor-element-beddb75 .elementor-counter-number-suffix {
        color: #ffce59 !important;
        -webkit-text-stroke: 0 !important;
        font-size: inherit !important;
        line-height: 1 !important;
    }
    .elementor-10 .elementor-element-beddb75 .philantrop_heading {
        margin: 8px 0 0 !important;
        color: #fff !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        text-align: center;
    }
    .elementor-10 .elementor-element-beddb75 .philantrop_video_button,
    .elementor-10 .elementor-element-beddb75 .philantrop_video_button_wrapper {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        color: #fff !important;
    }
    .elementor-10 .elementor-element-beddb75 .philantrop_video_button svg { fill: none; stroke: #ffce59; }
    .elementor-10 .elementor-element-beddb75 .philantrop_video_button_text { color: #fff !important; font-size: 14px; }
}

/* "Who We Are": on mobile show the text first and the photo second. */
@media (max-width: 767px) {
    .elementor-10 .elementor-element-e3c6ef8 > .elementor-container {
        display: flex !important;
        flex-direction: column !important;
    }
    .elementor-10 .elementor-element-e3c6ef8 > .elementor-container > .elementor-column:nth-child(2) { order: 1; }
    .elementor-10 .elementor-element-e3c6ef8 > .elementor-container > .elementor-column:nth-child(1) { order: 2; }
}

@media (min-width: 768px) {
    /* Give the desktop stats panel and the floating homepage navigation
       softly rounded corners while preserving their existing proportions. */
    body.page-id-10 .elementor-10 .elementor-element.elementor-element-6f0db55 {
        border-radius: 18px !important;
        overflow: hidden !important;
    }
    body.page-id-10 header.philantrop_header_type_2.philantrop_sticky_header_on .philantrop_header_inner_container,
    body.page-id-10 header.philantrop_header_type_2.philantrop_sticky_header_container .philantrop_header_inner_container {
        border-radius: 14px !important;
        /* overflow:hidden removed — it clips the dropdown sub-menus */
        overflow: visible !important;
    }
}

/* The image-only section after the Faith parallax band rendered outside its box
   and sat over the "Founder's Calling & Commitment" block. It has no text, so hide it. */
.elementor-10 .elementor-element.elementor-element-018b79e {
    display: none !important;
}

/* Faith band: the photo strip above "Faith" is removed so the parallax section
   before it flows straight into the dark Faith section. */
.elementor-10 .elementor-element.elementor-element-b1be56d {
    display: none !important;
}
.elementor-10 .elementor-element.elementor-element-c1e83a9 {
    margin-bottom: 0 !important;
}
.elementor-10 .elementor-element.elementor-element-63a18bf {
    margin-top: 0 !important;
}

/* Mobile counter box: smaller, more compact, outlined numbers (like desktop). */
@media (max-width: 767px) {
    body .elementor-10 .elementor-element-beddb75 .elementor-inner-column > .elementor-widget-wrap {
        padding: 12px 8px 12px !important;
    }
    body .elementor-10 .elementor-element-beddb75 .elementor-counter-number-wrapper,
    body .elementor-10 .elementor-element-beddb75 .elementor-counter-number,
    body .elementor-10 .elementor-element-beddb75 .elementor-counter-number-suffix {
        font-size: clamp(24px, 7.4vw, 32px) !important;
        line-height: 1 !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        -webkit-text-stroke: 1px #ffce59 !important;
    }
    body .elementor-10 .elementor-element-beddb75 .philantrop_heading {
        font-size: 12px !important;
        margin-top: 6px !important;
    }
    body .elementor-10 .elementor-element-7bcf582 > .elementor-widget-wrap { padding: 10px 8px !important; }
    body .elementor-10 .elementor-element-beddb75 .philantrop_video_button_text { font-size: 13px; }
}

/* Desktop: keep the large "Faith" word inside the page instead of running off the right edge. */
@media (min-width: 768px) {
    body .elementor-10 .elementor-element-eb1535a {
        left: auto !important;
        right: 6vw !important;
        width: auto !important;
    }
}

/* Programs carousel: remove the empty band under the "More causes" row. */
.elementor-10 .elementor-element.elementor-element-8968e49 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.elementor-10 .elementor-element.elementor-element-8968e49 .elementor-container {
    padding-bottom: 0 !important;
}

/* Parallax band before the Faith section: taller, with the photo held still while you scroll. */
@media (min-width: 768px) {
    .elementor-10 .elementor-element.elementor-element-c1e83a9 {
        min-height: 92vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding-top: 180px !important;
        padding-bottom: 200px !important;
        background-attachment: fixed !important;
    }
}

/* ── Stretched-section reset ────────────────────────────────────────────────
 * Elementor JS normally recalculates width/left on .elementor-section-stretched
 * to bleed edge-to-edge. Without the full WP/Elementor stack those inline
 * styles remain at stale viewport values (e.g. width:2432px; left:-546px)
 * and cause horizontal overflow. Reset them so every section fills the page. */
.elementor-10 .elementor-section-stretched {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    position: relative !important;
}

/* Homepage "Who We Are" editorial section */
.gsf-home-about-band {
    padding: clamp(56px, 7vw, 104px) 0;
    background: transparent;
    color: #26352c;
}
.gsf-home-about-shell {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}
.gsf-home-about-media {
    position: relative;
    border-radius: 4px 72px 4px 4px;
    overflow: hidden;
    background: #e6e3da;
    box-shadow: 0 24px 56px rgba(26, 40, 31, .12);
}
.gsf-home-about-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.gsf-home-about-kicker {
    margin: 0 0 14px !important;
    color: #99751f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.gsf-home-about-copy h2 {
    margin: 0 0 22px;
    color: #25372c;
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.12;
}
.gsf-home-about-lead {
    margin: 0 0 16px;
    color: #26352c;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.65;
}
.gsf-home-about-body {
    margin: 0;
    color: #5f6b63;
    font-size: 16px;
    line-height: 1.8;
}
.gsf-home-about-actions {
    margin-top: 28px;
}
@media (max-width: 860px) {
    .gsf-home-about-shell {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .gsf-home-about-copy {
        order: 1;
    }
    .gsf-home-about-media {
        order: 2;
        border-radius: 4px 48px 4px 4px;
    }
}

/* Hero slider navigation: restore original white box, remove arrow gap,
   and keep it cleanly above the dark counter box on smaller screens */
.elementor-10 .philantrop_content_slider_widget .philantrop_slider_nav_buttons .philantrop_prev,
.elementor-10 .philantrop_content_slider_widget .philantrop_slider_nav_buttons .philantrop_next {
    margin: 0 !important;
}
@media (min-width: 768px) and (max-width: 1680px) {
    .elementor-10 .elementor-element.elementor-element-937c6a6 .philantrop_causes_slider_navigation_container {
        bottom: 195px !important;
        right: 0 !important;
        z-index: 6 !important;
    }
    .elementor-10 .elementor-element.elementor-element-937c6a6 .philantrop_slider_nav_buttons {
        padding: 20px 28px !important;
        border-radius: 10px 0 0 10px !important;
    }
}
@media (max-width: 767px) {
    .elementor-10 .elementor-element.elementor-element-937c6a6 .philantrop_causes_slider_navigation_container {
        bottom: 60px !important;
        right: 0 !important;
        z-index: 6 !important;
    }
    .elementor-10 .elementor-element.elementor-element-937c6a6 .philantrop_slider_nav_buttons {
        padding: 12px 18px !important;
        border-radius: 8px 0 0 8px !important;
    }
}

/* Homepage ticker ribbon: replace the blue demo band with Good Soil forest green */
.elementor-10 .elementor-element.elementor-element-263e371d .philantrop_ticker_line {
    background-color: #26352c !important;
    color: #ffffff !important;
}
.elementor-10 .elementor-element.elementor-element-263e371d .philantrop_ticker_divider:before,
.elementor-10 .elementor-element.elementor-element-263e371d .philantrop_ticker_divider:after {
    background: #ffce59 !important;
}
