:root {
    --navy: #14213d;
    --navy-deep: #0f172a;
    --text: #172033;
    --muted: #667085;
    --line: #e7eaf0;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --accent: #b98a2e;
    --accent-soft: #fbf4e4;
    --green: #0f8a5f;
    --gold: #c9a04a;
    --gold-deep: #9a7120;
    --ivory: #fbfaf6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font-family:
        Arial,
        "Noto Sans TC",
        sans-serif;
}

a {
    color: inherit;
}

.site-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    border-bottom: 1px solid rgba(15,23,42,.07);

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 74px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;

    gap: 11px;

    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--navy);
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-nav a {
    color: #475467;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.header-nav a:hover {
    color: var(--navy);
}

.partner-link {
    padding: 10px 15px;

    border: 1px solid rgba(201,160,74,.58);
    border-radius: 10px;

    background: #fffdf8;
    color: var(--navy) !important;

    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.partner-link:hover {
    transform: translateY(-1px);

    border-color: var(--gold);
    background: #ffffff;

    box-shadow:
        0 8px 20px
        rgba(154, 113, 32, .10);
}

:focus-visible {
    outline: 3px solid rgba(201, 160, 74, .35);
    outline-offset: 3px;
}

/* Hero */

.hero {
    padding: 82px 0 64px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(47,111,237,.10),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;

    text-align: center;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 22px;
    padding: 7px 11px;

    border: 1px solid #dbe5f5;
    border-radius: 999px;

    background: rgba(255,255,255,.78);

    color: #45658f;

    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 0;

    color: var(--navy-deep);

    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.hero-description {
    max-width: 680px;

    margin: 24px auto 0;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.85;
}

/* Search */

.search-wrap {
    max-width: 760px;

    margin: 36px auto 0;
}

.search-box {
    display: flex;

    padding: 7px;

    border: 1px solid #dce2ea;
    border-radius: 17px;

    background: #ffffff;

    box-shadow:
        0 16px 45px
        rgba(15,23,42,.08);
}

.search-input-wrap {
    flex: 1;

    display: flex;
    align-items: center;

    padding-left: 15px;
}

.search-icon {
    margin-right: 10px;

    color: #98a2b3;

    font-size: 18px;
}

.search-box input {
    width: 100%;

    padding: 13px 4px;

    border: 0;
    outline: 0;

    color: var(--text);
    background: transparent;

    font-size: 16px;
}

.search-button {
    min-width: 104px;

    padding: 13px 18px;

    border: 0;
    border-radius: 11px;

    background: var(--navy);

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.search-hints {
    margin-top: 13px;

    color: #8b95a5;

    font-size: 13px;
}

/* Audience */

.audience-section {
    padding: 66px 0;
}

.section-heading {
    max-width: 700px;

    margin-bottom: 28px;
}

.section-kicker {
    margin-bottom: 8px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .06em;
}

.section-heading h2 {
    margin: 0;

    color: var(--navy-deep);

    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -.03em;
}

.section-heading p {
    margin: 12px 0 0;

    color: var(--muted);

    line-height: 1.75;
}

.audience-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 22px;
}

.audience-card {
    position: relative;

    min-height: 265px;

    padding: 30px;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 22px;

    background: var(--surface);

    box-shadow:
        0 12px 36px
        rgba(15,23,42,.05);

    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.audience-card:hover {
    transform: translateY(-3px);

    border-color: #cfd8e6;

    box-shadow:
        0 18px 45px
        rgba(15,23,42,.08);
}

.card-number {
    margin-bottom: 38px;

    color: #a7b0bf;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .08em;
}

.audience-card h3 {
    margin: 0;

    font-size: 29px;
    letter-spacing: -.025em;
}

.audience-card p {
    max-width: 430px;

    margin: 12px 0 22px;

    color: var(--muted);

    line-height: 1.75;
}

.card-action {
    color: var(--accent);

    font-size: 14px;
    font-weight: 800;
}

.audience-card.personal::after,
.audience-card.business::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -45px;
    bottom: -60px;

    border-radius: 50%;

    opacity: .8;
}

.audience-card.personal::after {
    background: var(--accent-soft);
}

.audience-card.business::after {
    background: #eef9f4;
}

/* Categories */

.categories-section {
    padding: 64px 0;

    background: var(--surface-soft);
}

.category-block + .category-block {
    margin-top: 54px;
}

.category-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.category-head h2 {
    margin: 0;

    font-size: 28px;
    letter-spacing: -.025em;
}

.category-head p {
    margin: 7px 0 0;

    color: var(--muted);
}

.category-count {
    color: #98a2b3;

    font-size: 13px;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap: 14px;
}

.category-card {
    min-height: 176px;

    padding: 21px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: #ffffff;
}

.category-index {
    margin-bottom: 22px;

    color: #98a2b3;

    font-size: 12px;
    font-weight: 800;
}

.category-card h3 {
    margin: 0;

    font-size: 18px;
    line-height: 1.4;
}

.category-card p {
    margin: 9px 0 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.65;
}

/* How */

.how-section {
    padding: 72px 0;
}

.steps {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 16px;
}

.step {
    padding: 22px;

    border-top: 2px solid #d9e0ea;
}

.step-number {
    margin-bottom: 16px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 800;
}

.step h3 {
    margin: 0 0 8px;

    font-size: 17px;
}

.step p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.65;
}

/* Partner */

.partner-section {
    padding: 30px 0 80px;
}

.partner-panel {
    padding: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border-radius: 24px;

    background: var(--navy);

    color: #ffffff;
}

.partner-copy {
    max-width: 620px;
}

.partner-copy small {
    color: #aebbd0;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .08em;
}

.partner-copy h2 {
    margin: 12px 0 10px;

    font-size: 30px;
    letter-spacing: -.03em;
}

.partner-copy p {
    margin: 0;

    color: #c9d3e2;

    line-height: 1.75;
}

.partner-button {
    flex: 0 0 auto;

    padding: 13px 18px;

    border-radius: 11px;

    background: #ffffff;

    color: var(--navy);

    text-decoration: none;

    font-weight: 800;
}

/* Trust */

.trust-note {
    padding: 0 0 60px;

    color: #7c8798;

    font-size: 12px;
    line-height: 1.75;
}

/* Footer */

.site-footer {
    padding: 30px 0;

    border-top: 1px solid var(--line);

    color: #8a94a3;

    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

/* Responsive */

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

    .steps {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .header-nav a:not(.partner-link) {
        display: none;
    }

    .hero {
        padding: 58px 0 46px;
    }

    .hero-description {
        font-size: 16px;
    }

    .search-box {
        display: block;
    }

    .search-input-wrap {
        padding: 3px 10px;
    }

    .search-button {
        width: 100%;
        margin-top: 5px;
    }

    .audience-grid,
    .category-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .audience-card {
        min-height: 230px;
    }

    .category-head {
        display: block;
    }

    .category-count {
        display: block;
        margin-top: 8px;
    }

    .partner-panel {
        display: block;
        padding: 30px 24px;
    }

    .partner-button {
        display: inline-block;
        margin-top: 24px;
    }

    .footer-inner {
        display: block;
    }
}

/*
|--------------------------------------------------------------------------
| Homepage anchor offset
|--------------------------------------------------------------------------
*/

#fund-search,
#funding-entry,
#providers-entry {
    scroll-margin-top: 95px;
}


/*
|--------------------------------------------------------------------------
| Featured Provider
|--------------------------------------------------------------------------
*/

.featured-provider-section {
    padding: 70px 0 80px;
    background: #f7f9fc;
}

.featured-provider-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.featured-provider-heading h2 {
    margin: 7px 0 8px;
    color: #101828;
    font-size: 34px;
}

.featured-provider-heading p {
    margin: 0;
    color: #667085;
}

.featured-provider-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    color: #101828;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.featured-provider-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    border: 1px solid #e1e6ed;
    border-radius: 22px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.featured-provider-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.featured-provider-image {
    min-height: 290px;
    background: #edf1f6;
}

.featured-provider-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 290px;
    object-fit: cover;
}

.featured-provider-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding: 24px;
    color: #667085;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.featured-provider-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px 38px;
}

.featured-provider-company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #475467;
}

.featured-provider-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f2f4f7;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.featured-provider-content h3 {
    margin: 0 0 13px;
    color: #101828;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.35;
}

.featured-provider-content p {
    margin: 0 0 22px;
    color: #667085;
    font-size: 15px;
    line-height: 1.8;
}

.featured-provider-action {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
    color: #101828;
    font-weight: 900;
}

.featured-provider-empty {
    padding: 34px;
    border: 1px solid #e1e6ed;
    border-radius: 18px;
    background: #ffffff;
}

.featured-provider-empty h3 {
    margin-top: 0;
}

.featured-provider-empty a {
    color: #101828;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .featured-provider-section {
        padding: 48px 0 58px;
    }

    .featured-provider-heading {
        display: block;
    }

    .featured-provider-more {
        margin-top: 18px;
    }

    .featured-provider-card {
        grid-template-columns: 1fr;
    }

    .featured-provider-image,
    .featured-provider-image img,
    .featured-provider-placeholder {
        min-height: 220px;
    }

    .featured-provider-content {
        padding: 24px 21px;
    }
}
