.nav-wrap {
  flex: 1 0;
  align-items: center;
  flex-wrap: wrap;
}

.nav-left {
  margin: 0 0 0 64px;
  flex: 1 0;
  font-family: 'Inter', sans-serif;
  padding:0;
}

@media (max-width: 1127px) {
  .nav-left{
    margin: 0 0 0 24px;
  }
}

.nav-left a {
  color: var(--text-color-dark);
}

.nav-left > li,
.nav-right > li {
  padding: 8px 0;
}
.nav-left li,
.nav-right li {
  margin: 0 12px;
  line-height: 1.6;
  display: inline-flex;
  position: relative;
}

@media (max-width: 1127px) {
  .nav-left li,
  .nav-right li {
    margin: 0 8px;
  }
}

.nav-left li.sub-nav-item,
.nav-right li.sub-nav-item {
  display: none;
}
.nav-left li > ul,
.nav-right li > ul {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--card-background-color);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  border-radius: var(--radius-8);
  z-index: 9;
  min-width: 180px;
  max-width: 250px;
  white-space: nowrap;
  transition: all 0.2s;
  transform: translate3d(0, 10px, 0);
  visibility: hidden;
  opacity: 0;
}
.nav-left li > ul.dropdown-menu .sub-nav-item,
.nav-right li > ul.dropdown-menu .sub-nav-item {
  display: block;
}
.nav-left li > ul:focus-within,
.nav-left li > ul:hover,
.nav-right li > ul:focus-within,
.nav-right li > ul:hover {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.nav-left li > ul li,
.nav-right li > ul li {
  display: block;
  padding: 0;
  margin: 0;
}
.nav-left li > ul li:first-child a,
.nav-right li > ul li:first-child a {
  border-top-left-radius: var(--radius-8);
  border-top-right-radius: var(--radius-8);
}
.nav-left li > ul li:last-child a,
.nav-right li > ul li:last-child a {
  border-bottom-left-radius: var(--radius-8);
  border-bottom-right-radius: var(--radius-8);
}
.nav-left li > ul li a,
.nav-right li > ul li a {
  display: flex;
  padding: 0 1rem;
  height: 48px;
  line-height: 48px;
  align-items: center;
}
.nav-left li > ul li a:hover,
.nav-left li > ul li a:focus,
.nav-right li > ul li a:hover,
.nav-right li > ul li a:focus {
  background-color: var(--theme-color);
  color: var(--white);
}
.nav-left li > ul li a svg,
.nav-right li > ul li a svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.nav-right li > ul {
  right: -1rem;
  left: auto;
}
.nav-right .user-detail {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.nav-user:focus-within .nav-user-link::before,
.nav-user:hover .nav-user-link::before {
  opacity: 1;
}

.nav-user-link {
  display: flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  box-shadow: var(--shadow);
  padding: 3px;
  overflow: hidden;
  background-color: var(--body-background-color);
}
.nav-user-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.1s;
}
.nav-user-link::after {
  content: none;
}
.nav-user-link:hover:before,
.nav-user-link:focus:before,
.nav-user-link:focus-within:before {
  opacity: 1;
}
.nav-user-link .icon-wrap {
  position: absolute;
  inset: 3px;
  background-color: var(--border-color);
  border-radius: 50%;
  overflow: hidden;
}
.nav-user-link .icon-wrap svg {
  color: var(--text-color-dark);
  width: 60% !important;
  height: 60% !important;
  opacity: 0.5;
}
.nav-user-link .avatar-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
}

.nav-left > li:first-child,
.nav-right > li:first-child {
  margin-left: 0;
}
.nav-left > li:last-child,
.nav-right > li:last-child {
  margin-right: 0;
}
.nav-left > li > a:not(.btn),
.nav-right > li > a:not(.btn) {
  position: relative;
}
.nav-left > li > a:not(.btn):after,
.nav-right > li > a:not(.btn):after {
  content: '';
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  border-radius: var(--radius-4);
  position: absolute;
  bottom: -2px;
  left: 0;
  opacity: 1;
  transition: width 0.25s;
}
.nav-left > li:hover > a:after,
.nav-right > li:hover > a:after {
  width: 100%;
}

.nav-right > li {
  margin: 0 0.75rem;
}

.nav-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  line-height: 1;
  border: none;
  background: 0 0;
  padding: 0;
  color: var(--text-color-main);
  margin-right: 1.5rem;
}
.nav-icon svg {
  width: 20px;
  height: 20px;
}
.nav-icon:hover {
  color: var(--theme-color);
}
.prev-next-wrap .prev-post-wrap .nav-text {
  text-align: right;
}
.prev-next-wrap .nav-text {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@media (min-width: 1201px) {
  .nav-left li:hover > ul,
  .nav-left li > a:focus + ul,
  .nav-right li:hover > ul,
  .nav-right li > a:focus + ul {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (min-width: 1024px) {
  .nav-left li:hover > ul,
  .nav-left li > a:focus + ul,
  .nav-right li:hover > ul,
  .nav-right li > a:focus + ul {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1024px) {
  .nav-wrap {
    display: none;
  }
  .nav-left {
    margin: 0;
    display: block;
    width: 100%;
    align-self: flex-start;
    flex-grow: 1;
  }
  .nav-left li {
    display: block;
    margin: 0;
    padding: 0;
  }
  .nav-left li a {
    display: flex;
    height: 48px;
    line-height: 48px;
    padding-left: 1rem;
    border-radius: var(--radius-8);
  }
  .nav-left li a:hover {
    background-color: var(--tag-background-color);
  }
  .nav-left li:hover a::after {
    content: none;
  }
  .nav-left li ul {
    display: block;
  }
  .nav-left li > ul {
    display: none;
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translate3d(0, 0, 0);
    box-shadow: none;
    max-width: none;
    z-index: inherit;
    background: transparent;
    top: 0;
    left: 0;
    border: none;
    margin-left: 1rem;
  }
  .nav-left li > ul li:not(:last-of-type) {
    border: 0px;
  }
  .nav-left li > ul li:first-child a,
  .nav-left li > ul li:last-child a {
    border-radius: var(--radius-8);
  }
  .nav-left li > ul li a {
    padding: 0 0 0 1rem;
  }
  .nav-left li > ul li a:hover,
  .nav-left li > ul li a:focus {
    background-color: var(--tag-background-color);
    color: var(--text-color-main);
  }
  .nav-left li.active > ul {
    display: block;
  }
  .nav-icon:last-child {
    margin-right: 0;
  }
  .is-menu-open .nav-wrap {
    display: flex;
    max-height: calc(100vh - 80px);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
  }
  .nav-center {
    display: none;
  }
  .nav-right {
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--border-color);
    justify-content: center;
  }
  .nav-right li > ul {
    display: flex;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    z-index: 9;
    min-width: 180px;
    max-width: 100%;
    white-space: nowrap;
    transition: all 0.2s;
    transform: translate3d(0, 0, 0);
    visibility: visible;
    opacity: 1;
    right: 0;
  }
  .nav-right li > ul li a:hover {
    background-color: transparent;
    color: var(--text-color-main);
  }
  .nav-right li > ul li:not(:last-of-type) {
    border: none;
  }
  .nav-right li .nav-user-link {
    display: none;
  }
  .nav-right .user-detail {
    display: none;
  }
}

/* mobile menu */
.burger {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
}
.burger .burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-color-dark);
  position: relative;
  transition: background-color 0.1s ease 0.2s;
  will-change: background-color;
}
.burger .burger-line::before,
.burger .burger-line:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  background-color: var(--text-color-dark);
  transition: transform 0.25s, bottom 0.15s ease 0.25s;
  transform-origin: center center;
  will-change: transform;
}
.burger .burger-line:before {
  bottom: 11px;
}
.burger .burger-line:after {
  bottom: -11px;
}

.is-menu-open .burger .burger-line {
  background-color: transparent;
  transition: background-color 0.1s ease 0.2s;
}
.is-menu-open .burger .burger-line::before,
.is-menu-open .burger .burger-line::after {
  transition: bottom 0.15s, transform 0.25s ease 0.15s;
}
.is-menu-open .burger .burger-line:before {
  transform: rotate(45deg);
  bottom: 0;
}
.is-menu-open .burger .burger-line:after {
  transform: rotate(-45deg);
  bottom: 0;
}

@media (max-width: 1024px) {
  .is-menu-open {
    overflow: hidden;
  }
}
