/* =========================================
   Sub Nav (v2) - sticky secondary tab bar shown on section pages
   (e.g. Hire/Onboard/Perform/Engage/Develop under Platform).
   Sticks directly under Components/main_nav's 82px-tall bar.
   Spec source: MegaMenu/secondary menu*.pdf, MegaMenu/seonday mobile.pdf
========================================= */

.snav {
    position: sticky;
    top: 82px;
    z-index: 999;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
    font-family: 'Raleway', sans-serif;
}

.snav__inner {
    height: 80px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.snav__tabs {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.snav__tab {
    margin: 0 32px 0 0;
}

.snav__tab a {
    position: relative;
    display: inline-block;
    font-size: 19px;
    font-weight: 600;
    color: var(--color-off-black, #1e1e1e);
    text-decoration: none;
    white-space: nowrap;
}

.snav__tab a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -13px;
    height: 1px;
    background: transparent;
}

.snav__tab a:hover {
    color: var(--color-medium-teal, #25837D);
}

.snav__tab.is-active a {
    font-weight: 700;
}

.snav__tab.is-active a::after {
    background: linear-gradient(90deg, var(--color-teal, #67D1CE), var(--color-yellow, #FFC424), var(--color-pink, #e22b7f));
}

.snav__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.snav__text-link {
    margin-left: 32px;
    font-size: 19px;
    font-weight: 600;
    color: var(--color-off-black, #1e1e1e);
    text-decoration: none;
    white-space: nowrap;
}

.snav__text-link:hover {
    color: var(--color-medium-teal, #25837D);
}

.snav__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    margin-left: 20px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.snav__actions > *:first-child {
    margin-left: 0;
}

/* Matches the .btn.basics.btn-rainbow utility in ModularPageBuilderBaseStyles.css
   (scoped there to [id^="ModularPageBuilder"], so replicated here directly) */
.snav__btn--outline {
    background-color: #fff;
    color: var(--color-off-black, #1e1e1e);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
        linear-gradient(90deg, var(--color-teal, #67D1CE), var(--color-yellow, #FFC424), var(--color-pink, #e22b7f));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: box-shadow 0.3s ease;
}

/* Even rainbow glow behind the button, sized equally on all 4 sides via a
   blurred pseudo-element rather than stacked left/right box-shadows - the
   old 3-shadow recipe (offset left, centre, offset right) left the
   top/bottom edges with almost none of the colour, which read as a muddy
   grey band instead of a clean glow. Matches the same fix on
   Components/main_nav/style.css's .tnav__mega-card. */
.snav__btn--outline::before {
    content: '';
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-teal, #67D1CE), var(--color-yellow, #FFC424), var(--color-pink, #e22b7f));
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.snav__btn--outline:hover {
    box-shadow: 0 0 0 2px #fff;
}

.snav__btn--outline:hover::before {
    opacity: 0.35;
}

.snav__btn--pink {
    background: var(--color-pink, #e22b7f);
    color: #fff;
    border: 1px solid #fff;
    box-shadow: 0 0 15px 0 #e22b7f78;
}

.snav__btn--pink:hover {
    box-shadow: 0 0 16px 0 #d5176c72, 0 0 0 2px var(--color-pink, #e22b7f);
}

/* Shadow only kicks in on scroll, matching the top nav's own shadow */
.snav.is-scrolled {
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
}

.snav__mobile {
    display: none;
}

/* =========================================
   Responsive: 1600 / 1280 / 1024
========================================= */

@media (max-width: 1600px) {
    .snav__inner {
        padding: 0 30px;
    }
}

@media (max-width: 1280px) {
    .snav__inner {
        padding: 0 20px;
    }
    .snav__tab {
        margin-right: 25px;
    }
}

@media (max-width: 1024px) {
    .snav__inner {
        padding: 0 15px;
    }
    .snav__tab a,
    .snav__text-link {
        font-size: 16px;
    }
    .snav__tab {
        margin-right: 20px;
    }
    .snav__btn {
        padding: 0 16px;
        font-size: 14px;
    }
}

/* =========================================
   Mobile (<= 991px) - collapses to a single toggle row showing the
   active tab, expanding to the full list underneath.
========================================= */

@media (max-width: 991px) {
    /* main_nav's .tnav__bar drops from 82px to 66px at this same breakpoint -
       match it so .snav sticks flush under the header instead of 16px low. */
    .snav {
        top: 66px;
    }

    .snav__inner {
        display: none;
    }

    .snav__mobile {
        display: block;
    }

    .snav__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 53px;
        padding: 0 15px;
        background: none;
        border: 0;
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: var(--color-off-black, #1e1e1e);
        cursor: pointer;
    }

    .snav__mobile-toggle i {
        transition: transform 0.2s ease;
    }

    .snav.is-mobile-open .snav__mobile-toggle i {
        transform: rotate(180deg);
    }

    .snav__mobile-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: none;
        background: #fff;
    }

    .snav.is-mobile-open .snav__mobile-list {
        display: block;
    }

    .snav__mobile-item {
        position: relative;
        border-bottom: 1px solid #efefef;
        padding-left: 15px;
    }

    .snav__mobile-item a {
        display: block;
        min-height: 53px;
        line-height: 53px;
        font-size: 16px;
        font-weight: 500;
        font-family: 'Montserrat', sans-serif;
        color: var(--color-off-black, #1e1e1e);
        text-decoration: none;
    }

    .snav__mobile-item.is-active {
        padding-left: 12px;
        border-left: 3px solid;
        border-image: linear-gradient(180deg, var(--color-teal, #67D1CE), var(--color-yellow, #FFC424), var(--color-pink, #e22b7f)) 1;
    }

    .snav__mobile-item.is-active a {
        font-weight: 700;
    }

    /* Just spacing between the tabs and the Integrations/All Features links -
       no background line of its own, since each .snav__mobile-item above
       already has its own border-bottom acting as a divider; adding a second
       line here on top of that produced a doubled-line look. */
    .snav__mobile-divider {
        height: 12px;
    }

    .snav__mobile-buttons {
        display: flex;
        gap: 12px;
        padding: 15px;
    }

    .snav__mobile-buttons .snav__btn {
        flex: 1;
        margin-left: 0;
    }
}
