/*
Theme Name: Basic Child
Template: basic
*/

/* Контейнер: меню слева + контент справа */
.page-layout-with-sidebar {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Боковое меню */
.custom-side-menu {
    flex: 0 0 240px;
    position: sticky;
    top: 20px;
    padding-right: 20px;
    border-right: 1px solid #eaeaea;
    font-size: 0.95em;
}

.custom-side-menu .menu-title {
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c3e50;
}

.custom-side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-side-menu li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.custom-side-menu a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease;
}

.custom-side-menu a:hover {
    color: #0073aa;
}

.menu-divider {
    border-top: 1px solid #eaeaea;
    margin: 12px 0;
}

/* Контент занимает всё оставшееся место */
.page-layout-with-sidebar .entry-content {
    flex: 1;
    min-width: 0;
}

/* Адаптив для мобильных — меню уходит наверх */
@media (max-width: 768px) {
    .page-layout-with-sidebar {
        flex-direction: column;
        gap: 20px;
    }
    .custom-side-menu {
        flex: none;
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        padding-right: 0;
        padding-bottom: 15px;
    }
}