/* Sidebar card header */
.sidebar-card-header {
    background: #28a745;
    color: white;
    border-radius: 10px 10px 0 0;
}

/* Sidebar list items */
.sidebar-list-item, .recent-post-item {
    background-color: white !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-list-item:hover, .recent-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

/* Links within the sidebar */
.sidebar-link {
    background: none;
    border: none;
    color: inherit;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
}

/* Remove horizontal scrollbar */
.right-bar-inner {
    overflow-x: hidden;
}

/* Limit text to two lines on smaller screens */
@media (max-width: 992px) {
    .recent-post-item .me-3,
    .sidebar-list-item .sidebar-link {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
}
