/* Mobile Navigation Enhancements */
.nav-bar {
    background: #1c5897;
    color: rgb(223, 208, 208);
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.nav-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
}

.nav-bar a:hover {
    text-decoration: underline;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .nav-bar {
        white-space: normal !important;
        overflow-x: visible !important;
        overflow: visible !important;
        padding: 15px 10px;
        line-height: 1.8;
        font-size: 14px;
    }
    
    .nav-bar a {
        display: inline-block;
        margin: 5px 6px;
        padding: 8px 12px;
        background-color: rgba(255, 255, 255, 0.15);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        transition: all 0.3s ease;
        white-space: normal;
        font-size: 13px;
    }
    
    .nav-bar a:hover {
        background-color: rgba(255, 255, 255, 0.25);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .nav-bar {
        font-size: 12px;
        padding: 12px 8px;
        line-height: 2;
    }
    
    .nav-bar a {
        margin: 4px 4px;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    body {
        margin: 10px !important;
        padding: 10px !important;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .nav-bar {
        font-size: 11px;
        padding: 10px 6px;
    }
    
    .nav-bar a {
        margin: 3px 3px;
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* Ensure all navigation bars follow these rules */
.nav-bar,
div.nav-bar {
    box-sizing: border-box;
}

/* Override any conflicting styles */
@media (max-width: 768px) {
    .nav-bar {
        overflow: visible !important;
        white-space: normal !important;
    }
    
    /* Fix for any inline styles that might override */
    .nav-bar[style*="white-space"] {
        white-space: normal !important;
    }
    
    .nav-bar[style*="overflow"] {
        overflow: visible !important;
    }
}