/* Blog Archive Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--nsf-primary);
}

.page-title {
    font-size: 2rem;
    color: var(--nsf-primary);
    margin: 0 0 0.5rem;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

/* Subcategory Navigation */
.subcategory-nav {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.subcategory-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: var(--nsf-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.subcategory-list a:hover {
    background: var(--nsf-primary);
    color: white;
    border-color: var(--nsf-primary);
}

.subcategory-list .count {
    color: #888;
    font-size: 0.8rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card .post-content {
    padding: 1.5rem;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f4fd;
    color: var(--nsf-primary);
    border-radius: 15px;
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
}

.category-badge:hover {
    background: var(--nsf-primary);
    color: white;
}

.post-card .entry-title {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.post-card .entry-title a {
    color: var(--nsf-text);
    text-decoration: none;
}

.post-card .entry-title a:hover {
    color: var(--nsf-primary);
}

.post-card .entry-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.post-card .entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.post-card time {
    color: #888;
    font-size: 0.85rem;
}

.post-card .read-more {
    color: var(--nsf-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.post-card .read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: var(--nsf-text);
    transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--nsf-primary);
    color: white;
    border-color: var(--nsf-primary);
}

/* Blog Sidebar */
.blog-sidebar {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.blog-sidebar h3 {
    color: var(--nsf-primary);
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--nsf-text);
    transition: all 0.2s;
}

.category-list a:hover {
    background: var(--nsf-primary);
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-results h2 {
    color: var(--nsf-primary);
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subcategory-list {
        justify-content: center;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .entry-header {
    margin-bottom: 2rem;
}

.single-post .entry-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: var(--nsf-primary);
}

.single-post .entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.single-post .entry-meta .updated {
    color: #888;
}

.single-post .post-thumbnail {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.single-post .entry-content h2 {
    font-size: 1.6rem;
    color: var(--nsf-primary);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.single-post .entry-content h3 {
    font-size: 1.3rem;
    color: var(--nsf-secondary);
    margin: 2rem 0 0.75rem;
}

.single-post .entry-content p {
    margin-bottom: 1.25rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.5rem;
}

.single-post .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid var(--nsf-primary);
    font-style: italic;
}

/* Table of Contents */
.table-of-contents {
    position: sticky;
    top: 100px;
    float: right;
    width: 280px;
    margin: 0 0 2rem 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.9rem;
}

.table-of-contents h4 {
    margin: 0 0 1rem;
    color: var(--nsf-primary);
    font-size: 1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents .toc-h3 {
    padding-left: 1rem;
}

.table-of-contents a {
    color: #555;
    text-decoration: none;
}

.table-of-contents a:hover {
    color: var(--nsf-primary);
}

/* Entry Footer */
.single-post .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-tags {
    margin-bottom: 1.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    background: #e8f4fd;
    color: var(--nsf-primary);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
}

.tag-link:hover {
    background: var(--nsf-primary);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-share a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    color: white;
}

.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

/* CTA Box */
.cta-box {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--nsf-primary) 0%, var(--nsf-secondary) 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.cta-box h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.cta-box p {
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.cta-box .btn {
    background: white;
    color: var(--nsf-primary);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.related-posts h3 {
    margin: 0 0 1.5rem;
    color: var(--nsf-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.related-post {
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.related-post h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.related-post h4 a {
    color: var(--nsf-text);
    text-decoration: none;
}

.related-post h4 a:hover {
    color: var(--nsf-primary);
}

.related-post p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info strong {
    color: var(--nsf-primary);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .single-post .entry-title {
        font-size: 1.6rem;
    }
    
    .table-of-contents {
        position: relative;
        float: none;
        width: 100%;
        margin: 0 0 2rem;
    }
    
    .cta-box {
        padding: 1.5rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}
