.header {
    position: fixed;
    top: 0px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    height: 88px;
    padding: 15px max(4%, calc((100% - 1180px)/2));
    direction: ltr;
    z-index: 100;
    background: #06111f;
    color: #edf3ff;
    border-bottom: 1px solid #ffffff06
}

.logo-wraper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 155px;
    height: 48px;
    color: white;
    direction: ltr;
    font: 700 17px Arial, sans-serif
}

.logo-wraper img {
    object-fit: contain
}

.avan-logo-mark {
    font: 900 43px Arial, sans-serif;
    color: white;
    transform: skew(-12deg)
}

.menoes-container {
    margin-left: auto;
    direction: rtl
}

.menoes-container ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none
}

.header .menu li a,
.header .page_item a {
    color: #dce4f1;
    font-size: 14px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    text-shadow: none;
    border-bottom: 2px solid transparent
}

.menu li a {
    text-align: center;
    position: relative;
}

.menu li a::after {
    content: "";
    position: absolute;
    background: linear-gradient(115deg, #157dff, #0761ef);
    width: 80%;
    height: 2px;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transition: all 0.2s linear;
}

.menu li a:hover::after {
    transform: translateX(-50%) scale(1);

}

.header .sub-menu {
    display: none;
    position: absolute;
    background: #0b1c30;
    padding: 15px;
    min-width: 160px
}

.header li:hover>.sub-menu,
.header li:focus-within>.sub-menu {
    display: block
}

.avan-header-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    direction: rtl;
    padding: 11px 18px;
    border-radius: 6px;
    background: #0769f8;
    color: white;
    font-size: 13px;
    white-space: nowrap
}

.burgermenoContainerDiv {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #244262;
    border-radius: 6px;
    padding: 8px
}

.burgermenoContainerDiv span {
    display: block;
    width: 22px;
    height: 2px;
    background: #b9d4ff;
    transition: transform .2s, opacity .2s
}

.burgermenoContainerDiv[aria-expanded=true] .line1 {
    transform: translateY(8px) translateX(5px) rotate(65deg);
}

.burgermenoContainerDiv[aria-expanded=true] .line2 {
    opacity: 1;
    transform: translateY(2px);
}

.burgermenoContainerDiv[aria-expanded=true] .line3 {
    transform: translateY(-8px) translateX(-5px) rotate(297deg);
}

.side-menoes-container {
    display: none
}



.header a:focus-visible,
.header button:focus-visible {
    outline: 2px solid #70beff;
    outline-offset: 4px
}

@media(max-width:800px) {
    .header {
        height: 76px;
        gap: 14px;
        padding-inline: 5%
    }

    .menoes-container {
        display: none
    }

    .side-menoes-container {
        /* background: linear-gradient(90deg, #08244599, #06111f 46%); */
        backdrop-filter: blur(7px);
        width: 75%;
        max-width: 350px;
        display: block;
        position: fixed;
        top: 50%;
        right: 50%;
        transform: translateY(-50%) translateX(50%);
        padding: 25px;
        z-index: 101;
        border-radius: 999px;
         background: #08244599; 
        border: 1px solid var(--primary-color);
        border-radius: 51px 14px 30px 20px;
        box-shadow: 0 20px 40px #0a1a2d69;
        direction: rtl;
        transition: all .2s;
    }

    .side-menoes-container[hidden] {
        visibility: hidden;
        opacity: 0;
    }

    .burgermenoContainerDiv {
        display: flex;
        flex-shrink: 0
    }

    .avan-header-cta {
        margin-left: auto;
        font-size: 12px;
        padding: 9px 12px
    }

    .logo-wraper {
        width: 125px;
        font-size: 14px
    }

    .side-menoes-container:not([hidden]) {
        visibility: visible;
        opacity: 1;

    }

    .side-menoes-container ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px
    }

    .side-menoes-container a {
        color: #e0eafa;
        font-size: 16px
    }

    .side-menoes-container .sub-menu {
        padding: 12px 18px
    }

    .side-menoes-container li {
        line-height: 1.8
    }
}

@media(max-width:370px) {
    .avan-header-cta {
        display: none
    }
}

/* Brand and reference navigation */
.header {
    height: 82px;
    background: linear-gradient(90deg, #08244599, #06111f 46%);
    gap: 28px
}

.logo-wraper {
    width: auto;
    min-width: 150px;
    height: 44px;
    gap: 11px;
    line-height: 1;
    direction: ltr
}

.logo-wraper .avan-brand-symbol {
    width: 43px;
    height: 33px;
    object-fit: contain;
    flex: none
}

.avan-brand-name {
    font: 700 16px Vazirmatn, Arial, sans-serif;
    white-space: nowrap;
    color: #fff
}

.menoes-container ul {
    gap: 29px
}

.header .menu li a,
.header .page_item a {
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-size: 13px;
    padding: 13px 0;
    font-weight: 450
}

.header .menu li a:hover {
    color: #fff
}

.header .current-menu-item>a,
.header .current_page_item>a {
    border-bottom-color: #88c3dc
}

.avan-header-cta {
    min-height: 42px;
    padding: 9px 20px;
    border: 1px solid #318dff55;
    border-radius: 6px;
    background: linear-gradient(115deg, #157dff, #0761ef);
    font-weight: 500;
    font-size: 12px;
    gap: 20px;
    transition: background .2s, box-shadow .2s
}

.avan-header-cta:hover {
    box-shadow: 0 4px 22px #0868fc44
}

@media(min-width:701px) and (max-width:950px) {
    .header {
        padding-inline: 4%;
        gap: 18px
    }

    .logo-wraper {
        min-width: 130px
    }

    .menoes-container {
        display: block
    }

    .menoes-container ul {
        gap: 20px
    }

    .avan-header-cta {
        padding-inline: 14px
    }

    .burgermenoContainerDiv {
        display: none
    }
}

@media(max-width:700px) {
    .header {
        height: 74px;
        padding-inline: 5%;
        gap: 12px
    }

    .menoes-container {
        display: none
    }

    .logo-wraper {
        min-width: 0;
        gap: 8px
    }

    .logo-wraper .avan-brand-symbol {
        width: 35px;
        height: 28px
    }

    .avan-brand-name {
        font-size: 14px
    }

    .burgermenoContainerDiv {
        display: flex;
        margin: 0;
        width: 38px;
        height: 38px;
        padding: 8px
    }

    .avan-header-cta {
        display: flex;
        min-height: 38px;
        padding: 8px 12px;
        gap: 12px;
        margin-left: auto;
        font-size: 11px
    }



    .side-menoes-container .menu li a {
        display: block;
        padding: 5px 0;
        font-size: 25px
    }

    .side-menoes-container .menu {
        align-items: stretch
    }
}

@media(max-width:350px) {
    .header {
        gap: 8px;
        padding-inline: 4%
    }

    .avan-header-cta {
        padding-inline: 8px
    }

    .avan-brand-name {
        font-size: 12px
    }

    .logo-wraper .avan-brand-symbol {
        width: 30px
    }
}