:root {
    --custom-yellow: #FFEEEB;
}

h1 {
    width: 100%;
    text-align: center;
}

.blog-articles-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 80%;
    margin: auto;

    .blog-article-card {
        width: calc(50% - 4.5em);
        margin: 1.5em;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5em;
        box-sizing: border-box;
        background-color: white;
        border-radius: 1em;
        box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.02);
        transition: all 250ms;

        img {
            width: 100%;
            height: auto;
            border-radius: 1em;
            margin-bottom: 1em;
        }

        .title {
            font-size: 1.2em;
            line-height: 150%;
        }

        .tag {
            align-self: flex-start;
            font-size: 0.9em;
            padding: 0.5em 1em;
            border-radius: 0.5em;
            margin-bottom: 0.5em;
            background-color: var(--custom-yellow);
        }
    }

    .blog-article-card:hover {
        box-shadow: none;
    }
}

.blog-content-container {
    width: 70%;
    margin: auto;
    padding-bottom: 4em;

    .title-img {
        object-fit: cover;
        width: 100%;
        max-height: 25em;
        border-radius: 1em;
        margin: 1em 0;
    }

    h1 {
        margin: 2em 0;
    }

    span {
        font-size: 1.2em;
        line-height: 175%;
    }
}

@media (max-width: 1024px) {
    .blog-articles-list {
        display: flex;
        flex-direction: column;
        width: 90%;

        .blog-article-card {
            width: 100%;
            margin: 1.5em 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 1.5em;
            box-sizing: border-box;
            background-color: white;
            border-radius: 1em;
            box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.02);
            transition: all 250ms;

            img {
                width: 100%;
                height: auto;
                border-radius: 1em;
                margin-bottom: 1em;
            }

            .title {
                font-size: 1.2em;
                line-height: 150%;
            }

            .tag {
                align-self: flex-start;
                font-size: 0.9em;
                padding: 0.5em 1em;
                border-radius: 0.5em;
                margin-bottom: 0.5em;
                background-color: var(--custom-yellow);
            }
        }
    }

    .blog-content-container {
        width: 90%;
    }
}