﻿.sidenav, .sidenav-holder {
    display: none;
}

.navbar-holder {
    width: 100%;
    height: 90px;
}

.navbar-holder-mobile {
    width: 100%;
    display: none;
    height: 70px;
}

#header3 {
    /*left: 0;*/
    /*top: 16px;*/
    /*right: 17px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    margin: auto;
    z-index: 1040;
    padding: 15px;
    background-color: var(--header_bcolor1);
    transition: all .25s cubic-bezier(.4,0,.2,1) -.1s;
}

    #header3.header_article {
        position: absolute;
        top: 0;
    }

    #header3.sticky {
        position: fixed;
        box-shadow: 0 16px 12px -10px rgba(60,64,67,42%);
        top: 0;
        right: 0;
        left: 0;
        animation: fadeInHeader3 .4s linear;
    }

@keyframes fadeInHeader3 {
    from {
        opacity: .5;
        top: -90px;
    }

    to {
        opacity: 1;
        top: 0;
    }
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*margin : auto ;*/
    max-width: 1400px;
    height: 100%;
}

#mySidenav hr {
    border: 0;
    opacity: .25;
    margin: 1rem 0;
    color: inherit;
    border-top: 1px solid;
}

.dropdown-content {
    /*left: 0;*/
    right: 0;
    top: 63px;
    display: none;
    z-index: 10000;
    direction: rtl;
    min-width: 160px;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

    .dropdown-content.active {
        display: block;
        animation: flipDropdown .4s linear;
    }

@keyframes flipDropdown {
    from {
        transform: rotateX(90deg);
        opacity: .5
    }

    to {
        transform: rotateY(0deg);
        opacity: 1
    }
}

.side-dropdown {
    display: flex;
    direction: rtl;
    align-items: center;
    flex-direction: row-reverse;
    padding: 12px 16px !important;
    justify-content: space-between;
}

    .side-dropdown:hover .side-dropdown-content {
        display: block;
    }

.side-dropdown-content {
    top: -2px;
    left: -160px;
    display: none;
    z-index: 9000;
    direction: rtl;
    min-width: 160px;
    position: absolute;
    background-color: #f9f9f9;
    transition: all 2s ease-in;
    animation: flipDropdown .4s linear;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.dropdown-content a {
    float: none;
    display: block;
    text-align: right;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--header_fcolor);
    border-bottom: 2px solid transparent;
}

.dropdown-content .content-item:hover {
    color: var(--formButton_hover);
    border-bottom: 2px solid var(--formButton_hover);
}

.left-header {
    color: #fff;
    width: 138px;
    height: 55px;
    border-radius: 35px;
    transition: all ease-in-out .4s;
    background-color: var(--formButton_bcolor1);
}

/*   .left-header:hover {
        background-color: var(--formButton_hover);
    }*/

.search-container {
    left: 120px;
    width: 290px;
    display: flex;
    margin: 0 auto;
    direction: rtl;
    position: absolute;
}

input.search-bar {
    width: 100%;
    height: 40px;
    outline: none;
    margin: 0 auto;
    direction: rtl;
    font-size: 13px;
    border-radius: 10px;
    padding: 0 20px 0 38px;
    border: 1px solid #d0cfce;
}

    input.search-bar:focus {
        color: #363c41;
        transition: 0.35s ease;
        border: 1px solid var(--formButton_bcolor1);
    }

        input.search-bar:focus::-webkit-input-placeholder {
            opacity: 0;
            transition: opacity 0.45s ease;
        }

        input.search-bar:focus::-moz-placeholder {
            opacity: 0;
            transition: opacity 0.45s ease;
        }

        input.search-bar:focus:-ms-placeholder {
            opacity: 0;
            transition: opacity 0.45s ease;
        }

.search-icon {
    left: 32px;
    float: left;
    width: 23px;
    height: 100%;
    position: relative;
}

.panel-login-btn {
    padding: 19px;
    text-decoration: none;
    color: var(--formButton_fcolor);
    font-weight: 500;
    font-size: 16px;
}

.mobile-login-btn {
    width: 30px;
    height: 30px;
    padding: 3px;
    display: none;
    margin: 0px 5px;
    fill: var(--header_fcolor);
}

.mobile-logo-path {
    stroke: var(--formButton_fcolor);
}

.nav-title {
    font-size: 16px;
    color: var(--header_fcolor);
    text-align: right
}

.nav-logo {
    width: auto;
    height: auto;
    max-height: 70px;
}

.content-item {
    font-size: 14px;
    font-weight: 600;
    direction: rtl;
    padding: 18px 0;
    line-height: 24px;
    color: var(--header_fcolor);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
    /*        حقوردی 1403/11/03*/
    .content-item:not(.dropDown-link-1) {
        direction: rtl;
    }

    .content-item:hover {
        color: var(--formButton_hover) !important;
        border-bottom: 3px solid var(--formButton_hover);
    }

@media (max-width:1300px) {
    .nav-title {
        font-size: 17px !important;
    }
}

@media (max-width : 1060px) {
    .content-item {
        font-size: 12px;
    }
}

@media (max-width : 992px) {
    .navbar-holder {
        display: none;
    }

    .navbar-holder-mobile {
        display: block
    }

    #header3 {
        position: fixed;
        top: 0;
        height: 70px;
        padding: 0 15px;
    }

    .nav-logo {
        max-height: 60px
    }

    .left-header {
        width: 57px;
        height: 57px;
        border-radius: 8px;
    }

    .search-container {
        display: none;
    }

    .nav-content {
        display: none !important;
    }

    .mobile-login-btn {
        display: flex;
    }

    .panel-login-btn {
        display: none;
    }

    .sidenav {
        top: 0;
        width: 260px;
        height: 100dvh;
        right: -260px;
        bottom: 0;
        display: flex;
        opacity: 0;
        z-index: 40000;
        position: fixed;
        align-items: center;
        flex-direction: column;
        justify-content: flex-start;
        transition: all ease-in-out 0.5s;
        background-color: var(--formButton_bcolor1);
    }

    .sidenav-holder {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        backdrop-filter: brightness(0.5);
        z-index: 3000;
        transition: all .4s ease-in;
        width: 100%;
    }

    .sidebar-header {
        width: 100%;
        height: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sidenav-content {
        padding-bottom: 5rem;
        max-height: calc(100% - 208px);
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: 1rem;
        width: 80%;
    }

    .search-container-mobile {
        width: 230px;
        display: flex;
        direction: rtl;
        margin: 1rem auto;
        transform: translateX(-10px)
    }

    .sidenav .link-style, .dropDown-link-mobile-1, .dropdown-item-mobile {
        position: relative;
        line-height: 1;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 14px;
        transition: 0.3s;
        text-decoration: none;
        min-width: max-content;
        color: var(--formButton_fcolor);
    }

    .sidenav .sidenav-link:last-of-type {
        border: none;
    }

    .sidenav a:hover {
        color: var(--formButton_fcolor);
    }

    .sidenav div:hover {
        color: var(--formButton_fcolor);
    }

    .sidenav hr {
        width: 100%;
        color: #818181;
    }

    .sidenav .closebtn {
        position: absolute;
        height: 37px;
        aspect-ratio: 1 / 1;
        left: -20px;
        top: 49px;
        padding: 8px;
        border-radius: 50%;
        background-color: #2450ea;
        font-size: 35px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidenav .mobile-turn-content {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px;
        border-radius: 16px;
        align-items: center;
        min-width: max-content;
        justify-content: center;
        border: 3px solid var(--formButton_fcolor);
    }

    .mobile-turn-content a {
        font-size: 15px;
        font-weight: bold;
        color: var(--formButton_fcolor);
    }

    .dropdown-btn-plus, .dropdown-btn-minus {
        position: absolute;
        padding: 4px;
        top: 24%;
        display: flex;
        justify-content: center;
        align-items: center;
        left: 4px;
        aspect-ratio: 1 / 1;
        width: 28px;
        border-radius: 50%;
        background-color: rgb(0 0 0 / 11%);
        font-size: 17px;
    }

    .dropdown-btn-minus {
        display: none;
    }


    .dropdown-content-mobile, .sub-dropdown-content {
        width: 93%;
        display: none;
        direction: rtl;
        min-width: 160px;
    }

        .dropdown-content-mobile a .sub-dropdown-content a {
            opacity: .9;
            float: none;
            display: block;
            padding: 12px 16px;
            text-align: center;
            text-decoration: none;
            color: var(--formButton_fcolor);
        }

        .sub-dropdown-content a {
            color: #d3d3d3;
        }

    .dropdown-content a:hover .sub-dropdown-content a:hover {
        color: var(--formButton_bcolor1);
    }

    .sidenav .bi-chevron-left {
        transition: all .4s ease-in;
    }
}

@media (max-width: 500px) {
    .nav-title {
        font-size: 15px !important;
        text-align: center;
        line-height: 25px;
    }
}
