/* Mobile Menu Styles */

/* Mobile header */
.title-bar {
    background: #6CA6D9;
    padding: 0.7rem;
    display: none;
}

/* Show mobile menu on small screens */
@media screen and (max-width: 63.9375em) {
    .title-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Menu button */
    .menu-icon {
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
    }
    
    .menu-icon::after {
        background: #fff;
        box-shadow: 0 7px 0 #fff, 0 14px 0 #fff;
    }
    
    /* Mobile menu styles */
    .top-bar {
        padding: 0;
    }
    
    .top-bar ul.menu {
        background: #6CA6D9;
        width: 100%;
    }
    
    .top-bar ul.menu > li > a {
        color: white;
        padding: 1rem;
        font-weight: bold;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .top-bar ul.menu > li > a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Submenu styles */
    .top-bar .submenu {
        background: rgba(0,0,0,0.1);
        margin-left: 0;
    }
    
    .top-bar .submenu a {
        color: #fff;
        padding: 0.8rem 1rem 0.8rem 2rem;
        font-size: 0.9em;
    }
    
    .top-bar .submenu a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Active state */
    .top-bar .active > a {
        background: #3D7AB3;
    }
}

/* Desktop styles */
@media screen and (min-width: 64em) {
    .top-bar {
        background: #6CA6D9;
        padding: 0 1rem;
    }
    
    .top-bar ul.menu {
        background: transparent;
    }
    
    .top-bar ul.menu > li > a {
        color: white;
        padding: 1rem 1.2rem;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    .top-bar ul.menu > li > a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .top-bar .submenu {
        background: #6CA6D9;
        border: none;
        border-radius: 0 0 4px 4px;
    }
    
    .top-bar .submenu a {
        color: white;
        padding: 0.7rem 1.2rem;
    }
    
    .top-bar .submenu a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    /* Active state */
    .top-bar .active > a {
        background: #3D7AB3;
    }
}
