body.page-news-archive,
body.page-news-archive .global-wrapper,
body.page-cases-archive,
body.page-cases-archive .global-wrapper {
    background: #F7F7F7;
}

body.page-news-archive .news-archive .container,
body.page-cases-archive .news-archive .container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-right: 4em;
}

.news-archive {
    width: 100%;
    padding-bottom: 3em;
}

.news-archive .news-section {
    width: 100%;
}

.news-archive .news-section_header {
    display: flex;
    align-items: center;
    padding-right: 0;
    margin-bottom: 18px;
}

.news-archive .news-section_header h1 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 19px;
    color: #4C3425;
}

.news-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 16px;
    max-width: 100%;
    width: 100%;
}

.news-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: calc((100% - 48px) / 4);
    height: auto;
    min-height: 420px;
    padding: 0;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
}

.news-card__media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 198;
    flex: none;
    align-self: stretch;
    overflow: hidden;
    background: #F0EBE3;
}

.news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
}

.news-card--has-image .news-card__body {
    height: auto;
    min-height: 244px;
    flex: 1 1 auto;
}

.news-card--no-image .news-card__body {
    height: 100%;
}

.news-card__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.news-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.news-card__date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 110%;
    color: #5A6560;
}

.news-card__title {
    margin: 0;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    color: #1A1A1A;
}

.news-card__excerpt {
    margin: 0;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 125%;
    color: #4D554F;
    text-align: justify;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.news-card--has-image .news-card__excerpt {
    -webkit-line-clamp: 4;
}

.news-card--no-image .news-card__excerpt {
    -webkit-line-clamp: 13;
}

.news-card--no-image .news-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-card__footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 24px;
    gap: 8px;
    width: 100%;
    flex: none;
}

.news-card__more {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0 11px 0 10px;
    gap: 6px;
    min-height: 30px;
    background: #F9F9F9;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #A3978F;
    text-decoration: none;
    border-bottom: none;
    transition: color 0.25s ease;
}

.news-card:hover .news-card__more {
    color: #D5B075;
}

.news-card__more-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
    flex: none;
    transition: border-color 0.25s ease;
}

.news-archive__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    max-width: 100%;
    width: 100%;
    margin: 28px auto 0;
}

.news-pagination {
    max-width: 100%;
    margin: 0 auto;
}

.news-pagination__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 16px;
}

.news-pagination__pages {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
}

.news-pagination__nav,
.news-pagination__pages .page-numbers {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    padding: 6px;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid #FEF1D3;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 145%;
    color: #D5B075;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.news-pagination__nav:hover,
.news-pagination__pages a.page-numbers:hover {
    border-bottom-style: solid;
}

.news-pagination__nav svg {
    display: block;
    width: 24px;
    height: 24px;
    flex: none;
}

.news-pagination__nav--prev svg {
    transform: rotate(180deg);
}

.news-pagination__nav--next {
    border-color: #D5B075;
    color: #D5B075;
}

.news-pagination__nav.is-disabled {
    pointer-events: none;
    border-color: #FEF1D3;
    color: #E8D4A8;
    opacity: 0.7;
}

.news-pagination__pages .page-numbers.current {
    background: #D5B075;
    border-color: #D5B075;
    color: #FFFFFF;
}

.news-pagination__pages .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #D5B075;
    pointer-events: none;
}

.news-pagination__pages a.page-numbers:hover {
    background: #FEF9EF;
    border-color: #D5B075;
    color: #C89A5A;
}

.news-pagination__nav:not(.is-disabled):hover {
    background: #FEF9EF;
    border-color: #D5B075;
    color: #C89A5A;
}

.news-pagination__pages .page-numbers.current:hover {
    background: #C89A5A;
    border-color: #C89A5A;
    color: #FFFFFF;
}

.news-empty {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #A59992;
}

@media (max-width: 1400px) {
    .news-card {
        width: calc((100% - 32px) / 3);
        height: auto;
        min-height: 420px;
    }
}

@media (max-width: 1200px) {
    body.page-news-archive .news-archive .container,
    body.page-cases-archive .news-archive .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .news-grid {
        max-width: none;
        width: 100%;
    }

    .news-card {
        width: calc((100% - 16px) / 2);
        height: auto;
        min-height: 420px;
    }

    .news-card__media {
        width: 100%;
        height: auto;
        aspect-ratio: 360 / 198;
    }

    .news-card--has-image .news-card__body {
        height: auto;
        min-height: 244px;
        flex: 1 1 auto;
    }

    .news-archive__bottom {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.page-news-archive .news-archive .container,
    body.page-cases-archive .news-archive .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .news-archive {
        padding-bottom: 2em;
    }

    .news-archive .news-section_header {
        margin-bottom: 16px;
    }

    .news-archive .news-section_header h1 {
        font-size: 20px;
        line-height: 19px;
    }

    .news-grid {
        gap: 12px;
    }

    .news-card {
        width: 100%;
        min-height: 0;
        height: auto;
    }

    .news-card--has-image .news-card__body,
    .news-card--no-image .news-card__body {
        height: auto;
        min-height: 220px;
    }

    .news-card--no-image .news-card__excerpt {
        -webkit-line-clamp: 8;
    }

    .news-card__body {
        padding: 20px;
    }

    .news-archive__bottom {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        max-width: none;
    }

    .news-pagination {
        width: 100%;
    }

    .news-pagination__inner {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .news-pagination__pages {
        flex: 1 1 auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
    }

    .news-pagination__nav,
    .news-pagination__pages .page-numbers {
        flex: 0 0 36px;
    }
}

.news-archive .page-back {
    margin-top: 28px;
}
