@media (max-width: 1024px) {
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(2px);
        padding: 20px;
        box-sizing: border-box;
    }

    .mobile-menu-content {
        background-color: white;
        width: 95%;
        max-width: 600px;
        height: 80vh;
        max-height: 80vh;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: scale(0.9);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .mobile-menu-overlay {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.show {
        opacity: 1;
    }

    .mobile-menu-overlay.show .mobile-menu-content {
        transform: scale(1);
    }

    .mobile-menu-header {
        background-color: #00488d;
        color: white;
        padding: 20px 25px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
    }

    .mobile-menu-header h3 {
        margin: 0;
        font-size: 2.2em;
    }

    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 3em;
        cursor: pointer;
        padding: 0;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-items {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        max-height: none;
    }

    .mobile-menu-item {
        border-bottom: 1px solid #eee;
    }

    .mobile-menu-main {
        display: block;
        padding: 20px 30px;
        color: #333;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.8em;
        background-color: #f8f9fa;
        border: none;
        width: 100%;
        text-align: left;
        cursor: pointer;
        min-height: 60px;
        box-sizing: border-box;
    }

    .mobile-menu-main:hover {
        background-color: #e9ecef;
    }

    .mobile-submenu {
        display: none;
        background-color: #fff;
    }

    .mobile-submenu a {
        display: flex;
        padding: 15px 50px;
        color: #555;
        text-decoration: none;
        font-size: 1.5em;
        border-bottom: 1px solid #f0f0f0;
        min-height: 50px;
        box-sizing: border-box;
        align-items: center;
    }

    .mobile-submenu a:hover {
        background-color: #f8f9fa;
        color: #00488d;
    }

    .mobile-submenu a:last-child {
        border-bottom: none;
    }

    /* Új stílusok az almenüket tartalmazó elemekhez */
    .mobile-menu-item-with-submenu {
        display: flex;
        border-bottom: 1px solid #eee;
        background-color: #f8f9fa;
        font-size: 1.2em;
    }

    .mobile-menu-item-with-submenu .mobile-menu-main {
        flex: 1;
        border-bottom: none;
        background-color: transparent;
        margin: 0;
        border-radius: 0;
        display: flex;
        align-items: center;
    }

    .mobile-submenu-toggle {
        background: none;
        border: none;
        color: #333;
        font-size: 1.5em;
        cursor: pointer;
        padding: 20px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        transition: background-color 0.2s ease;
    }

    .mobile-submenu-toggle:hover {
        background-color: #e9ecef;
    }

    .mobile-arrow {
        transition: transform 0.3s ease;
        display: inline-block;
    }

    /* Almenü megjelenítés finomítása */
    .mobile-submenu {
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .mobile-submenu[style*="block"] {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            max-height: 0;
            opacity: 0;
        }
        to {
            max-height: 500px;
            opacity: 1;
        }
    }
}