.bold {
    font-weight: 500;
}

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

    gap: 3rem;
}

main {
    padding-block: 10px 40px;
}

#course-banner {
    padding: 2rem 1rem;

    display: grid;
    gap: 1.5rem;
    justify-items: center;

    >h2 {
        grid-row: 1;
        font-size: 1.5rem;
    }

    >img {
        grid-row: 2;
        width: 75%;
    }

    >div {
        grid-row: 3;
        font-size: 1.25rem;
    }
}

#course {
    gap: 2rem;

    svg {
        flex-shrink: 0;
        max-width: 200px;
    }

    >div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    >header {
        max-width: 960px;
        margin-inline: auto;
        display: none;
    }

    section {
        border: 1px solid #ccc;
        padding-block: 3rem 2rem;
        padding-inline: 2rem;
        box-shadow: 0 0 18px 0 var(--color-grey-6);

        font-size: 1rem;

        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 2rem;

        >h3 {
            grid-row: 1;
            font-size: 1.75rem;
        }

        >img {
            grid-row: 2;
            width: 90%;
            justify-self: center;
        }

        >ul {
            grid-row: 3;
        }
    }

    section.book-covers {
        >div {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;

            align-items: center;
        }

        img {
            height: 300px;
            border: 1px solid #000;
        }
    }

    h3 {
        text-align: center;
    }

    ul {
        list-style: disc;
        padding-block: .5rem;
        padding-inline-start: 1.5rem;

        display: flex;
        flex-direction: column;
        gap: .75rem;
    }
}

@media screen and (min-width: 768px) {
    #course-banner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        row-gap: 20px;
        column-gap: 2rem;

        padding-block: 2rem;
        padding-inline: 0;

        max-width: 960px;

        >h2 {
            grid-row: 1;
            font-size: 1.75rem;
            align-self: self-start;
            justify-self: start;
        }

        >div {
            grid-row: 2;

            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-self: self-start;
        }

        >img {
            grid-column: 2;
            grid-row: 1 / span 2;
            max-width: 300px;
            justify-self: center;
            width: 100%;
        }
    }

    #course {
        >header {
            max-width: 960px;
            margin-inline: auto;
            display: none;
        }

        >div {
            max-width: 960px;
            margin-inline: auto;

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

        section {
            display: grid;
            grid-template-columns: 1fr 1fr;

            >h3 {
                justify-self: start;
                font-size: 1.75rem;
            }

            >img {
                grid-row: 1 / span 2;
                align-self: center;
            }

            ul {
                grid-row: 2;
            }

            &:nth-child(even) {
                >h3 {
                    grid-row: 1;
                }

                >img {
                    grid-column: 2;
                }

                >ul {
                    grid-column: 1;
                }
            }

            &:nth-child(odd) {
                >img {
                    grid-column: 1;
                }

                >h3 {
                    grid-column: 2;
                }

                >ul {
                    grid-column: 2;
                }
            }
        }

        section.book-covers {
            display: flex;
            flex-direction: column;
            align-items: center;

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

                align-items: center;
            }

            img {
                height: 270px;
                border: 1px solid #000;
            }
        }
    }

    iframe.youtube {
        width: 960px;
        height: 600px;
    }
}
