/* Mobile Footer Responsive Fixes */

/* Fix footer wrapper positioning on mobile */
@media (max-width: 991px) {
    .ast_footer_wrapper {
        position: relative !important;
        z-index: 1;
    }
}

/* Mobile-specific footer adjustments */
@media (max-width: 767px) {
    .ast_footer_wrapper {
        position: relative !important;
        padding: 30px 0;
    }

    /* Fix footer info section on mobile */
    .ast_footer_info {
        text-align: left;
        margin-bottom: 30px;
    }

    .ast_footer_info img {
        max-width: 150px !important;
        margin-bottom: 15px;
    }

    .ast_footer_info p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    /* Fix social media links on mobile */
    .ast_footer_info ul {
        text-align: left;
        margin: 0;
        padding: 0;
    }

    .ast_footer_info ul li {
        display: inline-block;
        margin: 5px;
    }

    .ast_footer_info ul li a {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 14px;
    }

    /* Fix footer widgets on mobile */
    .widget.text-widget {
        margin-bottom: 30px;
        text-align: left;
    }

    .widget-title {
        font-size: 18px;
        margin-bottom: 15px;
        color: #ffffff;
    }

    /* Fix service links on mobile */
    .ast_servicelink ul,
    .ast_sociallink ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ast_servicelink ul li,
    .ast_sociallink ul li {
        margin-bottom: 8px;
    }

    .ast_servicelink ul li a,
    .ast_sociallink ul li a {
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        display: block;
        padding: 5px 0;
        transition: color 0.3s ease;
    }

    .ast_servicelink ul li a:hover,
    .ast_sociallink ul li a:hover {
        color: #ff6f00;
    }

    /* Fix newsletter/mission section on mobile */
    .ast_newsletter p {
        font-size: 14px;
        line-height: 1.5;
        color: #ffffff;
        margin: 0;
    }

    /* Fix get in touch section on mobile */
    .ast_gettouch ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ast_gettouch ul li {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .ast_gettouch ul li i {
        margin-right: 10px;
        color: #ff6f00;
        font-size: 16px;
    }

    .ast_gettouch ul li p,
    .ast_gettouch ul li a {
        color: #ffffff;
        font-size: 14px;
        margin: 0;
    }

    /* Fix copyright section on mobile */
    .ast_copyright_wrapper {
        text-align: left;
        padding: 20px 15px;
    }

    .ast_copyright_wrapper p {
        font-size: 12px;
        color: #ffffff;
        margin: 0;
        line-height: 1.4;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .ast_footer_wrapper {
        padding: 20px 0;
    }

    .ast_footer_info img {
        max-width: 120px !important;
    }

    .ast_footer_info p {
        font-size: 13px;
        padding: 0 10px;
    }

    .widget-title {
        font-size: 16px;
    }

    .ast_servicelink ul li a,
    .ast_sociallink ul li a {
        font-size: 13px;
    }

    .ast_gettouch ul li {
        flex-direction: column;
        text-align: center;
    }

    .ast_gettouch ul li i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .ast_footer_info img {
        max-width: 100px !important;
    }

    .ast_footer_info p {
        font-size: 12px;
    }

    .widget-title {
        font-size: 15px;
    }

    .ast_servicelink ul li a,
    .ast_sociallink ul li a {
        font-size: 12px;
    }
}

/* V2 Layout Mobile Footer Fixes */
@media (max-width: 767px) {
    .as_footer_wrapper {
        padding: 30px 0 !important;
    }

    /* Reorder footer sections for mobile - Logo first, then other sections below */
    .as_footer_wrapper .row {
        display: flex;
        flex-direction: column;
    }

    /* Logo section - appears first on mobile */
    .as_footer_wrapper .col-lg-3:first-child {
        order: 1;
        margin-bottom: 30px;
        width: 100%;
    }

    /* Other footer sections - appear below logo on mobile */
    .as_footer_wrapper .col-lg-3:not(:first-child) {
        order: 2;
        margin-bottom: 25px;
        width: 100%;
    }

    /* Ensure all footer columns take full width on mobile */
    .as_footer_wrapper .col-lg-3 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .as_footer_widget {
        margin-bottom: 30px;
        text-align: left;
    }

    .as_footer_heading {
        font-size: 18px;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .as_footer_logo img {
        max-width: 140px !important;
        margin-bottom: 15px;
    }

    .as_footer_widget p {
        font-size: 14px;
        line-height: 1.5;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .as_footer_widget ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .as_footer_widget ul li {
        margin-bottom: 10px;
    }

    .as_footer_widget ul li a {
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        transition: color 0.3s ease;
    }

    .as_footer_widget ul li a:hover {
        color: #ff6f00;
    }

    .as_footer_widget ul li a span {
        margin-right: 8px;
    }

    .as_contact_list li {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin-bottom: 15px;
    }

    .as_contact_list li i {
        margin-right: 10px;
        color: #ff6f00;
        font-size: 16px;
    }

    .as_contact_list li a {
        color: #ffffff;
        font-size: 14px;
    }

    /* Mission section with QR code */
    .as_footer_widget img {
        max-width: 120px;
        height: auto;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .as_footer_wrapper {
        padding: 20px 0 !important;
    }

    .as_footer_logo img {
        max-width: 120px !important;
    }

    .as_footer_heading {
        font-size: 16px;
    }

    .as_footer_widget p {
        font-size: 13px;
    }

    .as_footer_widget ul li a {
        font-size: 13px;
    }

    /* Mission section QR code smaller on small mobile */
    .as_footer_widget img {
        max-width: 100px;
        height: auto;
    }
}

@media (max-width: 320px) {
    .as_footer_logo img {
        max-width: 100px !important;
    }

    .as_footer_heading {
        font-size: 15px;
    }

    .as_footer_widget p {
        font-size: 12px;
    }

    .as_footer_widget ul li a {
        font-size: 12px;
    }
}
