.blog {

}
.blog .item {
    width: 100%
}
.blog h1 {
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 64px;
    line-height: 87px;
    margin-top: 81px;
    margin-bottom: -64px;
}
.blog .item .container {
    width: 90%;
    max-width: 1536px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12.5%;
    padding: 128px 0;
}
.blog .item .image-wrapper {
    width: 512px;
    height: 512px;
}
.blog .item .image-wrapper img {
    width: 512px;
    height: 512px;
    border-radius: 40px;
    object-fit: cover;
}
.blog .item .content-container {
    display: flex;
    align-items: center;
}
.blog .item h2 {
    font-weight: 500;
    font-size: 48px;
    line-height: 66px;
    margin-bottom: 32px;
}
.blog .item p {
    font-weight: 400;
    font-size: 24px;
    line-height: 33px;
    margin-bottom: 64px;
}
.blog .item a {
    display: block;
    border-radius: 47px;
    padding: 12px 24px;
    text-decoration: none;
    width: 331px;
    font-weight: 600;
    font-size: 20px;
    line-height: 27px;
    text-align: center;
    transition: all 0.5s ease;
}

/***********************/

.blog .item:nth-of-type(2n+1){
    background-color: #1A191D;
    color: #fff;
}
.blog .item:nth-of-type(2n+1) .container{
    flex-direction: row;
}
.blog .item:nth-of-type(2n+1) a {
    color: #fff;
    border: 1px solid #fff;
}
.blog .item:nth-of-type(2n+1) a:hover {
    color: #1A191D;
    background-color: #fff;
}
.blog .item:nth-of-type(2n+1) a:active {
    color: #1A191D;
    background-color: #fff;
    opacity: 0.5;
}

/***********************/

.blog .item:nth-of-type(2n) {
    background-color: #fff;
    color: #1A191D;
}
.blog .item:nth-of-type(2n) .container {
    flex-direction: row-reverse;
}
.blog .item:nth-of-type(2n) a {
    color: #1A191D;
    border: 1px solid #1A191D;
}
.blog .item:nth-of-type(2n) a:hover {
    background-color: #1A191D;
    color: #fff;
}
.blog .item:nth-of-type(2n) a:active {
    background-color: #1A191D;
    color: #fff;
    opacity: 0.5;
}

@media (max-width: 1280px) {
    .blog h1 {
        font-size: 34px;
        line-height: 46px;
        margin-top: 24px;
        margin-bottom: 0;
    }
    .blog .item .container {
        max-width: 832px;
        width: 85%;
        padding: 48px 0;
    }
    .blog .item .image-wrapper {
        width: 284px;
        height: 284px;
    }
    .blog .item .image-wrapper img {
        width: 284px;
        height: 284px;
    }
    .blog .item h2 {
        font-size: 28px;
        line-height: 38px;
        margin-bottom: 16px;
    }
    .blog .item p {
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 16px;
    }
    .blog .item a {
        font-size: 16px;
        line-height: 22px;
        padding: 13px 0;
        width: 311px;
    }
    .blog .item:nth-of-type(2n+1) a {
        color: #1A191D;
        background-color: #fff;
        border: none;
    }
    .blog .item:nth-of-type(2n) a {
        color: #fff;
        background-color: #1A191D;
        border: none;
    }
}

@media (max-width: 820px) {
    .blog .item .container {
        width: 90%;
        gap: 7.5%;
    }
}

@media (max-width: 750px) {
    .blog {
        padding-top: 16px;
    }
    .blog .item .container {
        width: 85%;
        padding: 32px 0;
        flex-direction: column !important;
        gap: 16px;
    }
    .blog .item .image-wrapper {
        width: 311px;
        height: 311px;
    }
    .blog .item .image-wrapper img {
        width: 311px;
        height: 311px;
    }
    .blog .item p {
        margin-bottom: 32px;
    }
    .blog .item a {
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .blog h1 {
        font-size: 24px;
        line-height: 33px;
    }
    .blog .item .container {
        width: 90%;
        max-width: 311px;
    }
    .blog .item h2 {
        font-weight: 500;
        font-size: 24px;
    }
    .blog .item p {
        font-weight: 400;
        font-size: 14px;
    }
}
