/* Fix scrollbar issue when accordion/expandable content opens */
html, body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Prevent skrollr from setting fixed height on body - causes scrollbar issues with accordions */
body {
    height: auto !important;
    min-height: 100vh;
}

/* Hide scrollbar for extra-content but keep functionality */
#extra-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#extra-content::-webkit-scrollbar {
    width: 6px;
}

#extra-content::-webkit-scrollbar-track {
    background: transparent;
}

#extra-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#extra-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Prevent body scrollbar when modal/accordion opens */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Fix for accordion opening - prevent double scrollbar */
.accordion-section-content {
    max-height: none;
    overflow: visible;
}

.accordion-collapse {
    overflow: visible;
}

/* Ensure wrapper doesn't cause overflow */
#wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* Fix for Bootstrap accordion */
.accordion-body {
    overflow: visible;
}
