/* ===== FOOTER CENTER ALIGNMENT FIX - HIGHEST PRIORITY ===== */

/* Override footer main margin from custom.css with highest specificity */
html body footer .footer-main {
    margin: 0 auto 0 3rem !important;
    max-width: 1200px !important;
    width: 100% !important;
    padding: 1.5rem 1rem !important;
    gap: 0.5rem !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 0.5rem !important;
}

/* Adjust footer container for better balance - override custom.css */
html body footer .footer1 .container-fluid {
    padding-left: 1.8rem !important;
    padding-right: 1.2rem !important;
    max-width: none !important;
}

/* Fine-tune footer box positioning - make more compact */
html body footer .footer-box {
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Specific adjustment for dealer location column */
html body footer .footer-box-dealer {
    margin-left: 0px !important;
}

/* Make footer titles more compact - override custom.css */
html body footer .footer-title {
    margin-bottom: 4px !important;
}

html body footer .footer-title h5 {
    margin-bottom: 2px !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

/* Make footer content more compact */
html body footer .footer-contant {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html body footer .footer-contant ul.list-unstyled li {
    margin-bottom: 0.4rem !important;
}

html body footer .footer-contant ul.list-unstyled li:last-child {
    margin-bottom: 0 !important;
}

/* Compact dealer locations */
html body footer .dealer-item {
    margin-bottom: 0.25rem !important;
}

html body footer .dealer-locations-continuous .dealer-column {
    gap: 0 !important;
}

/* Logo spacing */
html body footer .footer-logo {
    gap: 0.8rem !important;
}

/* Mobile responsive adjustments - highest priority */
@media (max-width: 768px) {
    html body footer .footer1 .container-fluid {
        padding-left: 1.2rem !important;
        padding-right: 1rem !important;
    }
    
    html body footer .footer-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem 0 !important;
        gap: 0.3rem !important;
        column-gap: 0.3rem !important;
        grid-template-columns: 1fr 1fr !important;
    }
    
    html body footer .footer-box {
        padding-left: 1px !important;
        padding-right: 1px !important;
        margin-bottom: 0.8rem !important;
    }
    
    /* Compact titles on mobile */
    html body footer .footer-title {
        margin-bottom: 3px !important;
    }
    
    html body footer .footer-title h5 {
        margin-bottom: 1px !important;
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
    }
    
    /* Mobile content spacing */
    html body footer .footer-contant ul.list-unstyled li {
        margin-bottom: 0.3rem !important;
    }
    
    html body footer .dealer-item {
        margin-bottom: 0.2rem !important;
    }
    
    html body footer .footer-logo {
        gap: 0.6rem !important;
    }
}

/* Tablet adjustments - highest priority */
@media (min-width: 769px) and (max-width: 1024px) {
    html body footer .footer1 .container-fluid {
        padding-left: 1.6rem !important;
        padding-right: 1.1rem !important;
    }
    
    html body footer .footer-main {
        margin: 0 auto 0 2rem !important;
        padding: 1.3rem 1rem !important;
        gap: 0.4rem !important;
        column-gap: 0.4rem !important;
    }
    
    /* Compact titles on tablet */
    html body footer .footer-title {
        margin-bottom: 4px !important;
    }
    
    html body footer .footer-title h5 {
        margin-bottom: 2px !important;
        font-size: 0.98rem !important;
        line-height: 1.15 !important;
    }
    
    /* Tablet content spacing */
    html body footer .footer-contant ul.list-unstyled li {
        margin-bottom: 0.35rem !important;
    }
    
    html body footer .dealer-item {
        margin-bottom: 0.22rem !important;
    }
}