html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

#dmsmatrix-learn-container {
    display: flex;
    gap: 20px;
    border-radius: 10px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sidebar {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    height: fit-content;
}

.asidebar {
    width: 300px;
    flex-shrink: 0;
    height: fit-content;
    margin-right: -300px;
}

.post-title {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: #f1f3f5;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.post-title-headings {
    padding: 5px 10px;
    margin-bottom: 0px;
    cursor: pointer;
    transition: color 0.1s ease;
}

.post-title-headings a {
    color: #000;
}

.post-title-headings a:hover {
    color: #0073b1;
    text-decoration: none !important;
}

.post-title-headings a.active {
    color: #0073b1;
}

.post-title-headings {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.post-title-headings a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title-headings a.active {
    color: #0073b1;
    font-weight: 600;
}

.post-title-headings a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: 20px;
    width: 3px;
    background-color: #0073b1;
    border-radius: 1px;
}

.post-title-headings.active {
    border-left: 3px solid #0073b1;
    background-color: #f1f9ff;
    border-radius: 0px;
}


.post-title:hover {
    background-color: #e4e6eb;
}

.post-title.active {
    background-color: #0073b1;
    color: #fff;
    font-weight: 600;
}

.main-content {
    flex: 1;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

/* === Responsive styles === */
@media screen and (max-width: 991px) {
    #dmsmatrix-learn-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .main-content {
        padding: 20px;
    }
}

@media screen and (max-width: 576px) {
    .post-title {
        font-size: 14px;
        padding: 10px 12px;
    }

    .main-content {
        padding: 15px;
        font-size: 15px;
    }

    #dmsmatrix-learn-container {
        padding: 10px;
    }
}
