/* section bar */

.section_bar {
  margin-bottom: var(--distance-2);
}

.section_bar .item {
  padding: 0;
  transition: var(--transition);
}

.section_bar .item a {
  padding: 13px 40px 13px 15px;
  color: var(--text-color-0);
  text-decoration: none;
}

.section_bar .item a:hover {
  color: var(--text-color-1);
}

.section_bar .item a .icon_after::after {
  transition: var(--transition);
}

.section_bar .item a:hover .icon_after::after {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxMSAxMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNzQ5OTY1IDkuNTg4ODNMOS41ODg4IDAuNzQ5OTk3TTkuNTg4OCA5LjIzNTI4VjAuNzQ5OTk3SDEuMTAzNTIiIHN0cm9rZT0iIzMzMzMzMyIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K);
}

.section_bar .mob_show_btn {
  display: none;
  flex: 40px;
  max-width: 40px;
  width: 40px;
}

.section_bar .item:has(.active) {
  background-color: var(--main-color-1);
}

.section_bar .item:has(.active) span {
  color: var(--text-color-0) !important;
  padding: 13px 15px;
  cursor: default;
  text-decoration: none !important;
}

@media screen and (max-width: 1023px) {

  .section_bar.open .item:has(.active) {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .section_bar {
    height: 50px;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
  }

  .section_bar.open {
    overflow: visible;
  }

  .section_bar .wrapper {
    position: absolute;
    overflow: visible;
    display: flex;
  }

  .section_bar .flex {
    flex: calc(100% - 55px);
    max-width: calc(100% - 55px);
    flex-direction: column;
    flex-wrap: nowrap;
    height: 250px;
    overflow-y: visible;
    position: relative;
    padding-right: 6px;
    margin-right: 6px;
  }

  .section_bar.open .flex {
    overflow-y: auto;
  }


  .section_bar .wrapper::before {
    content: '';
    position: absolute;
    background-color: var(--overlay-color-3);
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: var(--border-radius-2);
    top: -10px;
    left: -10px;
    opacity: 0;
  }

  .section_bar.open .wrapper::before {
    opacity: 1;
  }

  .section_bar:not(.open) .flex::-webkit-scrollbar {
    display: none;
  }

  .section_bar .flex::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 3px;
  }

  .section_bar .flex:-webkit-scrollbar-track {
    background: transparent;
  }

  .section_bar .flex::-webkit-scrollbar-thumb {
    border: 3px solid var(--border-color-1);
  }

  .section_bar .item {
    max-width: 300px;
    width: 100%;
    order: 1;
    justify-content: flex-start;
  }

  /* .section_bar .item+.item {
    margin-top: 10px;
  } */

  .section_bar .item:has(.active) {
    order: 0;
  }

  .section_bar .item .active {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .section_bar .item .active .icon_after {
    display: none;
  }

  .section_bar .mob_show_btn {
    display: flex;
    position: relative;
    z-index: 1;
  }

  .section_bar .mob_show_btn svg {
    transform: rotate(90deg);
  }

  .section_bar.open .mob_show_btn svg {
    transform: rotate(-90deg);
  }

  .section_bar .item a,
  .section_bar .item span:not(.icon_after) {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .section_bar .item {
    min-height: auto;
    height: auto;
  }

  .section_bar .item a {
    padding: 8px 40px 8px 15px !important;
  }

  .section_bar .item span:not(.icon_after) {
    padding: 8px 15px !important;
  }

  .section_bar .wrapper {
    width: 100%;
  }

  .section_bar .item {
    max-width: 100%;
  }
}