:root {
    --yellow: #d8961d;
}

/* Main content wrapper */
.blog .content-area {
    margin-top: 48px;
}
@media (min-width: 768px) {
    .blog .content-area {
        margin-top: 140px;
    }
}

/* Fixing font sizes and weights */

.blog .main-header-bar-navigation a {
    font-weight: bold;
}

/* Page Header */
.blog-header {
    background-color: var(--yellow);
    position: relative;
    width: 100vw;
    left: calc(-50vw + 50%);
    padding: 80px 32px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.blog-header:before {
    position: absolute;
    content: "";
    bottom: -50px;
    left: 0;
    background-image: url(/wp-content/uploads/2020/10/hp_hero_graphics_left.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    width: 100%;
    height: 143px;
}
@media (max-width: 330px) {
    .blog-header:before {
        bottom: -25px;
    }
}
@media (min-width: 500px) {
    .blog-header:before {
        bottom: -70px;
    }
}
@media (min-width: 768px) {
    .blog-header {
        padding: 125px 32px;
        /* Animation */
        animation: heroExpand linear 5s;
        animation-iteration-count: 1;
        animation-fill-mode: forwards;
    }
    .blog-header:before {
        bottom: -50px;
    }
}
@media (min-width: 1024px) {
    .blog-header {
        padding: 175px 32px;
    }
    .blog-header:after {
        position: absolute;
        content: "";
        background-image: url(https://www.northernconstruction.com/wp-content/uploads/2020/10/hp_hero_graphics_right.png);
        background-size: contain;
        background-repeat: no-repeat;
        bottom: -200px;
        right: 0;
        width: 279px;
        height: 473px;
    }
}

.blog-header .header-wrap {
    max-width: 563px;
    margin: auto;
    position: relative;
}
.blog-header .header-wrap:before {
    position: absolute;
    content: "";
    background-color: #fff;
    width: calc(100% - 52px);
    height: 4px;
    bottom: -4px;
    left: 0;
}
.blog-header .slideInRight {
    animation-name: slideInRight;
    animation-fill-mode: forwards;
    animation-duration: 2s;
}
.blog-header h1 {
    color: #ffffff;
    font-family: "Archivo", Sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 55px 25px;
    border: 4px solid #fff;
    position: relative;
    border-right: none;
    border-bottom: none;
}
.blog-header h1:after {
    position: absolute;
    content: "";
    background-color: #fff;
    top: 0;
    right: 0;
    width: 4px;
    height: calc(100% - 50px);
}
.blog-header h1:before {
    position: absolute;
    content: "";
    bottom: -4px;
    left: -4px;
    width: calc(100% + 4px);
    height: 55px;
    background-image: url(/wp-content/uploads/2020/11/hero-box-bottom-triangle.png);
    background-repeat: no-repeat;
    background-size: cover;

    background-position: right bottom;
    z-index: 3;
}
@media (min-width: 768px) {
    .blog-header h1 {
        padding: 55px;
    }
}

/* Page content */
.blog .blog-posts {
    display: grid;
    gap: 25px;
    position: relative;
}
@media (min-width: 768px) {
    .blog .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .blog .blog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-posts .post {
    background-color: #fff;
    box-shadow: 2px 3px 4px 5px rgba(0, 0, 0, 0.42);
    padding: 24px 12px;
    border-radius: 5px;
}

.post .entry-title {
    font-size: 26px;
}

.post .read-more a {
    display: inline-block;
    background-color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 6px 18px;
    color: #fff;
    margin-top: 12px;
}
.post .read-more a:hover {
    background-color: #fff;
    color: var(--yellow);
}

/* Animations */
@keyframes heroExpand {
    0% {
        background-size: 100% auto;
    }
    50% {
        background-size: 110% auto;
    }
    100% {
        background-size: 125% auto;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}
