.posts-guide {
    padding: 100px 0 160px;
}

.posts-guide .block-content {
    border-top: 1px solid #C6D7D0;
    padding-top: 24px;
}

.posts-guide .block-wrapper {
    text-align: center;
    margin-bottom: 64px;
}

.posts-guide .block-title {
    margin-bottom: 24px;
}

.posts-guide .block-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary);
    max-width: 720px;
    margin: 0 auto;
}

.posts-guide__cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style-type: none;
    padding: 0;
    margin: 32px auto 0;
    max-width: 609px;
}

.posts-guide__cats a {
    background-color: #E9F1EC;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 12px;
    text-decoration: none;
    transition: background .3s ease, color .3s ease;
    font-family: var(--font-accent);
    font-size: 14px;
}

.posts-guide__cat-icon {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.posts-guide__cat-icon img,
.posts-guide__cat-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter .3s ease;
}

.posts-guide__cats a:hover,
.posts-guide__cats .is-active a {
    background-color: var(--primary);
    color: #fff;
}

.posts-guide__cats a:hover .posts-guide__cat-icon img,
.posts-guide__cats a:hover .posts-guide__cat-icon svg,
.posts-guide__cats .is-active a .posts-guide__cat-icon img,
.posts-guide__cats .is-active a .posts-guide__cat-icon svg {
    filter: brightness(0) invert(1);
}

.posts-guide__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.posts-guide__item {
    height: auto;
}

.posts-guide__link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 297 / 425;
    height: 100%;
    padding: 48px 24px 24px;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.posts-guide__icon {
    margin: 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #C6D7D0;
    position: relative;
    z-index: 1;
}

.posts-guide__icon img,
.posts-guide__icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 20px;
}

.posts-guide__title {
    color: inherit;
    margin-top: auto;
    margin-bottom: auto;
    letter-spacing: -1%;
    text-align: center;
    line-height: 1.05;
    font-family: var(--font-heading);
    font-size: 42px;
    position: relative;
    z-index: 1;
}

.posts-guide__type {
    font-size: 16px;
    color: inherit;
    font-weight: 400;
    text-align: center;
    font-family: var(--font-sans);
    line-height: 1.5;
    letter-spacing: -1%;
    margin: 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(16, 84, 73, 0.25);
    padding: 32px 12px 12px;
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
}

.posts-guide__link--has-video .posts-guide__type {
    border-top: 0;
}

.posts-guide__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.posts-guide__item .posts-guide__link--has-video {
    color: #fff !important;
}

.posts-guide__item .posts-guide__link {
    background-color: #E9F1EC;
    color: var(--primary);
}

/*.posts-guide__item:nth-child(7n+1) .posts-guide__link {
    background-color: #759E91;
    color: var(--primary);
}

.posts-guide__item:nth-child(7n+2) .posts-guide__link {
    background-color: #F6BE95;
    color: var(--primary);
}

.posts-guide__item:nth-child(7n+3) .posts-guide__link {
    background-color: var(--black);
    color: #fff;
}

.posts-guide__item:nth-child(7n+4) .posts-guide__link {
    background-color: #105449;
    color: #fff;
}

.posts-guide__item:nth-child(7n+5) .posts-guide__link {
    background-color: #AC8665;
    color: var(--primary);
}

.posts-guide__item:nth-child(7n+6) .posts-guide__link {
    background-color: #FADD93;
    color: var(--primary);
}

.posts-guide__item:nth-child(7n+7) .posts-guide__link {
    background-color: #E9F1EC;
    color: var(--primary);
}

.posts-guide__item .posts-guide__link--has-video {
    color: #fff !important;
}

.posts-guide__item:nth-child(7n+2) .posts-guide__icon {
    background-color: #C5A487;
}

.posts-guide__item:nth-child(7n+5) .posts-guide__icon {
    background: var(--secondary);
}*/

.posts-guide__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    width: 100%;
}

.posts-guide__pagination-pages {
    display: flex;
    align-items: center;
    gap: 12px;
}

.posts-guide__pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 400;
    color: var(--primary);
    background-color: #E9F1EC;
    transition: background .3s ease, color .3s ease;
}

.posts-guide__pagination-page:hover,
.posts-guide__pagination-page.is-active {
    background-color: var(--primary);
    color: #fff;
}

.posts-guide__pagination-dots {
    font-family: var(--font-accent);
    font-size: 14px;
    color: var(--primary);
    padding: 0 4px;
}

.posts-guide__pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    text-decoration: none;
    flex-shrink: 0;
}

.posts-guide__pagination-arrow:hover svg path {
    fill: var(--primary);
}

.posts-guide__pagination-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 1440px) {
    .posts-guide {
        padding: 64px 0 96px;
    }

    .posts-guide .block-wrapper {
        margin-bottom: 48px;
    }
}


@media (max-width: 991px) {
    .posts-guide {
        padding: 32px 0;
    }

    .posts-guide .block-wrapper {
        margin-bottom: 32px;
    }

    .posts-guide__category {
        margin-bottom: 48px;
    }

    .posts-guide__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-guide__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .posts-guide__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-guide__title {
        font-size: 24px;
    }
}

@media (max-width: 679px) {
    .posts-guide__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}