@keyframes fadeOut {
  0% {
    background-color: #ff0;
  }
  to {
    background-color: transparent;
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toc-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
  overflow: hidden;
}
.toc-header {
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}
.toc-content ul li,
.toc-header,
.toc-header .toc-info,
.toc-header .toc-title {
  display: flex;
  align-items: center;
}
.toc-header .toc-title i {
  margin-left: 5px;
  color: #ff6f61;
}
.toc-header .toc-title span {
  width: max-content;
  font-size: 18px;
  font-weight: 700;
  font-family: IRANYekan;
}
.toc-header .toc-info {
  font-family: IRANYekan;
  font-size: 12px;
  color: #ff6f61;
  height: 15px;
  position: relative;
  right: 7rem;
}
.toc-content ul li span {
  font-family: IRANYekan;
  font-size: 14px;
  color: #333;
}
.toc-info p {
  color: #0007;
}
.toc-info span {
  margin-left: 10px;
  margin-right: 6px;
}
.toc-link.active {
  font-weight: 700;
  color: #007bff;
}
.toc-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: flex-start;
}
.toc-content ul,
li#item-toc_list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.toc-content ul li,
.toc-header {
  margin-bottom: 10px;
}
.toc-content ul li i {
  margin-left: 10px;
  color: #ff6f61;
}
.toc-collapsed,
.toc-open {
  transition: all 0.3s ease-in-out;
}
.toc-collapsed {
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
.toc-open {
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}
.toc-square {
  display: inline-block;
  width: 20px;
  height: 4px;
  background-color: #febe98;
  border-radius: 0;
}
.toc-square,
svg.lucide.lucide-book-open-text {
  color: #febe98;
  margin-left: 10px;
}
span.toc-subtitle a {
  color: #0009;
}
.toc-link.highlight {
  font-weight: 700;
  color: red;
}
.page-content .highlight {
  background-color: #ff0;
  animation: fadeOut 3s forwards;
}
.toc-link {
  cursor: pointer;
  display: block;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.toc-dropdown-btn {
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  color: #333;
  font-size: 12px;
  padding: 0 5px 2px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  outline: 0;
}
.toc-dropdown-btn:active,
.toc-dropdown-btn:focus {
  background-color: #f1f1f1;
  color: #333;
}
.toc-dropdown-btn:hover {
  background-color: #ddd;
}
.toc-sublist {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  animation: slideDown 0.3s ease-in-out;
}
.toc-link.active + .toc-sublist {
  display: block;
}
.toc-sublist li {
  padding-left: 20px;
}
.toc-sublist li a {
  padding: 5px;
  font-size: 0.9em;
  text-decoration: none;
  color: #333;
  transition: padding-left 0.3s ease;
}
.toc-sublist li a:hover {
  padding-left: 30px;
  background-color: #f0f0f0;
}
.toc-link.no-dropdown::after {
  content: "";
}
.toc-link:hover {
  color: #036;
  text-decoration: underline;
}
.toc-container .toc-content {
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
  max-height: 1000px;
}
.toc-container .toc-content.collapsed {
  max-height: 0;
}
.toc-toggle-btn {
  font-family: IRANYekan;
  cursor: pointer;
  background-color: #febe98;
  color: #fff;
  padding: 10px 10px 5px 9px;
  text-align: center;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.4s;
}
a.toc-link {
  font-family: IRANYekan;
  text-decoration: none !important;
  color: #000;
  font-weight: 700;
}
.toc-toggle-btn:hover {
  background-color: #fa9256;
  transition: background-color 0.4s;
}
p.toc-title-text {
  width: max-content !important;
  margin: inherit !important;
}
p.toc-title-text,
span.toc_content_text {
  font-size: 13px !important;
}
li#item-toc_list span {
  font-size: 14px !important;
}
.blog_detail ul li::before{
  display: none !important;
}

@media (max-width: 600px) {
  .toc-content ul li,
  .toc-header,
  .toc-header .toc-title {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 10px;
  }
  .toc-header .toc-info {
    display: flex;
    width: 100%;
    justify-content: center;
    right: 0rem;
  }
  .toc-header .toc-title span {
    margin: auto;
  }
  svg.lucide.lucide-book-open-text {
    display: none;
  }
  p.toc-title-text,
  span.toc_content_text {
    font-size: 11px !important;
  }
}

@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 100;
  src: url(font/IRANYekan/iranyekanwebthin.eot);
  src: url(font/IRANYekan/iranyekanwebthin.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebthin.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebthin.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebthin.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 300;
  src: url(font/IRANYekan/iranyekanweblight.eot);
  src: url(font/IRANYekan/iranyekanweblight.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanweblight.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanweblight.woff) format("woff"),
    url(font/IRANYekan/iranyekanweblight.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url(font/IRANYekan/iranyekanwebregular.eot);
  src: url(font/IRANYekan/iranyekanwebregular.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebregular.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebregular.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebregular.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 500;
  src: url(font/IRANYekan/iranyekanwebmedium.eot);
  src: url(font/IRANYekan/iranyekanwebmedium.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebmedium.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebmedium.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebmedium.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 700;
  src: url(font/IRANYekan/iranyekanwebbold.eot);
  src: url(font/IRANYekan/iranyekanwebbold.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebbold.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebbold.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebbold.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 800;
  src: url(font/IRANYekan/iranyekanwebextrabold.eot);
  src: url(font/IRANYekan/iranyekanwebextrabold.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebextrabold.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebextrabold.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebextrabold.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 900;
  src: url(font/IRANYekan/iranyekanwebblack.eot);
  src: url(font/IRANYekan/iranyekanwebblack.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebblack.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebblack.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebblack.ttf) format("truetype");
}
@font-face {
  font-family: IRANYekan;
  font-display: swap;
  font-style: normal;
  font-weight: 950;
  src: url(font/IRANYekan/iranyekanwebextrablack.eot);
  src: url(font/IRANYekan/iranyekanwebextrablack.eot?#iefix)
      format("embedded-opentype"),
    url(font/IRANYekan/iranyekanwebextrablack.woff2) format("woff2"),
    url(font/IRANYekan/iranyekanwebextrablack.woff) format("woff"),
    url(font/IRANYekan/iranyekanwebextrablack.ttf) format("truetype");
}
