/* Общие стили для бокового меню содержания всех разделов, кроме "Образование по.." */
.sidebar-nav-item {
    margin-bottom: 15px;
}

/* Стили для категорий в боковом меню */
.sidebar-nav-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    color: var(--primary-dark-blue);
    font-weight: 600;
    font-size: 14px; 
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.4;
}

.sidebar-nav-category-header.active {
    background-color: var(--accent-orange) !important;
    color: white !important;
    border-left-color: var(--accent-orange) !important;
}

.sidebar-nav-category-content {
    display: none;
    padding-left: 0;
}

.sidebar-nav-category-content.active {
    display: block;
}

.sidebar-nav-category-content a {
    display: block;
    padding: 10px 15px;
    color: var(--primary-dark-blue);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-category-content a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--primary-dark-blue);
    border-right: 2px solid var(--primary-dark-blue);
    transform: rotate(45deg);
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -3px;
    transition: all 0.2s ease;
}

.sidebar-nav-category-content a:hover::after {
    border-color: var(--accent-orange);
}

.sidebar-nav-category-content a:hover {
    background-color: rgba(0, 58, 93, 0.05);
    border-left-color: var(--accent-orange);
}

.sidebar-nav-category-content a.active {
    color: var(--accent-orange) !important;
    background-color: transparent !important;
    border-left-color: transparent !important;
    font-weight: normal !important;
}

/* Стили для элементов подменю */
.sidebar-nav-item.sub-item .sidebar-nav-link {
    padding: 10px 15px;
    display: block;
    color: var(--primary-dark-blue);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
    line-height: 1.4; 
}

.sidebar-nav-item.sub-item .sidebar-nav-link::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--primary-dark-blue);
    border-right: 2px solid var(--primary-dark-blue);
    transform: rotate(45deg);
    position: absolute;
    right: 15px;
    top: 50%;
    margin-top: -3px;
    transition: all 0.2s ease;
}

.sidebar-nav-item.sub-item .sidebar-nav-link:hover::after {
    border-color: var(--accent-orange);
}

.sidebar-nav-item.sub-item .sidebar-nav-link:hover {
    background-color: rgba(0, 58, 93, 0.05);
    border-left-color: var(--accent-orange);
}

.sidebar-nav-item.sub-item .sidebar-nav-link.active {
    color: var(--accent-orange) !important;
    background-color: transparent !important;
    border-left-color: transparent !important;
    font-weight: normal !important;
}

.sidebar-nav-category.sub-item .sidebar-nav-category-content a {
    padding-left: 15px !important;
}

.sidebar-nav-category-content {
    padding-left: 0 !important;
}