:root {
  --NavActiveLink: #d4af08;
  --NavHover: #3b000f;
}
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  height: 70px;
  justify-content: end;
  align-items: center;
  padding: 0px 29px;
  border-radius: 50px;
}

.nav {
  flex-direction: row;
  display: flex;
  height: 70px;
  justify-content: end;
  align-items: center;
  padding: 0 29px;
  border-radius: 50px;
}
.nav ul {
  list-style: none;
}
.nav ul li {
  display: inline-block;
  margin: 5px 15px;
  color: aliceblue;
  text-align: right;
}
.nav ul li a {
  font-weight: 700;
  text-decoration: none;
}
nav li a.active {
  color: #ecc24e;
  border-bottom: 2px solid #ecc24e;
}

.nav__link {
  list-style: none;
}
.nav__link li {
  display: inline-block;
  margin: 5px 15px;
}
.nav__link li a:hover {
  color: var(--NavHover);
}
.nav__link li a {
  font-family: "Titillium Web", sans-serif;
  font-weight: 300;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  font-size: 16px;
}
.nav__link li a.active {
  color: var(--NavActiveLink);
  border-bottom: 2px solid var(--NavActiveLink);
}
.mg-top-40 {
  margin-top: 40px;
}
.mg-l-10 {
  margin-left: 10px;
}
.mg-r-10 {
  margin-right: 10px;
}

@media only screen and (max-width: 577px) {
  .mob-nav-overlay {
    background-color: #302f3cbe;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    left: -580px;
  }

  .overlayactive {
    animation: ease 0.5s showover forwards;
  }
  @keyframes showover {
    0% {
      left: -580px;
    }
    50% {
      left: -580px;
    }
    100% {
      left: 0px;
    }
  }
  .overlayNotactive {
    animation: ease 0.6s Hidover forwards;
  }
  @keyframes Hidover {
    0% {
      left: 0px;
    }
    50% {
      left: 0px;
    }
    100% {
      left: -580px;
    }
  }

  .overflow-active {
    overflow: hidden;
  }
  .nav {
    position: absolute;
    height: 100vh;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    padding: 20px;
    width: 65%;
    top: 0;
  }
  .nav.activeNav {
    animation: ease 0.7s showNav forwards;
  }
  @keyframes showNav {
    0% {
      left: -431px;
    }
    50% {
      left: -431px;
    }
    100% {
      left: 0px;
    }
  }

  .nav.notactiveNav {
    left: -431px;
    animation: ease 0.7s hideNav backwards;
  }
  @keyframes hideNav {
    0% {
      left: 0px;
    }
    50% {
      left: -431px;
    }
    100% {
      left: -431px;
    }
  }
  .nav img {
    margin: 0 auto;
  }

  nav {
    align-self: stretch;
  }
  nav::before {
    padding: 10px 0;
    text-align: center;
    font-family: "Yekanbakh";
    content: "روانکاران نوین اندیش پایدار(سهامی خاص)";
    display: block;
    width: 100%;
    height: 15px;
    color: var(--yellow);
  }
  .nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .nav__link li {
    display: flex;
    margin: 0 0;
    padding: 15px 5px;
  }
  .nav__link li:hover {
    background-color: #97a1a156;
    border-radius: 5px;
  }
  .nav__link li a {
    font-size: 20px;
  }

  .btn {
    position: absolute;
    top: 15px;
    right: 5%;
    width: 35px;
    cursor: pointer;
    z-index: 999;
  }

  .btn span {
    display: block;
    width: 100%;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    position: relative;
  }

  span + span {
    margin-top: 7px;
  }

  .isactive span:nth-child(1) {
    animation: ease 0.7s top forwards;
  }

  .not-active span:nth-child(1) {
    animation: ease 0.7s top-2 forwards;
  }

  .isactive span:nth-child(2) {
    animation: ease 0.7s scaled forwards;
  }

  .not-active span:nth-child(2) {
    animation: ease 0.7s scaled-2 forwards;
  }

  .isactive span:nth-child(3) {
    animation: ease 0.7s bottom forwards;
  }

  .not-active span:nth-child(3) {
    animation: ease 0.7s bottom-2 forwards;
  }

  @keyframes top {
    0% {
      top: 0;
      transform: rotate(0);
    }
    50% {
      top: 9px;
      transform: rotate(0);
    }
    100% {
      top: 9px;
      transform: rotate(45deg);
    }
  }

  @keyframes top-2 {
    0% {
      top: 9px;
      transform: rotate(45deg);
    }
    50% {
      top: 9px;
      transform: rotate(0deg);
    }
    100% {
      top: 0;
      transform: rotate(0deg);
    }
  }

  @keyframes bottom {
    0% {
      bottom: 0;
      transform: rotate(0);
    }
    50% {
      bottom: 9px;
      transform: rotate(0);
    }
    100% {
      bottom: 9px;
      transform: rotate(135deg);
    }
  }

  @keyframes bottom-2 {
    0% {
      bottom: 9px;
      transform: rotate(135deg);
    }
    50% {
      bottom: 9px;
      transform: rotate(0);
    }
    100% {
      bottom: 0;
      transform: rotate(0);
    }
  }

  @keyframes scaled {
    50% {
      transform: scale(0);
    }
    100% {
      transform: scale(0);
    }
  }

  @keyframes scaled-2 {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
}
