.blog-list {
    padding-block: 40px;
    overflow: hidden;
}

.blog-item {
    overflow: hidden;
}

.blog-item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-img {
    width: 375px;
    height: 375px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.blog-item:nth-child(3n + 2) .blog-img {
    order: 1;
}

.blog-item .blog-img::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 18px solid #ffffff;
}

.blog-item:nth-child(3n + 2) .blog-img::after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 18px solid #ffffff;  
    bottom: unset;
    border-bottom: 0;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

.blog-item:hover .blog-img img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.blog-content {
    padding: 40px;
    height: 375px;
}

.blog-item:nth-child(3n + 2) .blog-content {
    order: 0;
}

.blog-content h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    color: var(--text-yellow);
    font-family: 'nunito', sans-serif;
}

.blog-content h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
    word-break: break-word;
    margin-block: 20px;
    color: var(--text-black-color-4);
}

.blog-content h3:hover {
    color: var(--text-yellow);
}

.blog-content p {
    font-size: 13px;
    color: #acacac;
    margin-top: 30px;
}

@media (max-width: 991.98px) {
    .blog-item:nth-child(3n + 2) .blog-img {
        order: 0;
    }  
    
    .blog-item:nth-child(3n + 2) .blog-content {
       order: 1;
    }

    .blog-item:nth-child(3n + 2) .blog-img::after {
        top: unset;
        border-top: 0;
        bottom: 0;
        border-bottom: 18px solid #ffffff;
    }
}

@media (max-width: 575px) {
    .blog-img {
        width: 100%;
        height: 100%;
    }
}