.container {
    display: flex;
    flex-direction: column;
}

.news {
    width: 100vw;
    margin-top: 3rem;
    padding: 2rem;
    color: var(--dark-color);
}

.newsHeader {
    display: block;
    width: 100vw;
    position: relative;
    /*box-shadow: 0 0 0.5rem 5px rgba(0, 0, 0, 0.3);*/
    & .headerIMG img{
        width: 100%;
        object-fit: contain;
    }

    & .headerText {
        position: absolute;
        top: 47%;
        padding: 2rem 3rem;
        color: var(--light-color);
        line-height: 3.5rem;

        & h1 {
            font-size: 6rem;
        }

        & h3 {
            font-weight: 500;
        }
    }
}

.newsHeaderMobile {
    display: none;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    /*box-shadow: 0 0 0.5rem 5px rgba(0, 0, 0, 0.3);*/
    & .headerIMGMobile img{
        object-fit: contain;
        height: 100vh;
    }

    & .headerTextMobile {
        width: 100vw;
        position: absolute;
        overflow: hidden;
        bottom: 0;
        color: var(--light-color);
        padding: 0 2rem 3rem;
        & h1 {
            margin-top: 0.7rem;
            margin-bottom: 0.7rem;
            line-height: 6rem;
            font-size: 7.5rem;
            overflow: hidden;
        }

        & h3 {
            font-weight: 500;
        }
    }
}

.newsArticle {
    width: 100%;
    display: flex;
    flex-direction: row;

}

.titleAuthor {
    & h1 {
        font-size: 2rem;
    }
}

.articleContainer {
    width: 70%;
    padding: 1.5rem 4rem;
    /*background: #717171;*/
    box-sizing: border-box;
    overflow-wrap: break-word; /* break long words/URLs */
}

.articleContainer .article {
    max-width: 100%; /* prevent exceeding parent */
}

.articleContainer {
    img {
        max-width: 100%; /* images won’t overflow */
        height: auto;
        display: block; /* removes inline whitespace issues */
    }

}


.otherArticles {
    /*border-left: solid 0.4rem var(--secondary-color);*/
    padding: 1.5rem;
    height: auto;
    width: 30vw;
    background: #e3e3e3;
    overflow-wrap: break-word; /* break long words/URLs */
    box-sizing: border-box;

    & .otherArticleCard {
        padding: 0.7rem;
        transition: ease 0.4s;

        a {
            text-decoration: none;
            font-family: "Montserrat", sans-serif; 
            color: var(--dark-color);
            font-weight: bold;
        }
    }
}

.otherArticleCard:hover {
    border-left: solid 0.8rem var(--primary-color);
}

.shortAd {
    margin-top: 4rem;
}

@media (max-width: 600px) {
    .newsHeader {
        display: none;

    }
    .newsArticle {
        flex-direction: column;
    }

    .articleContainer {
        order: 1;
        width: 100%;
        padding: 1rem;

        & .article {
            width: 100%;
        }
    }

    .otherArticles {
        order: 2;
        width: 100%;
    }

    .newsHeader {
        & h2 {
            font-size: 1.2rem;
        }

        & h1 {
            font-size: 3rem;
            overflow: hidden;

        }
    }

    .newsHeaderMobile {
        display: block;
    }
}