﻿/* =========================
   FIXED HEADER
========================= */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;   
}

.top-headaer p {
     font-weight: bold;
    font-size: 1.20em;
}

/* =========================
   MOBILE TOGGLE BUTTON
========================= */
.menu-toggle {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #007acc;
    color: #fff;
    padding: 14px;
    cursor: pointer;
    z-index: 1001;
    box-sizing: border-box;
}

/* =========================
   NAVIGATION
========================= */
nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #007acc;
    z-index: 999;
    overflow: visible;
}

    /* MAIN MENU */
    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

        /* MENU ITEMS */
        nav ul li {
            position: relative;
        }

            /* LINKS */
            nav ul li a {
                display: block;
                padding: 15px 20px;
                color: #fff;
                text-decoration: none;
                white-space: nowrap;
            }

                nav ul li a:hover {
                    background: #005f99;
                }

            nav ul li ul l a:hover {
                background: #007acc;
            }

 /* =========================
   DESKTOP SUBMENU
========================= */
            nav ul li ul {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                background: #005f99;
                min-width: 180px;
                flex-direction: column;
            }

            /* SHOW SUBMENU ON HOVER */
            nav ul li:hover > ul {
                display: flex;
            }

            /* SUBMENU LINKS */
            nav ul li ul li a {
                padding: 12px 15px;
            }

/* =========================
   MOBILE STYLES
========================= */
@media (max-width:768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        top: 108px;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        overflow-x: hidden;
    }

        /* MAIN MENU MOBILE */
        nav ul {
            display: none;
            flex-direction: column;
            width: 100%;
        }

            nav ul.open {
                display: flex;
            }

            /* SUBMENU MOBILE */
            nav ul li ul {
                position: static;
                display: none;
                width: 100%;
                background: #006bb3;
            }

            nav ul li.show-submenu > ul {
                display: flex;
            }
}

.content {
    margin-top: 140px;
    padding: 20px;
}
