﻿/* blog-post.css - Styles specific to individual blog post pages */

/* Post Header */
.post-header {
    background-color: #f8f9fa;
    padding: 60px 0 40px;

}

    .post-header h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: #333;
    }

.post-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-bio {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .post-share span {
        font-size: 0.9rem;
        color: #6c757d;
    }

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .share-btn:hover {
        transform: translateY(-3px);
    }

    .share-btn.linkedin {
        background-color: #0077b5;
    }

    .share-btn.twitter {
        background-color: #1da1f2;
    }

    .share-btn.email {
        background-color: #6c757d;
    }

/* Featured Image */
.post-featured-image {
    margin-bottom: 40px;
}

    .post-featured-image img {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        border-radius: 8px;
    }

/* Post Content Layout */
.post-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .post-content {
        grid-template-columns: 1fr;
    }
}

/* Main Content Styling */
.post-main {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

    .post-main h2 {
        font-size: 1.8rem;
        margin: 30px 0 20px;
        color: #333;
    }

    .post-main h3 {
        font-size: 1.5rem;
        margin: 25px 0 15px;
        color: #333;
    }

    .post-main p {
        margin-bottom: 20px;
    }

    .post-main ul, .post-main ol {
        margin-bottom: 20px;
        padding-left: 20px;
    }

    .post-main li {
        margin-bottom: 10px;
    }

    .post-main img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin: 20px 0;
    }

    .post-main blockquote {
        border-left: 4px solid #0056b3;
        padding-left: 20px;
        margin: 30px 0;
        font-style: italic;
        color: #495057;
    }

    .post-main a {
        color: #0056b3;
        text-decoration: none;
        border-bottom: 1px solid #cce5ff;
        transition: border-color 0.2s ease;
    }

        .post-main a:hover {
            border-color: #0056b3;
        }

    .post-main table {
        width: 100%;
        border-collapse: collapse;
        margin: 25px 0;
    }

        .post-main table th, .post-main table td {
            border: 1px solid #dee2e6;
            padding: 10px;
        }

        .post-main table th {
            background-color: #f8f9fa;
            font-weight: 600;
        }

        .post-main table tr:nth-child(even) {
            background-color: #f8f9fa;
        }

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

    .post-tags span {
        font-weight: 600;
        color: #495057;
    }

/* Sidebar Styling */
.post-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

    .sidebar-section h3 {
        margin-bottom: 20px;
        font-size: 1.3rem;
        color: #333;
        border-bottom: 2px solid #e9ecef;
        padding-bottom: 10px;
    }

.author-card {
    text-align: center;
}

    .author-card .author-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto 15px;
    }

    .author-card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #333;
    }

    .author-card p {
        font-size: 0.9rem;
        color: #6c757d;
    }

.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-categories li {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
    }

        .sidebar-categories li:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

    .sidebar-categories a {
        display: flex;
        justify-content: space-between;
        color: #495057;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .sidebar-categories a:hover {
            color: #0056b3;
        }

    .sidebar-categories span {
        color: #6c757d;
        font-size: 0.9rem;
    }

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .sidebar-newsletter-form input {
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .sidebar-newsletter-form button {
        width: 100%;
    }

/* Related Posts Section */
.related-posts {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 60px;
}

    .related-posts h2 {
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
        color: #333;
    }

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section for Blog Post */
.cta-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .cta-section .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}
