/* Blog Styles for Créatioo */

/* Blog Post Layout */
.blog-post {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-post .container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Blog Header */
.blog-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.blog-categories {
    margin-bottom: 15px;
}

.category {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.blog-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

/* Featured Image - Optimized size */
.blog-featured-image {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 400px;
}

/* Blog Content */
.blog-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.7;
}

.blog-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #2c3e50;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
}

.blog-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #3498db;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content blockquote {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    font-style: italic;
}

.blog-content blockquote cite {
    display: block;
    font-size: 14px;
    margin-top: 10px;
    color: #7f8c8d;
    font-style: normal;
}

/* Info Box */
.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #eee;
}

.info-box h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.info-box ul {
    margin-bottom: 0;
}

/* CTA Box */
.cta-box {
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0 10px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-box .btn {
    background-color: white;
    color: #3498db;
    border: none;
}

.cta-box .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Blog Footer */
.blog-footer {
    padding: 30px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* Share Buttons */
.share-buttons {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons span {
    margin-right: 10px;
    font-weight: 500;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

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

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

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.email {
    background-color: #7f8c8d;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Tags */
.tags {
    margin-bottom: 30px;
}

.tags span {
    font-weight: 500;
    margin-right: 10px;
}

.tags a {
    display: inline-block;
    background-color: #eee;
    color: #7f8c8d;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tags a:hover {
    background-color: #3498db;
    color: white;
}

/* Related Posts */
.related-posts {
    margin-bottom: 30px;
}

.related-posts h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px;
    font-size: 16px;
    margin: 0;
}

.related-post h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-post h4 a:hover {
    color: #3498db;
}

/* Newsletter Form */
.newsletter-form-mini {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form-mini h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.newsletter-form-mini form {
    display: flex;
    gap: 10px;
}

.newsletter-form-mini input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form-mini .btn {
    padding: 10px 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .blog-featured-image {
        max-height: 300px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form-mini form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 24px;
    }
    
    .blog-featured-image {
        max-height: 200px;
    }
    
    .blog-content h2 {
        font-size: 22px;
    }
    
    .blog-content h3 {
        font-size: 18px;
    }
}
