/* Goals Mobile Fix - Highest Priority Overrides */

/* Completely hide the goals image on all devices */
.goals-image {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    max-height: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    z-index: -9999 !important;
}

/* Equal card dimensions for mobile */
@media (max-width: 991px) {
    .goals-content {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .goals-cards {
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .goals-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .goal-card {
        width: 100% !important;
        min-height: 180px !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 20px !important;
        text-align: center !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }
    
    .goal-card h3 {
        height: auto !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 10px 0 !important;
    }
    
    .goal-card p {
        height: auto !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
}

/* Specific fix for 480×1040 resolution */
@media (width: 480px), (max-width: 480px) {
    .goals-image {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .goal-card {
        min-height: 180px !important;
        margin-bottom: 15px !important;
    }
}
