/* Shared Navbar Styles — Stripe-inspired */
.top-nav {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    border-bottom: 1px solid #e3e8ee;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.top-nav ul {
    list-style-type: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.top-nav ul li {
    flex-shrink: 0;
}

.top-nav ul li a {
    color: #697386;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.top-nav ul li a:hover {
    color: #1a1f36;
    background-color: #f6f9fc;
}

.top-nav ul li a.active {
    color: #1a1f36;
    font-weight: 600;
}

.hamburger {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: #1a1f36;
    background: none;
    border: none;
    padding: 0;
}

/* Sub-navigation for sections */
.sub-nav {
    width: 100%;
    background-color: #f6f9fc;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 44px;
    border-bottom: 1px solid #e3e8ee;
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 999;
}

.sub-nav ul {
    list-style-type: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.sub-nav ul li {
    flex-shrink: 0;
}

.sub-nav ul li a {
    color: #697386;
    text-decoration: none;
    font-size: 13px;
    font-family: inherit;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sub-nav ul li a:hover {
    color: #1a1f36;
    background-color: #fff;
}

.sub-nav ul li a.active {
    color: #1a1f36;
    font-weight: 600;
    background-color: #fff;
}

@media (max-width: 768px) {
    .top-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        padding: 8px 0;
        border-top: 1px solid #e3e8ee;
        position: absolute;
        top: 56px;
        left: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .top-nav ul.expanded {
        display: flex;
    }

    .top-nav ul li {
        width: 100%;
    }

    .top-nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 24px;
        border-radius: 0;
    }

    .hamburger {
        display: block;
    }

    .sub-nav {
        top: 56px;
        height: auto;
        padding: 8px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav ul {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .sub-nav ul li a {
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 8px;
    }
}
