/* Blog Post Styles */

.blog-post {
    padding: 40px 0;
}

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-header .blog-category {
    display: inline-block;
    background-color: #4a6cf7;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
}

.blog-post-header .blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #fff;
    font-size: 15px;
}

.blog-featured-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    font-size: 18px;
    line-height: 1.7;
    color: #fff;
}

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

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #fff;
}

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

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

.blog-post-content .code-block {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 16px;
    overflow-x: auto;
    margin-bottom: 25px;
}

.blog-post-content strong {
    font-weight: 700;
}

.blog-conclusion {
    margin-top: 50px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #000;
}

.blog-conclusion h2 {
    color: #000;
}

.blog-conclusion p {
    color: #000;
}

.blog-cta {
    margin: 50px 0;
    padding: 30px;
    background-color: #eef2ff;
    border-radius: 8px;
    text-align: center;
    color: #000;
}

.blog-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000;
}

.blog-cta p {
    margin-bottom: 20px;
    color: #000;
}

.cta-button {
    display: inline-block;
    background-color: #4a6cf7;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #3a5bd9;
}

.blog-share {
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-share p {
    margin-bottom: 0;
    font-weight: 600;
    color: #000;
}

.social-share-buttons {
    display: flex;
    gap: 10px;
}

.social-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s;
}

.social-share-buttons a:hover {
    background-color: #4a6cf7;
    color: #fff;
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #fff;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post a {
    text-decoration: none;
    color: inherit;
}

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

.related-post h4 {
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

/* Newsletter Section */
.newsletter-section {
    margin: 60px 0;
    padding: 40px 0;
    background-color: #f9f9f9;
}

.newsletter-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-image {
    flex: 1;
}

.newsletter-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.newsletter-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #000;
}

.newsletter-content p {
    margin-bottom: 20px;
    color: #000;
}

.newsletter-form .form-group {
    display: flex;
    margin-bottom: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.subscribe-btn {
    padding: 12px 20px;
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #3a5bd9;
}

.form-note {
    font-size: 14px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-content {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-post-header h1 {
        font-size: 1.8rem;
    }
    
    .newsletter-container {
        flex-direction: column;
    }
    
    .newsletter-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .newsletter-image img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-post-content {
        font-size: 16px;
    }
    
    .blog-post-content h2 {
        font-size: 1.4rem;
    }
    
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
}