/* Blog-specific styles */
.blog-intro {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.blog-card.featured img {
    height: 300px;
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.blog-card h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-card.featured h2 {
    font-size: 1.8rem;
}

.blog-card h2 a {
    color: #2c3e50;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #667eea;
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.read-time {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Blog Categories */
.blog-categories {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 3rem;
}

.blog-categories h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Sidebar Blog Styles */
.popular-posts {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popular-posts h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.popular-post {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.popular-post h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-date {
    color: #999;
    font-size: 0.85rem;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.newsletter-signup h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.newsletter-signup p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

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

.newsletter-form button {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Blog Post Styles */
.blog-post {
    max-width: none;
    margin: 0;
}

/* Post header styles - updated to match new structure */
.post-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2c3e50;
    padding: 3rem 2rem;
    margin: 0 0 2rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

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

.breadcrumb a:hover {
    color: #764ba2;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.post-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
}

.post-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2 {
    color: #2c3e50;
    margin: 2.5rem 0 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.post-content h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #444;
    font-size: 1.05rem;
}

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

.post-content li {
    margin-bottom: 0.8rem;
    color: #444;
    line-height: 1.6;
}

.post-content blockquote {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Template Showcase Styles */
.template-showcase {
    margin: 3rem 0;
}

.template-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.template-item h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.template-preview {
    text-align: center;
    margin-bottom: 2rem;
}

.template-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.template-preview img:hover {
    transform: scale(1.02);
}

.template-details p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.template-details ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.template-details li {
    margin-bottom: 0.5rem;
    color: #555;
}

.template-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.template-stats .downloads,
.template-stats .rating {
    font-weight: 600;
    color: #667eea;
}

.template-link {
    display: inline-block;
    background: linear-gradient(135deg, #f5f5f6 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.template-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* FAQ Section Styles */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Styles */
.call-to-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.call-to-action h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Sidebar Styles for Blog Posts */
.sidebar {
    margin-top: 2rem;
}

.related-posts {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.related-posts h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.related-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-posts a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tags {
        justify-content: center;
    }
    
    .post-header {
        padding: 2rem 1.5rem;
        margin: 0 0 2rem 0;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .post-content {
        padding: 2rem;
        margin: 0 -1rem;
    }
    
    .template-item {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .template-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .call-to-action {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .call-to-action h3 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .related-posts {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-categories {
        padding: 1.5rem;
    }
    
    .newsletter-signup {
        padding: 1.5rem;
    }
    
    .post-header {
        padding: 1.5rem 1rem;
        margin: 0 0 1.5rem 0;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .post-intro {
        font-size: 1.1rem;
    }
    
    .post-content {
        padding: 1.5rem;
        margin: 0 -0.5rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .template-item {
        padding: 1rem;
    }
    
    .template-item h3 {
        font-size: 1.3rem;
    }
    
    .template-preview img {
        max-width: 100%;
        height: auto;
    }
    
    .call-to-action {
        padding: 1.5rem;
    }
    
    .call-to-action h3 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .template-link {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* 
Additional Blog Post Enhancements */
.post-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Table of Contents (if needed) */
.table-of-contents {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.table-of-contents h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

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

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    padding: 0.3rem 0;
    display: block;
    transition: all 0.3s ease;
}

.table-of-contents a:hover {
    color: #764ba2;
    padding-left: 1rem;
}

/* Code blocks styling */
.post-content code {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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

/* Image captions */
.post-content .image-caption {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Social sharing buttons (if needed) */
.social-share {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.social-share h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.facebook {
    background: #4267b2;
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Print styles */
@media print {
    .post-section {
        background: none !important;
        color: #000 !important;
        padding: 1rem 0 !important;
        margin: 0 !important;
    }
    
    .post-content {
        background: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .template-link,
    .cta-button,
    .social-share,
    .ad-slot {
        display: none !important;
    }
    
    .template-preview img {
        max-width: 300px !important;
        height: auto !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .post-content {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
    }
    
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        color: #e2e8f0;
    }
    
    .post-content p,
    .post-content li {
        color: #cbd5e0;
    }
    
    .template-item {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
    }
    
    .faq-item {
        background: rgba(45, 55, 72, 0.7);
        color: #e2e8f0;
    }
    
    .related-posts {
        background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0;
    }
}