/* ILP Fund Search Nav */

/* ── Title block above ILP search nav ───────────────── */
.ilp-fund-search-title {
    background: #e5eaef;
    padding: 0;
}

.ilp-fund-search-title .page-title-noimg__wrapper {
    background-color: #e5eaef;
    padding: 2.4rem 0 0.8rem;
    text-align: center;
}

.ilp-fund-search-title .content-container {
    max-width: 56.6rem;
    margin: 0 auto;
}

.ilp-fund-search-title .eyebrow {
    display: inline-block;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
}

.ilp-fund-search-title .eyebrow:hover {
    cursor: default;
    color: #000;
    text-decoration: none;
}

.ilp-fund-search-title .eyebrow.no-link {
    cursor: default;
    pointer-events: none;
}

.ilp-fund-search-title .eyebrow:not(.no-link)::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #68737a;
    opacity: 0.3;
}

.ilp-fund-search-title .eyebrow:not(.no-link)::before {
    content: "";
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ed1b2e;
    z-index: 1;
    -webkit-transform: translateX(-102%);
    transform: translateX(-102%);
    -webkit-transition: 0.3s linear;
    transition: 0.3s linear;
}

.ilp-fund-search-title .eyebrow:not(.no-link):hover::before,
.ilp-fund-search-title .eyebrow:not(.no-link):focus-visible::before {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.ilp-fund-search-title .page-title-noimg__content--title {
    margin-top: 0.1rem;
    margin-bottom: 0;
    color: #000;
    font-size: 48px;
    line-height: 4.8rem;
    font-weight: 700;
}

.ilp-fund-search-title .page-title-noimg__content--desc {
    margin-top: 1.4rem;
    color: #000;
    font-size: 18px;
    line-height: 2.8rem;
}

/* ── Search bar ─────────────────────────────────────── */
.ilp-fund-search-nav {
    background: #e5eaef;
    position: relative;
    z-index: 10;
    border-bottom: 0;
}

.ilp-fund-search-nav .ilp-bg-before {
    background: transparent;
    padding-top: 16px;
    padding-bottom: 0;
}

.ilp-fund-search {
    padding: 0 0 30px;
}

.mobile-sticky-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: transparent;
    box-shadow: none;
}

.ilp-fund-search-field {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.ilp-fund-search-content {
    display: flex;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 8px 20px;
    gap: 12px;
    background: #fff;
    min-height: 54px;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.ilp-fund-search-content:focus-within {
    border-color: #ed1b2e;
}

.ilp-fund-search-content input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 24px;
    color: #1c1d1b;
    background: transparent;
}

.ilp-fund-search-content input[type="text"]::placeholder {
    color: #696b68;
}

.icon-search {
    flex-shrink: 0;
    opacity: 0.6;
}

.search-btn-clear {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    color: #5b6770;
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s, color .15s;
}

.search-btn-clear:hover {
    background: #f0f1f0;
    color: #1c1d1b;
}

.search-btn-clear.visible {
    display: inline-flex;
}

.ilp-fund-search-suggestion {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d3d8d5;
    border-top: none;
    border-radius: 0 0 16px 16px;
    z-index: 50;
    box-shadow: 0 16px 32px rgba(12, 28, 38, 0.14);
    max-height: 260px;
    overflow-y: auto;
}

.ilp-suggestion-item {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    color: #1c1d1b;
    text-decoration: none;
    cursor: pointer;
}

.ilp-suggestion-item:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #e8000d;
}

/* Highlight the matched keyword in suggestions */
.ilp-suggestion-item .ilp-suggestion-hl {
    background: transparent;
    color: inherit;
    font-weight: 700;
}

/* ── Second nav tabs ─────────────────────────────────── */
.ilp-second-nav {
    border-bottom: 0;
    background: transparent;
    padding-bottom: 30px;
}

.ilp-second-nav .second-nav {
    margin: 0 auto;
    max-width: 1166px;
    background: #fff !important;
    border-radius: 8px !important;
    padding: 0;
}

.ilp-second-nav .header__nav-inner {
    list-style: none;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.ilp-second-nav .header__nav-inner li {
    margin: 0;
}

.ilp-second-nav .header__nav-inner li a {
    display: block;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #a8abad !important;
    text-decoration: none;
    border-bottom: 0;
    margin-bottom: 0;
    transition: color 0.2s;
    white-space: nowrap;
    border-radius: 0;
}

.ilp-second-nav .header__nav-inner li a:hover {
    color: #000 !important;
    text-decoration: none;
}

.ilp-second-nav .header__nav-inner li a.active {
    color: #000 !important;
    border-bottom-color: transparent;
}

.ilp-second-nav .header__nav-inner li a::after {
    display: none !important;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .ilp-fund-search-title {
        padding: 0;
    }

    .ilp-fund-search-title .page-title-noimg__wrapper {
        padding: 2.4rem 0 2.4rem;
    }

    .ilp-fund-search-title .eyebrow {
        margin-bottom: 10px;
    }

    .ilp-fund-search {
        padding: 0 0 16px;
    }

    .ilp-fund-search-field {
        max-width: none;
    }

    .ilp-fund-search-content {
        min-height: 48px;
        padding: 10px 14px;
        box-shadow: none;
    }

    .ilp-fund-search-content input[type="text"] {
        font-size: 14px;
        line-height: 20px;
    }

    .ilp-second-nav .header__nav-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 12px;
    }

    .ilp-second-nav .header__nav-inner li a {
        padding: 14px 10px;
        font-size: 14px;
    }
}
