.challenge-hub-page {
    background: #f4f7f9;
    color: #0f172a;
}

.challenge-hub-container {
    width: calc(100% - (2 * var(--bambu-container-gutter, 24px)));
    max-width: var(--bambu-container-max-width, 1290px);
    margin-inline: auto;
    box-sizing: border-box;
}

.challenge-territory h3 {
    background: linear-gradient(90deg, #35ad68, #7855a2);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.challenge-view-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
}

.challenge-view-button {
    background: linear-gradient(90deg, #43b263, #3ba295 25%, #3b7ab5 50%, #7147a7 75%, #814272);
    box-shadow: 0 10px 15px -3px #022c2250;
    color: #ffffff;
    font-weight: 600;
}

.challenge-network {
    padding: 96px 0;
    background: linear-gradient(66.6deg, #0d1534, #141b45 47.3%, #452650 94.5%);
}

.challenge-network-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.challenge-eyebrow {
    margin: 0 0 12px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.challenge-network h2 {
    max-width: 625px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 700;
}

.challenge-network-description {
    max-width: 448px;
    color: #94a3b8;
    font-size: 14px;
}

.challenge-network-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: center;
}

.challenge-map-card {
    position: relative;
    height: 520px;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid #ffffff1a;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px #00000040;
}

.challenge-map-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.challenge-territory {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.challenge-territory-header {
    padding-bottom: 24px;
    border-bottom: 1px solid #ffffff1a;
}

.challenge-territory h3 {
    margin: 0 0 12px;
    font-size: 36px;
    font-weight: 800;
}

.challenge-territory-header > p:last-child {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.challenge-stats {
    display: flex;
    gap: 16px;
}

.challenge-stat-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 21px;
    background: #0b132b;
    border: 1px solid #1e293b;
    border-radius: 12px;
}

.challenge-stat-card strong {
    color: #35ad68;
    font-size: 30px;
}

.challenge-stat-card:nth-child(2) strong {
    color: #60a5fa;
}

.challenge-stat-card span,
.challenge-focus p:first-child {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.challenge-focus p {
    margin: 0;
}

.challenge-focus p:last-child {
    color: #ffffffe6;
    font-size: 12px;
    font-weight: 500;
}

.challenge-focus p:last-child span {
    padding-inline: 6px;
}

.challenge-view-button {
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
}

.challenge-directory {
    padding: 80px 0;
    background: #e3e9f5;
}

.challenge-search-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.challenge-search-wrap {
    position: relative;
}

.challenge-search-wrap > img {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
}

.challenge-search-input {
    width: 100%;
    padding: 13px 17px 14px 45px;
    color: #1e293b;
    font: inherit;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 1px 2px #0000000d;
}

.challenge-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.challenge-filter-pills.filter-bar {
    margin-bottom: 0;
}

.challenge-filter-pill,
.challenge-load-more button,
.challenge-bookmark {
    font: inherit;
    cursor: pointer;
}

.challenge-filter-pill {
    padding: 11px 15px;
    color: #08162d;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    font-weight: 500;
}

.challenge-filter-pill.is-active {
    color: #042f2e;
    font-weight: 600;
    background: #f0fdfa;
    border-color: #3ba295;
}

.challenge-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.challenge-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5e7ebcc;
    border-radius: 16px;
    box-shadow: 0 1px 2px #0000000d;
}

.challenge-card[hidden],
.challenge-empty[hidden] {
    display: none;
}

.challenge-card-main {
    flex: 1;
}

.challenge-card-thumb {
    position: relative;
    height: 192px;
    overflow: hidden;
    background: #0f172a;
}

.challenge-card-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.challenge-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    background: #fffffff2;
    border-radius: 9999px;
}

.challenge-card-badge i {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 50%;
}

.challenge-card-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 24px;
}

.challenge-card-title-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: space-between;
}

.challenge-card-title-row h3 {
    min-width: 0;
    margin: 0;
    display: -webkit-box;
    height: calc(1.35em * 2);
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.challenge-bookmark {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: 0;
}

.challenge-bookmark img {
    width: 20px;
    height: 20px;
}

.challenge-card-date,
.challenge-card-provider {
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
}

.challenge-card-provider {
    color: #166534;
    font-weight: 600;
}

.challenge-card-description {
    display: -webkit-box;
    height: calc(1.45em * 4);
    margin: 2px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.challenge-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.challenge-card-tags span {
    padding: 3px 10px 4px;
    color: #047857;
    font-size: 11px;
    background: #ecfdf5;
    border-radius: 4px;
}

.challenge-card-tags span:nth-child(3n) {
    color: #334155;
    background: #f1f5f9;
}

.challenge-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin: auto 24px 0;
    padding: 16px 0 24px;
    border-top: 1px solid #f3f4f6; /* Đường kẻ chuyển từ .challenge-card-meta lên cả hàng: Deadline bên trái, View details góc phải. */
}

.challenge-card-meta {
    display: flex;
    gap: 16px;
}

.challenge-card-meta > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.challenge-card-meta span {
    color: #9ca3af;
    font-size: 11px;
}

.challenge-card-meta strong {
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 12px;
}

.challenge-card-footer > a {
    margin-left: auto;
    white-space: nowrap;
    color: #1f7a46;
    font-size: 12px;
    font-weight: 700;
}

.challenge-card-footer > a span {
    padding-left: 6px;
}

.challenge-empty {
    margin: 0;
    color: #64748b;
    text-align: center;
}

.challenge-load-more {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.challenge-load-more button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 25px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #35ad6866;
    border-radius: 9999px;
}

@media (max-width: 1024px) {
    .challenge-network-grid {
        grid-template-columns: 1fr;
    }

    .challenge-map-card {
        height: 280px;
    }

    .challenge-network-description {
        margin-top: 0;
    }

    .challenge-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .challenge-network,
    .challenge-directory {
        padding-block: 56px;
    }

    .challenge-network-top {
        flex-direction: column;
    }

    .challenge-network-top {
        gap: 24px;
    }

    .challenge-network h2 {
    }

    .challenge-view-button {
        justify-content: center;
        width: 100%;
    }

    .challenge-cards-grid {
        grid-template-columns: 1fr;
    }

    .challenge-stats {
        flex-direction: column;
    }

    .challenge-card-thumb {
        height: 210px;
    }
}

@media (max-width: 560px) {
    .challenge-network,
    .challenge-directory {
        padding-block: 48px;
    }

    .challenge-network h2 {
        font-size: 32px;
    }

}

.challenge-card-link {
    color: inherit;
    text-decoration: none;
}

.challenge-card-link:hover {
    color: #166534;
}

.challenge-card-provider {
    display: flex;
    align-items: center;
    gap: 6px;
}

.challenge-card-provider img {
    width: auto;
    max-width: 56px;
    height: 20px;
    flex: none;
    border-radius: 4px;
    object-fit: contain;
    background: #fff;
}

.challenge-load-more[hidden] {
    display: none;
}

/* Organization / Industry lists can be long. */
.challenge-filter-wrap .dropdown {
    max-height: 320px;
    overflow-y: auto;
}

/* Status badge: open stands out (solid green, live dot); closed recedes (grey, muted image). */
.challenge-card[data-status="open"] .challenge-card-badge {
    color: #fff;
    background: #16a34a;
    box-shadow: 0 2px 8px #16a34a59;
}

.challenge-card[data-status="open"] .challenge-card-badge i {
    position: relative;
    background: #fff;
}

.challenge-card[data-status="open"] .challenge-card-badge i::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #fff;
    animation: challenge-badge-pulse 1.8s ease-out infinite;
}

@keyframes challenge-badge-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.6); opacity: 0; }
}

.challenge-card[data-status="closed"] .challenge-card-badge {
    color: #64748b;
    background: #f8fafcf2;
}

.challenge-card[data-status="closed"] .challenge-card-badge i {
    background: #94a3b8;
}

.challenge-card[data-status="closed"] .challenge-card-thumb img {
    filter: grayscale(0.6);
    opacity: 0.85;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.challenge-card[data-status="closed"]:hover .challenge-card-thumb img {
    filter: none;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .challenge-card[data-status="open"] .challenge-card-badge i::after {
        animation: none;
    }
}

/* Keep filter dropdowns above the partners section that follows. */
.challenge-directory {
    position: relative;
    z-index: 2;
}

.challenge-empty {
    padding: 40px 0;
    text-align: center;
}

.challenge-empty p {
    margin: 0 0 16px;
    color: #64748b;
}

.challenge-empty button {
    padding: 10px 20px;
    border: 1px solid #3ba295;
    border-radius: 9999px;
    background: #fff;
    color: #166534;
    font-weight: 600;
    cursor: pointer;
}

.challenge-card-provider a {
    display: inherit;
    align-items: inherit;
    gap: inherit;
    color: inherit;
    text-decoration: none;
}

.challenge-card-provider a:hover {
    text-decoration: underline;
}

/* ---------- Challenge Hub, góp ý marcom (tháng 10/2026) ---------- */
.challenge-hub-page .hero {
    position: relative;
    background: #050b1c;
}

.challenge-hub-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--challenge-hero-art, none) right center / cover no-repeat;
    pointer-events: none;
}

.challenge-hub-page .hero[style*="background-image"]::before,
.challenge-hub-page .hero-decor {
    display: none;
}

.challenge-hub-page .hero-inner {
    position: relative;
    z-index: 1;
}

/* Nút lọc hiện giá trị đã chọn: "Status: Open". */
.challenge-hub-page .challenge-filter-pills .filter-btn {
    gap: 6px;
}

.challenge-hub-page .challenge-filter-pills .filter-btn.active {
    border-color: #9fd8c7;
    background: #effaf6;
    color: #0e6b5c;
}

.challenge-hub-page .filter-btn.active .filter-label {
    color: #66758b;
    font-weight: 500;
}

.challenge-hub-page .filter-btn.active .filter-label::after {
    content: ':';
}

.challenge-hub-page .filter-value {
    max-width: 220px;
    overflow: hidden;
    color: #0e6b5c;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-hub-page .filter-value[hidden] {
    display: none;
}

/* Thanh "Đang lọc theo:" với chip cho từng bộ lọc. */
.challenge-hub-page .filter-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 20px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
}

.challenge-hub-page .filter-status[hidden] {
    display: none;
}

.challenge-hub-page .filter-status-label {
    color: #475569;
    font-weight: 600;
}

.challenge-hub-page .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.challenge-hub-page .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 4px 4px 12px;
    border-radius: 9999px;
    background: #0b1a3a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.challenge-hub-page .filter-chip-remove {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
}

.challenge-hub-page .filter-chip-remove:hover,
.challenge-hub-page .filter-chip-remove:focus-visible {
    background: rgba(255, 255, 255, 0.32);
}

.challenge-hub-page .filter-clear-all {
    padding: 0;
    border: 0;
    background: none;
    color: #0e6b5c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.challenge-hub-page .filter-result-count {
    margin-left: auto;
    color: #66758b;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .challenge-hub-page .filter-result-count {
        width: 100%;
        margin-left: 0;
    }
}

.challenge-hub-page .challenge-directory {
    padding-top: 48px;
}

@media (max-width: 767px) {
    .challenge-hub-page .challenge-directory {
        padding-top: 32px;
    }
}

/* Mobile: 5 bộ lọc xếp lưới 2 cột thay vì 5 hàng. */
@media (max-width: 767px) {
    .challenge-hub-page .challenge-filter-pills {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .challenge-hub-page .challenge-filter-pills .challenge-filter-wrap {
        width: auto;
        min-width: 0;
    }

    .challenge-hub-page .challenge-filter-pills .filter-btn {
        width: 100%;
        min-width: 0;
    }

    .challenge-hub-page .challenge-filter-pills .filter-value {
        max-width: 90px;
    }

    .challenge-hub-page .challenge-filter-pills .challenge-filter-wrap:nth-child(2n) .dropdown {
        right: 0;
        left: auto;
    }
}

/* Bookmark: lưu challenge vào Account → Saved. */
.challenge-hub-page .challenge-bookmark,
.challenge-bookmark {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: -6px -6px 0 0;
    place-items: center;
    border-radius: 50%;
    color: #64748b;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.challenge-bookmark:hover,
.challenge-bookmark:focus-visible {
    background: #ecfdf5;
    color: #0e6b5c;
}

.challenge-bookmark:active {
    transform: scale(0.9);
}

.challenge-bookmark.is-bookmarked {
    color: #0e6b5c;
}

.challenge-bookmark.is-bookmarked svg path {
    fill: currentColor;
}

.challenge-bookmark[disabled] {
    cursor: progress;
    opacity: 0.6;
}

/* Hàng dưới ô search: tab loại tổ chức bên trái, bộ lọc bên phải. */
.challenge-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.challenge-filter-row .challenge-filter-pills {
    margin-left: auto;
    justify-content: flex-end;
}

/* Bộ lọc cuối hàng sát mép phải: mở dropdown về bên trái để không tràn màn hình. */
@media (min-width: 768px) {
    .challenge-filter-row .challenge-filter-wrap:nth-last-child(-n+2) .dropdown {
        right: 0;
        left: auto;
    }
}

/* Organization type tabs under the search: All / Corporates / Cities & provinces / Investment funds. */
.challenge-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.challenge-type-tabs button {
    padding: 9px 18px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.challenge-type-tabs button:hover {
    border-color: #3ba295;
    color: #1e7a5c;
}

.challenge-type-tabs button.is-active {
    border-color: transparent;
    background: linear-gradient(90deg, #40af6b 0%, #5f8ea8 55%, #7f4379 100%) border-box;
    color: #fff;
}

/* Fund directory (template-parts/challenges/fund-directory.php). */
.fund-directory[hidden],
.fund-card[hidden],
.fund-directory [hidden] {
    display: none !important;
}

.fund-directory {
    margin-bottom: 48px;
}

.fund-directory-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.fund-directory-head h2,
.fund-directory-challenges {
    margin: 0 0 6px;
    color: #0b1220;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.25;
}

.fund-directory-challenges {
    margin: 56px 0 24px;
}

.fund-directory-head p {
    max-width: 720px;
    margin: 0;
    color: #5b6472;
    font-size: 15px;
    line-height: 1.6;
}

.fund-directory-count {
    flex: none;
    color: #5b6472;
    font-size: 14px;
}

/* CTA cho quỹ muốn lên BambuUP (dẫn tới Contact Us). */
.fund-directory-side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.fund-list-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fund-list-cta-hint {
    color: #5b6472;
    font-size: 14px;
}

.fund-list-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #40af6b 0%, #5f8ea8 55%, #7f4379 100%);
    box-shadow: 0 8px 16px -6px rgba(2, 44, 34, 0.35);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fund-list-cta-button:hover,
.fund-list-cta-button:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -6px rgba(2, 44, 34, 0.45);
}

.fund-directory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.fund-directory-filters.filter-bar {
    margin-bottom: 24px;
}

/* Same dropdowns as the challenge filters; the selected value shows in the button. */
.challenge-hub-page .fund-directory-filters .filter-btn {
    gap: 6px;
}

.challenge-hub-page .fund-directory-filters .filter-btn.active {
    border-color: #9fd8c7;
    background: #effaf6;
    color: #0e6b5c;
}

.fund-filter-wrap .dropdown {
    max-height: 320px;
    overflow-y: auto;
}

.fund-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fund-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e5e7ebcc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px #0000000d;
    transition: box-shadow 200ms ease, transform 200ms ease;
}

.fund-card:hover {
    box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
}

.fund-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.fund-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fund-card-logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    background: #fff;
}

.fund-card-logo img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.fund-card h3 {
    margin: 0 0 2px;
    color: #0b1220;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.fund-card-top p {
    margin: 0;
    color: #1e7a5c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fund-card-facts {
    display: grid;
    gap: 6px;
    margin: 0;
}

.fund-card-facts div {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.fund-card-facts dt {
    color: #6b7280;
}

.fund-card-facts dd {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.fund-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fund-card-tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6f2;
    color: #1e7a5c;
    font-size: 12px;
    font-weight: 600;
}

.fund-card-action {
    margin-top: auto;
    color: #0b1220;
    font-size: 14px;
    font-weight: 700;
}

.fund-directory-empty {
    margin: 8px 0 0;
    color: #5b6472;
}

@media (max-width: 1024px) {
    .fund-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    /* Mobile giữ bố cục cũ: tab và bộ lọc mỗi thứ một hàng. */
    .challenge-filter-row {
        display: contents;
    }

    .challenge-filter-row .challenge-filter-pills {
        margin-left: 0;
    }

    .challenge-type-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .challenge-type-tabs button {
        flex: none;
    }

    .fund-directory-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fund-directory-side {
        width: 100%;
        align-items: flex-start;
    }

    .fund-list-cta {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .fund-directory-filters.filter-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .challenge-hub-page .fund-directory-filters .fund-filter-wrap {
        width: auto;
        min-width: 0;
    }

    .challenge-hub-page .fund-directory-filters .filter-btn {
        width: 100%;
        min-width: 0;
    }

    .challenge-hub-page .fund-directory-filters .filter-value {
        max-width: 90px;
    }

    .challenge-hub-page .fund-directory-filters .fund-filter-wrap:nth-child(2n) .dropdown {
        right: 0;
        left: auto;
    }

    .fund-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Phones: the four organization tabs wrap onto two rows, so "Investment funds" is always visible (it was scrolled off screen). */
@media (max-width: 767px) {
    .challenge-type-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 8px;
    }
}
