/* Blog Table of Contents. Loaded on single blog posts only (moved from blog-listing.css, rules unchanged). */
.blog_content_section .blog_toc_wrapper {
  width: calc(20% - 30px);
  border: 1px solid #E5E5E5;
  border-radius: 20px;
  overflow: hidden;
  height: fit-content !important;
  max-height: calc(100vh - 100px) !important;
  overflow-y: auto !important;
  min-width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 50px;
}
@media screen and (max-width: 992px) {
  .blog_content_section .blog_toc_wrapper {
    display: block;
    width: 100%;
    min-width: unset;
    position: relative;
    top: 0;
    margin-bottom: 20px;
    height: auto !important;
    max-height: none !important;
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  .blog_content_section .blog_toc_wrapper .toc_title .toc_curve_2 {
    display: none;
    transition: all 0.2s ease-in-out;
  }
  .blog_content_section .blog_toc_wrapper.open .toc_curve_2 {
    display: block;
  }
  .blog_content_section .blog_toc_wrapper .toc_ul {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .blog_content_section .blog_toc_wrapper.open .toc_ul {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
  }
  .blog_content_section .blog_toc_wrapper .toc_title {
    width: 100%;
    border-bottom-right-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }
  .toc_arrow {
    display: block !important;
    position: absolute;
    right: 15px;
    top: 15px;
  }
  .blog_content_section .blog_toc_wrapper .toc_ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s ease;
    margin: 0;
  }
  .blog_content_section .blog_toc_wrapper.open .toc_ul {
    max-height: 1000px;
    margin: 14px;
  }
  .blog_content_section .blog_toc_wrapper.open .toc_arrow {
    transform: rotate(180deg);
  }
}
.blog_content_section .blog_toc_wrapper .toc_title {
  background-color: #E5E5E5;
  padding: 10px 20px;
  border-bottom-right-radius: 20px;
  font-size: 18px;
  color: #333;
  font-family: "Poppins", "Poppins Fallback", "Poppins Fallback Android", sans-serif !important;
  font-weight: 600;
  position: relative;
  width: fit-content;
}
.blog_content_section .blog_toc_wrapper .toc_title .toc_curve_1 {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  right: -20px;
  rotate: 90deg;
}
.blog_content_section .blog_toc_wrapper .toc_title .toc_curve_2 {
  height: 20px;
  width: 20px;
  flex-shrink: 0;
  position: absolute;
  bottom: -20px;
  left: 0px;
  rotate: 90deg;
}
.blog_content_section .blog_toc_wrapper .toc_ul {
  list-style: none;
  padding: 0;
  margin: 14px;
}
.blog_content_section .blog_toc_wrapper .toc_ul .toc_li {
  font-size: 12px;
  color: #333;
  font-family: "Poppins", "Poppins Fallback", "Poppins Fallback Android", sans-serif !important;
  margin-bottom: 12px;
  cursor: pointer;
  background: url(https://technource.s3.us-west-1.amazonaws.com/wp-content/uploads/2026/03/11155244/blog-ul-li-tick-1.png) no-repeat;
  padding-left: 26px;
  background-position: 0 1px;
  background-size: 17px;
  font-weight: 400;
  min-height: 20px;
  height: fit-content;
}
.blog_content_section .blog_toc_wrapper .toc_ul .toc_li:last-child {
  margin-bottom: 0;
}

/* H3 sub-items (same list design, indented) */
.blog_content_section .blog_toc_wrapper .toc_ul .toc_li.toc_li_sub {
  padding-left: 44px;
  background-position: 18px 1px;
}

/* Headings jumped to from TOC / old links stay clear of the fixed header */
.blog_details_wrapper h2[id],
.blog_details_wrapper h3[id] {
  scroll-margin-top: 110px;
}
