/*
 * NPL Sports Pro Theme - Header & Footer Styles
 * File: Assets/css/footer.css
 */

/* ===================================================================
 * TABLE OF CONTENTS
 * 1. Footer Styles
 * 2. Responsive Styles - Footer
 * =================================================================== */

.footer-widgets-area { 
    padding: 60px 0; 
    background-color: #0010a0; 
    color: #fff; 
}
.footer-widgets-area a { 
    color: #fff; 
    opacity: 0.8; 
    text-decoration: none; 
}
.footer-widgets-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
}
.footer-widget-title { 
    font-size: 16px; 
    text-transform: uppercase; 
    margin-top: 0; 
    margin-bottom: 20px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); 
}
.footer-widget ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.sub-footer-area { 
    padding: 25px 0; 
    background-color: #2828fa; 
    color: #fff; 
    font-size: 14px; 
}
.sub-footer-area .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.sub-footer-area a { 
    color: #eee; 
    text-decoration: none; 
}

/* --- Menu display logic with Wrap Fix --- */
.sub-footer-area .desktop-footer-nav .menu,
.sub-footer-area .mobile-footer-nav .menu { 
    display: flex; 
    flex-wrap: wrap; /* CRITICAL: Prevents overlapping by wrapping items */
    list-style: none; 
    margin: 0; 
    padding: 0; 
    gap: 15px 20px; /* Vertical and Horizontal gaps */
}

/* By default, show the desktop menu and hide the mobile one */
.mobile-footer-nav {
    display: none;
}
.desktop-footer-nav {
    display: block;
}

@media (max-width: 768px) { 
    .footer-widgets-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    } 
    
    .sub-footer-area {
        padding: 30px 15px; /* More breathing room on mobile */
    }

    .sub-footer-area .container { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center;
    } 

    .sub-footer-area .mobile-footer-nav .menu {
        justify-content: center; /* Center menu items on mobile */
        gap: 10px 15px;
    }
    
    .copyright-text { 
        order: 2; 
        text-align: center; 
        width: 100%;
        font-size: 13px;
        line-height: 1.6;
    } 
    
    /* On mobile, hide the desktop menu and show the mobile one */
    .desktop-footer-nav {
        display: none;
    }
    .mobile-footer-nav {
        display: block;
        order: 1; 
        width: 100%;
    }
}

@media (max-width: 768px) { 
    .footer-widgets-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    } 
    .sub-footer-area {
        padding: 30px 15px; 
    }
    .sub-footer-area .container { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center;
    } 
    .sub-footer-area .mobile-footer-nav .menu {
        justify-content: center; 
        gap: 10px 15px;
    }
    .copyright-text { 
        order: 2; 
        text-align: center; 
        width: 100%;
        font-size: 13px;
        line-height: 1.6;
    } 
    .desktop-footer-nav {
        display: none;
    }
    .mobile-footer-nav {
        display: block;
        order: 1; 
        width: 100%;
    }
}