.news-item {
    max-width: 1000px;
    margin: 0 1rem;
    margin-top: 2rem;
}

.news-item-image {
    width: 100%;
    height: 11rem;
}

.news-item-title {
    margin: 0;
    color: #28af60;
}

.news-item-date {
    margin: 0;
    color: #28af60;
    font-size: 0.75rem;
}

.news-item-description {
    margin: 0;
    text-align: justify;
}

.news-item-posted-by {
    margin: 0;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

/* Tablet design */

@media(min-width: 768px) {
    .news-item-image {
        height: 22rem;
    }
}

/* Desktop design */

@media(min-width: 992px) {
    main {
        background-color: #009065;
    }

    .news-item {
        background-color: white;
        padding: 2rem;
        box-shadow: 2px 2px black;
    }

    .news-item-details {
        display: grid;
        grid-template-columns: auto auto;
        column-gap: 1rem;
    }

    /* .news-item-image {
        height: 30rem;
    } */

    .news-item-description {
        line-height: 1.6;
    }

    .news-item {
        margin-left: auto;
        margin-right: auto;
    }

    .news-item-title {
        font-size: 2rem;
    }
}