/* Mobile Menu Close Button Styles */
@media (max-width: 768px) {
    /* Mobile menu header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f9fafb;
        position: relative;
    }
    
    .mobile-menu-logo {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        flex: 1;
    }
    
    /* Close button in mobile menu */
    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.2s ease;
        z-index: 10;
    }
    
    .mobile-menu-close i {
        font-size: 1.5rem;
        color: #64748b;
        transition: color 0.2s ease;
    }
    
    .mobile-menu-close:hover {
        background: #f1f5f9;
    }
    
    .mobile-menu-close:hover i {
        color: #334155;
    }
    
    .mobile-menu-close:active {
        transform: scale(0.95);
    }
    
    /* Hide the hamburger button when menu is open */
    body.menu-open .mobile-menu-toggle,
    .mobile-menu.active ~ .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Ensure mobile menu content doesn't overlap with close button */
    .mobile-nav-list {
        padding-top: 1rem;
    }
}

/* Additional styles for better appearance */
.mobile-menu {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}