/* ============================================
   FAQ — Sidebar Navigation
   This file ONLY adds a sidebar next to the
   existing FAQ accordion list. It does not
   modify .np_FAQ_list / .np_FAQ_list_content /
   .np_FAQ_list_disc etc. — those keep working
   exactly as before, untouched, in style.css.
   ============================================ */

.np_FAQ_layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.np_FAQ_listWrap {
    flex: 1;
    min-width: 0;
}

.np_FAQ_listWrap .np_FAQ_list {
    width: 100%;
}

/* Category-based listing: only the active category's FAQ list is
   shown at a time; switching sidebar tabs toggles which one has
   the `active` class (see faq-sidebar.js). */
.np_FAQ_listWrap .np_FAQ_list[data-faq-category] {
    display: none;
}

.np_FAQ_listWrap .np_FAQ_list[data-faq-category].active {
    display: flex;
}

/* Label + big heading shown above the active category's list,
   e.g. "Mutual Funds" / "Mutual Funds Related Questions" */
.np_FAQ_categoryHead {
    margin-bottom: 28px;
}

.np_FAQ_categoryHead_label {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.np_FAQ_categoryHead h3 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.3;
}

@media screen and (max-width: 640px) {
    .np_FAQ_categoryHead h3 {
        font-size: 26px;
    }
}

/* ---------- Sidebar ---------- */
.np_FAQ_sidebar {
    flex: 0 0 300px;
    max-width: 300px;
    position: sticky;
    top: 120px;
}

.np_FAQ_sidebar_scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 4px;
}

.np_FAQ_sidebar_scroll::-webkit-scrollbar {
    width: 4px;
}

.np_FAQ_sidebar_scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Same card treatment as the existing accordion headers, so it
   looks like it belongs to the same design language. */
.np_FAQ_sidebarTab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 7px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.01) 50%, rgba(255, 255, 255, 0.09) 100%);
    color: var(--text-white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

html[dir="rtl"] .np_FAQ_sidebarTab {
    text-align: right;
}

/* Ripple / reveal hover — same trick used on the accordion cards */
.np_FAQ_sidebarTab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: circle(0% at 50% 50%);
    transition: all cubic-bezier(0, 0.96, 0.58, 1.1) 0.8s;
    z-index: -1;
    background: var(--text-white);
}

.np_FAQ_sidebarTab:hover::before {
    clip-path: circle(100% at 50% 50%);
    transition: all cubic-bezier(0, 0.96, 0.58, 1.1) 2s;
}

.np_FAQ_sidebarTab:hover {
    color: var(--primary-blue);
}

.np_FAQ_sidebarTab:hover .np_FAQ_sidebarTab_icon svg path {
    fill: var(--primary-blue);
}

.np_FAQ_sidebarTab.active {
    background: var(--text-white);
    color: var(--primary-blue);
    font-weight: 500;
}

.np_FAQ_sidebarTab.active .np_FAQ_sidebarTab_icon svg path {
    fill: var(--primary-blue);
}

.np_FAQ_sidebarTab_icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np_FAQ_sidebarTab_icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.np_FAQ_sidebarTab_label {
    flex: 1;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1024px) {
    .np_FAQ_sidebar {
        flex: 0 0 0;
        max-width: 260px;
    }
}

@media screen and (max-width: 820px) {
    .np_FAQ_layout {
        flex-direction: column;
        gap: 20px;
    }

    .np_FAQ_sidebar {
        position: static;
        max-width: 100%;
        width: 100%;
    }

    .np_FAQ_sidebar_scroll {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 4px 4px 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .np_FAQ_sidebar_scroll::-webkit-scrollbar {
        height: 4px;
    }

    .np_FAQ_sidebarTab {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .np_FAQ_listWrap {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .np_FAQ_sidebarTab {
        padding: 10px 16px;
        font-size: 14px;
    }
}
