.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.category-pill {
    padding: 8px 18px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.category-pill:hover, .category-pill.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}
.featured-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 32px;
    cursor: pointer;
    transition: transform 0.2s;
}
.featured-card:hover { transform: translateY(-3px); }
.featured-card img { width: 100%; height: 300px; object-fit: cover; }
.featured-card-placeholder { width: 100%; height: 300px; background: linear-gradient(135deg, #667eea, #764ba2); display: flex; align-items: center; justify-content: center; font-size: 80px; }
.featured-card-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-badge { display: inline-block; background: linear-gradient(135deg, #f59e0b, #ef4444); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #667eea22, #764ba222); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-card-body { padding: 20px; }
.category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    color: #667eea;
    margin-bottom: 8px;
}
.difficulty-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-left: 6px;
}
.blog-card-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; line-height: 1.4; }
.blog-card-excerpt { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.empty-blog { text-align: center; padding: 60px 20px; color: var(--text-secondary); }

/* Bookmark button */
.bookmark-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.bookmark-btn:hover { border-color: #667eea; color: #667eea; }
.bookmark-btn.bookmarked { border-color: #667eea; background: linear-gradient(135deg,#667eea22,#764ba222); color: #667eea; }

/* Most Popular */
.section-heading { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.popular-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.popular-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px var(--shadow); }
.popular-rank { font-size: 22px; font-weight: 800; color: #667eea; min-width: 28px; text-align: center; }
.popular-card img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.popular-placeholder { width: 72px; height: 56px; border-radius: 8px; background: linear-gradient(135deg,#667eea22,#764ba222); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.popular-body { flex: 1; min-width: 0; }
.popular-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popular-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Newsletter */
.newsletter-banner {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    padding: 48px 40px;
    margin: 48px 0;
    text-align: center;
}
.newsletter-content { max-width: 560px; margin: 0 auto; }
.newsletter-text h3 { font-size: 24px; font-weight: 700; color: white; margin-bottom: 8px; }
.newsletter-text p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    font-size: 14px;
    outline: none;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
    color: #333;
}
.newsletter-form button {
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    background: white;
    color: #667eea;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.newsletter-form button:hover { opacity: 0.9; }

.filter-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg,#667eea22,#764ba222);
    border: 1.5px solid #667eea44;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    margin-bottom: 20px;
}
.filter-indicator:hover { color: #ef4444; border-color: #ef444444; }

/* Category select (mobile) */
.category-select-wrap { display: none; margin: 16px 0; }
.category-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 30px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .category-pills { display: none; }
    .category-select-wrap { display: block; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-card img, .featured-card-placeholder { height: 200px; }
    .featured-card-body { padding: 20px; }
    .popular-grid { grid-template-columns: 1fr; gap: 12px; }
    .popular-card img, .popular-placeholder { width: 56px; height: 44px; }
    .popular-rank { font-size: 18px; min-width: 22px; }
    .newsletter-banner { padding: 32px 20px; }
    .newsletter-form { flex-direction: column; align-items: stretch; }
    .newsletter-form input { max-width: 100%; }
    .newsletter-form button { width: 100%; }
}
@media (max-width: 480px) {
    .blog-card img, .blog-card-placeholder { height: 150px; }
    .blog-card-body { padding: 14px; }
    .blog-card-title { font-size: 14px; }
    .blog-card-meta { gap: 8px; }
    .popular-meta .category-badge { display: none; }
}
