/* Desktop Layout - TOC styling for both blogs and case studies */
/* @media (min-width: 1025px) { */
  .rk-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    counter-reset: toc-counter;
  }

  .rk-toc-list > li {
    position: relative;
    margin: 14px 0;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    min-height: 32px;
  }

  .toc-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 1.5em;
  }

  .toc-line a {
    flex: 1;
  }

  .rk-toc-list .scroll-pct,
  .rk-sub-toc .scroll-pct {
    font-size: 10px;
    color: #999;
    margin: 0;
    white-space: nowrap;
  }

  .rk-toc-list li a {
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
    display: inline-block;
  }

  .progress-bar, .progress-fill {
    pointer-events: none;
  }

  .rk-toc-list li .progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
  }

  .rk-toc-list li .progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #1E2E4C;
    transition: height 0.3s ease;
  }

  .rk-toc-list li.active > a {
    color: #1E2E4C;
    font-weight: bold;
  }

  .rk-sub-toc {
    list-style: none;
    margin: 8px 0 0 14px;
    padding: 0;
  }

  .rk-sub-toc li .progress-bar {
    width: 2px;
  }
/* } */

/* Mobile Layout - TOC stacked above content */
/* @media (max-width: 1024px) {
  .rk-toc-vertical {
    position: static;
    width: 100%;
    height: auto;
    max-height: 400px;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .rk-toc-list {
    max-height: 300px;
    overflow-y: auto;
  }
  
  .rk-toc-list li {
    margin-bottom: 12px;
  }
  
  .toc-line a {
    font-size: 13px;
  }
  
  .scroll-pct {
    font-size: 11px;
  }
} */

/* Very small screens */
@media (max-width: 1024px) {
  .rk-toc-vertical {
    position: static;
    width: 100%;
    height: auto;
    padding: 10px;
    max-height: 300px;
  }
  
  .rk-toc-list {
    max-height: 200px;
    overflow-y: auto;
  }
  
  .rk-toc-list li {
    margin-bottom: 10px;
    padding-left: 15px;
  }
  
  .progress-bar {
    width: 3px;
  }
  
  .toc-line a {
    font-size: 12px;
  }
  
  .scroll-pct {
    font-size: 10px;
    min-width: 25px;
  }
}

/* Ensure content is visible below TOC on mobile */
@media (max-width: 1024px) {
  .elementor-post-content,
  .single-blog .elementor-widget-theme-post-content,
  .single-blog .elementor-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
