/* ===== SECTION: Category Hero - Start ===== */
.category-hero {
    position: relative;
    overflow: hidden;
    padding: 55px 0 50px;
    background: linear-gradient(135deg, #91034c 0%, #6b0238 55%, #4a0127 100%);
    color: var(--white);
}
.category-hero-pattern {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.category-hero-pattern svg {
    width: 100%;
    height: 100%;
    display: block;
}
.category-hero-pattern-right {
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    opacity: 0.85;
}
.category-hero .container {
    position: relative;
    z-index: 2;
}
.category-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 780px;
}
.category-hero .woocommerce-breadcrumb {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 5px;
}
.category-hero .woocommerce-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}
.category-hero .woocommerce-breadcrumb a:hover {
    color: var(--white);
}
.category-hero .woocommerce-breadcrumb .bread-last {
    color: var(--white) !important;
    font-weight: 500;
}
.category-hero .woocommerce-breadcrumb .bread-arrow svg path {
    stroke: rgba(255, 255, 255, 0.6);
}
.category-hero-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-family: var(--font-family-1);
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.category-hero-title {
    color: var(--white);
    margin: 0;
}
.category-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 27px;
    margin: 0;
    max-width: 640px;
}

@media (max-width: 1279px) {
    .category-hero {
        padding: 40px 0 35px;
    }
    .category-hero-pattern-right {
        width: 280px;
        height: 280px;
        right: -90px;
        opacity: 0.55;
    }
    .category-hero-description {
        font-size: 15px;
        line-height: 24px;
    }
}
@media (max-width: 768px) {
    .category-hero {
        padding: 30px 0 25px;
    }
    .category-hero-pattern-right {
        display: none;
    }
    .category-hero-inner {
        gap: 10px;
    }
}
/* ===== SECTION: Category Hero - End ===== */

/* ===== SECTION: Category Featured Post - Start ===== */
.category-featured-post {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 30px;
    margin: 50px 0 60px;
    background: var(--white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.category-featured-post:hover {
    box-shadow: 0 14px 30px rgba(145, 3, 76, 0.16);
    border-color: transparent;
}
.category-featured-image {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    background: var(--light-gray);
}
.category-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}
.category-featured-post:hover .category-featured-image img {
    transform: scale(1.04);
}
.category-featured-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 40px 40px 40px 0;
    align-self: center;
}
.category-featured-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-small);
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.category-featured-title {
    margin: 0;
    color: var(--black);
}
.category-featured-title a {
    color: inherit;
    transition: color 0.2s ease;
}
.category-featured-title a:hover {
    color: var(--primary);
}
.category-featured-meta {
    color: var(--gray);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.category-featured-excerpt {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 25px;
}
.category-featured-cta {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 1279px) {
    .category-featured-post {
        grid-template-columns: 1fr;
        margin: 35px 0 40px;
        gap: 0;
    }
    .category-featured-image {
        min-height: 260px;
    }
    .category-featured-image img {
        position: relative;
        inset: auto;
    }
    .category-featured-body {
        padding: 30px;
    }
}
@media (max-width: 768px) {
    .category-featured-image {
        min-height: 200px;
    }
    .category-featured-body {
        padding: 25px 22px;
        gap: 12px;
    }
    .category-featured-excerpt {
        font-size: 14px;
        line-height: 22px;
    }
}
/* ===== SECTION: Category Featured Post - End ===== */

/* ===== SECTION: Blog Category - Start ===== */
.blog-category-section {
    padding: 50px 0 100px;
}

/* Posts Grid */
.blog-category-section .category-posts-grid {
    margin-bottom: 60px;
}
/* Тонкі категорії: 1-2 картки обмежуємо в ширині щоб не розтягувались на весь екран */
.blog-category-section .category-posts-grid:has(> .post-card-mini:only-child) {
    grid-template-columns: minmax(0, calc((100% - 2 * var(--blocks-indent)) / 3));
}
.blog-category-section .category-posts-grid:has(> .post-card-mini:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, calc((100% - 2 * var(--blocks-indent)) / 3)));
}
.blog-category-section .category-posts-grid .post-card-mini {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-category-section .category-posts-grid .post-card-mini .post-image {
    overflow: hidden;
    border-radius: var(--radius-medium);
}
.blog-category-section .category-posts-grid .post-card-mini .post-image img {
    transition: transform 0.4s ease;
}
.blog-category-section .category-posts-grid .post-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(145, 3, 76, 0.18);
}
.blog-category-section .category-posts-grid .post-card-mini:hover .post-image img {
    transform: scale(1.05);
}

/* No Posts Message */
.blog-category-section .no-posts-message {
    padding: 60px 20px;
}

/* Pagination - Start */
.blog-category-section .pagination-wrapper {
    display: flex;
    justify-content: center;
}

.blog-category-section .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-category-section .pagination a,
.blog-category-section .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-weight: 500;
    color: var(--black);
    transition: all 0.3s ease;
}

.blog-category-section .pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-match);
}

.blog-category-section .pagination a:hover svg path {
    stroke: var(--primary-match);
}

.blog-category-section .pagination span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-match);
    cursor: default;
}

.blog-category-section .pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
}

.blog-category-section .pagination svg path {
    stroke: var(--black);
    transition: all 0.3s ease;
}

.blog-category-section .page-nav svg {
    width: 10px;
    height: 11px;
}
/* Pagination - End */

/* Adaptive 1680px */
@media (max-width: 1680px) {
    .blog-category-section {
        padding-bottom: 75px;
    }
}

/* Adaptive 1279px */
@media (max-width: 1279px) {
    .blog-category-section {
        padding-bottom: 50px;
    }
    
    .blog-category-section .category-posts-grid {
        margin-bottom: 40px;
    }
    .blog-category-section .category-posts-grid:has(> .post-card-mini:only-child) {
        grid-template-columns: minmax(0, calc((100% - var(--blocks-indent)) / 2));
    }
    .blog-category-section .category-posts-grid:has(> .post-card-mini:nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
        .blog-category-section .pagination {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .blog-category-section .pagination a,
    .blog-category-section .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
    }
    .blog-category-section .pagination svg {
        width: 14px;
        height: 14px;
    }
    
    .blog-category-section .page-nav svg {
        width: 8px;
        height: 9px;
    }
}
@media (max-width: 768px) {
    .blog-category-section .category-posts-grid:has(> .post-card-mini:only-child),
    .blog-category-section .category-posts-grid:has(> .post-card-mini:nth-child(2):last-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* ===== SECTION: Blog Category - End ===== */