/* Make footer links side by side on mobile */
@media (max-width: 767px) {
    /* Make the two link columns appear side by side */
    .row.border-top.py-5 > .col-xl-2 {
        width: 50% !important;
        float: left !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Reduce spacing on mobile */
    .row.border-top.py-5 > .col-xl-2 .widget {
        margin-bottom: 20px !important;
    }
    
    /* Make font smaller on mobile for better fit */
    .row.border-top.py-5 > .col-xl-2 .widget-title {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    
    .row.border-top.py-5 > .col-xl-2 ul li {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
    
    /* Reduce padding on footer */
    .row.border-top.py-5 {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    
    /* Clear float after the two columns */
    .row.border-top.py-5 > .col-xl-3:nth-child(1),
    .row.border-top.py-5 > .col-xl-3:last-child {
        clear: both !important;
        width: 100% !important;
    }
}

/* For very small screens */
@media (max-width: 575px) {
    .row.border-top.py-5 > .col-xl-2 ul li {
        font-size: 12px !important;
        padding: 6px 0 !important;
    }
    
    .row.border-top.py-5 > .col-xl-2 .widget-title {
        font-size: 14px !important;
    }
}

/* Reduce footer padding on mobile */
@media (max-width: 767px) {
    /* Reduce overall footer padding */
    .row.border-top.py-5 {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    /* Reduce padding for all footer sections */
    .row.border-top.py-5 > div {
        margin-bottom: 15px !important;
    }
    
    /* Reduce newsletter section spacing */
    .row.border-top.py-5 > .col-xl-3 .widget {
        margin-bottom: 15px !important;
    }
    
    /* Reduce newsletter title spacing */
    .row.border-top.py-5 > .col-xl-3 .widget-title {
        margin-bottom: 10px !important;
        font-size: 16px !important;
    }
    
    /* Reduce newsletter description spacing */
    .row.border-top.py-5 > .col-xl-3 .widget-description {
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    
    /* Reduce spacing in the first section (ZUWAA MARKETPLACE) */
    .row.border-top.py-5 > .col-xl-3:first-child .widget {
        margin-bottom: 15px !important;
    }
    
    .row.border-top.py-5 > .col-xl-3:first-child .widget-title {
        margin-bottom: 10px !important;
        font-size: 16px !important;
    }
    
    .row.border-top.py-5 > .col-xl-3:first-child .widget-description {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }
    
    /* Reduce spacing in contact list */
    .row.border-top.py-5 > .col-xl-3:first-child ul li {
        padding: 6px 0 !important;
        font-size: 13px !important;
    }
    
    /* Reduce form spacing */
    .subscribe-form .form-fields {
        margin-bottom: 0 !important;
    }
    
    .subscribe-form .input-group {
        margin-bottom: 0 !important;
    }
}

/* For very small screens - even more compact */
@media (max-width: 575px) {
    .row.border-top.py-5 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .row.border-top.py-5 > div {
        margin-bottom: 10px !important;
    }
    
    .row.border-top.py-5 .widget-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .row.border-top.py-5 .widget-description {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }
}