.header-main {
    min-height: 80px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-main .header-left {
    flex: 0 0 auto;
}

.header-main .header-right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center !important;
}

.header-main .mean__menu-wrapper {
    width: 100%;
}

.header-main .main-menu ul {
    white-space: nowrap;
}

.header-main .main-menu > nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-main:has(.header-logout-btn) .main-menu ul li {
    margin-inline-end: 20px;
}

.header-main:has(.header-logout-btn) .main-menu ul li a {
    font-size: 15px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.header-actions {
    flex: 0 0 auto;
    gap: 12px;
    margin-left: 8px;
}

.header-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 60px !important;
}

.header-main .main-menu ul li a {
    padding-top: 10px;
    padding-bottom: 10px;
}

.header-main .main-menu ul li .submenu {
    width: auto;
    min-width: 310px;
    max-width: 360px;
}

.header-main .main-menu ul li .submenu li a {
    white-space: normal;
    line-height: 1.4;
    padding-right: 34px;
}

.header-main .main-menu ul li .submenu li.has-dropdown > a {
    padding-right: 42px;
}

.header-main .main-menu ul li .submenu li .submenu {
    width: auto;
    min-width: 280px;
    max-width: 320px;
}

.header-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--p3-clr, #002f87);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.header-logout-btn:hover,
.header-logout-btn:focus {
    background: var(--p1-clr, #1bcfc9);
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

.header-logout-btn--mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.offcanvas__logo img {
    display: block;
    width: auto;
    max-height: 96px;
}

@media (max-width: 1499px) {
    .header-main:has(.header-logout-btn) .main-menu ul li {
        margin-inline-end: 14px;
    }

    .header-main:has(.header-logout-btn) .main-menu ul li a {
        font-size: 14px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 1399px) {
    .header-main:has(.header-logout-btn) .main-menu ul li {
        margin-inline-end: 12px;
    }

    .header-main:has(.header-logout-btn) .main-menu ul li a {
        font-size: 13px;
    }

    .header-logout-btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}

@media (max-width: 1199px) {
    .header-main {
        min-height: 72px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-logo img {
        max-width: 138px;
        max-height: 56px !important;
    }

    .header-actions {
        margin-left: 0;
    }
}

/* Site-wide: speed up all WOW/animate.css animations by 50% */
.animated {
    -webkit-animation-duration: 0.5s !important;
    animation-duration: 0.5s !important;
}

/* Hide mouse follower remnants */
.mouse-follower {
    display: none !important;
}

.header-main .main-menu ul li .submenu li.has-dropdown > a > .submenu-arrow {
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
}
