/**
 * Footer Styles
 * - Footer CTA boxes
 * - Donate button
 * - Typography
 * - Social icons
 */

/* Footer Donate Now button - match header Donate button styling */
.xb-support_box .xb-item--sup-button .sup-btn,
.xb-support_box .xb-item--sup-button a.thm-btn.thm-btn--two.sup-btn {
    background-color: #ffffff !important;
    color: #E9530E !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    transition: all 0.3s ease;
}

.xb-support_box .xb-item--sup-button .sup-btn:hover,
.xb-support_box .xb-item--sup-button a.thm-btn.thm-btn--two.sup-btn:hover {
    background-color: #ffffff !important;
    color: #E9530E !important;
}

/* Hide SVG icons from footer CTA buttons */
.xb-support_box .xb-item--sup-button .sup-btn svg {
    display: none !important;
}

/* Footer CTA boxes - equal height */
.elementor-widget-int-footer-cta .row {
    display: flex !important;
    flex-wrap: wrap;
}

.elementor-widget-int-footer-cta .row>[class*="col-"] {
    display: flex !important;
}

.elementor-widget-int-footer-cta .xb-support_box {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.elementor-widget-int-footer-cta .xb-support_box .xb-item--holder {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.elementor-widget-int-footer-cta .xb-support_box .xb-item--sup-button {
    margin-top: auto !important;
}

/* Footer typography */
footer.xb-footer .section-title p,
footer.xb-footer .section-title p a,
footer.xb-footer .xb-footer-copyright p,
footer.xb-footer .xb-footer-copyright p a {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer.xb-footer .section-title p a:hover,
footer.xb-footer .xb-footer-copyright p a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Footer social icons */
footer.xb-footer .xb-footer-social a svg {
    height: 44px;
}

footer.xb-footer .elementor-widget-image {
    display: flex;
    justify-content: center;
}


/* Footer CTA - stack boxes full-width on tablet + mobile (including iPad Pro widths) */
@media (max-width: 1199px) {
    .elementor-widget-int-footer-cta .row.g-0>div.col-lg-4 {
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .elementor-widget-int-footer-cta .row.g-0>div.col-lg-4>.xb-support_box {
        width: 100% !important;
    }

    footer.xb-footer .xb-footer-social a svg {
        height: 32px !important;
    }

    /* Elementor grid spacing: match editor-set 50px gap */
    .elementor-element.elementor-element-54dbe2c {
        gap: 50px !important;
    }

}

/* Footer bottom grid: on mobile, make two containers side-by-side and one full-width */
@media (max-width: 767px) {
    footer.xb-footer .elementor-element.elementor-element-68d26cd {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px !important;
        align-items: start;
    }

    footer.xb-footer .elementor-element.elementor-element-68d26cd .elementor-element.elementor-element-f905f77 {
        grid-column: 1 / 2 !important;
    }

    footer.xb-footer .elementor-element.elementor-element-68d26cd .elementor-element.elementor-element-53bf3fb {
        grid-column: 2 / 3 !important;
    }

    footer.xb-footer .elementor-element.elementor-element-68d26cd .elementor-element.elementor-element-31c90b5 {
        grid-column: 1 / -1 !important;
    }

    footer.xb-footer .xb-footer-social a svg {
        height: 19px !important;
    }
}