body {
    font-family: "Roboto", "Noto Sans", sans-serif;
    color: var(--color-grey-1);
    gap: 1rem;
}

#classes-banner {
    h2 {
        font-size: 1rem;
    }

    > div {
        font-size: 1.25rem;
    }
}

#classes {
    gap: 2rem;

    svg {
        flex-shrink: 0;
    }

    svg.badge {
        width: 48px;
        height: 48px;
        align-self: center;
    }

    > div {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    article {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 4px 4px 10px 0 #ccc;
        padding: 1rem;
    }

    article header {
        display: flex;
        align-content: center;
        align-items: center;
        gap: 1rem;
        border-block-end: 1px solid #ccc;
        padding-block-end: 10px;
    }

    article header a {
        text-decoration: none;
        color: var(--color-primary);
        font-weight: 600;
    }

    article header a:hover {
        text-decoration: underline;
    }

    h4 {
        font-size: 1.25rem;
        text-align: center;
    }

    dl {
        display: grid;
        grid-template-columns: 24px 1fr;
        align-items: center;
        column-gap: 1rem;
        row-gap: .25rem;
    }

    dt {
        display: flex;
        flex-direction: column;
    }

    .icon {
        width: 24px;
        height: 24px;
    }

    a.register {
        border: 1px solid var(--color-primary);
        border-radius: 6px;
        padding: 10px 10px;
        text-decoration: none;
        color: white;
        text-align: center;
        background-color: var(--color-primary);
    }

    header a.register {
        display: none;
    }
}

svg.badges {
    text {
        text-anchor: middle;
        font-family: Roboto, sans-serif;
        font-size: 10px;
        font-weight: 400;
        fill: var(--color-dark);
    }

    .icon {
        fill: var(--color-primary);
    }
}

@media screen and (min-width: 768px) {
    #classes {
        max-width: 960px;
        margin-inline: auto;
        width: 100%;

        svg.badge {
            width: 72px;
            height: 72px;
        }

        article {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        article header {
            grid-column: 1 / span 2;

            display: grid;
            grid-template-columns: auto 1fr auto;

            h4 {
                justify-self: start;
            }

            a.register {
                display: inline;
            }
        }

        article {
            dl.primary {
                grid-column: 1;
            }

            dl.additional {
                grid-column: 2;
                align-self: start;
            }
        }

        a.register {
            display: none;
        }
    }
}

#classes-banner {
    max-width: 960px;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;

    h2 {
        color: var(--color-dark);
        font-size: 2rem;
    }

    > div:nth-child(1) {
        grid-row: 2;

        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    > div:nth-child(2) {
        grid-row: 1;

        img {
            height: 200px;
        }
    }
}

@media screen and (min-width: 768px) {
    #classes-banner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;

        > div:nth-child(1) {
            grid-row: 1;
        }

        > div:nth-child(2) {
            grid-row: 1;
        }

        form.classes-filter {
            .field {
                grid-template-columns: auto 1fr;
            }
        }
    }
}

#classes-filter {
    font-size: 1rem;

    .field {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: center;
    }

    select {
        padding: 10px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'><path d='M3 5h6L6 9z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-color: white;
        padding-right: 30px;
    }

    label {
        font-size: 1rem;
        font-weight: 600;
    }
}

@media screen and (min-width: 768px) {
    #classes-filter {
        .field {
            grid-template-columns: auto 1fr;
        }
    }
}
