/* Navigation Styles */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo:hover {
    color: #007AFF;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007AFF;
}

.nav-menu .nav-cta {
    color: #007AFF;
    padding: 8px 20px;
    border: 2px solid #007AFF;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu .nav-cta:hover {
    background: #007AFF;
    color: white;
}

/* Resources dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 220px;
    margin-top: 0;
    display: none;
    list-style: none;
}

/* Create an invisible bridge to prevent dropdown from closing when moving mouse */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.active .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    padding: 0;
    border-bottom: none;
}

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    transition: background 0.2s ease;
}

.nav-dropdown a:hover {
    background: #f8f9fa;
    color: #007AFF;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 8px;
}

@media (max-width: 767px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
    }
    
    .nav-dropdown {
        position: static;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        margin-left: 20px;
        display: none;
    }
    
    .nav-item-dropdown.active .nav-dropdown {
        display: block;
    }
}

