/* Simple Mobile Menu CSS - Updated */

/* Reset and style the FRESH hamburger button */
.new-hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.new-hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #1a1a2e;
    /* Navy Blue */
    border-radius: 4px;
    transition: all 0.3s ease;
}

.new-hamburger-btn span:nth-child(2) {
    width: 80%;
    margin-left: auto;
}

/* Hover effect */
.new-hamburger-btn:hover span {
    background-color: #C9A962;
    /* Gold */
    width: 100%;
}

/* Hide old styles */
.burger-icon,
.burger-icon-white {
    display: none !important;
}

/* Force layout on mobile */
@media (max-width: 991px) {
    .nav-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .header-right {
        margin-left: auto !important;
    }
}

#simple-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

#simple-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#simple-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    /* Slightly wider for better spacing */
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smooth eased transition */
    display: flex;
    flex-direction: column;
}

#simple-mobile-menu.active {
    right: 0;
}

/* Header inside menu */
.mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: #ffffff;
    /* Clean white header */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #1a1a2e;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.mobile-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Menu items container - CRITICAL FOR SCROLLING */
.mobile-menu-items {
    padding: 0;
    overflow-y: auto;
    /* Enable vertical scroll */
    flex-grow: 1;
    /* Fill remaining space */
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
}

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

.mobile-menu-list>li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Unified Link Styling */
.mobile-menu-list a,
.mobile-menu-list .flex-grow-1 {
    display: block;
    padding: 18px 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    /* Larger font size */
    font-weight: 600;
    color: #1a1a2e !important;
    /* Force Navy Blue */
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list .flex-grow-1:hover {
    color: #C9A962 !important;
    /* Gold on hover */
    background-color: #fcfcfc;
    padding-left: 30px;
    /* Slide effect */
}

/* Flex container for items with submenus */
.mobile-menu-list .d-flex {
    align-items: center;
    padding-right: 20px;
    /* Space for the arrow */
}

/* Submenu Toggle Icon */
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #1a1a2e;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    transition: all 0.3s;
}

.mobile-submenu-toggle:active {
    background: rgba(0, 0, 0, 0.1);
}

/* Submenu Styling */
.mobile-submenu {
    background: #fcfcfc;
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.02);
}

.mobile-submenu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu li a {
    padding: 14px 25px 14px 35px;
    /* Indented */
    font-size: 1.05rem;
    font-weight: 500;
    color: #555 !important;
}

.mobile-submenu li a:hover {
    color: #C9A962 !important;
    padding-left: 40px;
}