/* Funded courses / public programmes — page-scoped */

.fund-page {
    --fund-ink: #0e1a24;
    --fund-mid: #1a2b38;
    --fund-accent: #0d6e6e;
    --fund-line: rgba(14, 26, 36, 0.12);
    --fund-cream: #f3f6f4;
    color: var(--fund-mid);
    background:
        radial-gradient(ellipse 60% 35% at 100% 0%, rgba(13, 110, 110, 0.08), transparent 55%),
        linear-gradient(180deg, #f4f7f5 0%, #eef2f4 50%, #f4f7f5 100%);
}

.fund-hero {
    position: relative;
    isolation: isolate;
    min-height: min(72vh, 36rem);
    overflow: hidden;
    color: #fff;
    background: var(--fund-ink);
}

.fund-hero__media,
.fund-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fund-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 22, 32, 0.45) 0%, rgba(8, 22, 32, 0.82) 55%, rgba(8, 22, 32, 0.96) 100%),
        linear-gradient(105deg, rgba(8, 22, 32, 0.75) 0%, rgba(13, 110, 110, 0.25) 100%);
}

.fund-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.25rem, 4vw, 3.5rem);
    max-width: 42rem;
}

.fund-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(8, 22, 32, 0.45);
    padding: 0.3rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fund-kicker__dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #3dcfb6;
}

.fund-nav {
    position: sticky;
    top: var(--header-height, 4rem);
    z-index: 20;
    border-bottom: 1px solid var(--fund-line);
    background: rgba(244, 247, 245, 0.92);
    backdrop-filter: blur(10px);
}

.fund-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    padding-block: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.fund-nav__list a {
    color: var(--fund-mid);
    text-decoration: none;
    opacity: 0.78;
    transition: opacity 0.15s ease;
}

.fund-nav__list a:hover,
.fund-nav__list a:focus-visible {
    opacity: 1;
}

.fund-section {
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.fund-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fund-accent);
}

.fund-grid {
    display: grid;
    gap: 1rem;
}

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

.fund-card {
    border: 1px solid var(--fund-line);
    background: rgba(255, 255, 255, 0.72);
    padding: 1.25rem 1.35rem;
}

.fund-card h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fund-ink);
}

.fund-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.fund-tag {
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(13, 110, 110, 0.28);
    color: var(--fund-accent);
    padding: 0.2rem 0.45rem;
}

.fund-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.fund-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.85rem;
    font-size: 0.88rem;
}

.fund-link-row a {
    color: var(--fund-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.fund-meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(26, 43, 56, 0.72);
}

.fund-steps {
    display: grid;
    gap: 1rem;
    counter-reset: fund-step;
}

@media (min-width: 900px) {
    .fund-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.fund-step {
    border-top: 2px solid var(--fund-accent);
    padding-top: 0.85rem;
    counter-increment: fund-step;
}

.fund-step::before {
    content: counter(fund-step, decimal-leading-zero);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--fund-accent);
    margin-bottom: 0.4rem;
}

.fund-announce {
    background: var(--fund-ink);
    color: #fff;
    font-size: 0.84rem;
}

.fund-announce__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding-block: 0.65rem;
}

.fund-announce a {
    color: #3dcfb6;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.fund-announce__dismiss {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}

.fund-announce__dismiss:hover {
    color: #fff;
}

.fund-disclaimer {
    max-width: 48rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(26, 43, 56, 0.72);
}
