.latest-posts-container {
    position: relative;
    width: 100%;
    background-color: #ECEFF2;
    margin-top: 300px;
    padding-bottom: 90px;
}
.latest-posts-container:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 25vw solid transparent;
    border-right: 75vw solid transparent;
    border-bottom: 80px solid #ECEFF2;
    position: absolute;
    z-index: 99;
    top: -80px;
}
.latest-posts-container .h2-title {
    color: var(--colour-navy);
    text-align: center;
}
.latest-posts-container > p {
    position: relative;
    bottom: 240px;
    text-align: center;
    display: none;
}
.latest-posts-container:has(.posts-categories) {
    margin-top: 75px;
}
.latest-posts-container:has(.posts-categories) .lp-heading-container {
    position: static;
}
.latest-posts {
    padding: 0 var(--section-spacing);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.latest-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 99;
    padding-top: 50px;
}
.latest-post-title {
    display: block;
    width: 100%;
    text-align: start;
    font-size: var(--font-24px);
    font-weight: 700;
}
.latest-post-thumbnail img {
    height: 155px;
    object-fit: cover;
}
.btn-read-more {
    align-self: start;
    display: inline-flex;
    padding: 11px 57px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: var(--colour-yellow);
    text-transform: uppercase;
    font-weight: 700;
}
.latest-posts hr {
    width: 100%;
    margin-block: 35px 25px;
    border: 1px solid var(--colour-navy);
}
.lp-svg-container {
    display: none;
}
.lp-heading-container {
    position: absolute;
    top: -250px;
    width: 100%;
    text-align: center;
    padding-inline: var(--section-spacing);
}
@media screen and (min-width: 1200px) {
    .latest-posts {
        flex-direction: row;
        max-width: 1400px;
        align-items: initial;
        padding-bottom: 100px;
    }
    .latest-posts hr {
        width: 2px;
        height: 430px;
        margin: 0 60px;
        position: relative;
        bottom: 0;
        top: 30px;
    }
    .latest-posts hr:last-child {
        display: none;
    }
    .latest-posts-container:after {
        border-left: 50vw solid transparent;
        border-right: 50vw solid transparent;
    }
    .latest-posts-container {
        margin-top: 350px;
        padding-bottom: 0;
    }
    .latest-posts-container .h2-title {
        position: relative;
        bottom: 0;
    }
    .latest-posts-container > p {
        display: block;
    }
    .latest-posts-container .triangles-animated {
        height: 0;
        top: -30%;
    }
}
@media screen and (min-width: 1400px) {
    .latest-posts-svg {
        width: 1300px;
        position: relative;
        top: 35px;
    }
    .lp-svg-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        position: absolute;
        top: -4%;
    }
    .lp-svg-circle {
        background-color: #fff;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        position: absolute
    }
    .lp-svg-circle:nth-of-type(1) {
        left: 30px;
        top: 315px;
    }
    .lp-svg-circle:nth-of-type(2) {
        left: 23%;
        top: 390px;
    }
    .lp-svg-circle:nth-of-type(3) { 
        right: 46.2%;
        top: 35px;
    }
    .lp-svg-circle:nth-of-type(4) {
        right: 18.7%;
        top: 125px;
    }
    .lp-svg-circle:nth-of-type(5) {
        right: 2%;
        top: 350px;
    }
    .latest-posts-svg path {
        stroke-dashoffset: 2000;
        stroke-dasharray: 2000;
    }
    .latest-posts.animating .latest-posts-svg path {
        animation: dash 3s linear forwards infinite;
    }
    @keyframes dash {
        to {
            stroke-dashoffset: 0;
        }
    }
}
