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

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

.abp5_category_games_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_games_posts {
    padding: 40px 3% 60px;
    background: #000000;
    margin-top: 0;
}

.abp5_category_games_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.abp5_category_games_card {
    position: relative;
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.abp5_category_games_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.abp5_category_games_card_link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.abp5_category_games_card_image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.abp5_category_games_card_content {
    padding: 25px;
    text-align: center;
}

.abp5_category_games_card_title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px;
    line-height: 1.3;
}

.abp5_category_games_card_excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 20px;
    min-height: 44px;
}

.abp5_category_games_card_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.abp5_category_games_card_button_circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    flex-shrink: 0;
}

.abp5_category_games_card_button_circle i {
    font-size: 14px;
    color: #ffffff;
}

.abp5_category_games_card_button_text {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
}

.abp5_category_games_card:hover .abp5_category_games_card_button_text {
    opacity: 1;
    max-width: 200px;
    margin-right: 0;
}

.abp5_category_games_no_results {
    text-align: center;
    padding: 60px 3%;
    color: #fff;
}

.abp5_category_games_no_results h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.abp5_category_games_pagination_wrap {
    padding: 40px 3% 60px;
    background: #000000;
    margin-top: 0;
}

.abp5_category_games_pagination_wrap .pagination,
.abp5_category_games_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_games_pagination_wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: #d0021b;
    border-radius: 999px;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    border: none;
    cursor: pointer;
}

.abp5_category_games_pagination_wrap .page-numbers:hover {
    background: #e31a2f;
    box-shadow: 0 12px 28px rgba(208, 2, 27, 0.35);
    transform: translateY(-2px);
}

.abp5_category_games_pagination_wrap .page-numbers.current {
    background: #ea011d;
    color: #ffffff;
    cursor: default;
    box-shadow: 0 12px 28px rgba(208, 2, 27, 0.35);
}

.abp5_category_games_pagination_wrap .page-numbers.current:hover {
    transform: none;
    background: #ea011d;
}

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

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

.abp5_category_games_pagination_wrap .page-numbers.prev,
.abp5_category_games_pagination_wrap .page-numbers.next {
    padding: 0 20px;
}

.abp5_category_games_news_hero_wrap .abp5_news_hero_site1_widget {
    background: #000000;
}

@media (max-width: 1279px) {
    .abp5_category_games_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

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

    .abp5_category_games_title {
        font-size: 36px;
    }

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

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

    .abp5_category_games_card_image {
        height: 180px;
    }

    .abp5_category_games_pagination_wrap {
        padding: 30px 3% 40px;
    }

    .abp5_category_games_pagination_wrap .pagination,
    .abp5_category_games_pagination_wrap .nav-links {
        gap: 8px;
    }

    .abp5_category_games_pagination_wrap .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .abp5_category_games_pagination_wrap .page-numbers.prev,
    .abp5_category_games_pagination_wrap .page-numbers.next {
        padding: 0 16px;
    }
}
