/* Utility classes extracted from inline styles */
.figure-wide {
    margin: 1.25rem 0;
}

.figure-narrow {
    margin: 1.25rem auto;
    max-width: 890px;
}

/* Optional smaller figure width for specific images */
.figure-small {
    max-width: 240px;
}

.figure-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.figure-caption {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.note-muted {
    font-size: 0.95rem;
    color: var(--muted-text, #666);
    margin-top: 0.75rem;
}

/* Compact section title spacing */
.section-title--compact {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
/* Blog-Specific Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.1;
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.blog-hero-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content Layout */
.blog-content {
    padding: 80px 0;
    background: #ffffff;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Main Blog Area */
.blog-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Featured Post */
.featured-post {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-post .post-image {
    display: none;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post:hover .post-image img {
    transform: scale(1.05);
}

.featured-post .post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-post .post-content {
    padding: 2rem;
}

.featured-post .post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-post .post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post .post-title a:hover {
    color: #667eea;
}

.featured-post .post-excerpt {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tag Filter Section */
.tag-filter-section {
    margin: 2rem 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 2rem;
}

.filter-title {
    flex: 1;
}

.filter-instructions {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
    font-style: italic;
}

.find-box {
    flex-shrink: 0;
}

.tag-filter-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tag-input-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tag-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.tag-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-tag-btn {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-tag-btn:hover {
    background: #2563eb;
}

.find-posts-btn {
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.find-posts-btn:hover {
    background: #059669;
}

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 2rem;
}

.active-tag {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.active-tag:hover {
    background: #2563eb;
}

.active-tag .remove-tag {
    font-size: 0.75rem;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-suggestion {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tag-suggestion:hover {
    background: #e2e8f0;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Search Box Styling */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: #2563eb;
}

.search-results {
    margin-top: 1rem;
}

.search-results h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
}

.search-result-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.search-result-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.2s;
}

.search-result-link:hover {
    color: #3b82f6;
}

.search-result-link strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.search-result-excerpt {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.no-results {
    color: #6b7280;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* Dark mode support for tag filter */
@media (prefers-color-scheme: dark) {
    .tag-filter-box {
        background: #1e293b;
        border-color: #475569;
    }
    
    .tag-input {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .tag-input:focus {
        border-color: #3b82f6;
    }
    
    .tag-suggestion {
        background: #334155;
        color: #cbd5e1;
    }
    
    .tag-suggestion:hover {
        background: #475569;
        color: #3b82f6;
    }
    
    .search-input {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .search-input:focus {
        border-color: #3b82f6;
    }
    
    .search-result-link strong {
        color: #f1f5f9;
    }
    
    .search-result-excerpt {
        color: #94a3b8;
    }
    
    .search-result-item {
        border-color: #475569;
    }
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Subtle section decoration */
.blog-content .container { position: relative; }
.blog-content .container::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(102,126,234,0), rgba(102,126,234,0.35), rgba(102,126,234,0));
}

/* Card polish */
.blog-post {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    overflow: hidden;
    background: var(--card-bg, #fff);
}
.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border-color: rgba(102,126,234,0.35);
}
.blog-post .post-image img { transition: transform 0.3s ease; }
.blog-post:hover .post-image img { transform: scale(1.03); }

.post-meta { border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.post-tags .tag { background: rgba(102,126,234,0.1); color: #667eea; border: 1px solid rgba(102,126,234,0.25); }

/* Search indicator spacing */
.search-results-indicator { margin: 1rem 0 1.5rem; }

/* Regular Blog Posts */
.blog-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-post .post-image {
    display: none;
}

.blog-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.blog-post .post-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.blog-post .post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-post .post-meta i {
    font-size: 0.75rem;
}

.blog-post .post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post .post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post .post-title a:hover {
    color: #667eea;
}

.blog-post .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f2f5;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

/* Post Author */
.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.author-title {
    color: #666;
    font-size: 0.8rem;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-number:hover,
.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-dots {
    display: flex;
    align-items: center;
    color: #666;
    font-weight: 500;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #5a6fd8;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.category-link:hover {
    color: #667eea;
}

.category-count {
    background: #f0f2f5;
    color: #667eea;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.recent-post img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.recent-post-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recent-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #667eea;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #666;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: #f0f2f5;
    color: #667eea;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-input:focus {
    outline: none;
    background: white;
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Dark Mode Styles for Blog */
body.dark-mode .blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .blog-hero-title {
    color: #e8e8e8;
}

body.dark-mode .blog-hero-subtitle {
    color: #667eea;
}

body.dark-mode .blog-hero-description {
    color: #b8b8b8;
}

body.dark-mode .blog-content {
    background: #0a0a0a;
}

body.dark-mode .blog-post,
body.dark-mode .sidebar-widget {
    background: #1a1a1a;
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .blog-post:hover,
body.dark-mode .sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.dark-mode .post-title a,
body.dark-mode .recent-post-content h4 a {
    color: #e8e8e8;
}

body.dark-mode .post-title a:hover,
body.dark-mode .recent-post-content h4 a:hover {
    color: #667eea;
}

body.dark-mode .post-excerpt,
body.dark-mode .post-meta,
body.dark-mode .recent-post-date {
    color: #b8b8b8;
}

body.dark-mode .widget-title {
    color: #e8e8e8;
    border-bottom-color: #667eea;
}

body.dark-mode .search-input,
body.dark-mode .newsletter-input {
    background: #2a2a2a;
    border-color: #333;
    color: #e8e8e8;
}

body.dark-mode .search-input:focus,
body.dark-mode .newsletter-input:focus {
    border-color: #667eea;
    background: #333;
}

body.dark-mode .category-link {
    color: #b8b8b8;
    border-bottom-color: #333;
}

body.dark-mode .category-link:hover {
    color: #667eea;
}

body.dark-mode .category-count {
    background: #2a2a2a;
    color: #667eea;
}

body.dark-mode .tag,
body.dark-mode .tag-link {
    background: #2a2a2a;
    color: #667eea;
}

body.dark-mode .tag:hover,
body.dark-mode .tag-link:hover {
    background: #667eea;
    color: #0a0a0a;
}

body.dark-mode .pagination-btn,
body.dark-mode .pagination-number {
    background: #1a1a1a;
    border-color: #333;
    color: #b8b8b8;
}

body.dark-mode .pagination-btn:hover:not(:disabled),
body.dark-mode .pagination-number:hover,
body.dark-mode .pagination-number.active {
    background: #667eea;
    color: #0a0a0a;
    border-color: #667eea;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .blog-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .find-box {
        align-self: flex-start;
    }
    
    .featured-post .post-image {
        height: 250px;
    }
    
    .blog-post .post-image {
        height: 180px;
    }
    
    .pagination-numbers {
        display: none;
    }
    
    .blog-pagination {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .featured-post .post-content,
    .blog-post .post-content {
        padding: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .newsletter-form {
        gap: 0.5rem;
    }
}

/* Blog Post Page Styles */
.blog-post-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.1;
    z-index: 1;
}

.post-breadcrumb {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: #5a6fd8;
}

.post-breadcrumb i {
    font-size: 0.8rem;
}

.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.post-header-content .post-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.post-header-content .post-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-header-content .post-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-header-content .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.post-header-content .post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-header-content .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.post-header-content .author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.post-header-content .author-title {
    color: #666;
    font-size: 0.9rem;
}

.post-header-content .post-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-header-content .post-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-header-content .post-details i {
    font-size: 0.8rem;
}

/* Blog Post Content */
.blog-post-content {
    padding: 60px 0;
    background: #ffffff;
}

/* Make blog post content span full page width with comfortable padding */
.blog-post-content .container {
    max-width: 100% !important;
    padding-left: 24px;
    padding-right: 24px;
}

.post-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px; /* wider main content, fixed sidebar */
    gap: 2rem;
    align-items: start;
    visibility: visible !important;
    opacity: 1 !important;
}

.post-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.post-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.post-body {
    padding: 3rem;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.5rem 0 1rem 0;
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-radius: 0 8px 8px 0;
}

.post-body pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-body code {
    background: #f1f3f4;
    color: #d63384;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
}

.post-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-body th,
.post-body td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-body th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
}

.post-body tr:hover {
    background: #f8f9fa;
}

/* Post Footer */
.post-footer {
    padding: 2rem 3rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

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

.share-label {
    font-weight: 600;
    color: #1a1a1a;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #4267b2;
    color: white;
}

.share-btn.copy {
    background: #667eea;
    color: white;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
    flex-direction: row-reverse;
}

.nav-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.nav-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* TOC toggle: collapse sidebar and expand content */
body.toc-collapsed .post-layout {
    grid-template-columns: 1fr;
}
body.toc-collapsed .post-sidebar {
    display: none;
}

.toc-widget {
    position: static; /* let the sidebar handle stickiness */
}

/* Make the TOC container scrollable without pinning */
.post-sidebar {
    position: sticky;
    top: 100px; /* adjust for navbar height */
    align-self: start; /* ensure sticky works in grid */
    max-height: calc(100vh - 120px);
    overflow: auto; /* sidebar scrolls if long */
}

/* TOC Toggle Button */
.toc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #667;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    margin-left: 0.5rem;
}
.toc-toggle:hover {
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.toc-toggle .icon {
    font-size: 0.95rem;
}

/* Dark mode for wider layout and toggle */
body.dark-mode .toc-toggle { background: #1a1a1a; border-color: #333; color: #b8b8b8; }
body.dark-mode .toc-toggle:hover { background: #222; color: #e8e8e8; }

/* Floating TOC button (appears on scroll) */
.toc-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #ffffff;
    color: #667;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 1100;
}
.toc-fab.show {
    opacity: 1;
    pointer-events: auto;
}
.toc-fab:hover {
    transform: translateY(-2px);
    background: #f8f9fa;
    color: #333;
}
.toc-fab .icon { font-size: 1.1rem; }

/* Dark mode for floating button */
body.dark-mode .toc-fab { background: #1a1a1a; border-color: #333; color: #b8b8b8; box-shadow: 0 10px 25px rgba(0,0,0,0.45); }
body.dark-mode .toc-fab:hover { background: #222; color: #e8e8e8; }

/* Ensure sidebar flows normally */
.post-sidebar {
    position: static;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc-nav a:hover,
.toc-nav a.active {
    background: #667eea;
    color: white;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.related-post img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.related-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #667eea;
}

.related-date {
    font-size: 0.8rem;
    color: #666;
}

/* Dark Mode for Blog Post */
body.dark-mode .blog-post-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.dark-mode .post-breadcrumb {
    color: #b8b8b8;
}

body.dark-mode .post-breadcrumb a {
    color: #667eea;
}

body.dark-mode .post-breadcrumb a:hover {
    color: #5a6fd8;
}

body.dark-mode .post-header-content .post-title {
    color: #e8e8e8;
}

body.dark-mode .post-header-content .post-subtitle {
    color: #b8b8b8;
}

body.dark-mode .post-header-content .post-meta {
    background: rgba(26, 26, 26, 0.9);
}

body.dark-mode .post-header-content .author-name {
    color: #e8e8e8;
}

body.dark-mode .post-header-content .author-title,
body.dark-mode .post-header-content .post-details {
    color: #b8b8b8;
}

body.dark-mode .blog-post-content {
    background: #0a0a0a;
}

body.dark-mode .post-article {
    background: #1a1a1a !important;
    border-color: #333;
}

body.dark-mode .post-body {
    background: #1a1a1a !important;
    color: #e8e8e8;
}

body.dark-mode .post-body h2,
body.dark-mode .post-body h3 {
    color: #e8e8e8;
    border-bottom-color: #667eea;
}

body.dark-mode .post-body p,
body.dark-mode .post-body li {
    color: #b8b8b8;
}

body.dark-mode .post-body blockquote {
    background: #2a2a2a;
    color: #b8b8b8;
    border-left-color: #667eea;
}

body.dark-mode .post-body pre {
    background: #1a1a1a;
    color: #e8e8e8;
}

body.dark-mode .post-body code {
    background: #2a2a2a;
    color: #f093fb;
}

body.dark-mode .post-body table {
    background: #1a1a1a;
}

body.dark-mode .post-body th {
    background: #2a2a2a;
    color: #e8e8e8;
}

body.dark-mode .post-body td {
    color: #b8b8b8;
    border-bottom-color: #333;
}

body.dark-mode .post-body tr:hover {
    background: #2a2a2a;
}

/* Additional dark mode fixes for blog posts */
body.dark-mode .post-body a {
    color: #667eea;
}

body.dark-mode .post-body a:hover {
    color: #764ba2;
}

body.dark-mode .post-body strong {
    color: #e8e8e8;
}

body.dark-mode .post-body em {
    color: #b8b8b8;
}

/* More specific dark mode overrides for blog posts */
body.dark-mode .blog-post-content {
    background: #0a0a0a !important;
}

body.dark-mode .post-layout {
    background: #0a0a0a !important;
}

body.dark-mode .post-article {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .post-body {
    background: #1a1a1a !important;
    color: #e8e8e8 !important;
}

body.dark-mode .post-body h1,
body.dark-mode .post-body h2,
body.dark-mode .post-body h3,
body.dark-mode .post-body h4,
body.dark-mode .post-body h5,
body.dark-mode .post-body h6 {
    color: #e8e8e8 !important;
}

body.dark-mode .post-body p {
    color: #b8b8b8 !important;
}

body.dark-mode .post-body li {
    color: #b8b8b8 !important;
}

body.dark-mode .post-body table {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

body.dark-mode .post-body th {
    background: #2a2a2a !important;
    color: #e8e8e8 !important;
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .post-body td {
    color: #b8b8b8 !important;
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .post-body tr:hover {
    background: #2a2a2a !important;
}

body.dark-mode .post-footer {
    background: #1a1a1a !important;
    border-top: 1px solid #333 !important;
}

body.dark-mode .share-label {
    color: #e8e8e8;
}

/* Additional specific overrides for blog post consistency */
body.dark-mode .blog-post-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

body.dark-mode .post-title {
    color: #e8e8e8 !important;
}

body.dark-mode .post-subtitle {
    color: #b8b8b8 !important;
}

body.dark-mode .post-meta {
    color: #b8b8b8 !important;
}

body.dark-mode .post-tags .tag {
    background: #2a2a2a !important;
    color: #667eea !important;
    border: 1px solid #333 !important;
}

body.dark-mode .post-breadcrumb {
    color: #b8b8b8 !important;
}

body.dark-mode .post-breadcrumb a {
    color: #667eea !important;
}

body.dark-mode .post-breadcrumb i {
    color: #b8b8b8 !important;
}

body.dark-mode .author-name {
    color: #e8e8e8 !important;
}

body.dark-mode .author-title {
    color: #b8b8b8 !important;
}

body.dark-mode .post-date,
body.dark-mode .post-read-time {
    color: #b8b8b8 !important;
}

body.dark-mode .post-date i,
body.dark-mode .post-read-time i {
    color: #667eea !important;
}

/* Force override specific white backgrounds in dark mode */

body.dark-mode .blog-content {
    background: #0a0a0a !important;
}

body.dark-mode .blog-layout {
    background: #0a0a0a !important;
}

body.dark-mode .blog-main {
    background: #0a0a0a !important;
}

body.dark-mode .blog-sidebar {
    background: #0a0a0a !important;
}

body.dark-mode .sidebar-widget {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

/* Override any remaining white backgrounds - removed duplicate rules */

/* Ensure all text elements have proper dark mode colors */

body.dark-mode .post-body h1,
body.dark-mode .post-body h2,
body.dark-mode .post-body h3,
body.dark-mode .post-body h4,
body.dark-mode .post-body h5,
body.dark-mode .post-body h6 {
    color: #e8e8e8 !important;
}

body.dark-mode .post-body p,
body.dark-mode .post-body li,
body.dark-mode .post-body span,
body.dark-mode .post-body div {
    color: #b8b8b8 !important;
}

/* Target specific white background selectors from the CSS */
body.dark-mode .blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

body.dark-mode .blog-content {
    background: #0a0a0a !important;
}

body.dark-mode .blog-layout {
    background: #0a0a0a !important;
}

body.dark-mode .blog-main {
    background: #0a0a0a !important;
}

body.dark-mode .blog-sidebar {
    background: #0a0a0a !important;
}

body.dark-mode .sidebar-widget {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

/* Clean up duplicate rules - keeping only the essential ones */

/* Ensure the main content area is dark */
body.dark-mode .container {
    background: transparent !important;
}

body.dark-mode .post-layout .container {
    background: transparent !important;
}

/* Ensure content visibility and proper styling */
body.dark-mode .post-body {
    color: #e8e8e8 !important;
    background: #1a1a1a !important;
}

body.dark-mode .post-body p {
    color: #b8b8b8 !important;
}

body.dark-mode .post-body h1,
body.dark-mode .post-body h2,
body.dark-mode .post-body h3,
body.dark-mode .post-body h4,
body.dark-mode .post-body h5,
body.dark-mode .post-body h6 {
    color: #e8e8e8 !important;
}

body.dark-mode .post-body ul,
body.dark-mode .post-body ol {
    color: #b8b8b8 !important;
}

body.dark-mode .post-body li {
    color: #b8b8b8 !important;
}

body.dark-mode .post-body table {
    color: #b8b8b8 !important;
}

body.dark-mode .post-body th,
body.dark-mode .post-body td {
    color: #b8b8b8 !important;
}

body.dark-mode .nav-link {
    background: #1a1a1a;
    border-color: #333;
}

/* Fallback styles to ensure content is always visible */
.post-article {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 200px;
}

.post-body {
    min-height: 400px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.post-body p,
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6,
.post-body ul,
.post-body ol,
.post-body li,
.post-body table,
.post-body th,
.post-body td {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.post-body ul,
.post-body ol {
    display: block !important;
}

.post-body li {
    display: list-item !important;
}

.post-body table {
    display: table !important;
}

.post-body th,
.post-body td {
    display: table-cell !important;
}

/* Ensure single post sections are visible (override global section reveal) */
section.blog-post-header,
section.blog-post-content {
    opacity: 1 !important;
    transform: none !important;
}

/* Interactive Python runner */
.py-box {
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    box-shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
    margin: 1.5rem 0;
}

.py-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.py-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.py-title i {
    opacity: 0.9;
}

.py-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a0a0a;
    background: rgba(255,255,255,0.9);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.py-editor {
    width: 100%;
    min-height: 300px;
    padding: 1rem 1.25rem;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    border: none;
    outline: none;
    resize: vertical;
    background: #0b1020;
    color: #e2e8f0;
}

/* CodeMirror overrides for professional look */
.CodeMirror {
    height: 300px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.95rem;
    background: #0b1020;
    color: #e2e8f0;
}
.CodeMirror-gutters {
    background: #0b1020;
    border-right: 1px solid #1c2440;
}
.CodeMirror-linenumber { color: #5b6b8a; }
.CodeMirror-cursor { border-left: 2px solid #a3bffa; }
.cm-s-default .CodeMirror-selected { background: rgba(102,126,234,0.25); }
.cm-keyword { color: #c792ea; }
.cm-builtin, .cm-variable-2 { color: #82aaff; }
.cm-def, .cm-variable { color: #c3d1ff; }
.cm-string { color: #ecc48d; }
.cm-number { color: #f78c6c; }
.cm-comment { color: #637777; font-style: italic; }
.cm-operator { color: #89ddff; }

.py-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.py-actions { display: flex; gap: 0.5rem; }

.py-run, .py-copy, .py-clear {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.py-run:hover:not(:disabled), .py-copy:hover, .py-clear:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: #5a6fd8;
}

.py-run:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.py-status {
    color: #666;
    font-size: 0.9rem;
    margin-left: auto;
}

.py-output {
    margin: 0;
    padding: 1rem 1.25rem;
    background: #0f1629;
    color: #a8b2d1;
    max-height: 300px;
    overflow: auto;
    border-top: 1px solid #1c2440;
}

/* Dark mode adjustments */
body.dark-mode .py-box { background: #1a1a1a; border-color: #333; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-mode .py-editor { background: #0f1629; color: #d7e0ff; }
body.dark-mode .py-controls { background: #121826; border-top-color: #333; }
body.dark-mode .py-output { background: #0b1020; color: #c7d2fe; border-top-color: #222; }
body.dark-mode .CodeMirror { background: #0f1629; color: #d7e0ff; }
body.dark-mode .CodeMirror-gutters { background: #0f1629; border-right-color: #222; }

body.dark-mode .nav-link:hover {
    background: #2a2a2a;
}

body.dark-mode .nav-title {
    color: #e8e8e8;
}

body.dark-mode .nav-label {
    color: #b8b8b8;
}

body.dark-mode .toc-nav a {
    color: #b8b8b8;
}

body.dark-mode .toc-nav a:hover,
body.dark-mode .toc-nav a.active {
    background: #667eea;
    color: #0a0a0a;
}

body.dark-mode .related-content h4 a {
    color: #e8e8e8;
}

body.dark-mode .related-content h4 a:hover {
    color: #667eea;
}

body.dark-mode .related-date {
    color: #b8b8b8;
}

/* Responsive Design for Blog Post */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .post-sidebar {
        order: 0;
    }
}

@media (max-width: 768px) {
    .post-header-content .post-title {
        font-size: 2.2rem;
    }
    
    .post-header-content .post-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .post-header-content .post-details {
        justify-content: center;
    }
    
    .post-body {
        padding: 2rem;
    }
    
    .post-footer {
        padding: 1.5rem 2rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-post-header {
        padding: 100px 0 40px;
    }
    
    .post-header-content .post-title {
        font-size: 1.8rem;
    }
    
    .post-header-content .post-subtitle {
        font-size: 1rem;
    }
    
    .post-body {
        padding: 1.5rem;
    }
    
    .post-body h2 {
        font-size: 1.6rem;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
    }
    
    .post-footer {
        padding: 1rem 1.5rem;
    }
}

/* Animation for blog posts */
.blog-post {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.blog-post.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for blog posts */
.blog-post:nth-child(1) { transition-delay: 0.1s; }
.blog-post:nth-child(2) { transition-delay: 0.2s; }
.blog-post:nth-child(3) { transition-delay: 0.3s; }
.blog-post:nth-child(4) { transition-delay: 0.4s; }
.blog-post:nth-child(5) { transition-delay: 0.5s; }
.blog-post:nth-child(6) { transition-delay: 0.6s; }
