/* Mobile Menu Widget Styles */
.mobile-menu-widget {
    position: relative;
    display: block;
    width: 100%;
}

.mobile-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 20px !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 1001 !important;
    width: 100% !important;
    min-height: 50px !important;
    /* Remove all focus/active effects */
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.mobile-menu-left-content {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 30px;
}

.mobile-menu-right-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.mobile-menu-image {
    display: flex;
    align-items: center;
    min-width: 30px;
    min-height: 30px;
}

.mobile-menu-image img {
    max-height: 30px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.mobile-menu-separator {
    width: 2px;
    height: 30px;
    background-color: #ff0000;
    display: block;
    align-self: center; /* Center vertically within flex container */
}

.hamburger-text {
    font-weight: 500;
    font-size: 14px;
}

.hamburger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 71px;
    height: 80px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.hamburger-icon .hamburger-svg {
    opacity: 1;
    transform: scale(1);
}

.hamburger-icon .close-svg {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    top: 0;
    left: 0;
}

/* Removed hamburger-line styles - now using SVG */

/* SVG Hamburger to X animation */
.mobile-menu-toggle.active .hamburger-icon .hamburger-svg {
    opacity: 0;
    transform: scale(0.8);
}

.mobile-menu-toggle.active .hamburger-icon .close-svg {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Menu Overlay - removed, using direct content animation */

.mobile-menu-content {
    position: fixed;
    width: 100vw;
    height: 0;
    background-color: #ffffff;
    padding: 0;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow: hidden;
    left: 0;
    top: 0;
}

.mobile-menu-content.active {
    /* fully visible without opacity tricks */
}

/* Remove any initial opacity/transform on inner sections to avoid faded look */
.mobile-menu-close,
.mobile-menu-nav {
    opacity: 1;
    transform: none;
}

/* Navigation Menu */
.mobile-menu-nav {
    margin-bottom: 30px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block !important;
}

.mobile-menu-list li {
    margin: 0;
    padding: 0;
    display: block !important;
}

.mobile-menu-list a {
    display: block;
    padding: 0 20px;
    text-decoration: none;
    color: #000000;
    font-family: 'Lato', sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    height: 3.625rem;
    line-height: 3.625rem;
    border-bottom: 1px solid #EFDFDF;
    transition: color 0.3s ease;
}

.mobile-menu-list a:hover {
    color: #007cba;
}

.mobile-menu-list .sub-menu {
    margin-left: 20px;
    margin-top: 0;
}

.mobile-menu-list .sub-menu a {
    font-size: 1.5rem;
    color: #666666;
    height: 3rem;
    line-height: 3rem;
}

/* Custom Menu Items */
.mobile-menu-custom-items {
    margin-top: 20px;
}

.mobile-menu-custom-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.mobile-menu-custom-item:hover {
    background-color: #f8f9fa;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.mobile-menu-custom-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    color: var(--item-color, #333333);
}

.custom-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--item-color, #333333);
}

.custom-item-icon svg {
    width: 100%;
    height: 100%;
}

.custom-item-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--item-color, #333333);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-list a {
        font-size: 1.5rem;
        height: 3.25rem;
        line-height: 3.25rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu-list a {
        font-size: 1.25rem;
        height: 3rem;
        line-height: 3rem;
    }
}

/* Animation for smooth transitions */
.mobile-menu-widget * {
    box-sizing: border-box;
}

/* Focus styles for accessibility - removed mobile-menu-toggle focus */
.mobile-menu-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}
/* Additional hamburger icon styles when no text - updated for SVG */
.mobile-menu-widget:not(:has(.hamburger-text)) .mobile-menu-toggle {
    padding: 8px;
    gap: 0;
    justify-content: center;
}

.mobile-menu-widget:not(:has(.hamburger-text)) .hamburger-icon {
    width: 71px;
    height: 80px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-menu-overlay {
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .mobile-menu-content {
        background-color: #ffffff;
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-menu-toggle,
    .hamburger-line,
    .mobile-menu-overlay,
    .mobile-menu-content,
    .mobile-menu-custom-item {
        transition: none;
    }
}

