/* =====================================================
HEADER
===================================================== */

.header-container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =====================================================
TOP BAR
===================================================== */

.top-bar {
    width: 100%;
    min-height: 40px;

    background: #123b78;

    color: #ffffff;
}


.top-bar-container {
    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.top-contact {
    display: flex;

    align-items: center;

    gap: 25px;
}


.top-contact span {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 12px;

    font-weight: 500;
}


.top-contact i {
    color: #dbe9ff;

    font-size: 15px;
}


.office-hours {
    font-size: 12px;

    font-weight: 500;
}


/* =====================================================
MAIN HEADER
===================================================== */

.main-header {
    width: 100%;

    height: 90px;

    position: sticky;

    top: 0;

    z-index: 1000;

    background: #ffffff;

    border-bottom:
        1px solid #e6e9ee;

    transition:
        box-shadow .3s ease;
}


.main-header.scrolled {
    box-shadow:
        0 4px 20px
        rgba(20, 48, 80, .08);
}


.main-header > .header-container {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =====================================================
LOGO
===================================================== */

.government-logo {
    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;

    text-decoration: none;
}


.logo-image {
    width: 55px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.logo-image img {
    width: 55px;

    height: 62px;

    object-fit: contain;
}


.logo-title {
    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.logo-title strong {
    color: #202f48;

    font-size: 17px;

    font-weight: 700;
}


.logo-title span {
    color: #69768d;

    font-size: 12px;

    font-weight: 500;

    margin-top: 3px;
}


/* =====================================================
NAVIGATION
===================================================== */

.main-nav {
    height: 100%;

    display: flex;

    align-items: center;

    gap: 25px;
}


.nav-item {
    position: relative;

    height: 100%;

    display: flex;

    align-items: center;

    color: #37445a;

    font-size: 13px;

    font-weight: 500;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color .25s ease;
}


.nav-item:hover {
    color: #173f7a;
}


.nav-item.active {
    color: #173f7a;
}


.nav-item.active::after {
    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 2px;

    background: #2d61b5;
}


/* =====================================================
LOGIN BUTTON
===================================================== */

.login-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 0 17px;

    margin: 0;

    border: none;

    border-radius: 8px;

    background: #123f7a;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;

    appearance: none;

    -webkit-appearance: none;

    outline: none;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.login-button i {
    font-size: 17px;

    line-height: 1;

    pointer-events: none;
}


.login-button span {
    line-height: 1;

    pointer-events: none;
}


.login-button:hover {
    background: #0d3263;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px
        rgba(18, 63, 122, .18);
}


.login-button:active {
    transform: translateY(0);

    box-shadow: none;
}


.login-button:focus {
    outline: none;
}


.login-button:focus-visible {
    outline: 3px solid
        rgba(45, 97, 181, .25);

    outline-offset: 2px;
}


/* =====================================================
MOBILE MENU
===================================================== */

.mobile-menu {
    display: none;

    border: none;

    background: transparent;

    color: #173f7a;

    font-size: 29px;

    cursor: pointer;
}


/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .main-nav {
        gap: 16px;
    }


    .nav-item {
        font-size: 12px;
    }


    .login-button {
        font-size: 12px;

        padding:
            0 14px;
    }

}


/* =====================================================
TABLET / MOBILE
===================================================== */

@media (max-width: 850px) {

    .top-bar {
        min-height: 38px;
    }


    .office-hours {
        display: none;
    }


    .main-header {
        height: 78px;
    }


    .mobile-menu {
        display: block;

        padding: 0;

        line-height: 1;
    }


    .main-nav {

        position: absolute;

        top: 78px;

        left: 0;

        width: 100%;

        height: auto;

        padding:
            18px 5%;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: #ffffff;

        border-top:
            1px solid #edf0f4;

        box-shadow:
            0 10px 25px
            rgba(0, 0, 0, .08);

        transform:
            translateY(-15px);

        opacity: 0;

        pointer-events: none;

        transition:
            all .25s ease;
    }


    .main-nav.active {

        transform:
            translateY(0);

        opacity: 1;

        pointer-events: auto;
    }


    .nav-item {

        height: auto;

        padding:
            13px 5px;

        font-size: 14px;
    }


    .nav-item.active::after {
        display: none;
    }


    /* LOGIN BUTTON ON MOBILE */

    .login-button {

        width: 100%;

        min-height: 45px;

        margin-top: 8px;

        justify-content: center;
    }

}


/* =====================================================
SMALL MOBILE
===================================================== */

@media (max-width: 600px) {

    .header-container {
        width: 90%;
    }


    .top-contact span:nth-child(2) {
        display: none;
    }


    .logo-title strong {
        font-size: 14px;
    }


    .logo-title span {
        font-size: 10px;
    }


    .logo-image,
    .logo-image img {

        width: 46px;

        height: 52px;
    }

}