/* --- Mobile Fixed Footer Navigation Styles --- */

/* By default, hide the mobile footer menu on larger screens */
.mobile-footer-nav {
    display: none;
}

/* On screens smaller than a certain breakpoint (e.g., 768px for tablets/mobiles) */
@media (max-width: 768px) {
    .mobile-footer-nav {
        display: flex; /* Show as flexbox */
        position: fixed; /* Fix to viewport */
        bottom: 0; /* Align to the bottom */
        left: 0;
        width: 100%; /* Full width */
        background-color: #34495e; /* Dark background */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure it's above content */
        justify-content: space-around; /* Distribute items evenly */
        align-items: center;
        padding: 8px 0; /* Vertical padding */
        height: 50px; /* Fixed height for the bar */
    }

    .mobile-footer-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex; /* Make ul a flex container for its items */
        width: 100%; /* Take full width of parent */
        height: 100%; /* Take full height of parent */
    }

    .mobile-footer-nav li {
        flex: 1; /* Each li item takes equal space */
    }

    /* Target the <a> tags within the nav items */
    .mobile-footer-nav a { /* Changed from .nav-item */
        display: flex;
        flex-direction: column; /* Stack icon and text vertically */
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.7); /* Lighter text color */
        font-size: 0.8em; /* Smaller font for text */
        padding: 5px 0;
        transition: color 0.2s;
        height: 100%; /* Make sure the clickable area is tall */
    }

    .mobile-footer-nav a i {
        font-size: 1.5em; /* Icon size */
        margin-bottom: 3px; /* Space between icon and text */
    }

    .mobile-footer-nav a span {
        display: block; /* Ensure text is on its own line */
        white-space: nowrap; /* Prevent text wrapping */
    }

    .mobile-footer-nav a.active {
        color: #ffcc00; /* Yellow for active item */
        font-weight: bold;
    }

    .mobile-footer-nav a:hover {
        color: #ffcc00; /* Yellow on hover */
    }
}