.mobile-menu-hamburger-container {
    position: relative;
}

.mobile-menu-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: transparent !important;
    background: transparent !important;
    border: none;
    transition: transform 0.3s;
    z-index: 1001;
    position: relative;
    padding: 0;
    box-shadow: none !important;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(0, 0, 0, 0.1);
    outline-offset: 2px;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background-color: #424242 !important;
    background: #424242 !important;
    margin: 3px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

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

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

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

.mobile-menu-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, top 0.3s ease-in-out;
    z-index: 1000;
    top: var(--mobile-header-height, 88px);
    
    
}

/* Adjust top position when header is stuck (shrunk to 60px) - Compatible with all browsers including Opera iOS/MacBook */
body.header-is-stuck .mobile-menu-dropdown,
.mobile-menu-dropdown.header-is-stuck {
    top: 60px;
}

#mobile-header .mobile-menu-dropdown.active {
    max-height: calc(100vh - var(--mobile-header-height, 200px));
    overflow-y: auto;
    text-decoration: none;
    padding: 20px 10px;
    border-top: 3px solid #c3cc21;
}

/* Adjust max-height calculation when header is stuck - Compatible with all browsers including Opera iOS/MacBook */
body.header-is-stuck .mobile-menu-dropdown.active,
.mobile-menu-dropdown.header-is-stuck.active {
    max-height: calc(100vh - 60px);
}

.mobile-menu-list {
    list-style: none;
    margin: 0 20px;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #eee;
}
.mobile-menu-list .menu-item {
       padding: 10px;
}
.mobile-menu-list > li > .sub-menu > li.menu-item-has-children > a,
.mobile-menu-list > li.menu-item-has-children > a {
    font-weight: 700;

}
.mobile-menu-list > li.menu-item-has-children > a
{
    padding: 10px;
}

.mobile-menu-list > li > a {
    display: block;
    color: #505050;
    font-size: 14px;
    transition: background-color 0.2s ease;

}

.mobile-menu-list a:hover {
    background-color: #f5f5f5;
}


.mobile-menu-list .current-menu-item
{
background-color: #f9f9f9;
}
.mobile-menu-list .sub-menu {
    list-style: none;
    padding-left: 0;
    margin-left: 5%;

}

.mobile-menu-list > li > .sub-menu > li > a {

    font-size: 14px;

}

.mobile-menu-list > li > .sub-menu > li > .sub-menu > li:last-child,
.mobile-menu-list > li > .sub-menu > li:last-child,
.mobile-menu-list > li:last-child
{
 border-bottom:none;

}

.mobile-menu-list .sub-menu .sub-menu a {

    font-size: 14px;
}

.mobile-menu-language-switcher {
    margin: 30px 20px 10px;
    padding: 20px 0 0;
    border-top: 2px solid #eee;
}

.language-switcher-title {
    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.language-switcher-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 5px 12px;

    border-radius: 8px;
    color: #505050;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.language-flag-icon {
    width: 32px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.language-names {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.language-name-en {
    font-size: 14px;
    font-weight: 600;
    color: #505050;
}

.language-name-native {
    font-size: 14px;
    color: #888;
}

.language-option:hover {
    background: #ebebeb;
    border-color: #c3cc21;
    transform: translateX(4px);
}

.language-option.active {
    background: #c3cc21;
    border-color: #c3cc21;
}

.language-option.active .language-name-en,
.language-option.active .language-name-native {
    color: #fff;
}

@media (min-width: 1024px) {
    .mobile-menu-hamburger-container {
        display: none;
    }
}
