.sidebar {
    position: sticky;
    top: 2rem;
    border-radius: 10px;
  }
  .category-badge {
    background-color: #e8f4e5;
    color: #6D9852;
    font-size: 0.85rem;
    border-radius: 15px;
  }
  .author-meta {
    gap: 19px;
    span{
        font-size: 0.9rem;
        color: #5D5D5D;
    }
  }
  .content-image img {
    width: 100%;
    border-radius: 0.75rem;
  }
  .icon-group i {
    font-size: 1.25rem;
    margin-right: 1.5rem;
    color: #377FFE;
    cursor: pointer;
  }

  .icon-group{
    gap: 73px;
  }

  .breadcrumb-item{
    a{
        color: #000000;
        text-decoration: unset;
    }
  }

  .breadcrumb-item.active{
        color: #377FFE !important;
  }

  .blog-details-icons-div{
    border-radius: 100%;
    padding: 10px;
    border: 1px solid #E9E9E9;
    img{
        width: 22px;
        height: 22px;
    }
  }

  /* Keep sidebar visible and scrollable on desktop */
  @media (min-width: 992px) {
    .sidebar {
      top: 80px; /* assumes header/nav height ~80px */
      max-height: calc(100vh - 80px);
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }
  }

  /* Custom scrollbar styling for sidebar */
  .sidebar::-webkit-scrollbar {
    width: 6px;
  }

  .sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 3px;
    transition: background 0.3s ease;
  }

  .sidebar::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
  }

  /* Firefox scrollbar styling */
  .sidebar {
    scrollbar-width: thin;
    scrollbar-color: #e9ecef #f8f9fa;
  }

  .sidebar{
    padding: 1.4rem 2.5rem;
  }

  .sidebar-heading{
    font-weight: 700 !important;
  }

  .swiper-slide{
    display: flex !important;
    justify-content: center;
  }

  /* Dynamic Table of Contents Styles */
  .toc-root { margin: 0; padding: 0; }
  .toc-list { --toc-accent: #377FFE; }
  .toc-item { list-style: none; }
  .toc-link {
    color: #1d1d1d;
    transition: color 0.2s ease, background-color 0.2s ease;
    line-height: 1.25;
    display: block;
    padding: 0.15rem 0;
    border-radius: 6px;
  }
  .toc-link:hover, .toc-link:focus { color: var(--toc-accent) !important; outline: none; }
  .toc-link.active { color: var(--toc-accent) !important; background-color: #f3f7ff; }
  .toc-nested { border-left: 2px solid #edf1f7; margin-top: 0.15rem; }
  .toc-nested .toc-item { position: relative; }
  .toc-nested .toc-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cfd8ea;
  }
  /* tighter spacing for deeper levels */
  .level-3 .toc-link, .level-4 .toc-link, .level-5 .toc-link, .level-6 .toc-link { font-size: 0.9em; }

  /* Heading spacing and typography within article content */
  .content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
    line-height: 1.35;
  }

  /* Use CSS custom property --lh to approximate body line-height in px via em */
  .content { --lh: 1.6em; }

  /* Before heading ≈ 1.25–2x line spacing; After heading ≈ 0.375–0.75x */
  .content h1 { margin-top: calc(1.6 * var(--lh)); margin-bottom: calc(0.6 * var(--lh)); }
  .content h2 { margin-top: calc(1.5 * var(--lh)); margin-bottom: calc(0.55 * var(--lh)); }
  .content h3 { margin-top: calc(1.35 * var(--lh)); margin-bottom: calc(0.5 * var(--lh)); }
  .content h4 { margin-top: calc(1.25 * var(--lh)); margin-bottom: calc(0.45 * var(--lh)); }

  /* Typography sizes and weight for h2/h3 */
  .content h2 { font-size: 1.75rem; font-weight: 700; }
  .content h3 { font-size: 1.25rem; font-weight: 800; }

  @media (max-width: 992px) {
    .content h2 { font-size: 1.6rem; }
    .content h3 { font-size: 1.125rem; }
  }

  /* Smooth scrolling for anchor links */
  html {
    scroll-behavior: smooth;
  }

  /* Add some spacing for headings with anchors */
  .content h1[id], .content h2[id], .content h3[id], 
  .content h4[id], .content h5[id], .content h6[id] {
    scroll-margin-top: 2rem;
  }

/* Banner Overlay Styles */
.banner-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.banner-heading {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white !important;
}

.banner-heading h1,
.banner-heading h2,
.banner-heading h3,
.banner-heading h4,
.banner-heading h5,
.banner-heading h6 {
  color: white !important;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.banner-subheading {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: 80%;
  color: white !important;
}

.banner-subheading p {
  color: white !important;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .banner-heading {
    font-size: 2rem;
  }
  
  .banner-subheading {
    font-size: 1.1rem;
    max-width: 90%;
  }
}

@media (max-width: 576px) {
  .banner-heading {
    font-size: 1.5rem;
  }
  
  .banner-subheading {
    font-size: 1rem;
    max-width: 95%;
  }
}

/* Horizontal Scrollbar Fix - Prevent overflow issues */
/* Prevent horizontal overflow */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Make tables responsive */
.cg-table-six {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.cg-table-col {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.cg-table-cell {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    border: 1px solid #dee2e6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cg-table-sm-head {
    font-weight: bold;
    background-color: #f8f9fa;
}

.cg-tbl-img img {
    max-width: 100%;
    height: auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .cg-table-cell {
        min-width: 150px;
        font-size: 14px;
        padding: 6px;
    }
    
    .cg-table-title {
        font-size: 14px;
        font-weight: bold;
    }
    
    .star-rating {
        font-size: 16px !important;
    }
}

/* Ensure container doesn't overflow */
.container {
    /* max-width: 100%; */
    overflow-x: hidden;
}

/* Fix any other potential overflow issues */
/* .row {
    margin-left: 0;
    margin-right: 0;
} */

.col-lg-9, .col-lg-3 {
    padding-left: 15px;
    padding-right: 15px;
}

  /* Ensure the sidebar column itself is sticky and tall */
  @media (min-width: 992px) {
    .blog-sidebar-col {
      position: sticky;
      top: 80px; /* match sidebar offset */
      align-self: flex-start;
      height: fit-content;
    }
  }

/* Fix Swiper overflow issues */
.swiper {
    overflow: hidden;
    width: 100%;
}

.swiper-wrapper {
    width: 100%;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix any potential footer overflow */
footer {
    overflow-x: hidden;
}

/* Ensure modal doesn't cause overflow */
.modal {
    overflow-x: hidden;
}

.modal-content {
    max-width: 100%;
}

/* FAQ Section (ported from installer-directory styles) */
#faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

#faq-accordion .border {
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: white;
}

#faq-accordion .border:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

#faq-accordion .btn-link {
  color: #1e40af !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 20px 24px !important;
  border: none !important;
  background: none !important;
  text-align: left !important;
  width: 100% !important;
  position: relative;
  transition: all 0.3s ease;
}

#faq-accordion .btn-link:hover {
  color: #1d4ed8 !important;
  background-color: #f8fafc !important;
}

#faq-accordion .btn-link:focus {
  box-shadow: none !important;
  outline: none !important;
}

#faq-accordion .btn-link::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: bold;
  color: #6b7280;
  transition: transform 0.3s ease;
}

#faq-accordion .btn-link[aria-expanded="true"]::after {
  content: '−';
}

#faq-accordion .collapse {
  border-top: 1px solid #e2e8f0;
}

#faq-accordion .collapse .px-3 {
  padding: 20px 24px !important;
  color: #4b5563;
  line-height: 1.6;
  font-size: 15px;
  background-color: #f8fafc;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.faq-title {
  color: #1e40af;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  #faq-accordion .btn-link {
    font-size: 15px !important;
    padding: 16px 20px !important;
  }
  #faq-accordion .btn-link::after {
    right: 20px;
    font-size: 18px;
  }
  #faq-accordion .collapse .px-3 {
    padding: 16px 20px !important;
    font-size: 14px;
  }
  .faq-title {
    font-size: 1.875rem;
  }
}