/* Mobile Service Cards Styling - Home Page */

/* Only apply on mobile devices (max-width: 767px) */
@media only screen and (max-width: 767px) {
    
    /* Hide all text content on mobile */
    #service-view .animated-service-heading,
    #service-view .ainmaited-service-text,
    #service-view ul {
        display: none !important;
    }
    
    /* Make each row a card container with flex column layout */
    #service-view .row {
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 25px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Reset all column styling and remove order classes */
    #service-view .col-md-5,
    #service-view .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        order: unset !important;
    }
    
    /* Force image column to display first - find parent of image */
    #service-view .below-our-professtional-img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        border-radius: 0 !important;
        display: block;
        margin-bottom: 0;
    }
    
    /* Make sure the column containing the image appears first */
    #service-view .col-md-5:has(.below-our-professtional-img),
    #service-view .col-md-7:has(.below-our-professtional-img) {
        order: 1 !important;
    }
    
    /* Make sure the column containing the button appears second */
    #service-view .col-md-5:has(.read-more-btn),
    #service-view .col-md-7:has(.read-more-btn) {
        order: 2 !important;
        padding: 15px 15px 15px 15px !important;
    }
    
    /* Button positioned below image on the right side */
    #service-view .read-more-btn {
        display: block !important;
        width: auto;
        margin: 5px 0 0 auto !important;
        padding: 12px 30px;
        text-align: center;
        border-radius: 8px;
        font-weight: 700;
        font-size: 15px;
        text-transform: uppercase;
        background-color: #E32329;
        border-color: #E32329;
        color: #fff;
        float: right;
        box-shadow: 0 2px 8px rgba(227, 35, 41, 0.3);
        transition: all 0.3s ease;
    }
    
    #service-view .read-more-btn:hover,
    #service-view .read-more-btn:active {
        background-color: #c41f24;
        border-color: #c41f24;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(227, 35, 41, 0.4);
    }
    
    /* Clear floats after button */
    #service-view .col-md-7::after,
    #service-view .col-md-5::after {
        content: '';
        display: table;
        clear: both;
    }
    
    /* Remove Bootstrap order classes effect */
    #service-view .order-1,
    #service-view .order-2,
    #service-view .order-md-1,
    #service-view .order-md-2 {
        order: unset !important;
    }
    
    /* Section spacing */
    #service-view .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Service view section */
    .service-view-mb-top {
        padding-top: 40px !important;
    }
    
    /* Heading adjustment */
    #service-view .our-professtional-heading {
        font-size: 28px !important;
        margin-bottom: 30px !important;
        padding: 15px 10px;
    }
}
