body {
    display: block;
}

.posts-bcg {
    background-color: #f5f5f5;
}

.post-grid__inner {
    column-gap: 4%;
}

.decorated .post-grid__inner {
    column-gap: 2.3%;
}

.posts-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 96px;
    margin-bottom: 20px;
}

.posts__title {
    font-size: 32px;
    margin-top: 10px;
}
.related__title {
    padding-top: 60px;
    padding-bottom: 24px;
    text-align: left !important;
}

.posts__decor {
    top: 88px;
    right: -300px;
}

.post-grid__item {
    margin-bottom: 64px;
}
.vacancy-grid__item {
    margin-bottom: 16px;
}

.vacancy__grid:not(:last-child) {
    margin-bottom: 15px;
}

.post {
    height: 443px;
    padding: 24px 20px 19px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.post .misc {
    margin-top: 24px;
}

.misc .separator {
    margin: 0 9px;
}

.post-type__featured-post {
    height: 395px;
    padding: 27px 20px 19px;
}

.post-type__featured-post .misc {
    margin: 0;
}

.post-type__vacancy {
    height: 181px;
    padding: 19px 31px 18px;
}

.post__thumb {
    height: 180px;
    margin: -24px -24px 20px -24px;
    overflow: hidden;
}

.post__thumb img,
.post__thumb-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.2s;
}

.post__thumb-featured {
    width: 484px;
    margin: -32px 38px 20px -24px;
    height: inherit;
    overflow: hidden;
}

.post__title {
    margin-top: 42px;
    margin-bottom: 9px;
    color: black;
    line-height: 120%;
}

.post-type__featured-post .post__title {
    margin: 35px 0;
}

.post__excerpt {
    height: 84px;
    margin-bottom: 15px;
}

.post__date,
.post__category {
    font-size: 14px;
}

.d-block:hover {
    text-decoration: none;
}

.post:hover .post__thumb img {
    transform: scale(1.05);
}

.widget .posts__title {
    text-align: center;
}

.vacancy-grid__item .view-more {
    font-size: 16px;
    bottom: 32px;
    right: 47px;
}

.post-type__featured-post .view-more {
    bottom: 27px;
    right: 38px;
}

.view-more {
    font-size: 14px;
    bottom: 20px;
    right: 30px;
}

.view-more:active {
    text-decoration: none;
}

.ic--share {
    position: absolute;
    bottom: 25px;
    right: 162px;
}

.post-type__featured-post .ic--share {
    bottom: 34px;
    right: 169px;
}

.ic--share:hover {
    color: #a80532;
    transition: 200ms;
}

.ic--arrow_long {
    color: #a80532;
}

.tags {
    margin-bottom: 33px;
}

.tag {
    padding: 0 24px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;

    font-size: 14px;
    line-height: 140%;
}

.tag:hover {
    background-color: #e0e0e0;
    color: #a80532;
    text-decoration: none;
}

.back-single-post {
    /* margin-top: 66px; */
    margin-bottom: 88px;
    font-size: 16px;
    display: inline-block;
}

.sp-main .post-col-md-3 {
    margin-left: 1.35%;
    margin-right: 1.35%;
}

/* Vacancy css */

.vacancy__title {
    margin-top: 10px;
}

.vacancy__location {
    margin-top: 16px;
    margin-bottom: 21px;
}

.salary {
    color: white;
    background-color: #a80532;
    padding: 7px;
    border-radius: 2px;
}

.posts--vacancy {
    margin-top: 32px;
    margin-bottom: 50px;
}
.posts--post {
    margin-bottom: -3px;
    padding: 0 10px;
}

.decorated.posts--post {
    padding: 0;
}

.posts--post .load-more-post {
    margin-bottom: 160px;
}

.posts--vacancy .load-more-vacancy {
    margin-top: 17px;
    margin-bottom: 93px;
}

.categories {
    margin-bottom: 40px;
}

.categories .category {
    font-size: 17px;
    border: 1px solid;
    border-radius: 20px;
    border-color: #e0e0e0;
    padding: 6px 23px;
    transition: background-color 0.2s ease;
}
.categories .active-category,
.categories .category:hover {
    background-color: #e0e0e0;
    color: #a80532;
}

.posts-footer {
    text-align: center;
}
.posts-footer .btn--secondary {
    display: none;
}

/* responsive design */
.post-grid__inner .post-col-lg-4:last-child,
.post-grid__inner .post-col-md-4:last-child {
    display: none;
}

@media (max-width: 1099px) {
    .post-type__featured-post {
        display: none;
    }
    .categories .category {
        margin-bottom: 10px;
        font-size: 16px;
    }
    .categories {
        margin-left: 3px;
        margin-bottom: -16px;
    }
}

@media (max-width: 768px) {
    .post-grid__inner .post-col-lg-4:last-child,
    .post-grid__inner .post-col-md-4:last-child {
        display: block;
    }
    .posts-header {
        margin-top: 74px;
        padding: 0;
    }

    .posts__title {
        color: #4f4f4f;
    }

    .posts-header .btn--secondary {
        display: none;
    }
    .posts-footer .btn--secondary {
        display: inline-block;
    }

    .posts-footer {
        margin-top: 30px;
    }

    .posts--post {
        padding: 0;
    }

    .post .misc {
        margin: 0;
        padding-left: 10px;
    }

    .post-grid__inner {
        column-gap: 4%;
        padding: 0 10px;
    }

    .post-grid__item {
        margin-bottom: 32px;
    }

    .posts--post .post {
        height: 421px;
    }

    .post-type__vacancy {
        margin: 0 2%;
    }

    .decorated .post-grid__inner {
        column-gap: 2.3%;
    }

    .widget .post-grid__inner .post-grid__item:last-child {
        display: none;
        visibility: hidden;
    }
}

@media (max-width: 470px) {
    .widget .post-grid__inner .post-grid__item:last-child {
        display: flex;
        visibility: visible;
    }
}
@media (max-width: 390px) {
    .post-grid__inner .post-col-lg-4:last-child,
    .post-grid__inner .post-col-md-4:last-child {
        display: none;
    }

    .categories {
        margin-bottom: 15px;
    }

    .posts-footer {
        margin-top: -18px;
    }
}

/* load more different margins */

@media (max-width: 768px) {
    .posts--post .load-more-post {
        /* margin-top: 30px; */
        margin-bottom: 100px;
    }
}
@media (max-width: 390px) {
    .posts--post .load-more-post {
        margin-top: 31px;
        margin-bottom: 160px;
    }
    .posts--post .post {
        height: 445px;
    }
}

.sp-thumb {
    margin-bottom: 32px;
}
