* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: 0 !important;
}

.navbar {
    background: white;
    border-bottom: 1px solid #e6e8eb;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    gap: 1rem;
}

.lang-switcher-wrapper {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 60px;
}

.lang-switcher-wrapper ul {
    list-style: none;
}

.lang-switcher-wrapper>.selected {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #f3f4f6;
    padding: 0 1rem;
}

.lang-switcher-wrapper>.selected>svg {
    width: 1rem;
    height: 1rem;
}

.lang-switcher-wrapper>a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 2.58rem;
    color: #0a2b4a;
    cursor: pointer;
    text-decoration: none;
    padding: 0 0.5rem;
}

.lang-switcher-wrapper>a .caret {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 0.125rem solid #0a2b4a;
    border-bottom: 0.125rem solid #0a2b4a;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -0.25rem;
}

.lang-switcher-wrapper .lang-switcher-dropdown {
    width: 60px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.25s ease-out 0s;
    visibility: hidden;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.25rem;
    top: 2.58rem;
}

.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
}

.has-dropdown.is-open .caret {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
}

.lang-switcher-wrapper .lang-switcher-dropdown li>a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    padding: 0rem 0.5rem !important;
    text-decoration: none;
    color: #0a2b4a;
}

.lang-switcher-wrapper .lang-switcher-dropdown li>a>.caret {
    display: none !important;
}

.lang-switcher-wrapper .lang-switcher-dropdown li>a.active,
.lang-switcher-wrapper .lang-switcher-dropdown li>a:hover,
.lang-switcher-wrapper .lang-switcher-dropdown li>a:focus-within {
    background-color: #f1f3f5;
    border-radius: 4px;
    /* color: white !important; */
}

.contact-us-link-wrapper .contact-us-link {
    height: 2.58rem;
    background: var(--main-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    padding: 0 1rem;
}

.contact-us-link-wrapper .contact-us-link:hover {
    background: var(--main-hover-color);
}

.contact-us-link-wrapper .contact-us-link {
    color: white !important;
    margin: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.contact-us-link-wrapper .caret {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 0.125rem solid white;
    border-bottom: 0.125rem solid white;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -0.25rem;
}

.contact-us-link-wrapper .contact-us-dropdown {
    opacity: 0;
    position: absolute;
    transition: opacity 0.25s ease-out 0s;
    visibility: hidden;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.contact-us-link-wrapper .contact-us-dropdown li {
    padding: 0.25rem 0.125rem !important;
}

.contact-us-link-wrapper .contact-us-dropdown li>a {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    padding: 0rem 0.5rem !important;
    white-space: nowrap;
}

.contact-us-link-wrapper .contact-us-dropdown li>a:hover,
.contact-us-link-wrapper .contact-us-dropdown li>a:focus-within {
    background-color: var(--main-color);
    border-radius: 4px;
    color: white !important;
}

.contact-us-link-wrapper .contact-us-dropdown li.social-links {
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.625rem;
    border-top: 1px solid #e6e8eb;
    margin-top: 0.5rem;
    padding: 1rem 0.5rem !important;
}

.contact-us-link-wrapper .contact-us-dropdown li.social-links>a {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #f1f3f5;
    padding: 0.25rem;
    border-radius: 0.625rem;
}

.contact-us-link-wrapper .contact-us-dropdown li.social-links>a:hover {
    background-color: #e2e6ea;
}

#header {
    position: fixed;
    z-index: 2000;
    width: 100%;
    top: 0;
}

#header nav {
    line-height: 2.58rem;
    position: relative;
    transition: background 0.25s ease-out 0s;
    z-index: 200;
}

#header nav a {
    text-decoration: none;
    color: #0a2b4a;
    /* font-weight: 500; */
}


#header nav.top {
    background: none repeat scroll 0 0 white;
    color: #A6ABAB;
    height: 67px;
    z-index: 11;
}

#header .nav-wrapper {
    width: 100%;
}

#header nav.main {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#header nav.main .nav-btns {
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
}

#header nav.main a {
    color: #0a2b4a;
    /* font-weight: 500; */
}

.logo {
    height: 48px;
}

.logo a {
    height: 100%;
}

.logo svg {
    fill: var(--main-color);
    width: auto;
    height: 100%;
    overflow: visible;
}

.logo svg * {
    fill: currentColor;
}

.header-top {
    padding-left: 0;
    margin-left: 22%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background: #767676;
}

.nav-flex.active {
    margin-left: 0;
    box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.4);
}

#header nav.main>ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#header nav.main ul {
    list-style: none;
    line-height: 2.58rem;
}

ul.menu li {
    position: relative;
}

#header nav.main ul.menu>li>a,
#header nav.main ul.menu li ul>li a {
    text-decoration: none;
    /* font-weight: 500; */
    font-size: 0.9rem;
    padding: 0 0.6rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    color: #000000;
}

#header nav.main ul.menu>li>a::after,
#header nav.main ul.menu li ul>li a::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #f3f4f6;
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#header nav.main ul.menu>li.active>a::after,
#header nav.main ul.menu>li>a:hover::after,
#header nav.main ul.menu li ul>li:hover a::after,
#header nav.main ul.menu li ul>li.active a::after {
    opacity: 1;
    transform: scale(1);
}

#header nav.main ul.menu>li.active>a,
#header nav.main ul.menu>li>a:hover,
#header nav.main ul.menu li ul>li:hover a,
#header nav.main ul.menu li ul>li.active a {
    text-decoration: none !important;
    background: #f3f4f6;
    color: var(--main-color);
}

ul.menu li:first-child {
    border-left: medium none;
}

ul.menu li>a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

ul.menu li.dropdown .caret {
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 0.125rem solid #374151;
    border-bottom: 0.125rem solid #374151;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-top: -0.25rem;
}

/* rotate caret when open */
ul.menu li.dropdown:hover .caret,
ul.menu li.dropdown:focus-within .caret {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
}

ul.menu li ul {
    min-width: 207px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.25s ease-out 0s;
    visibility: hidden;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: .5rem;
}

ul.menu li ul li {
    white-space: nowrap;
    border-bottom: 1px solid #f7f8fa;
}

ul.menu li ul li:last-child {
    border-bottom: 0 none;
}

ul.menu li:hover ul li a {
    background-image: none;
    color: #fff;
    line-height: 2.5rem;
    transition: background 0.25s ease-out 0s;
    margin: 0.0625rem 0.25rem;
}

@media only screen and (max-width: 1080px) {
    #header nav {
        display: none;
    }

    #header nav.main ul.menu li {
        display: none;
    }

    #header nav.main .search-button-wrapper {
        display: none;
    }

    #wrapper::after {
        background: #767676 no-repeat;
        opacity: 1;
    }

    .landing-page-box .ai-list {
        font-size: 18px;
    }

    .landing-page-box .ai-list h2 {
        font-size: 26px;
        margin-bottom: 15px;
        margin-top: 14px !important;
    }
}

@media only screen and (max-width: 1410px) {

    .main .nav-btns .contact-us-link-wrapper {
        display: flex;
        justify-content: flex-end;
        line-height: 2.58rem;
    }

    .main .nav-btns .contact-us-link-wrapper .contact-us-dropdown {
        top: 3rem;
    }
}

@media only screen and (max-width: 1300px) {
    .nav-wrapper:has(.search-pod:focus-within) .menu a {
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media only screen and (max-width: 1240px) {
    .nav-wrapper:has(.search-pod:focus-within) .menu a {
        font-size: 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 768px) {
    body {
        -webkit-text-size-adjust: none;
    }

    .logo {
        height: 3rem;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {

    #header {
        height: auto !important;
    }

    #header nav {
        display: none;
    }

    #wrapper.mobile-open #content,
    #wrapper.mobile-open #content-news {
        display: none;
    }

    #wrapper.mobile-open {
        margin-bottom: 0 !important;
    }

    #header nav.main ul.menu li {
        display: none;
    }

    .search-pod {
        padding: 0 0.375rem !important;
    }

    .search-pod:focus-within {
        width: 230px !important;
    }
}

.search-pod {
    display: flex;
    align-items: center;
    background: #f0f0f2;
    border-radius: 14px;
    padding: 0.25rem 0.375rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    width: 132px;
}

.search-pod form {
    display: flex;
    width: 100%;
}

.search-pod:focus-within {
    width: 230px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Logic to dim nav links when searching */
.nav-wrapper:has(.search-pod:focus-within) .menu {
    opacity: 0.3;
    pointer-events: none;
}

.nav-wrapper:has(.search-pod:focus-within) .menu a {
    font-size: 0.75rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 0.5rem 0.75rem;
    width: 100%;
    font-size: 0.9rem;
}

.search-trigger {
    background: none;
    border: none;
    border-radius: 10px;
    color: #0a2b4a;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
}

.search-trigger svg {
    width: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}