/* Mobile menu overlay */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1999; /* Just below the mobile menu */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile menu styles */

.menu-icon {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1000;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-icon:hover {
    background-color: #e2e4e8;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: white;
    z-index: 2000;
    display: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
    right: 0;
}

.mobile-menu-container {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.close-menu {
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.mobile-menu-items a {
    text-decoration: none;
    color: #000;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Geist';
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.mobile-menu-items a:hover {
    color: #707072;
}

.mobile-menu-items a i {
    font-size: 28px;
}

.mobile-menu-jordan {
    margin-top: 40px;
    display: flex;
    align-items: center;
    padding: 0px 10px;
    cursor: pointer;
}

.mobile-menu-jordan svg {
    transform: scale(1.5);
    margin-right: 10px;
}

.mobile-menu-jordan span {
    font-size: 18px;
    font-weight: 500;
    font-family: 'Geist';
}

.mobile-menu-member {
    margin-top: 60px;
    padding: 0px 10px;
}

.mobile-menu-member p {
    font-size: 18px;
    font-weight: 500;
    color: #5f5f5f;
    font-family: 'Geist';
}

.mobile-menu-member p a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.mobile-menu-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.join-btn {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 20px;
}

.signin-btn {
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 20px;
}

.mobile-menu-footer {
    padding: 100px 0px 120px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-footer a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    font-family: 'Geist';
}

.mobile-menu-footer a i {
    font-size: 24px;
    margin-right: 10px;
}

/* Mobile submenu styles */

.menu-item-with-submenu {
    position: relative;
}

.toggle-submenu {
    text-decoration: none;
    color: #000;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Geist';
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

/* Styling for submenu items with right arrow */

.has-submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.has-submenu a i {
    margin-left: 10px;
    font-size: 22px;
}

.mobile-submenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background-color: white;
    z-index: 2001;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-submenu.active {
    right: 0;
}

.submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.submenu-header .back-to-menu {
    font-size: 28px;
    cursor: pointer;
}

.submenu-header .left-side {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.left-side:hover {
    color: #707072;
}

.left-side span {
    font-size: 16px;
    font-weight: 600;
    margin-left: 5px;
}

.submenu-header .close-submenu {
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.submenu-content {
    padding: 10px 30px 0px 30px;
}

.submenu-content h2 {
    font-family: 'Geist';
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
}

.submenu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-content ul li {
    cursor: pointer;
    margin-bottom: 15px;
}

.submenu-content ul li a {
    text-decoration: none;
    color: #707072;
    font-size: 18px;
    font-weight: 500;
}

.last-menu-item {
    font-family: 'Geist';
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

/* responsive */

@media screen and (max-width: 960px) {
    .header {
        background-color: white;
    }
    
    .header-top {
        display: none;
    }
    
    .header-main-nav {
        display: none;
    }
    
    .menu-icon {
        display: block;
    }
    
    .header-main-section {
        padding: 0 20px;
        height: 60px;
        position: relative;
    }
    
    .header-main-logo {
        height: 50px;
        width: 50px;
    }

    /* Ensure the header isn't pushed too far up when in compact mode */
    .header--compact {
        transform: translateY(0);
    }

    /* Fix for mobile menu */
    .mobile-menu { 
        width: 320px;
        height: 100vh;
    }
    
    /* Fix for main container in mobile view */
    .main-container {
        margin-top: 60px;
    }
}