/* Main Blog Page */
#blog .container {
    width: calc(100% - 6.4rem);
    max-width: 1160px;
    margin: 3.2rem auto 5.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 3.2rem;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 1rem;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    flex: 0 1 auto;
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    background-color: var(--background-white);
    border-radius: 4px;
    padding: .8rem 1.6rem;
}

.filter-btn.active {
    color: var(--purple-4);
    border-color: var(--purple-4);
    background-color: var(--purple-hover);
}

.filter-btn:hover,
.filter-btn:focus {
    background-color: var(--purple-hover);
}

/* Featured Blog Post */
section#featured {
    position: relative;
    z-index: 1;
    margin-bottom: 175px;
    padding: 0;
}

.entry-details.card {
    border-radius: 8px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
    border: 0;
    position: absolute;
    bottom: -100px;
    left: 60px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 565px;
    padding: 4rem;
}

.category-wrap {
    display: flex;
    align-items: center;
    grid-gap: 1.6rem;
    gap: 1.6rem;
}


/* Shared Main Blog Styles */
h2.entry-title {
    color: var(--purple-5);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.blog-entries {
    padding: 0;
}

.blog-entries li:not(:last-of-type) {
    padding-bottom: 3.2rem;
    margin-bottom: 3.2rem;
    width: 100%;
}

.blog-entries li:not(:last-of-type).has-divider {
    content: '';
    border-bottom: 1px solid var(--border-color);
}

.blog-entry a {
    display: flex;
    grid-gap: 3.2rem;
    gap: 3.2rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.blog-entries img {
    flex: 1 1 auto;
    max-width: 50%;
}

.entry-details {
    flex: 1 1 calc(50% - 1.6rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
}

/* Individual Blog Post */
.blog-nav {
    padding: 2.4rem 3.2rem;
    width: calc(100% - 6.4rem);
    margin: 0;
}

.blog-nav ol {
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    display: inline-flex;
    flex-wrap: wrap;
}

.blog-nav li:not(:last-of-type):after {
    content: '|';
    padding: 0 .8rem;
}

.blog-nav a {
    color: var(--secondary-text);
}

article.entry-details {
    width: calc(100% - 6.4rem);
    max-width: 800px;
    margin: 2.4rem auto 5.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 3.2rem;
    grid-gap: 1.6rem;
    gap: 1.6rem;
}

h1.entry-title {
    color: var(--section-title);
    font-weight: 600;
    font-size: 3.6rem;
    line-height: 1.5;
}

article.entry-details:not(.card) h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: .8rem;
}

article.entry-details:not(.card) h2.h6 {
    font-size: 1.6rem;
    font-weight: 700;
}

article.entry-details ul {
    list-style-type: disc;
    margin: 1.6rem 0 0 3.2rem;
}

article.entry-details ol {
    list-style-type: decimal;
    margin: 1.6rem 0 0 3.2rem;
}

article.entry-details li {
    font-size: 1.6rem;
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

/* Shared Styles Between All Blog Pages */
.blog-entry img {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
}

@media (max-width: 1440px) {
    .blog-nav {
        padding-left: 3.2rem;
        padding-right: 3.2rem;
        width: calc(100% - 6.4rem);
    }

    .blog-nav ol {
        max-width: 1380px;
    }
}

@media (max-width: 1336px) {
    article.entry-details {
        padding-left: 3.2rem;
        padding-right: 3.2rem;
    }
}


@media (max-width: 959px) {
    #blog .container,
    .blog-nav,
    article.entry-details {
        padding-left: 2.4rem;
        padding-right: 2.4rem;
        width: calc(100% - 4.8rem);
    }

    .blog-entry img {
        max-width: 100%;
    }

    .blog-entry a {
        flex-direction: column;
        grid-gap: 1.6rem;
        gap: 1.6rem;
        align-items: flex-start;
        justify-content: flex-start;
    }


    section#featured {
        margin-bottom: 0px;
    }

    #featured a {
        grid-gap: 0;
        gap: 0;
    }

    #featured .card {
        position: relative;
        left: unset;
        bottom: unset;
        padding: 2.4rem;
        max-width: calc(100% - 1.6rem);
        margin-top: -16px;
        margin-bottom: 4rem;
    }

    #featured img {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@media (max-width: 768px) {
    #blog .container,
    .blog-nav,
    article.entry-details {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
        width: calc(100% - 3.2rem);
    }

    #blog h1 {
        font-size: 3.2rem;
    }

}

@media (max-width: 600px) {
    .blog-nav {
        display: none;
    }

    #blog .container,
    article.entry-details {
        padding-left: .8rem;
        padding-right: .8rem;
        width: calc(100% - 1.6rem);
        margin: 3.2rem auto;
    }

    h2.entry-title,
    h1.entry-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 375px) {
    .filter {
        flex-direction: column;
    }
}