nav {
    position: sticky;
    top: 0px;
    z-index: 1050;
    background: #ffffff;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
    padding: 0 20rem;
    height: 3.5rem;
}

nav.custom-border {
    border-radius: 0;
    border-bottom: 1px solid #0090D6;
}

.lang-toggle {
    /* position: relative; */
    /* padding: 10px; */
}

.lang-btn {
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.1);
    background-color: rgb(255, 255, 255);
    border: none;
    cursor: pointer;
    padding: 3px 7px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    /* transition: background-color 0.3s ease; */
    gap: 5px;
}


.lang-btn img {
    margin-right: 5px;
}

.lang-btn span {
    font-size: 11px;
    color: black;
}

nav .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* max-width: 1440px; */
    height: 3.5rem;
    margin: auto;
    user-select: none;
    transition: height 0.3s ease;

    .right-panel {
        display: flex;
        flex-wrap: nowrap;
        flex-grow: 1;
        align-items: center;
        justify-content: end;
        gap: 1rem;

        .toggle-group {
            display: flex;
            align-items: center;
        }
    }
}



nav .header .logo {
    flex-grow: 0;
    /* flex: 0 0 30%; */
    /* margin-top: 16px; */
    /* padding: 0 12rem 0 8rem; */
}

nav .header .logo .nav-img-logo {
    height: 1.8rem;
    /* mix-blend-mode: multiply;
    transition: height 0.3s ease-in-out;
    -webkit-transition: height 0.3s ease-in-out;
    -moz-transition: height 0.3s ease-in-out;
    -ms-transition: height 0.3s ease-in-out;
    -o-transition: height 0.3s ease-in-out;
    margin-bottom: 1rem; */
}

.check-container {
    display: flex;
    align-items: center;
}

.checkbtn {
    display: none;
    width: 3rem;
    color: #000000;
    cursor: pointer;
}

#check, #check-search {
    display: none;
}

.trigram-icon, .search-icon {
    font-size: 1.3rem;
    color: #0090D6 !important;
}

.times-icon, .search-times-icon {
    font-size: 2.1rem;
    color: #0090D6;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 0 0.5rem;
    list-style: none;
    margin: 0;
    /* padding: 0 8rem 0 9rem ; */
    /* flex: 0 0 61%; */
    justify-content: flex-end;
}

nav ul li a {
    display: inline-block;
    color: #292a75;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 7px 10px;
    transition: all 100ms;
}

nav ul li:not(.active) a:hover {
    text-shadow:
        0.1px 0.1px 0 currentColor,
        0.1px -0.1px 0 currentColor,
        -0.1px 0.1px 0 currentColor,
        -0.1px -0.1px 0 currentColor;
   
}

nav ul li.main-menu .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    
}
.sub-menu {
    display: block;
    position: absolute;
    top: auto;
    width: 10%;
    background-color: #ffa022;
    padding: 3px;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
    transition-delay: .6s;
    transition: opacity 1s ease, visibility 1s ease;
    border-radius: 10px;
}
.sub-menu.scrolled {
    top: 3.5rem;
}
.sub-text-menu{
    color: #fff;
    font-weight: 200 !important;
}
.sub-text-menu:hover{
    color:#ffffff !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px !important; 
}
.sub-menu:after {
    bottom: 100%;
    left: 20%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(136, 183, 213, 0);
    border-bottom-color: #ffffff;
    border-width: 10px;
    margin-left: -20px;
}
.sub-menu:hover {
    display: block;
    opacity: 1;
} 
li.active a {
    font-weight: bold;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
}
@media (max-width: 1440px){
    /* nav .header .logo .nav-img-logo {
        margin-top: 0.5rem;
    } */
    nav .header .logo {
        padding: 0;
    }
    nav ul {
        gap: 0 ;
    }
    nav {
        padding: 0 12rem;
    }
}

@media (max-width: 768px) {
    nav{
        padding: 0 2rem;
        top: -1px;
        /* height: 4.5rem; */
        box-shadow: 0 1px 15px 0 rgba(0,0,0,0.1);
    }
    .move{
        margin-top: 5rem;
    }
    .togle{
        display: none;
    }
    nav .header {
        flex-direction: row;
        /* margin-bottom: 3rem; */
    }
   /* .lang-toggle{
    left: 3rem;
   } */
    /* nav .header .logo {
        padding: 0 2rem;
        flex: 0 0 auto;
    } */
    /* nav .header .logo img{
        margin-top: 1.5rem !important;
        width: 100%;
        height: 2rem !important;
    } */
    nav ul {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        position: absolute;
        top: 5rem;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        gap:0.4rem;
    }
    
    nav ul.left-ul {
        left: 0;
        padding: 0 2rem;
        top: 3.4rem;
    }

    nav ul li a {
        padding: 10px;
        font-size: 1.2rem;
        position: relative;
        left: 5px;
    }

    .checkbtn {
        display: block;
        font-size: 2rem;
        padding-right: 2rem;
        float: right;
        margin-left: 1rem;
        margin-right: -10px;
        margin-bottom: 0.6rem;
    }

    .times-icon {
        display: none;
    }

    #check:checked + .times-icon {
        display: block;
    }

    #check:checked + ul {
        left: 0;
    }
    .sub-menu.active {
        display: block !important;
        position: relative;
        top: 0;
        visibility: visible !important;
        opacity: 1 !important;
        left: 1rem;
        padding: 0;
        height: 0;
        .sub-text-menu{
             color: #292a75;
             font-size: 1.2rem;
        }
        .sub-text-menu:hover{
            color:#292a75 !important;
        }
    }

    .menu-toggle {
        font-size: 14px;
    }

    #toggle-icon {
        font-size: 14px !important;
        /* padding-left: 12rem; */
        float: right;
        position: absolute;
        right: 3rem; 
        margin-right: 0;
        /* text-align: center; */
        margin-top: 1rem;
    }
}
@media (max-width: 480px) {
    nav .header {
        flex-direction: row;
    }

    /* nav .header .logo {
        padding: 0;
    } */


    nav ul li a {
        padding: 9px 6px;
    }
   
}
@media (max-width: 320px) {
    nav .header {
        flex-direction: row;
        padding: 0 0.1rem;
    }

    /* nav .header .logo{
        padding: 0;
    } */
}

@keyframes wipe-in-down {
    from {
      clip-path: inset(0 0 100% 0);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }
  
  [transition-style="in:wipe:down"] {
    animation: 2.5s cubic-bezier(.25, 1, .30, 1) wipe-in-down both;
  }

