.custom-toc {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #EBF3F7;
    border-radius: 15px;
    background-color: #F8FAFC;
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s ease; /* Added transition for scaling effect */
  }
  
  .custom-toc:hover {
    transform: scale(1.02); /* Scale effect on hover */
  }
  
  .custom-toc .wp-block-ideabox-toc {
    font-family: 'Arial', sans-serif;
  }
  
  .custom-toc .ib-toc-container {
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .custom-toc .ib-toc-header {
    background-color: #F1F5F9;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease; /* Transition for header background */
  }
  
  .custom-toc .ib-toc-header:hover {
    background-color: #E2E8F0; /* Change background on hover */
  }
  
  .custom-toc .ib-toc-header-title {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
  }
  
  .custom-toc .ib-toc-header-right {
    display: flex;
    gap: 8px;
  }
  
  .custom-toc .ib-toc-icon-collapse,
  .custom-toc .ib-toc-icon-expand {
    cursor: pointer;
    color: #64748B;
    transition: color 0.3s; /* Transition for icon color */
  }
  
  .custom-toc .ib-toc-icon-collapse:hover,
  .custom-toc .ib-toc-icon-expand:hover {
    color: #3B82F6; /* Change icon color on hover */
  }
  
  .custom-toc .ib-toc-separator {
    height: 2px;
    background-color: #E2E8F0;
    margin: 8px 0; /* Added margin for spacing */
  }
  
  .custom-toc .ib-toc-body {
    padding: 16px;
  }
  
  .custom-toc .ib-toc-anchors {
    list-style-type: none;
    padding-left: 0;
  }
  
  .custom-toc .ib-toc-anchors li {
    margin-bottom: 12px;
    transition: transform 0.2s; /* Transition for list item hover */
  }
  
  .custom-toc .ib-toc-anchors li:hover {
    transform: translateX(4px); /* Slight move on hover */
  }
  
  .custom-toc .ib-toc-anchors a {
    color: #3B82F6;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    position: relative; /* For pseudo-element positioning */
    padding: 4px 0; /* Added padding for clickable area */
    transition: color 0.3s, background-color 0.3s; /* Transition for color and background */
  }
  
  .custom-toc .ib-toc-anchors a:hover {
    color: #1E40AF; /* Darker blue on hover */
    background-color: rgba(59, 130, 246, 0.1); /* Light background on hover */
    border-radius: 4px; /* Rounded corners for hover effect */
  }
  
  .custom-toc .ib-toc-anchors ul {
    padding-left: 20px;
    margin-top: 8px;
  }
  
  .custom-toc .ib-toc-anchors ul li {
    margin-bottom: 8px;
  }
  
  .custom-toc .ib-toc-anchors ul li a {
    font-size: 16px;
    color: #4B5563; /* Darker gray for sub-links */
    transition: color 0.3s; /* Transition for sub-link color */
  }
  
  .custom-toc .ib-toc-anchors ul li a:hover {
    color: #3B82F6; /* Change color on hover */
    text-decoration: underline; /* Underline effect for clarity */
  }