/* ================================= */
/* BLOG HUB WIDGET - COMPLETE STYLES */
/* ================================= */
.blog-hub-widget {
    --primary: #9c33a7;
    --bg-light: #f8fafc;
    --text-muted: #64748b;
    --border: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.blog-hero { 
    margin-bottom: 40px; 
}
.blog-header { max-width: 1200px; margin: 0 auto; }
.blog-title { 
    font-size: 56px; 
    font-weight: 600; 
    margin: 0 0 20px 0; 
    color: #1e293b; 
}
.blog-header-left{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-categories { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    max-width: 800px; 
}
.category-btn { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    padding: 10px 20px; 
    background: white; 
    border: 2px solid var(--border); 
    border-radius: 25px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    color: var(--text-muted); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.category-btn:hover,
.category-btn.active { 
    background: var(--primary) !important; 
    color: white !important; 
    border-color: var(--primary); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156,51,167,0.3);
}
.cat-count { 
    font-size: 12px; 
    font-weight: 600; 
    background: rgba(255,255,255,0.3); 
    padding: 2px 6px; 
    border-radius: 10px; 
}
.category-btn.active .cat-count { background: rgba(255,255,255,0.5); }

/* Grid */
.blog-grid-container { max-width: 1200px; margin: 0 auto; }
.posts-grid.cols-3 { 
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
}

/* Post Cards */
.post-item { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    transition: all 0.3s ease; 
    width: calc(33.33% - 14px);
}
.post-item:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
}
.post-item-thumb { 
    display: block; 
    overflow: hidden; 
    position: relative; 
}
.post-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-item:hover .post-thumb { transform: scale(1.05); }
.post-placeholder { 
    background: linear-gradient(135deg, #e5e7eb, #d1d5db); 
    height: 100%; 
}

/* Post Content */
.post-item-body { padding: 20px; }
.post-item-meta { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 14px; 
    color: var(--text-muted); 
    margin-bottom: 10px; 
}
.post-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-link { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 500; 
}
time { font-weight: 500; }
.post-item-title { 
    margin: 0 0 8px 0; 
    font-size: 20px; 
}
.post-item-title a { 
    color: #1e293b; 
    text-decoration: none; 
    font-weight: 600; 
}
.post-item-title a:hover { color: var(--primary); }

/* Loading & States */
.loading-posts { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 4rem 2rem; 
    color: var(--text-muted); 
}
.spinner { 
    width: 40px; 
    height: 40px; 
    border: 3px solid #f3f4f6; 
    border-top: 3px solid var(--primary); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
    margin-bottom: 1rem; 
}
.see-more-btn{
    font-size: 14px;
    text-decoration: none;
    color: #9637b2;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.no-posts, .error-posts { 
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 4rem 2rem; 
    color: var(--text-muted); 
}
@media screen and ( max-width: 991px ) {
    .blog-title{
        font-size: 46px;
    }
}
@media screen and ( max-width: 767px ) {
    .post-item{
        width: calc(50% - 10px);
    }
    .category-btn{
        padding: 4px 10px;
    }
    .post-item-title { 
        font-size: 18px; 
    }
    .blog-title{
        font-size: 36px;
    }
}
@media screen and ( max-width: 479px ){
    .post-item{
        width: 100%;
    }
}