.estudae-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #FFFFFF;
    border-bottom: 2px solid #D4A94F;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.estudae-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
    height: 18px;
    justify-content: center;
    position: relative;
}

.estudae-hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #00222E;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.estudae-menu-toggle.active .estudae-hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.estudae-menu-toggle.active .estudae-hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.estudae-menu-toggle.active .estudae-hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.estudae-menu-toggle-label {
    font-weight: 600;
    font-size: 17px;
    color: #00222E;
}

.estudae-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.estudae-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.estudae-mobile-menu-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #FFFFFF;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
}

.estudae-mobile-menu-wrapper.open {
    display: block;
    transform: translateX(0);
}

.estudae-mobile-menu-wrapper .estudae-menu-list {
    flex-direction: column;
    padding: 16px 0;
}

.estudae-mobile-menu-wrapper .estudae-menu-link {
    padding: 16px 22px;
    white-space: normal;
    font-size: 17px;
    border-left: 3px solid transparent;
    color: #00222E;
}

.estudae-mobile-menu-wrapper .estudae-menu-link:hover {
    color: #00222E;
    background: transparent;
}

.estudae-mobile-menu-wrapper .estudae-menu-link::after {
    display: none;
}

.estudae-mobile-menu-wrapper .estudae-menu-link .estudae-menu-arrow {
    display: none;
}

.estudae-mobile-menu-wrapper .estudae-menu-link-current {
    background: rgba(212, 169, 79, 0.20) !important;
    border-left-color: #D4A94F !important;
    color: #00222E !important;
    font-weight: 700 !important;
}

.estudae-mobile-menu-wrapper .estudae-menu-item-current > .estudae-menu-link {
    background: rgba(212, 169, 79, 0.20) !important;
    border-left-color: #D4A94F !important;
    color: #00222E !important;
    font-weight: 700 !important;
}

.estudae-mobile-menu-wrapper .estudae-menu-item-ancestor > .estudae-menu-link {
    color: #D4A94F;
}

.estudae-mobile-menu-wrapper .estudae-submenu .estudae-menu-link-current {
    background: rgba(212, 169, 79, 0.22) !important;
    border-left-color: #D4A94F !important;
    font-weight: 700 !important;
    color: #00222E !important;
}

.estudae-mobile-menu-wrapper .estudae-submenu .estudae-menu-link {
    color: #00222E;
}

.estudae-mobile-menu-wrapper .estudae-submenu {
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: static;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    background: #f8f9fa;
    padding: 0;
    transition: none;
}

.estudae-mobile-menu-wrapper .estudae-submenu.open {
    height: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.estudae-mobile-menu-wrapper .estudae-submenu .estudae-submenu {
    padding-left: 12px;
}

.estudae-mobile-menu-wrapper .estudae-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(212, 169, 79, 0.06);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #00222E;
    transition: background 0.15s ease, color 0.15s ease;
    z-index: 5;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.estudae-mobile-menu-wrapper .estudae-submenu-toggle:hover {
    background: rgba(212, 169, 79, 0.12);
    color: #D4A94F;
}

.estudae-mobile-menu-wrapper .estudae-submenu-toggle .estudae-menu-arrow {
    transition: transform 0.3s ease;
    pointer-events: none;
}

.estudae-mobile-menu-wrapper .estudae-submenu-toggle.rotated .estudae-menu-arrow {
    transform: rotate(180deg);
}

.estudae-mobile-menu-wrapper .estudae-menu-item-has-children {
    position: relative;
}

.estudae-mobile-menu-wrapper .estudae-menu-item-has-children:hover > .estudae-submenu,
.estudae-mobile-menu-wrapper .estudae-menu-item-has-children:focus-within > .estudae-submenu {
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.estudae-mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f1;
}

.estudae-mobile-close-btn button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #00222E;
    font-size: 20px;
    line-height: 1;
}

.estudae-mobile-header {
    padding: 16px 22px;
    font-weight: 700;
    font-size: 18px;
    color: #00222E;
    border-bottom: 2px solid #D4A94F;
}

@media (max-width: 782px) {
    .estudae-menu-toggle {
        display: flex;
    }

    .estudae-menu-overlay {
        display: block;
    }

    .estudae-menu-wrapper {
        display: none;
    }
}
