/* 
  General stylings
*/

html, 
body {
    margin: 0;
    padding: 0;
}

main {
    margin: 0 auto;
    padding: 1em;
    max-width: 1200px;
}

body {
    font-family: "Source Sans 3", serif;
}

/*
  Header stylings
*/

.header-container {
    margin-top: 1em;
    margin-bottom: 0.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 2em;
}

.logo-and-title-container {
    display: flex;
    align-items: center;
}

.logo {
    margin-right: 0.5em;
}

.title-heading {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-family: "Roboto", serif;
}

.nav-container ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    display: flex;
    list-style: none;
    gap: 1em;
}

.nav-container a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}


/*
  Recent posts section stylings
*/

.recent-articles-section-container {
    margin: 5em auto 1em auto;
}

.recent-articles-container {
    display: flex;
    flex-direction: column;
    margin-top: 1em;
}

.recent-article-container {
    flex: 1 1 150px;
    margin: 1em;
}

.recent-articles-section-heading {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0;
}

.recent-article-date {
    font-weight: bold;
    color: gray;
    margin-bottom: 0;
}

.recent-article-heading {
    margin-top: 0.25em;
    margin-bottom: 0.5em;
    font-size: 1.5rem;
}

.recent-article-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@media only screen and (min-width: 992px) {
    .title-heading {
        font-size: 2rem;
    }


    .nav-container a {
        font-size: 1.5rem;
    }

    .recent-articles-container {
        flex-direction: row;
        gap: 1em;
    }
}


/* 
  Footer stylings
*/

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 2.5em 2em;
}

.footer-brand-text {
    font-weight: bold;
}

.footer-copyright-text {
    font-style: italic;
}