/* Single Post Sidebar - Smooth Table of Contents (No Shadow) */
.single-post-sidebar {
  padding-right: 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 105px;
  z-index: 10;
}

.article_toc_widget {
  background: #ffffff !important;
  border: 1px solid #edf2f7 !important;
  border-radius: 24px !important;
  padding: 22px 18px 20px !important;
  box-shadow: none !important; /* Zero shadow - ultra smooth & soft */
  transition: all 0.3s ease;
}

.article_toc_widget .toc_header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin-bottom: 18px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.article_toc_widget .toc_icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  background: #0080d2 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.article_toc_widget .toc_icon svg {
  display: block;
}

.article_toc_widget .toc_title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0b4f8a !important;
  font-family: 'Almarai', sans-serif !important;
  border: none !important;
  line-height: 1.4em !important;
}

.article_toc_widget .toc_title:before,
.article_toc_widget .toc_title:after {
  display: none !important;
}

.article_toc_widget .toc_nav {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding-left: 2px;
  scroll-behavior: smooth;
}

/* Slim elegant smooth scrollbar */
.article_toc_widget .toc_nav::-webkit-scrollbar {
  width: 4px;
}
.article_toc_widget .toc_nav::-webkit-scrollbar-track {
  background: transparent;
}
.article_toc_widget .toc_nav::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}
.article_toc_widget .toc_nav::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

.article_toc_widget .toc_list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article_toc_widget .toc_item {
  margin: 0 !important;
  padding: 0 !important;
}

.article_toc_widget .toc_link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  color: #475569 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out !important;
  line-height: 1.4em !important;
  cursor: pointer !important;
  background: transparent;
}

.article_toc_widget .toc_link:hover {
  background: #f1f8fe !important;
  color: #0077ca !important;
  text-decoration: none !important;
}

.article_toc_widget .toc_link.active {
  background: #eaf4fc !important;
  color: #0077ca !important;
  font-weight: 700 !important;
}

.article_toc_widget .toc_badge {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease-in-out !important;
}

.article_toc_widget .toc_link:hover .toc_badge {
  background: #bae6fd !important;
  color: #0369a1 !important;
}

.article_toc_widget .toc_link.active .toc_badge {
  background: #0080d2 !important;
  color: #ffffff !important;
}

.article_toc_widget .toc_text {
  flex: 1 1 auto;
  text-align: right;
  line-height: 1.4em !important;
}

@media (max-width: 991px) {
  .single-post-sidebar {
    display: none !important;
  }
}
