.abp5_category_news_header {
    text-align: center;
    padding: 60px 3% 40px;
    background: #1d1d1d;
    margin-bottom: 0;
}

.abp5_category_news_title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.abp5_category_news_description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.abp5_category_news_main {
    width: 100%;
    background: #000000;
    padding: 60px 3% 60px;
    box-sizing: border-box;
}

.abp5_category_news_content_wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    align-items: flex-start;
}

.abp5_category_news_posts {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.abp5_category_news_sidebar_wrap {
    width: 100%;
    max-width: 380px;
    margin-left: auto;
}

.abp5_category_news_no_results {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
}

.abp5_category_news_card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    display: block;
}

.abp5_category_news_card_link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.abp5_category_news_card_inner {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
}

.abp5_category_news_card_image {
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.abp5_category_news_card_image_bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s ease;
}

.abp5_category_news_card_image_link:hover .abp5_category_news_card_image_bg {
    transform: scale(1.05);
}

.abp5_category_news_card_title_link {
    color: inherit;
    text-decoration: none;
}

.abp5_category_news_card_title_link:hover {
    text-decoration: underline;
}

.abp5_category_news_card_content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.abp5_category_news_card_category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #1e63ff;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    align-self: flex-start;
}

.abp5_category_news_card_title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.abp5_category_news_card_excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.abp5_category_news_card_divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    margin-top: 4px;
}

.abp5_category_news_card_meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.abp5_category_news_card_meta_item {
    white-space: nowrap;
}

.abp5_category_news_card_meta_sep {
    color: rgba(255, 255, 255, 0.5);
}

.abp5_category_news_pagination_wrap {
    padding: 40px 0 0;
    display: flex;
    justify-content: center;
}

.abp5_category_news_pagination_wrap .pagination,
.abp5_category_news_pagination_wrap .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.abp5_category_news_pagination_wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.abp5_category_news_pagination_wrap .page-numbers:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.abp5_category_news_pagination_wrap .page-numbers.current {
    background: #ffffff;
    color: #000000;
    cursor: default;
    border-color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.abp5_category_news_pagination_wrap .page-numbers.current:hover {
    transform: none;
}

.abp5_category_news_pagination_wrap .page-numbers.dots {
    cursor: default;
    border: none;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.6);
    min-width: auto;
    padding: 0 8px;
}

.abp5_category_news_pagination_wrap .page-numbers.dots:hover {
    background: transparent;
    transform: none;
    color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
}

.abp5_category_news_pagination_wrap .page-numbers.prev,
.abp5_category_news_pagination_wrap .page-numbers.next {
    padding: 0;
}

@media (max-width: 1279px) {
    .abp5_category_news_content_wrap {
        grid-template-columns: 65% 35%;
        gap: 32px;
    }
}

@media (max-width: 991px) {
    .abp5_category_news_content_wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .abp5_category_news_sidebar {
        order: -1;
    }

    .abp5_category_news_card_inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .abp5_category_news_header {
        padding: 40px 3% 30px;
    }

    .abp5_category_news_title {
        font-size: 36px;
    }

    .abp5_category_news_main {
        padding: 40px 3% 40px;
    }
}

.category-news .abp5_subscribe {
    background: #1a1a1a;
}
