/* 
 * Long Section Numbers Fix
 * Ensures long section numbers like 11.1.1, 22.2.2, 33.5.15 display correctly
 */

/* Make sure long section numbers don't break layout */
.inner-sub-category {
  position: relative;
  padding-right: 5px;
}

/* Handle the bullet point character */
.inner-sub-category::before {
  content: "";
  display: inline;
  width: 0;
}

/* Special handling for long section numbers */
@media (max-width: 768px) {
  /* Create space for the numbers and text to wrap properly */
  .inner-sub-category {
    text-indent: 0 !important;
    padding-left: 0 !important;
  }
  
  /* Handle specific length of section numbers */
  .inner-sub-category {
    line-height: 1.4 !important;
    padding-bottom: 5px !important;
    padding-top: 5px !important;
  }
  
  /* Fix the overlapping text issues */
  a[href^="#"] {
    width: 100% !important;
    display: block !important;
  }
}

/* Fix spacing in desktop view */
@media (min-width: 769px) {
  .inner-sub-category {
    white-space: normal;
    line-height: 1.4;
  }
} 