/* ============================================
   Citizenry Blog Styles
   Clean, minimal design
   ============================================ */

/* Blog Header */
.blog-header {
    background: var(--bg-white);
    padding: 100px 0 80px;
    text-align: center;
}

.blog-header h1 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: var(--bg-section);
}

.featured-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 48px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.featured-badge-large {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.featured-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--text-primary);
}

.featured-text .post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--accent-dark);
}

.read-more-link.large {
    font-size: 1.1rem;
}

/* Blog Content */
.blog-content {
    padding: 60px 0;
    background: var(--bg-white);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.blog-post-card {
    background: var(--bg-section);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.blog-post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: var(--bg-white);
}

.blog-post-card .post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-card .post-content {
    padding: 24px;
}

.blog-post-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--text-primary);
}

.blog-post-card .post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-post-card .excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Blog CTA Section */
.blog-cta-section {
    padding: 100px 0;
    background: var(--bg-section);
    text-align: center;
}

.blog-cta-section h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.blog-cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.blog-cta-section .download-btn-large img {
    height: 64px;
    width: auto;
    transition: transform 0.2s ease;
}

.blog-cta-section .download-btn-large:hover img {
    transform: translateY(-4px);
}

/* Pagination */
.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-current,
.pagination-next,
.pagination-prev {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.pagination-link {
    color: var(--text-secondary);
    background: var(--bg-section);
    border: 1px solid var(--border-color);
}

.pagination-link:hover {
    background: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.pagination-current {
    background: var(--text-primary);
    color: white;
    border: 1px solid var(--text-primary);
}

.pagination-next,
.pagination-prev {
    color: var(--accent-color);
    background: transparent;
    border: 1px solid var(--accent-color);
}

.pagination-next:hover,
.pagination-prev:hover {
    background: var(--accent-color);
    color: white;
}

/* ============================================
   Individual Blog Post Styles
   ============================================ */

.blog-post {
    padding: 60px 0 100px;
    background: var(--bg-white);
}

.post-header {
    max-width: 800px;
    margin: 0 auto 48px;
}

.back-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-dark);
}

.post-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-header .post-meta {
    color: var(--text-muted);
    font-size: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.post-content h2 {
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.post-content th {
    background: var(--bg-section);
    font-weight: 600;
    color: var(--text-primary);
}

.post-content td {
    color: var(--text-secondary);
}

/* Blog Post CTA */
.post-cta {
    background: var(--bg-section);
    border-radius: 16px;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.post-cta h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.post-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.post-cta .download-btn-large img {
    height: 56px;
    width: auto;
    transition: transform 0.2s ease;
}

.post-cta .download-btn-large:hover img {
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 80px 0 60px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .featured-image img {
        max-width: 260px;
        margin: 0 auto;
    }
    
    .featured-text h2 {
        font-size: 1.5rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-cta-section h2 {
        font-size: 1.5rem;
    }
    
    /* Blog post responsive */
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-content h2 {
        font-size: 1.4rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
    
    .post-cta {
        padding: 32px 24px;
    }
}

/* Legal Pages (Privacy Policy, Terms of Service) */
.legal-page .post-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-page .post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.legal-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.legal-content ol li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -20px;
}

.privacy-highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.privacy-highlight h3 {
    color: #15803d;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.privacy-highlight p {
    margin-bottom: 0;
    color: #166534;
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

.legal-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.legal-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}
