/* HEADER  STARTS HERE*/
header {
    width: 100%;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.inner-site-header {
    /* padding: 35px 120px 0; */
    padding-top: clamp(20px, calc(20px + 15 * ((100vw - 320px) / (1900 - 320))), 35px);
    padding-left: clamp(20px, calc(20px + 100 * ((100vw - 320px) / (1900 - 320))), 120px);
    padding-right: clamp(20px, calc(20px + 100 * ((100vw - 320px) / (1900 - 320))), 120px);
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 38px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid #0073AE;
    background-color: #FFFFFF;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #003768;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu {
    display: flex;
    gap: 38px;
}

.menu li {
    list-style: none;
    align-items: center;
    display: flex;
    gap: 10px;
    position: relative;
}

.menu li.hover-underline {
    position: relative;
}

.menu li.hover-underline:hover::after {
    content: "";
    position: absolute;
    bottom: 25%;
    left: 0;
    width: 100%;
    height: 4px;

    background: url("../images/underline.png") no-repeat center;
    background-size: cover;
}

.menu-item {
    position: relative;
}

.dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dropdown-toggle img {
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.menu-item.has-dropdown:hover .dropdown {
    display: block;
}

/* Dropdown items */
.dropdown-item a {
    display: block;
    padding: 8px 15px;
    color: #000;
    text-decoration: none;
}

.dropdown-item a:hover {
    background: #f5f5f5;
}

.menu-item a {
    text-transform: none;
    font-weight: 500;
    color: #5F604C;
    line-height: 100px;
    letter-spacing: 0%;
    text-decoration: none;
	width:100%;
}

.dropdown-item a {
    line-height: 120%;
}

.header-button {
    padding: 16px 16px 16px 28px;
    text-decoration: none;
    color: #003768;
    font-size: 18px;
    font-weight: 800;
    line-height: 120%;
    letter-spacing: 0%;
    background-color: #FFFFFF;
    border: 1px solid #0073AE;
}

/* HEADER ENDS HERE*/
@media(min-width:1601px) {
    .inner-site-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        column-gap: 40px;
    }

    .inner-site-header>img {
        justify-self: start;
    }

    .site-header-actions {
        display: contents;
    }

    .main-nav {
        justify-self: center;
    }

    .header-button {
        justify-self: end;
    }
}

@media(max-width:1600px) {
    /* .inner-site-header {
        padding-left: 40px;
        padding-right: 40px;
    } */

    .site-header-actions {
        gap: 24px;
    }

    .menu {
        gap: 24px;
    }

    .menu-item a {
        line-height: 120%;
        font-size: 14px;
    }

    .header-button {
        padding: 14px 14px 14px 22px;
        font-size: 16px;
        gap: 14px;
    }

}

@media(max-width:1200px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header {
        z-index: 1000;
    }

    .inner-site-header {
        position: relative;
        z-index: 1002;
    }

    .inner-site-header>img {
        position: relative;
        z-index: 1003;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1003;
    }

    .site-header-actions {
        position: fixed;
        inset: 0;
        min-height: 100dvh;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 32px;
        padding: 120px 24px 40px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        overflow-y: auto;
    }

    .site-header.is-menu-open .site-header-actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .main-nav {
        width: 100%;
    }

    .menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }

    .menu li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 55, 104, 0.15);
        padding: 18px 0;
    }

    .menu li.hover-underline:hover::after {
        content: none;
        display: none;
    }

    .menu-item a {
        color: #003768;
        font-size: 28px;
        font-weight: 800;
        line-height: 120%;
        text-decoration: none;
    }

    .menu > .menu-item.has-dropdown > a {
        display: block;
        padding-right: 56px;
    }

    .dropdown-toggle {
        position: absolute;
        top: 13px;
        right: 0;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(0, 115, 174, 0.28);
    }

    .dropdown-toggle img {
        transition: transform 0.25s ease;
    }

    .menu-item.is-dropdown-open .dropdown-toggle img {
        transform: rotate(180deg);
    }

    .dropdown {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        background-color: #F4FAFD;
        border-left: 3px solid #0073AE;
        margin-top: 10px;
        padding: 8px 0 8px 16px;
    }

    .menu-item.has-dropdown:not(.is-dropdown-open):hover .dropdown {
        display: none !important;
    }

    .menu-item.has-dropdown.is-dropdown-open .dropdown,
    .menu-item.has-dropdown.is-dropdown-open:hover .dropdown {
        display: block !important;
    }

    .dropdown-item a {
        font-size: 18px;
        font-weight: 500;
        color: #003768;
        padding: 12px 0;
    }

    .dropdown .dropdown-item {
        border-bottom: 0;
        display: block;
        padding: 0;
    }

    .header-button {
        width: 100%;
        justify-content: center;
        font-size: 18px;
        padding: 18px 22px;
    }
}

@media(min-width:601px) and (max-width:768px) {
    .site-header {
        position: unset;
    }
}

@media(max-width:600px) {
    .site-header {
        position: unset;
    }

}
