.mutual-funds-list-wrapper .mf-tabs-section {
    margin-bottom: 12px;
}

.mutual-funds-list-wrapper .mf-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mutual-funds-list-wrapper .mf-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border: 2px solid #0086DD;
    border-radius: 100px;
    background: #FFFFFF;
    color: #0086DD;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    box-shadow: 0px 8px 18px rgba(0, 134, 221, 0.10);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mutual-funds-list-wrapper .mf-filter-btn:hover {
    background: #E9F5FF;
    box-shadow: 0px 10px 20px rgba(0, 134, 221, 0.15);
}

.mutual-funds-list-wrapper .mf-filter-btn:focus {
    outline: 3px solid #242424;
    outline-offset: -3px;
}

.mutual-funds-list-wrapper .mf-filter-icon svg {
    display: block;
}

.mutual-funds-list-wrapper .mf-list-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.mutual-funds-list-wrapper .mutual-funds-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 330px));
    gap: 16px;
    padding: 12px 4px;
    justify-content: start;
}

.mutual-funds-list-wrapper .mutual-fund-card {
    min-width: 310px;
    max-width: 330px;
    width: 100%;
    box-shadow: 0px 1px 14px 0px #0000000F;
    border: 0 none;
}

.mutual-funds-list-wrapper .mf-header-section {
    margin-bottom: 12px;
}

.mutual-funds-list-wrapper .mf-tabs {
    flex-wrap: wrap;
    gap: 12px;
}

.mutual-funds-list-wrapper .mf-tab,
.mutual-funds-list-wrapper button.mf-tab {
    background: #F1F1F1;
    color: #5E6166;
    border: 1px solid transparent;
    border-radius: 100px;
    padding: 7px 15px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    box-shadow: none;
    transition: all 0.2s ease;
}

.mutual-funds-list-wrapper .mf-tab.active,
.mutual-funds-list-wrapper button.mf-tab.active {
    background: #FFF9EA;
    color: #B17700;
    border-color: #D8A315;
    box-shadow: 0px 8px 18px rgba(216, 163, 21, 0.18);
}

.mutual-funds-list-wrapper .mf-tab:hover,
.mutual-funds-list-wrapper button.mf-tab:hover {
    background: #E8E8E8;
    color: #3C3E42;
}

.mutual-funds-list-wrapper .mf-tab:focus,
.mutual-funds-list-wrapper button.mf-tab:focus {
    outline: 3px solid #242424;
    outline-offset: -3px;
}

.mutual-funds-list-wrapper .mf-tab::after,
.mutual-funds-list-wrapper button.mf-tab::after {
    display: none;
}

.mutual-funds-list-wrapper .mf-filter-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.mutual-funds-list-wrapper .mf-filter-modal.open {
    display: flex;
}

.mutual-funds-list-wrapper .mf-filter-dialog {
    background: #FFFFFF;
    border-radius: 22px;
    max-width: 840px;
    width: 100%;
    box-shadow: 0px 18px 38px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mutual-funds-list-wrapper .mf-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #F0F0F0;
    cursor: move;
    user-select: none;
}

.mutual-funds-list-wrapper .mf-filter-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #242424;
}

.mutual-funds-list-wrapper .mf-filter-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    outline: none;
}

.mutual-funds-list-wrapper .mf-filter-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 420px;
}

.mutual-funds-list-wrapper .mf-filter-groups {
    background: #F8F8F8;
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mutual-funds-list-wrapper .mf-filter-group {
    text-align: left;
    padding: 12px 14px 12px 18px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 16px;
    font-weight: 600;
    color: #4B4E52;
    cursor: pointer;
    width: 100%;
}
.mutual-funds-list-wrapper .mf-filter-group:hover{
    background: #FFFFFF;
    color: #17181A;
    border: none;

}
.mutual-funds-list-wrapper .mf-filter-group.active {
    background: #FFFFFF;
    color: #17181A;
    /* box-shadow: inset 3px 0 0 #0086DD; */
    border: none;
}

.mutual-funds-list-wrapper .mf-filter-panels {
    padding: 16px 20px 24px 20px;
    overflow-y: auto;
}

.mutual-funds-list-wrapper .mf-filter-panel {
    display: none;
}

.mutual-funds-list-wrapper .mf-filter-panel.active {
    display: block;
}

.mutual-funds-list-wrapper .mf-filter-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    font-size: 16px;
    color: #2E3034;
    cursor: pointer;
}

.mutual-funds-list-wrapper .mf-filter-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mutual-funds-list-wrapper .mf-check-custom {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1.6px solid #B9B9B9;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px transparent;
}

.mutual-funds-list-wrapper .mf-filter-check input:checked + .mf-check-custom {
    border-color: #0086DD;
    background: #0086DD;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.85355 6.14646C2.65829 5.9512 2.34171 5.9512 2.14645 6.14646C1.95118 6.34172 1.95118 6.6583 2.14645 6.85357L4.64645 9.35357C4.85435 9.56147 5.19589 9.54597 5.38411 9.3201L10.3841 3.3201C10.5609 3.10797 10.5322 2.79268 10.3201 2.6159C10.108 2.43912 9.79267 2.46778 9.61589 2.67992L4.9664 8.25931L2.85355 6.14646Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.mutual-funds-list-wrapper .mf-filter-check input:checked + .mf-check-custom::after {
    display: none;
}

.mutual-funds-list-wrapper .mf-check-label {
    font-size: 16px;
    line-height: 22px;
    color: #1F2125;
}

.mutual-funds-list-wrapper .mf-filter-empty {
    margin: 0;
    color: #6B6E73;
    font-size: 15px;
}

/* Show More / Collapsed State — CSS-only initial hide (before JS runs) */
.mutual-funds-list-wrapper .mutual-funds-container.mf-collapsed:not(.mf-js-ready) .mutual-fund-card:nth-child(n+4) {
    display: none !important;
}

/* JS-managed collapsed state */
.mutual-funds-list-wrapper .mutual-funds-container.mf-collapsed.mf-js-ready .mutual-fund-card.mf-hidden-row {
    display: none !important;
}

.mutual-funds-list-wrapper .mf-show-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px 0 8px;
}

.mutual-funds-list-wrapper .mf-show-more-wrapper.mf-hidden {
    display: none;
}

.mutual-funds-list-wrapper .mf-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border: 2px solid #0086DD;
    border-radius: 100px;
    background: #FFFFFF;
    color: #0086DD;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 12px rgba(0, 134, 221, 0.10);
}

.mutual-funds-list-wrapper .mf-show-more-btn:hover {
    background: #E9F5FF;
    box-shadow: 0px 6px 16px rgba(0, 134, 221, 0.18);
}

.mutual-funds-list-wrapper .mf-show-more-btn:focus {
    outline: 3px solid #242424;
    outline-offset: -3px;
}

.mutual-funds-list-wrapper .mf-show-more-btn svg {
    transition: transform 0.2s ease;
}

body.mf-filter-lock {
    overflow: hidden;
}

@media (max-width: 768px) {
    /* Allow the filter bar and tabs to scroll horizontally on small screens */
    .mutual-funds-list-wrapper .mf-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mutual-funds-list-wrapper .mf-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .mutual-funds-list-wrapper .mf-filter-btn,
    .mutual-funds-list-wrapper .mf-tabs {
        flex: 0 0 auto;
    }

    .mutual-funds-list-wrapper .mf-tabs {
        flex-wrap: nowrap;
        gap: 10px;
        min-width: max-content;
    }

    .mutual-funds-list-wrapper .mf-tab,
    .mutual-funds-list-wrapper button.mf-tab {
        flex: 0 0 auto;
    }
}
