#layout-content {
    margin-left: 240px;
}
/* Ensure main-wrapper and layout-content are always visible and flexible */
#main-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
}
#layout-content {
    flex: 1 1 0%;
    min-width: 0;
    overflow-x: auto;
    box-sizing: border-box;
}
/* Profile flex layout for header */
.profile-flex {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.13em;
    line-height: 1.6;
}
@media (max-width: 600px) {
    .profile-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-info {
        margin-top: 1em;
        margin-left: 0;
    }
}
@import url('https://fonts.googleapis.com/css2?family=STIX+Two+Text:wght@400;700&display=swap');


html {
    scroll-behavior: smooth;
}
body {
    font-family: 'STIX Two Text', serif;
    color: #222;
    background: #f7fafd;
    line-height: 1.7;
    margin: 0;
}
h2.section-title {
    color: #1a237e;
    font-size: 1.45em;
    margin-top: 36px;
    margin-bottom: 20px;
    padding: 10px 0 10px 18px;
    border-left: 7px solid;
    border-image: linear-gradient(180deg, #3f51b5 60%, #00bcd4 100%) 1;
    background: linear-gradient(90deg, #f4f6fa 80%, #e3f2fd 100%);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(63,81,181,0.06);
    transition: box-shadow 0.2s, background 0.2s;
    line-height: 1.2;
    letter-spacing: 0.5px;
}
h2.section-title:hover {
    box-shadow: 0 4px 16px rgba(63,81,181,0.13);
    background: linear-gradient(90deg, #e3f2fd 60%, #f4f6fa 100%);
}
#layout-menu {
    background: #f7faff;
    border-right: 2px solid #e0e0e0;
    min-width: 120px;
    max-width: 240px;
    width: 100%;
    padding: 32px 18px 32px 18px;
    box-sizing: border-box;
    border-radius: 16px;
    margin: 18px 0 18px 0;
    height: calc(100vh - 36px);
    position: sticky;
    top: 0;
    box-shadow: 0 2px 12px rgba(63,81,181,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.menu-category {
    font-weight: bold;
    margin-bottom: 18px;
    color: #1a237e;
    letter-spacing: 1px;
    font-size: 1.08em;
}
.menu-item {
    margin-bottom: 14px;
    width: 100%;
}
.menu-item a {
    text-decoration: none;
    color: #1a237e;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    font-size: 1.07em;
}
.menu-item a.current, .menu-item a:hover {
    background: #e3f2fd;
    color: #0d47a1;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
footer {
    background: #f3f6fb;
    color: #6b7280;
    text-align: center;
    padding: 1.2rem 0;
    border-top: 1px solid #e3eaf2;
    font-size: 0.97rem;
}
@media (max-width: 900px) {
    #layout-content {
        margin-left: 220px;
    }
    #layout-content {
        margin-left: 0;
    }
    #main-wrapper {
        flex-direction: row;
        width: 100vw;
        min-width: 0;
    }
    #layout-menu {
        position: sticky;
        top: 0;
        min-width: 120px;
        max-width: 220px;
        width: 100%;
        height: calc(100vh - 36px);
        flex-direction: column;
        align-items: flex-start;
        margin: 18px 0 18px 0;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(63,81,181,0.06);
    }
    #layout-content {
        flex: 1 1 0%;
        min-width: 0;
        overflow-x: auto;
        box-sizing: border-box;
    }
}
@media (max-width: 600px) {
    #main-wrapper {
        flex-direction: column;
        width: 100vw;
        min-width: 0;
    }
    #layout-content {
        padding: 1rem 0.5rem;
        width: 100vw;
        min-width: 0;
        overflow-x: auto;
        box-sizing: border-box;
    }
    #layout-menu {
        padding: 12px 6px;
        min-width: 100px;
        max-width: 180px;
        width: 100%;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(63,81,181,0.06);
        margin: 12px 0 12px 0;
        height: calc(100vh - 36px);
        position: sticky;
        top: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .menu-item {
        margin-bottom: 14px;
        margin-right: 0;
        width: 100%;
    }
    .menu-category {
        display: block;
    }
    body {
        font-size: 1em;
    }
    h2.section-title {
        font-size: 1.1em;
        padding: 8px 0 8px 10px;
    }
    div[style*="padding:36px 4vw 28px 4vw"] {
        padding: 18px 2vw 14px 2vw !important;
        font-size: 1em !important;
    }
}
