.article {
    margin-bottom: var(--gap);
}
.article:last-child {
    margin-bottom: 0;
}
/*

POST ARCHIVE

*/
.article__wrapper {
    display: grid;
    grid-template-columns: 2fr 4fr;
    gap: var(--gap);
}

.article__thumbnail {
    display: block;
    aspect-ratio: 16/9;
    background-color: bisque;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-smaller)
}
.article__thumbnail img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease-out;
}
.article__thumbnail:hover img {
    transform: scale(1.1);
}

.article__content {
    display: flex;
    flex-direction: column;
}
.article__content > a {
    margin-bottom: calc(var(--gap)/2);
}
.article__content > a h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    transition: color 200ms ease-out;
}
.article__content > a:hover h1 {
    color: var(--color-primary);
}
.article__content p {
    margin-bottom: var(--gap);
}
.article__content span {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: var(--text-smaller);
    opacity: 0.5;
}
/*

COURSES ARCHIVE

*/
.course {
    font-size: var(--text-smaller);
    margin-bottom: var(--gap);
}
.course:last-child {
    margin-bottom: 0;
}

.course h2 {
    font-size: 3.6rem;
    margin-bottom: calc(var(--gap)*1.5);
}
.course__wrapper {
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    grid-template-rows: auto auto auto; 
    gap: 0px 0px; 
    grid-template-areas: 
    "a b c"
    "d e c"
    "f g h"; 
    gap: calc(var(--gap)*1.5);
}
.cell-1 { grid-area: a; }
.cell-2 { grid-area: b; }
.cell-3 { grid-area: c; }
.cell-4 { grid-area: d; }
.cell-5 { grid-area: e; }
.cell-6 { grid-area: f; }
.cell-7 { grid-area: g; }
.cell-8 { grid-area: h; }

.course h3 {
    margin-bottom: calc(var(--gap)/3);
}
.course ul {
    margin-top: 1.2rem;
}
.course ul li {
    padding-bottom: 0.6rem;
    border-bottom: solid 1px var(--color-medium);
    margin-bottom: 0.6rem;
}
.course ul li:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.course h3.course__higher {
    margin-bottom: calc(var(--gap)/2);
}
.course__flex {
    display: flex;
    gap: var(--gap);
}
.cell-8 .button {
    margin-top: -0.6rem;
}





/* 50% */
@media only screen and (max-width: 960px) {
    .article {
        padding: var(--padding-smaller);
    }
    .article__content > a h1 {
        font-size: 1.8rem;
    }
    .article__content p {
        font-size: var(--text-smaller);
    }
    .article__thumbnail {
        aspect-ratio: auto;
    }
    .article__content span {
        font-size: 1.2rem;
    }

    .course h2 {
        font-size: 3rem;
    }

    .cell-8 .button {
        margin-top: 0;
        height: 3.6rem;
        padding: 0 1.8rem;
        border-radius: 1.8rem;
        font-size: 1.2rem;
    }
}
/* PHONE */
@media only screen and (max-width: 600px) {
    .course__wrapper {
        grid-template-columns: 1fr 1fr; 
        grid-template-rows: auto auto;
        grid-template-areas: 
        "a a"
        "b b"
        "c c"
        "e d"
        "f f"
        "g g"
        "h h";
    }

    .article__wrapper {
        grid-template-columns: 1fr;
    }
    .article__thumbnail {
        aspect-ratio: 16/9;
    }
}