@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Roboto&display=swap");

/* Grid container with a main image/text card and a row of 3 image/text cards */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 20px auto;
}

article.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

article.featured h2 {
    font-family: "Lato", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #fbfbfb;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

article.featured h2::after {
    content: "";
    display: block;
    border-bottom: 2px solid rgb(242, 177, 13);
    width: 25%;
    position: relative;
    bottom: -7px;
}

article img,
article.featured img {
    width: 100%;
    height: auto;
    border-inline-start: 4px solid;
    border-block-start: 4px solid;
    border-image-source: radial-gradient(
        circle at top left,
        #f2b10d,
        transparent 50%
    );
    padding: 10px;
    border-image-slice: 1;
}

article p {
    font-family: "Roboto", sans-serif;
    font-size: 21px;
    font-weight: 400;
    color: #fbfbfb;
}

.sm-card p {
    font-family: "Roboto", sans-serif;
    font-size: 21px;
    font-weight: 400;
    color: #fbfbfb;
    text-align: center;
}

article h3 {
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #f2b10d;
}

/* responsive */
@media screen and (max-width: 980px) {
    article {
        flex: none;
        display: grid;
        align-items: center;
        gap: 60px;
    }
}

@media screen and (max-width: 760px) {
    article,
    article.featured {
        flex: none;
        display: block !important;
        margin: 0 20px;
    }
}
