:root {
    --nav-text-color: #fff;
    --nav-lastchild-home: #3e96e2;
}

.lang-container {
    text-decoration: none;
    background: transparent;
    width: auto;
    padding: 0;
    display: flex;
    align-items: center;
    order: 99;
}

.lang-flag {
    height: 1rem;
    width: auto;
}

.lang-country {
    display: block;
    line-height: 1;
    padding-top: 0;
    color: inherit;
}

@media screen and (max-width: 991px) {
    .btn .lang-country {
        color: var(--nav-text-color);
        font-weight: 600;
    }

    .lang-container {
        margin: 0 auto;
    }

    .navbar #main-menu li {
        justify-content: center;
    }

    .navbar.home-navbar #main-menu li:last-child {
        background: var(--nav-lastchild-home);
        padding: 0;
        width: 100%;
        justify-content: center;
        clip-path: unset;
    }

    .navbar.home-navbar #main-menu li:last-child:before {
        content: none;
    }

    body .navbar.home-navbar #main-menu,
    body .navbar.home-navbar #main-menu:has(li:last-child:hover) {
        border: 0 !important;
        transition: none;
    }
}