.recent-posts-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px; 
}

.recent-posts-container::-webkit-scrollbar {
    width: 5px;
}

.recent-posts-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.recent-posts-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.recent-posts-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.recent-posts-container .list-unstyled a:hover {
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 100;
}

.sidebar-sticky {
    position: -webkit-sticky; 
    position: sticky;
    top: 150px; 
}

html {
    scroll-behavior: smooth; 
}

.recent-posts-container ul#recent-posts-list li a,
.recent-posts-container .list-unstyled a {
    cursor: pointer;
    display: block;
    padding: 0.4rem 0.5rem;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 991px) {
    .recent-posts-container {
        max-height: 280px;
    }
}

@media (max-width: 767px) {
    .sticky-top {
        top: 100px !important; 
    }
    .sidebar-sticky {
        top: 100px;
    }
}
