.page-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--main-yellow);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-content {
    flex: 1;
}

.left-menu {
    background-color: var(--main-green);
    border: 8px dotted var(--main-pink);
    padding: 20px;
    width: 350px !important;
    margin: 0 !important;
    box-sizing: border-box;
    height: fit-content;
    position: sticky;
    top: 20px;
    margin-top: 100px !important;
}

.left-menu h2 {
    text-align: center;
    margin-top: 0;
}

.menu-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.menu-list li {
    margin-bottom: 0.8em;
}

.menu-list a {
    display: block;
    padding: 0.1em;
    text-decoration: none;
}

.menu-list a:hover {
    background-color: var(--main-pink);
    color: var(--main-yellow);
}

/* Submenu Styles */
.li2 {
    position: relative;
}

.submenu {
    list-style: none;
    margin-left: 0;
    margin-top: 0.5em;
    padding-left: 1.5em;
    display: block;
}

.submenu li {
    margin-bottom: 0.5em;
    list-style: none;
}

.submenu a {
    display: block;
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.85;
    border-left: 3px solid var(--main-pink);
    padding: 0.4em 0.4em 0.4em 0.5em;
}

.submenu a:hover {
    background-color: var(--main-pink);
    color: var(--main-yellow);
    opacity: 1;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--main-pink);
    border: none;
    width: 50px;
    height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--main-yellow);
    margin: 4px 0;
    transition: 0.3s;
    display: block;
}

.hamburger-btn:hover .hamburger-line {
    background-color: var(--main-white);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }

    .page-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 0;
        overflow-x: hidden;
        width: 100%;
    }

    /* Show hamburger button on mobile */
    .hamburger-btn {
        display: flex;
    }

    /* Hamburger menu styles */
    .left-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        margin: 0 !important;
        border: none;
        border-radius: 0;
        padding: 80px 20px 20px 20px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .left-menu.active {
        transform: translateX(0);
    }

    .left-menu h2 {
        margin-top: 0;
        padding-top: 0;
    }

    .main-content {
        width: 100%;
        order: 2;
        padding: 10px;
        box-sizing: border-box;
    }

    /* Optimize content for mobile */
    #banner,
    section,
    div#content,
    div#links,
    div#disturber,
    .our-instances,
    .workshop-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    /* Reduce padding for mobile */
    .our-instances {
        padding: 15px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Adjust iframe for mobile */
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Improve text readability on mobile */
    body {
        font-size: 1.1em;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.15em;
    }

    /* Adjust workshop container for mobile */
    .workshop-container {
        flex-direction: column;
        gap: 10px;
    }

    .workshop-flyer {
        max-height: 100%;
        width: 100%;
    }

    /* Reduce gap in menu items for mobile */
    .menu-list li {
        margin-bottom: 0.5em;
    }

    /* Improve accessibility on mobile */
    .menu-list a {
        padding: 0.8em 0.5em;
        font-size: 1em;
    }

    /* Mobile submenu styles */
    .submenu {
        padding-left: 2em;
    }

    .submenu a {
        padding: 0.6em 0.5em;
        font-size: 0.95em;
    }

    /* Hide sticky positioning on mobile */
    .left-menu {
        position: fixed;
    }

    /* Add safe spacing for mobile */
    body {
        margin: 0;
        padding: 0;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .hamburger-btn {
        top: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
    }

    .left-menu {
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 70px 15px 15px 15px;
    }

    body {
        font-size: 1em;
    }

    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.15em;
    }

    .page-wrapper {
        padding: 0;
        gap: 0;
        width: 100%;
    }

    #banner,
    section,
    div#content,
    div#links,
    div#disturber,
    .our-instances,
    .workshop-container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .our-instances {
        padding: 10px;
        margin-top: 15px;
        margin-bottom: 15px;
        border-width: 4px;
    }

    .menu-list li {
        margin-bottom: 0.3em;
    }

    .menu-list a {
        padding: 0.6em 0.5em;
    }
}
