.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2.5rem;
    gap: 5px;
    z-index: 1000;
}

@media screen and (min-width: 1020px) {
    .header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
}

.nav-toggle:hover,
.nav-wrapper li:hover,
.social-wrapper a:hover,
.nav-btn:hover {
    opacity: 0.9;
    transition: 200ms all;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: start;
    font-size: 16px;
    color: white;
    text-shadow: 0px 0px 1px #3b3b3b;
}

@media screen and (max-width: 1020px) {
    .logo img {
        max-width: 50px;
    }

    .nav-toggle {
        display: block;
        background-color: transparent;
        outline: none;
        border: none;
        color: white;
        cursor: pointer;
        color: #fff;
        font-size: 32px;
    }

    .nav-wrapper.active {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #243253;
        padding: 1rem 1.5rem;
        z-index: 1000;
    }

    .nav-wrapper {
        display: none;
    }

    .nav-wrapper li {
        margin: 5px;
        font-size: 14px;
    }

    .nav-wrapper a {
        color: #ffffff;
    }

    .social.alt {
        display: none;
    }

    .social-wrapper {
        display: flex;
        align-items: center;
        gap: 20px;
        color: white;
        padding: 0;
        justify-content: flex-end;
    }

    .social-wrapper a {
        color: white;
        font-size: 14px;
    }

    .lang {
        padding: 5px 5px;
        border-radius: 5px;
        background: #243253;
        /* width: 100px; */
        width: max-content;
        position: relative;
        border: 1px solid white;
    }

    .lang a {
        color: white;
        margin-top: 10px;
    }

    .lang a i {
        transform: translateY(2px);
    }

    .lang-wrapper {
        display: none;
    }

    .lang-wrapper.active {
        display: block;
        position: absolute;
        top: -25px;
        left: 110px;
        overflow: hidden;
        border-radius: 5px;
        background: #243253;
        color: white;
        font-size: 12px;
        /* width: 100px; */
        width: max-content;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        border: 1px solid white;
    }

    [dir="rtl"] .lang-wrapper.active {
        left: 0;
        right: 110px;
    }

    .nav-btn {
        padding: 5px 5px;
        border-radius: 5px;
        background: #243253;
        /* width: 100px; */
        width: max-content;
        border: 1px solid white;
    }

    .nav-btn a {
        color: white;
    }
}

@media screen and (min-width: 1021px) {
    .logo {
        font-size: 24px;
    }

    .logo img {
        max-width: 65px;
    }

    .nav-toggle {
        display: none;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 20px;
        padding: 0px;
    }

    .nav-wrapper li {
        margin: 0px;
        font-size: 16px;
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
        transition: 250ms all;
    }

    .nav-wrapper li:hover:not(.lang):not(.nav-btn) {
        border-bottom-color: white;
    }

    .nav-wrapper a {
        color: #ffffff;
    }

    .social.real {
        display: none;
    }

    .social-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
        color: white;
        padding: 0;
    }

    .social-wrapper a {
        color: white;
        font-size: 16px;
    }

    .lang {
        padding: 5px 15px;
        border-radius: 5px;
        background: #243253;
        position: relative;
        /* min-width: 80px; */
        width: max-content;
    }

    .lang a {
        color: #ffffff;
    }

    .lang a i {
        transform: translateY(2px);
    }

    .lang-wrapper {
        display: none;
    }

    .lang-wrapper.active {
        display: block;
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        overflow: hidden;
        border-radius: 5px;
        background: #243253;
        color: white;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .nav-btn {
        padding: 5px 10px;
        border-radius: 5px;
        background: #243253;
        /* min-width: 90px; */
        width: max-content;
    }

    .nav-btn a {
        color: #ffffff;
    }
}

.social-item {
    margin-right: 5px;
}

.lang-wrapper div {
    padding: 5px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
}

.lang-wrapper div:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lang-flag {
    width: 25px;
}
