.portal-home {
    font-family: "DM Sans", sans-serif;
    line-height: 1.65;
}

.portal-home h1,
.portal-home h2,
.portal-home h3 {
    font-family: "DM Sans", sans-serif;
    letter-spacing: -.025em;
    text-transform: none;
}

.portal-home .portal-hero {
    min-height: 0;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.portal-home .portal-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.35rem, 4.7vw, 4rem);
    font-weight: 500;
    line-height: 1.12;
}

.portal-home .portal-hero__lead {
    font-weight: 400;
}

.portal-home .portal-visual__badge strong {
    display: block;
    font-size: .95rem;
    line-height: 1.4;
}

.portal-home .portal-visual__badge span {
    font-size: .85rem;
}

.portal-home .portal-section-heading h2,
.portal-home .portal-training h2 {
    max-width: 26ch;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
}

.portal-home .portal-section-intro {
    max-width: 78ch;
    margin: 0 0 2rem;
    color: var(--muted);
}

.portal-home .portal-programs {
    margin-bottom: 4rem;
    scroll-margin-top: 1.5rem;
}

.portal-home .portal-program-card {
    min-width: 0;
    padding: clamp(1.3rem, 2.5vw, 2rem);
}

.portal-home .portal-program-card h3 {
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.25;
}

.portal-home .portal-program-card small,
.portal-home .portal-program-card p,
.portal-home .portal-program-card ul {
    color: #fff;
}

.portal-home .portal-program-card ul {
    margin: .3rem 0 1.7rem;
    padding-left: 1.2rem;
    font-size: .9rem;
}

.portal-home .portal-program-card li + li {
    margin-top: .35rem;
}

.portal-home .portal-program-card .button {
    margin-top: auto;
    background: #fff;
    border-color: #fff;
    color: #66096b;
    text-align: center;
}

.portal-home .portal-program-card .button:hover {
    background: #f7eef8;
    border-color: #f7eef8;
}

.portal-home .portal-test-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.portal-home .portal-tests,
.portal-home .portal-access,
.portal-home .portal-faq {
    margin-bottom: 4rem;
}

.portal-home .portal-test-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    border: 1px solid #e7dce8;
    border-radius: 20px;
    background: #fff;
    min-width: 0;
}

.portal-home .portal-test-card h3 {
    color: var(--brand-primary);
    font-size: 1.45rem;
    line-height: 1.3;
    margin: .5rem 0;
}

.portal-home .portal-test-card p {
    color: var(--muted);
}

.portal-home .portal-test-card .eyebrow {
    color: var(--brand-primary);
}

.portal-home .portal-offer-detail {
    font-size: .88rem;
    font-weight: 600;
}

.portal-home .portal-test-card .button {
    margin-top: auto;
}

.portal-home .portal-training {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #f6f0f5;
    border-radius: 24px;
}

.portal-home .portal-training h2 {
    margin: .4rem 0 1rem;
    color: var(--brand-primary);
}

.portal-home .portal-training p:last-child {
    margin-bottom: 0;
    max-width: 68ch;
}

.portal-home .portal-faq details {
    border-top: 1px solid #e7dce8;
    padding: 1.2rem 0;
}

.portal-home .portal-faq details:last-child {
    border-bottom: 1px solid #e7dce8;
}

.portal-home .portal-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand-primary);
}

.portal-home .portal-faq details p {
    max-width: 85ch;
    margin-bottom: 0;
}

.portal-home .button:focus-visible,
.portal-home summary:focus-visible {
    outline: 3px solid #66096b;
    outline-offset: 5px;
}

.portal-home .portal-program-card .button:focus-visible {
    outline-color: #fff;
}

@media (max-width: 1000px) {
    .portal-home .portal-program-grid {
        grid-template-columns: 1fr;
    }

    .portal-home .portal-training {
        grid-template-columns: 1fr;
    }

    .portal-home .portal-training > .button {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .portal-home .portal-test-grid {
        grid-template-columns: 1fr;
    }

    .portal-home .portal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-home .portal-actions .button {
        text-align: center;
    }

    .portal-home .button {
        max-width: 100%;
        white-space: normal;
    }

    .portal-home .portal-visual__badge {
        right: .8rem;
        bottom: .8rem;
        left: .8rem;
    }

    .portal-home .portal-footer {
        flex-direction: column;
    }
}
