/* Mobile Footer Optimization */

/* Footer mobile layout fixes */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem !important;
    }
    
    .footer .container {
        padding: 0 1rem !important;
    }
    
    .footer .row {
        display: block !important;
        width: 100% !important;
    }
    
    .footer .col,
    .footer .col-lg-3,
    .footer .col-md-6,
    .footer .col-sm-12 {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin-bottom: 2rem !important;
        display: block !important;
        flex: none !important;
    }
    
    .footer h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .footer p {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
    }
    
    .footer .btn-link {
        font-size: 0.9rem !important;
        padding: 0.25rem 0 !important;
        text-align: left !important;
        display: block !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        color: #ccc !important;
        border: none !important;
        background: none !important;
    }
    
    .footer .btn-link:hover {
        color: #fff !important;
        text-decoration: underline !important;
    }
    
    /* Copyright section mobile fix */
    .footer .copyright {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #555 !important;
    }
    
    .footer .copyright .row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .footer .copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Social media buttons mobile */
    .footer .btn-social {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.9rem !important;
    }
}

/* Force footer layout override on mobile */
@media (max-width: 768px) {
    .footer .row.g-5 {
        display: block !important;
        margin: 0 !important;
    }
    
    .footer .row.g-5 > .col {
        padding: 0 !important;
        margin: 0 0 2rem 0 !important;
    }
    
    /* Social media section spacing */
    .footer .d-flex.pt-2 {
        padding-top: 1rem !important;
        justify-content: flex-start !important;
    }
    
    /* Icons and text alignment */
    .footer .fa {
        margin-right: 0.5rem !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 0.5rem !important;
    }
    
    .footer .container {
        padding: 0 0.5rem !important;
    }
    
    .footer h4 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer p {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .footer .btn-link {
        font-size: 0.8rem !important;
        padding: 0.15rem 0 !important;
    }
    
    .footer .copyright .col-md-6 {
        font-size: 0.75rem !important;
    }
    
    .footer .btn-social {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }
}