/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Version: 1.0
*/

/* =========================
   SDG WHEEL
   ========================= */
.sdg-wheel {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 80px auto;
}
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.center-logo img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sdg-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:
        rotate(calc(-90deg + 21.17deg * (var(--i) - 1)))
        translate(280px)
        rotate(calc(90deg - 21.17deg * (var(--i) - 1)));
}
.sdg-item img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    margin-left: -40px;
    margin-top: -40px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.sdg-item img:hover {
    transform: scale(1.15) translateY(-5px);
}

/* =========================
   BUTTON
   ========================= */
.elementor-button {
    min-width: 180px;
    text-align: center;
}


/* =========================
   MOBILE - max 921px
   ========================= */
@media (max-width: 921px) {

   
    /* SDG Wheel */
    .sdg-wheel {
        width: 360px;
        height: 360px;
        margin: 50px auto;
    }
    .center-logo img {
        width: 120px;
        height: 120px;
        padding: 10px;
    }
    .sdg-item {
        transform:
            rotate(calc(-90deg + 21.17deg * (var(--i) - 1)))
            translate(145px)
            rotate(calc(90deg - 21.17deg * (var(--i) - 1)));
    }
    .sdg-item img {
        width: 42px;
        height: 42px;
        margin-left: -21px;
        margin-top: -21px;
        border-radius: 8px;
    }

    /* Footer */
    .wp-block-social-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .footer-widget-area .widget,
    .ast-footer-widget-area .widget {
        text-align: center !important;
    }
    .ast-footer-row {
        flex-direction: column !important;
        align-items: center !important;
    }
    .ast-footer-widget-area {
        width: 100% !important;
        text-align: center !important;
    }
 }

/* Off-canvas submenu toggle fix */
.ast-offcanvas-menu .menu-item-has-children .ast-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
}


/* =========================
   HHO FOOTER MOBILE FIX
   ========================= */
@media (max-width: 921px) {

    /* MASTER FIX: Astra footer stack properly */
    .ast-builder-footer-grid-columns {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    /* All sections full width */
    .site-footer-primary-section-1,
    .site-footer-primary-section-2,
    .site-footer-primary-section-3,
    .site-footer-primary-section-4 {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        float: none !important;
        flex: 0 0 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 15px 20px !important;
        text-align: center !important;
    }

    /* Logo section center fix */
    .site-footer-primary-section-1 {
        border-bottom: 1px solid rgba(0,0,0,0.08) !important;
        margin-bottom: 15px !important;
        padding-bottom: 0px !important;
    }

    .site-footer-primary-section-1 img {
        max-width: 180px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Headings center */
    .site-footer-primary-section-2 h2,
    .site-footer-primary-section-3 h2,
    .site-footer-primary-section-4 h2 {
        text-align: center !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    /* Links center clean */
    .site-footer-primary-section-2 a,
    .site-footer-primary-section-3 a,
    .site-footer-primary-section-4 a {
        text-align: center !important;
        display: block !important;
        font-size: 14px !important;
        padding: 4px 0 !important;
    }

    /* Social icons center */
    .wp-block-social-links {
        justify-content: center !important;
    }
}
/* =========================
   DONATION PAGE - CARD BALANCE FIX
   ========================= */
.mission-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}