* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: #003a70;
    color: white;
}

.brand-title {
    display: none;
    margin: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.navbar-links {
    height: 100%;
}

.navbar-links ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    list-style: none;
    position: relative;
}

.navbar-links li a {
    display: block;
    padding: 1rem 1.35rem;
    color: white;
    font-size: 1.2rem;
    line-height: 1.2;
    text-decoration: none;
    font-weight: bold;
}

.navbar-links li:hover {
    background-color: #004f95;
}

.navbar-links .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 280px;
    background-color: #002b52;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.navbar-links .submenu li a {
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    white-space: nowrap;
}

.navbar-links .has-submenu:hover > .submenu,
.navbar-links .has-submenu:focus-within > .submenu {
    display: block;
}

.toggle-button {
    display: none;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggle-button .bar {
    width: 100%;
    height: 3px;
    border-radius: 10px;
    background-color: white;
}

@media (max-width: 800px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-title {
        display: block;
    }

    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links .submenu {
        display: block;
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        background-color: #002b52;
    }

    .navbar-links ul li {
        text-align: center;
    }

    .navbar-links ul li a {
        font-size: 1.05rem;
        padding: 0.5rem 1rem;
    }

    .navbar-links .submenu li a {
        font-size: 0.98rem;
        padding: 0.45rem 1rem;
        white-space: normal;
    }

    .navbar-links.active {
        display: flex;
    }
}
