/* General */
body {
    background-color: #eae8f5 !important;
    color: #242333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Sidebar */
#menu {
    background: #f7f6fc;
    width: 240px;
    border-right: 1px solid #d5d2e5;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.04);
}

#menu .container {
    padding: 25px 20px;
}

#menu .top-section img {
    max-width: 100%;
    height: auto;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

#menu ul li {
    margin: 3px 0;
}

#menu .section-title {
    color: #77718d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

#menu li a {
    display: block;
    padding: 7px 12px;
    color: #343044;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

#menu li a:hover {
    background-color: #e5e1f3;
    color: #55418b;
}

#menu li.active a {
    background-color: #62518e;
    color: #ffffff;
}

/* Main content */
#content {
    margin-left: 241px;
}

#content .container {
    max-width: 1000px;
    padding: 40px 45px;
}

#content p {
    line-height: 1.8;
    margin: 0 0 22px;
}

#content strong {
    color: #302541;
}

#content a {
    color: #62518e;
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

#content img {
    max-width: 100%;
    height: auto;
}

#content iframe,
#content object {
    max-width: 100%;
    border: 0;
}

/* Copyright and disclaimer */
#menu .bottom-section {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #d5d2e5;
}

#menu .bottom-section p {
    color: #80798f;
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Responsive layout */
@media screen and (max-width: 768px) {
    #menu {
        position: relative;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid #d5d2e5;
    }

    #menu .container {
        padding: 20px;
    }

    #content {
        margin: 0;
        width: 100%;
    }

    #content .container {
        padding: 25px 20px;
    }

    #content iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Layout fix */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

#menu {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    float: none !important;
}

#menu .container {
    width: 100%;
    padding: 25px 20px;
    box-sizing: border-box;
}

/* Logo */
#menu .top-section img {
    display: block;
    max-width: 100%;
    height: auto;
}

#menu .top-section {
    overflow-wrap: normal;
    word-break: normal;
    margin-bottom: 25px;
}

/* Content position */
#content {
    position: relative !important;
    display: block;
    float: none !important;
    clear: none !important;
    margin: 0 0 0 250px !important;
    padding: 0;
    width: calc(100% - 250px);
    min-height: 100vh;
}

#content .container {
    position: relative;
    margin: 0;
    padding: 40px 50px;
    max-width: 1100px;
    width: 100%;
    box-sizing: border-box;
}

#content .container > p:first-child {
    margin-top: 0;
}

/* Mobile */
@media screen and (max-width: 768px) {
    #menu {
        position: relative !important;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    #content {
        margin: 0 !important;
        width: 100%;
        min-height: auto;
    }

    #content .container {
        padding: 25px 20px;
    }
}