/* Emergency fix for overlapping service cards in mobile */
/* This file has the highest specificity to override all other CSS */

@media screen and (max-width: 767px) {
    /* Nuclear option - force service cards to display properly */
    body .elementor-14 .elementor-element.elementor-element-7348756c,
    body .elementor-14 .elementor-element.elementor-element-747e417f,
    body .elementor-14 .elementor-element.elementor-element-72214744,
    html body .elementor-14 .elementor-element.elementor-element-7348756c,
    html body .elementor-14 .elementor-element.elementor-element-747e417f,
    html body .elementor-14 .elementor-element.elementor-element-72214744 {
        width: 100% !important;
        display: block !important;
        float: none !important;
        clear: both !important;
        position: static !important;
        margin-bottom: 50px !important;
        margin-top: 0px !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Force proper spacing on populated elements */
    body .elementor-14 .elementor-element.elementor-element-7348756c > .elementor-element-populated,
    body .elementor-14 .elementor-element.elementor-element-747e417f > .elementor-element-populated,
    body .elementor-14 .elementor-element.elementor-element-72214744 > .elementor-element-populated,
    html body .elementor-14 .elementor-element.elementor-element-7348756c > .elementor-element-populated,
    html body .elementor-14 .elementor-element.elementor-element-747e417f > .elementor-element-populated,
    html body .elementor-14 .elementor-element.elementor-element-72214744 > .elementor-element-populated {
        margin: 0px !important;
        padding: 25px !important;
        position: relative !important;
        width: 100% !important;
        display: block !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Fix the actual infoboxes */
    body .elementor-14 .elementskit-infobox,
    html body .elementor-14 .elementskit-infobox {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 350px !important;
        width: 100% !important;
        margin: 0px !important;
        padding: 30px !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        z-index: 1 !important;
    }
    
    /* Ensure buttons stay in their place */
    body .elementor-14 .box-footer,
    html body .elementor-14 .box-footer {
        position: relative !important;
        margin-top: auto !important;
        padding-top: 20px !important;
        width: 100% !important;
        display: block !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Extra spacing for telephony card to prevent overlap with logo */
    body .elementor-14 .elementor-element.elementor-element-747e417f,
    html body .elementor-14 .elementor-element.elementor-element-747e417f {
        margin-bottom: 60px !important;
    }
    
    /* Logo section gets extra top margin */
    body .elementor-14 .elementor-element.elementor-element-72214744,
    html body .elementor-14 .elementor-element.elementor-element-72214744 {
        margin-top: 40px !important;
    }
}

/* Desktop Services Layout Fix */
.elementor-section .elementor-container {
    flex-wrap: wrap;
}