*, ::before, ::after {
    box-sizing: border-box;
}

html, 
body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans 3', sans-serif;
}

/* HEADER */

h2 {
    font-size: 1.125rem;
    margin: 0;
}

header {
    display: flex;
    padding: 1.25rem;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-left {
    display: flex;
    gap: 0.25em;
    align-items: center;
    color: #0E0E0E;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
}

.header-left img {
    margin: auto 0;
}

.hamburger-icon {
    margin-left: auto;
}
.hamburger-icon  img{
    width: 2rem;
}

/* .header-right {
    display: flex;
    width: 40%;
    justify-content: flex-end;
    gap: 1rem;
    position: absolute;
} */


.sidebar {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 4.25rem;
    background: #ffffff;
    padding: 1rem;
    align-items: baseline;
    width: 30%;
}

.no-display {
    display: none;
}


.btn-nav {
    background: none;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #090909;
}

/* HERO */

.hero {
    background: url("../images/article-image-hero.png");
    background-size: cover;
    color: #ffffff;
    padding: 6rem 2rem 2rem 1.5rem;
    line-height: 1.3;
}

.date {
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Main section/blogs */

.blogs-container {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    gap: 1rem;
}

/* .blog {
    margin-bottom: 2rem;
} */

.blog img {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
}

.blog p {
    margin: 0;
}

.blog-date {
    font-size: 0.875rem;
}

.blog-desc{
    color: 505050
}

.blog h1 {
    margin: 0.5rem 0;
}

.view-btn-container {
    text-align: center;
}

.btn-main {
    background: none;
    font-weight: 700;
    text-decoration: underline;
    border: none;
    margin: 2rem 0;
}

/* FOOTER */
footer {
    background: #202020;
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    bottom: 0;
    left: 0;
    right: 0;
}

footer p {
    margin: 0;
    line-height: 1.5;
}

.footer-title {
    color: #ECECEC;
    font-weight: 700;
    
}

.footer-tag {
    color: #D7D7D7;
}


/* HOME AND ABOUT COMMON */
.home-hero, 
.about-hero {
    padding: 2rem 1.25rem;
}

/* HOME PAGE */

.home-hero h1,
.home-hero .hero-desc {
    padding-right: 2rem;
}

.home-hero img {
    display: block;
    margin: 2rem auto 2.5rem;
    width: 100%;
    border-radius: 5px;
}

.post-heading {
    text-align: center;
    margin-top: 1rem;
}

/* ABOUT PAGE */

.about-hero img {
    border-radius: 50%;
    width: 50%;
}

.about-hero h1 {
    font-size: 2.5rem;
    padding-right: 2rem;
}


/* KEYFRAMES FOR WIDER SCREEN */

@media (min-width:650px) {
    .container {
        max-width: 1100px;
        margin: 0 auto;
    }
    .header-right {
        gap: 2rem;
    }

    .hero-desc {
        width: 80%;
    }

    .blogs-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2rem 1rem;
        padding: 2rem;
    }

    .home-hero h3,
    .home-hero p,
    .home-hero h1,
    .about-hero h3,
    .about-hero p,
    .about-hero h1 {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-sub-hero {
        display: flex;
        flex: 1 6 auto; 
        align-items: center;
        margin: 0 0 3rem 0;
        gap: 1.5rem;
        width: 100%;
    }

    .about-sub-hero img {
        max-width: 400px;
        min-width: 200px;
    }

    .about-hero-text {
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
    }

    .about-hero-text h1,
    .about-hero-text p {
        width: 100%;
        padding: 0;
    }

    .about-hero-text h1 {
        line-height: 1;
        font-size: 2.25rem;
    }

    .header-right {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        width: 40%;
        justify-content: flex-end;
        gap: 1rem;
        position: static;
        padding: 0;
        color: black;
    }

    /* .always-display {
        display: block;
    } */
    .hamburger-icon {
        display: none;
    }

    .btn-nav {
        margin-bottom: 0;
    }
}

