/* blog-post.css - Styles specific to individual blog post pages */

:root {
    --primary-color: #1a4f8e;       /* Main brand blue */
    --secondary-color: #2c3e50;     /* Dark blue-gray */
    --accent-color: #bfcee4;        /* Light blue from your navbar */
    --text-color: #333;             /* Main text color */
    --light-text: #6c757d;          /* Lighter text */
    --background-light: #f8f9fa;    /* Light background */
    --white: #ffffff;               /* White */
}

/* Blog Post Container */
.blog-post-container {
    padding: 2rem 0;
    background-color: var(--background-light);
    min-height: 100vh;
}

.blog-post {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.blog-post-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.blog-post-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-post-image {
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

.blog-post-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: var(--secondary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.blog-post-content h2 {
    font-size: 1.9rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.7rem;
    margin-top: 3rem;
}

.blog-post-content h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
}

.blog-post-content h4 {
    font-size: 1.3rem;
    margin-top: 2rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

.blog-post-content li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--light-text);
    background-color: rgba(26, 79, 142, 0.05);
    border-radius: 0 8px 8px 0;
}

.blog-post-content code {
    background-color: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

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

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

.blog-post-share {
    margin: 3.5rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.blog-post-share h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

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

.share-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

.related-posts {
    margin: 3.5rem 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.8rem;
    background: none;
    padding: 0;
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--light-text);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light-text);
}

/* CTA Section */
.blog-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
    border-radius: 12px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

/* Responsive Styles for Blog Post */
@media (max-width: 992px) {
    .blog-post {
        padding: 2rem;
    }
    
    .blog-post-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-post-container {
        padding: 1.5rem 0;
    }
    
    .blog-post {
        padding: 1.5rem;
        margin: 0 0.5rem 1.5rem;
    }
    
    .blog-post-title {
        font-size: 1.9rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .blog-post-content {
        font-size: 1.05rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.7rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.5rem;
    }
    
    .blog-post-content h4 {
        font-size: 1.3rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 220px;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .blog-post-title {
        font-size: 1.7rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}