/*
    |--------------------------------------------------------------------------
    | Education
    |--------------------------------------------------------------------------
    */

    .education-hero {
        padding: 30px 0 48px;
    }

    .education-hero__eyebrow {
        margin-bottom: 22px;

        color: var(--muted);

        font-size: .8rem;
        font-weight: 700;

        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .education-hero__title {
        max-width: 900px;

        margin: 0;

        font-size:
            clamp(
                3.6rem,
                5.4vw,
                6rem
            );

        font-weight: 700;

        line-height: .96;
        letter-spacing: -.055em;
    }

    .education-hero__text {
        max-width: 650px;

        margin-top: 28px;

        color: var(--muted);

        font-size:
            clamp(
                1.05rem,
                1.25vw,
                1.25rem
            );

        line-height: 1.45;
    }

    .education-categories {
        display: grid;

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

        gap: 14px;

        margin: 0 0 55px;
    }

    .education-category-link {
        min-height: 92px;

        display: flex;
        align-items: center;

        gap: 12px;

        padding: 0 22px;

        border: 1px solid var(--border);
        border-radius: 14px;

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

        font-size: 1rem;
        font-weight: 700;

        text-decoration: none;

        transition:
            background .2s ease,
            color .2s ease,
            border-color .2s ease;
    }

    .education-category-link::after {
        content: "→";

        flex: 0 0 auto;

        font-size: 1.25rem;
        font-weight: 400;

        line-height: 1;
    }

    .education-category-link:hover {
        border-color: var(--text);

        background: var(--text);
        color: #fff;
    }

    .education-section {
        margin-bottom: 55px;
        scroll-margin-top: 30px;
    }

    .education-section__title {
        margin: 0 0 20px;
        font-size: 1.5rem;
    }

    .education-grid {
        display: grid;
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(280px, 1fr)
            );
        gap: 20px;
    }


    /*
    |--------------------------------------------------------------------------
    | Card
    |--------------------------------------------------------------------------
    */

    .education-card {
        overflow: hidden;

        display: flex;
        flex-direction: column;

        border: 1px solid var(--border);
        border-radius: 14px;

        background: var(--surface);
    }

    .education-card__image {
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background: #f5f5f5;
    }

    .education-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .education-card__body {
        flex: 1;

        display: flex;
        flex-direction: column;

        padding: 20px;
    }

    .education-card__meta {
        margin-bottom: 8px;

        color: var(--muted);

        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .14em;
    }

    .education-card__title {
        margin: 0 0 10px;

        font-size: 1.15rem;
        line-height: 1.25;
    }

    .education-card__more {
        width: fit-content;

        margin-top: 12px;
        padding: 0;

        border: 0;
        background: transparent;

        color: var(--muted);

        font: inherit;
        font-size: .78rem;
        font-weight: 700;

        cursor: pointer;

        transition:
            color .2s ease;
    }

    .education-card__more:hover {
        color: var(--accent);
    }

    .education-card__bottom {
        margin-top: auto;
        padding-top: 22px;
    }

    .education-card__price {
        margin-bottom: 14px;

        font-size: 1.2rem;
        font-weight: 700;
    }

    .education-card__form {
        display: grid;
        gap: 10px;
    }

    .education-card__date,
    .course-modal__date {
        width: 100%;
        min-height: 46px;

        padding: 10px 12px;

        border: 1px solid var(--border);
        border-radius: 8px;

        background: #fff;

        font: inherit;
    }

    .education-card__cart {
        width: 100%;
        min-height: 46px;

        padding: 0 16px;

        border: 1px solid var(--text);
        border-radius: 8px;

        background: var(--text);
        color: #fff;

        font: inherit;
        font-weight: 700;

        cursor: pointer;
    }

    .education-card__cart:hover {
        opacity: .88;
    }

    .education-card__no-dates,
    .course-modal__no-dates {
        width: 100%;

        padding: 11px 12px;

        border-radius: 8px;

        background: #f5f5f5;
        color: var(--muted);

        font-size: .9rem;
    }


    /*
    |--------------------------------------------------------------------------
    | Modal
    |--------------------------------------------------------------------------
    */

    .course-modal__section {
        padding: 24px 0;

        border-bottom:
            1px solid var(--border);
    }

    .course-modal__section:last-child {
        border-bottom: 0;
    }

    .course-modal__section h3 {
        margin: 0 0 14px;

        font-size: 1.05rem;
        line-height: 1.3;
    }

    .course-modal__section ul {
        margin: 0;
        padding-left: 20px;
    }

    .course-modal__section li {
        margin: 7px 0;

        color: var(--muted);

        line-height: 1.5;
    }

    .course-modal__section p {
        margin: 0;

        color: var(--muted);

        line-height: 1.5;
    }

    .course-modal__video {
        position: relative;

        width: min(540px, 100%);

        aspect-ratio: 16 / 9;

        margin: 28px auto 32px;

        overflow: hidden;

        background: #000;
    }

    .course-modal__video iframe {
        display: block;

        width: 100%;
        height: 100%;

        border: 0;
    }

    .course-modal__footer {
        flex: 0 0 auto;

        display: flex;

        align-items: flex-end;
        justify-content: space-between;

        gap: 32px;

        padding: 20px 30px;

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

        background: var(--surface);
    }

    .course-modal__price {
        flex: 0 0 auto;

        white-space: nowrap;

        font-size: 1.35rem;
        font-weight: 700;
    }

    .course-modal__cart-form {
        width: min(420px, 100%);
        flex: 0 1 420px;

        display: grid;
        gap: 10px;
    }

    .course-modal__no-dates {
        width: min(420px, 100%);
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile
    |--------------------------------------------------------------------------
    */

    @media (max-width: 800px) {

        .education-hero {
            padding: 10px 0 38px;
        }

        .education-hero__title {
            font-size:
                clamp(
                    2.9rem,
                    10vw,
                    4.5rem
                );
        }

        .education-categories {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .education-category-link {
            min-height: 64px;

            padding: 0 18px;
        }

        .education-grid {
            grid-template-columns:
                repeat(
                    auto-fill,
                    minmax(250px, 1fr)
                );
        }

        .course-modal__section {
            padding: 18px 0;
        }

        .course-modal__section h3 {
            font-size: 1rem;
        }

        .course-modal__section li {
            font-size: .9rem;
        }

        .course-modal__footer {
            padding: 14px 16px;

            gap: 14px;
        }

        .course-modal__price {
            font-size: 1.1rem;
        }

    }


    @media (max-width: 520px) {

        .education-grid {
            grid-template-columns: 1fr;
        }

    }


    @media (max-width: 420px) {


        .course-modal__footer {
            display: grid;
            grid-template-columns: 1fr;
        }

        .course-modal__price {
            margin-bottom: 2px;
        }

        .course-modal__cart-form,
        .course-modal__no-dates {
            width: 100%;
        }

    }
