.toc {
  position: relative;
  margin: 20px 0;
  padding: 15px;
  border-radius: 4px;
  background-color: #fff;
  float: left;
}

.toc-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

ul.toc-list li.toc-item {
  margin: 0;
  padding: 0px 10px;
  border: none;
  background: none;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  border-left: 1.5px solid var(--seperator-color, #737373);
}
ul.toc-list li.toc-item.active {
  border-left: 1.5px solid var(--primary-color, #1a1a1a);
}
.toc-item a {
  display: block;
  padding: 5px 0;
  color: #737373;
  text-decoration: none;
  transition: color 0.2s;
}

.toc-item.active,
.toc-item a.active,
.toc-item a:hover {
  color: var(--primary-color, #1a1a1a);
}

.toc-item a:focus {
  outline: none;
}

ul.toc-list .toc-item.level-2 {
  padding-left: 15px;
}
ul.toc-list .toc-item.level-3 {
  padding-left: 30px;
}
ul.toc-list .toc-item.level-4 {
  padding-left: 45px;
}
ul.toc-list .toc-item.level-5 {
  padding-left: 60px;
}
ul.toc-list .toc-item.level-6 {
  padding-left: 75px;
}
.toc-mobile {
  display: none;
}
/* Mobile Styles */
@media screen and (max-width: 768px) {
	.toc-mobile-wrap{
		width: 100%;
		max-width: 100%;
		display: flex;
		flex-wrap: wrap;
		box-sizing: border-box;
	}
  .toc-mobile {
    display: block;
    position: relative;
    margin: 20px 0;
    border: 1px solid var(--seperator-color, #737373);
    cursor: pointer;
    border-radius: 7px;
	  width: 100%;
        max-width: 100%;
  }
  .toc-mobile .toc-header {
    margin-bottom: 0px;
    padding-bottom: 0px;
  }
  .toc-mobile.expanded .toc-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .toc-mobile .toc-list {
    max-height: 300px;
  }

  .toc-mobile .toc-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .toc-mobile.expanded .toc-toggle {
    transform: rotate(180deg);
  }
}
