/* ===== Blog Listing ===== */
.blog-hero {
    background: var(--gradient-hero);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}
.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}
.breadcrumbs a {
    color: var(--primary);
    font-weight: 500;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-light);
}

/* Blog Grid */
.blog-section {
    padding: 60px 0;
    background: var(--bg-light);
    min-height: 60vh;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.blog-card-image {
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.blog-card-image svg {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.5);
}
.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(255,45,85,0.1));
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
}
.blog-card-title a {
    color: inherit;
    transition: color 0.2s;
}
.blog-card-title a:hover {
    color: var(--primary);
}
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.blog-card-meta svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
}
.blog-card-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.blog-card-read-more:hover {
    gap: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.pagination a {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}
.pagination .prev, .pagination .next {
    width: auto;
    padding: 0 16px;
    font-size: 0.85rem;
}

/* ===== Single Post ===== */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 48px 0;
}
.post-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
}
.post-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.post-meta svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
}
.post-body {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.post-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 16px;
}
.post-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 28px 0 12px;
}
.post-body p {
    margin-bottom: 16px;
}
.post-body ul, .post-body ol {
    list-style: disc;
    margin: 0 0 16px 24px;
}
.post-body ol {
    list-style: decimal;
}
.post-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.post-body strong {
    color: var(--text-primary);
    font-weight: 600;
}
.post-body a {
    color: var(--primary);
    font-weight: 500;
}
.post-body a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}
.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-post-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,45,85,0.15));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-post-thumb svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.sidebar-post-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}
.sidebar-post-info h4 a {
    color: var(--text-primary);
    transition: color 0.2s;
}
.sidebar-post-info h4 a:hover {
    color: var(--primary);
}
.sidebar-post-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.sidebar-cat-link:hover {
    background: var(--primary);
    color: white;
}
.sidebar-cat-count {
    font-size: 0.8rem;
    background: rgba(0,0,0,0.06);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}
.sidebar-cat-link:hover .sidebar-cat-count {
    background: rgba(255,255,255,0.2);
}

/* Download CTA Widget */
.sidebar-cta {
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    color: white;
    border: none;
}
.sidebar-cta h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}
.sidebar-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 16px;
}
.sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Category header */
.category-hero {
    background: var(--gradient-hero);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}
.category-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.category-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}
.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.empty-state h3 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .post-content {
        padding: 24px;
    }
    .post-content h1 {
        font-size: 1.6rem;
    }
    .category-hero h1 {
        font-size: 1.8rem;
    }
}
