/* Parent-site post archives and search results. Recruitment portal archives are excluded in PHP. */
.ncit-page-archive .site-body {
    background: #f5f7f8;
}

.ncit-page-archive .site-body-container {
    display: block;
    width: min(calc(100% - 40px), 1100px) !important;
    max-width: 1100px !important;
}

.ncit-page-archive .main-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.ncit-page-archive .sub-section {
    display: none !important;
}

.ncit-page-archive .post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 52px 0 0;
}

.ncit-page-archive .post-list .vk_post {
    display: grid !important;
    grid-template-rows: auto 1fr;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(31, 72, 91, .14) !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(25, 54, 70, .07);
}

.ncit-page-archive .post-list .vk_post_imgOuter {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    background-position: center;
    background-size: cover;
}

.ncit-page-archive .post-list .vk_post_imgOuter > a,
.ncit-page-archive .post-list .vk_post_imgOuter_img {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.ncit-page-archive .post-list .vk_post_imgOuter_img {
    object-fit: cover;
    opacity: 0;
}

.ncit-page-archive .post-list .vk_post_imgOuter_singleTermLabel {
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--ncit-accent) !important;
    color: #fff !important;
    font-size: .76rem;
    font-weight: 800;
}

.ncit-page-archive .post-list .vk_post_body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.ncit-page-archive .post-list .vk_post_title {
    margin: 0;
    color: var(--ncit-ink);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.55;
}

.ncit-page-archive .post-list .vk_post_title a {
    color: inherit;
    text-decoration: none;
}

.ncit-page-archive .post-list .vk_post_title a:hover,
.ncit-page-archive .post-list .vk_post_title a:focus-visible {
    color: var(--ncit-accent);
}

.ncit-page-archive .post-list .vk_post_dates {
    order: -1;
    margin: 0 0 12px;
    color: #607382;
    font-size: .82rem;
    font-weight: 700;
}

.ncit-page-archive .post-list .vk_post_excerpt {
    display: -webkit-box;
    margin: 18px 0 24px;
    overflow: hidden;
    color: #526675;
    font-size: .94rem;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ncit-page-archive .post-list .vk_post_btnOuter {
    margin-top: auto;
    text-align: left !important;
}

.ncit-page-archive .post-list .vk_post_btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid var(--ncit-ink);
    border-radius: 999px;
    background: #fff;
    color: var(--ncit-ink);
    font-weight: 800;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.ncit-page-archive .post-list .vk_post_btn:hover,
.ncit-page-archive .post-list .vk_post_btn:focus-visible {
    background: var(--ncit-ink);
    color: #fff;
}

.ncit-page-archive .pagination {
    margin-top: 44px;
}

.ncit-page-archive .pagination .page-link {
    min-width: 44px;
    min-height: 44px;
    border-color: rgba(31, 72, 91, .16);
    color: var(--ncit-ink);
}

.ncit-page-archive .pagination .active .page-link {
    border-color: var(--ncit-ink);
    background: var(--ncit-ink);
    color: #fff;
}

@media (max-width: 767px) {
    .ncit-page-archive .site-body-container {
        width: min(calc(100% - 32px), 1100px) !important;
    }

    .ncit-page-archive .post-list {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 34px;
    }

    .ncit-page-archive .post-list .vk_post_body {
        padding: 20px;
    }

    .ncit-page-archive .post-list .vk_post_title {
        font-size: 1.18rem;
    }

    .ncit-page-archive .post-list .vk_post_excerpt {
        margin: 15px 0 20px;
    }

    .ncit-page-archive .post-list .vk_post_btn {
        width: 100%;
        min-height: 50px;
    }
}
