.wrpf-news-page {
    padding: 10px 0 50px;
}

.wrpf-news-page__inner {
    width: min(1280px, calc(100% - 30px));
    margin: 0 auto;
}

.wrpf-news-filters-wrap {
    margin-bottom: 28px;
}

.wrpf-news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.wrpf-news-filter {
    appearance: none;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #111;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wrpf-news-filter:hover {
    border-color: #c70016;
    color: #c70016;
    transform: translateY(-1px);
}

.wrpf-news-filter.is-active {
    background: #c70016;
    border-color: #c70016;
    color: #fff;
    box-shadow: 0 8px 20px rgba(199, 0, 22, 0.16);
}

.wrpf-news-content {
    position: relative;
    min-height: 180px;
}

.wrpf-news-content.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.68);
    z-index: 2;
}

.wrpf-news-content.is-loading::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 42px;
    height: 42px;
    margin-left: -21px;
    border: 3px solid rgba(199, 0, 22, 0.18);
    border-top-color: #c70016;
    border-radius: 50%;
    animation: wrpfNewsSpin 0.7s linear infinite;
    z-index: 3;
}

@keyframes wrpfNewsSpin {
    to {
        transform: rotate(360deg);
    }
}

.wrpf-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.wrpf-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wrpf-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.wrpf-news-card__thumb-link {
    display: block;
    position: relative;
    height: 360px;
    overflow: hidden;
    background: #ddd;
    line-height: 0;
}

.wrpf-news-card__thumb-link img.wrpf-news-card__image,
.wrpf-news-card__thumb-link .wrpf-news-card__image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.wrpf-news-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1b1b1b 0%, #444 100%);
}

.wrpf-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 18px 20px;
}

.wrpf-news-card__title {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.wrpf-news-card__title a {
    color: #111;
    text-decoration: none;
}

.wrpf-news-card__title a:hover {
    color: #c70016;
}

.wrpf-news-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #c70016;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
    align-self: flex-start;
}

.wrpf-news-card__button:hover {
    background: #a90013;
    color: #fff;
    transform: translateY(-1px);
}

.wrpf-news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.wrpf-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #e2e2e2;
    transition: all 0.2s ease;
}

.wrpf-page-numbers:hover {
    border-color: #c70016;
    color: #c70016;
}

.wrpf-page-numbers.current {
    background: #c70016;
    border-color: #c70016;
    color: #fff;
}

.wrpf-news-empty {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #666;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1199px) {
    .wrpf-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wrpf-news-card__thumb-link {
        height: 340px;
    }
}

@media (max-width: 767px) {
    .wrpf-news-page__inner {
        width: calc(100% - 20px);
    }

    .wrpf-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wrpf-news-filter {
        padding: 10px 14px;
        font-size: 13px;
    }

    .wrpf-news-card__thumb-link {
        height: 420px;
    }

    .wrpf-news-card__body {
        padding: 16px;
    }

    .wrpf-news-card__title {
        font-size: 17px;
        margin-bottom: 16px;
    }
}
