/* Category/Subcategory Page Header - Card-Based Hero Design */

/* Container */
.category-lists #page-header,
.layout_category #page-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, transparent 100%);
    padding: 50px 30px;
    border-radius: 12px;
    border-left: 6px solid var(--theme-color);
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Override default page-title styles */
#page-header .page-title {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 2px;
    font-weight: normal;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Main Category Name */
#page-header .page-title::before {
    content: '📂 ';
    margin-right: 8px;
}

/* Category Title Main (inserted dynamically or via ::after) */
.category-title-main {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 10px 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Stats Bar */
.category-stats {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 20px;
    align-items: center;
}

.category-stats .stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.category-stats .stat-item::before {
    font-size: 12px;
}

/* Post Count Stat */
.stat-posts::before {
    content: '📝';
}

/* Latest Update Stat */
.stat-updated::before {
    content: '🕒';
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {

    .category-lists #page-header,
    .layout_category #page-header {
        padding: 30px 20px;
    }

    .category-title-main {
        font-size: 28px;
    }

    .category-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}