/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

.skip-link:hover {
    background: var(--primary-hover);
}

/* Blog-specific styles for WebZiw Tools */

/* Modern Typography Improvements */
.article-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Enhanced Article Headers */
.article-header h1 {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Improved Section Styling */
.article-content section {
    position: relative;
    padding: 2rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-content section:hover {
    background: var(--hover-bg);
    padding: 2rem 1rem;
    margin: 0 -1rem;
}

/* Enhanced Code Blocks */
.article-content pre,
.article-content code {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.article-content code {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background: var(--hover-bg);
    border-radius: 4px;
}

/* Enhanced Lists */
.article-content ul li::marker,
.article-content ol li::marker {
    color: var(--primary-color);
}

.article-content ul li {
    position: relative;
    padding-left: 0.5rem;
}

.article-content ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Enhanced Links */
.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
    background: var(--hover-bg);
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

/* Enhanced Blockquotes */
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--hover-bg);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: """;
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
}

/* Enhanced Images */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
    transition: transform 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
}

/* Enhanced Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.article-content th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.article-content tr:hover {
    background: var(--hover-bg);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.breadcrumb-content a {
    color: var(--primary-color);
    text-decoration: none;    
}

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

.breadcrumb-content span {
    margin: 0 0.5rem;
}

/* Article Container */
.article-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.article-container .article-content {
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.article-container .article-content p,
.article-container .article-content h2,
.article-container .article-content h3,
.article-container .article-content h4 {
    max-width: 100%;
}

.article-container .article-content ul,
.article-container .article-content ol {
    max-width: none;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-date {
    font-weight: 500;
}

.article-reading-time {
    color: var(--border-color);
}

.article-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Introduction */
.article-intro {
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.7;
    text-align: justify;
}

.article-intro .lead {
    text-align: left;
    font-weight: 600;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Article Section Styling */
.article-content section {
    margin-bottom: 3rem;
    padding: 0;
}

.article-content section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    line-height: 1.3;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content section h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

.article-content section h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-content section p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-primary);
    text-align: justify;
}

.article-content section ul,
.article-content section ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 2rem;
}

.article-content section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Table of Contents */
.table-of-contents {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    position: sticky;
    top: 6rem;
    z-index: 100;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border-collapse: separate;
    isolation: isolate;
}

/* Prevent content from appearing over sticky table of contents */
.table-of-contents::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    z-index: -1;
    border-radius: 12px;
}

.table-of-contents h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Code Examples */
.code-example {
    background: var(--dark-theme ? #2d3748 : #f7fafc);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-example h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.code-example pre {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
}

.code-example code {
    background: transparent;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: inherit;
    color: var(--primary-color);
}

/* Strategy Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.strategy-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.strategy-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.strategy-item ul {
    list-style: none;
    padding: 0;
}

.strategy-item li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-size: 0.875rem;
}

.strategy-item li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Limitations Grid */
.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.limitation-item {
    background: var(--card-bg);
    border-left: 4px solid var(--error-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    position: relative;
    z-index: 1;
}

.limitation-item h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.limitation-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.highlight-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-box ul {
    list-style: none;
    padding: 0;
}

.highlight-box li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.highlight-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Features Checklist */
.features-checklist {
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Tool Recommendation */
.tool-recommendation {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.tool-recommendation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tool-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.benefit-item {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.cta-box h4 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.cta-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Article Footer */
.article-footer {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.article-tags .tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.article-tags .tag:hover {
    background: var(--primary-hover);
}

.article-share {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.article-share h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

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

.share-btn {
    background: var(--bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

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

/* Author Bio */
.author-bio {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.author-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.author-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.author-actions a {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.author-actions a:hover {
    background: var(--primary-hover);
}

/* Related Articles */
.related-articles {
    margin: 3rem 0;
}

.related-articles h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

.related-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-item h4 {
    margin-bottom: 0.75rem;
}

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

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

.related-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.final-cta p {
    font-size: 1.125rem;
    margin: 0;
}

.final-cta a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.final-cta a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .limitations-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-benefits {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-actions {
        flex-direction: column;
    }
    
    .table-of-contents {
        position: static;
    }
    
    .article-container {
        max-width: 100%;
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .article-container .article-content {
        margin: 0;
        padding: 0 0.5rem;
    }
    
    .article-content section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .article-content section h3 {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .article-content section h4 {
        font-size: 1.125rem;
        margin: 1.25rem 0 0.75rem 0;
    }
    
    .article-content section p {
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .article-content section ul,
    .article-content section ol {
        padding-left: 1.5rem;
    }
    
    .article-content section li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .code-example {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .tool-recommendation {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .cta-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-footer {
        padding: 1.5rem;
        margin: 2rem 0;
        gap: 1.5rem;
    }
    
    .article-tags {
        justify-content: center;
    }
    
    .share-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .share-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Blog Index Page Styles */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Featured Article */
.featured-article {
    margin-bottom: 4rem;
}

.featured-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.featured-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-card h2 a {
    color: inherit;
    text-decoration: none;
}

.featured-card h2 a:hover {
    color: var(--primary-color);
}

.featured-card .excerpt {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.featured-actions .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.featured-actions .btn-primary:hover {
    background: var(--primary-hover);
}

.featured-actions .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Articles Section */
.articles-section {
    margin-bottom: 4rem;
}

.articles-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card-content {
    flex: 1;
}

.article-card .article-category {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta-small {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.article-action {
    margin-top: auto;
}

.article-action a {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.article-action a:hover {
    background: var(--primary-hover);
}

/* Categories Section */
.categories-section {
    margin-bottom: 4rem;
}

.categories-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-link {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.category-link:hover {
    background: var(--primary-hover);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 1rem;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-primary);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--primary-hover);
}

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Dark theme adjustments */
[data-theme="dark"] .code-example {
    background: #2d3748;
}

[data-theme="dark"] .strategy-item {
    background: #2d3748;
}

[data-theme="dark"] .limitation-item {
    background: #2d3748;
}

[data-theme="dark"] .benefit-item {
    background: #2d3748;
}

[data-theme="dark"] .tool-recommendation {
    background: #2d3748;
}

[data-theme="dark"] .author-bio {
    background: #2d3748;
}

[data-theme="dark"] .related-item {
    background: #2d3748;
}

[data-theme="dark"] .article-footer {
    background: #2d3748;
}

[data-theme="dark"] .featured-card {
    background: #2d3748;
}

[data-theme="dark"] .article-card {
    background: #2d3748;
}

[data-theme="dark"] .category-card {
    background: #2d3748;
}

[data-theme="dark"] .newsletter-section {
    background: #2d3748;
}

/* Responsive Design for Blog Index */
@media (max-width: 768px) {
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
    }
    
    .featured-card {
        padding: 2rem;
    }
    
    .featured-card h2 {
        font-size: 1.5rem;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .categories-section h2,
    .articles-section h2 {
        font-size: 1.5rem;
    }
}

/* Enhanced Responsive Design for Articles */
@media (max-width: 768px) {
    .article-container {
        padding: 0 0.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .article-intro {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .article-content section {
        padding: 1.5rem 0;
    }
    
    .article-content section:hover {
        padding: 1.5rem 0.5rem;
        margin: 0 -0.5rem;
    }
    
    .article-content section h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .article-content section h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .article-content section h4 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .article-content section p {
        line-height: 1.6;
        text-align: left;
    }
    
    .article-content ul,
    .article-content ol {
        padding-left: 1.5rem;
    }
    
    .article-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .article-content blockquote::before {
        font-size: 3rem;
        top: -0.25rem;
        left: 0.5rem;
    }
    
    .article-content img {
        margin: 1.5rem 0;
    }
    
    .article-content table {
        font-size: 0.875rem;
        margin: 1.5rem 0;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.75rem 0.5rem;
    }
    
    .table-of-contents {
        position: static;
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .article-footer {
        padding: 1.5rem;
        margin: 2rem 0;
        gap: 1.5rem;
    }
    
    .article-tags {
        justify-content: center;
    }
    
    .share-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .share-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
    
    .article-content a {
        color: black;
        text-decoration: underline;
    }
    
    .article-content img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    .table-of-contents,
    .article-footer,
    .breadcrumb {
        display: none;
    }
}
