#news_media {
    h1 {
        width: fit-content;
        font-size: 2rem;
        font-weight: 400;
        border-bottom: 1px solid #f8931e;
        padding: 5px 20px;
        margin: 0 auto 30px;
    }
    .card {
        width: 100%;
        height: 300px;
        position: relative;
        margin-top: 20px;
        cursor: pointer;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card-body {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 20px;

            h5.card-title {
                font-size: 1.5rem;
                font-weight: 600;
            }

            p.card-text {
                font-size: 1rem;
                font-weight: 400;
            }

            &.dark {
                background-color: rgba(0, 0, 0, 0.8);
            }
        }
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    #news_media .card .card-body {
        h5.card-title {
            font-size: 1.2rem;
        }
        p.card-text {
            font-size: 0.9rem;
        }
    }
}

@media only screen and (max-width: 400px) {
    #news_media .card .card-body {
        h5.card-title {
            font-size: 1.2rem;
        }
        p.card-text {
            font-size: 0.9rem;
        }
    }
}