
.header-news{
    text-align: center;
    margin-top: 3%;
    margin-bottom: 1%;
}


h1{
    font-family: 'Mulish', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-top: 5%;
}

h4,h5{
    font-weight: 100;
    font-size: 24px;
}

p{
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    margin-top: 2%;
    word-spacing: 5px;
    text-indent: 50px;
    text-transform: none;
    text-align: justify;
    line-height: 22px;
}

h3{
    font-family: 'Mulish', sans-serif;
    font-size: 24px;
    margin-top: 2%;
    font-weight: 600;
}

hr{
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2%;
}

.content-container{
    display: grid;
    grid-template-areas: 'left-content right-content';
    width: 60%;
    margin: auto;
    grid-gap: 50px;
    text-align: left;
}
.featured-article img{
    height: auto;
    width: 65vw;
}

.featured-article, .another-article{
    margin-top: 2%;
    margin-bottom: 2%;
}

.another-article h3{
    margin-bottom: 10px;
    font-size: 24px;
}

.another-article p{
    font-size: 16px;
    margin-bottom: 10px;
    font-family: 'Mulish', sans-serif;
}



.btn{
    font-family: 'Mulish' , sans-serif;
}

.read-more-btn{
    background-color: black;
    border: none;
    color: white;
    float: right;
    margin-bottom: 2%;
    padding: 10px 20px 10px 20px;
}

.read-more-btn:hover{
    background-color: #a9a9a9;
}

.right-content img{
    height: 200px;
    width: 200px;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2%;
}

.author-caption{
    font-style: italic;
    text-align: justify;
    font-size: 16px;
    font-family: 'Mulish', sans-serif;
    text-transform: none;
}

.newsletter{
    margin-top: 10%;
    border: 1px solid black;
    padding: 25px 10px 25px 10px;
    text-align: center;
    grid-area: newsletter;
}

h5{
    margin-bottom: 10%;
}

input[type = "email"]{
    padding: 10px 20px 10px 20px;
    outline: none;
}

::placeholder{
    text-align: center;
}

.sub-btn{
    background-color: black;
    border: none;
    color: white;
    padding: 15px 70px 15px 70px;
    margin-top: 5%;
}

.sub-btn:hover{
    background-color: #a9a9a9;
}

.search{
    margin-top: 10%;
    text-align: center;
    grid-area: search;
}

.search h5{
    background-color: black;
    color: white;
    padding: 10px;
}

input[type = "text"]{
    padding: 5px;
    width: 80%;
    outline: none;
}

.search-btn{
    float: right;
    padding: 5px 8px;
    background-color: black;
    border: none;
    color: white;
    font-size: 15px;
}

.search-btn:hover{
    background-color: #a9a9a9;
}

.topics{
    margin-top: 10%;
    text-align: center;
    grid-area: topics;
}

.topics h5{
    background-color: black;
    color: white;
    padding: 10px;
}

.topics li{
    text-transform: none;
    display: block;
    padding: 5px;
    opacity: 0.8;
}

.popular-posts{
    margin-top: 10%;
    text-align: center;
    grid-area: search;
}

.popular-posts h5{
    background-color: black;
    color: white;
    padding: 10px;
}

popular-posts img{
    height: 240px;
    width: 220px;
    border-radius: 0!important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3%;
}

.caption{
    font-family: 'Mulish', sans-serif;
    font-style: italic;
    display: flex;
    justify-content: center;
    color: black;
    font-weight: bold;
    margin-top: 2%;
    margin-bottom: 2%;
}

footer{
    margin-top: 3%;
    text-align: center;
    background-color: black;
    color: white;
    padding: 5px;
}

.featured-article{
    grid-area: featured-article;
}

.another-article{
    grid-area: another-article;
}

.avatar-content{
    grid-area: avatar-content;
}

@media (max-width:1299px){
    nav{
        grid-template-areas: 'nav-links' 'accounts';
        text-align: center;
    }

    .content-container{
        grid-template-areas: 'left-content''right-content';
        width: 70%;
        margin: auto;
    }

    hr{
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2%;
    }

    .right-content{
        display: grid;
        grid-template-areas: 'avatar-content newsletter'
        'search topics';
        grid-gap: 40px;
    }

    .newsletter{
        margin-top: 0;
    }

    .popular-posts{
        display: none;
    }

    .topics{
        margin-top: 30px;
    }
}

@media (max-width:700px){
    nav li{
        display: block;
    }
    .content-container{
        grid-template-areas: 'left-content''right-content';
        grid-gap: 40px;
        width: 80%;
        margin: auto;
    }
    hr{
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2%;
    }
    .left-content img{
        height: 300px;
        width: 400px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .right-content{
        display: grid;
        grid-template-areas: 'avatar-content' 
        'newsletter'
        'search'
        'topics';
        width: 50%;
        margin: auto;
    }

    .newsletter, .topics, .search{
        margin-top: 3%;
    }
    .read-more-btn{
        float: left;
    }
}