/* Sticky Sidebar CSS */
.sticky-sidebar-wrapper {
    position: relative;
}

.sticky-sidebar {
    position: sticky;
    top: 120px; /* Adjust based on header height */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Smooth scrolling for sidebar content */
.sticky-sidebar::-webkit-scrollbar {
    width: 6px;
}

.sticky-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsive - disable sticky on smaller screens */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* Animation for sidebar following content */
@media (min-width: 992px) {
    .sidebar-follow-content {
        transform: translateY(0);
        transition: transform 0.2s ease-out;
    }
    
    .main-content {
        position: relative;
    }
}