/* ==========================================================================
   BLOG STYLES
   ========================================================================== */

/* Post Card */
.blog-post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.blog-post-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.blog-post-card .card-title a:hover {
    color: var(--primary-color, #6b8aef) !important;
}

/* Blog Content (article body) */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

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

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color, #6b8aef);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.blog-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-content a {
    color: var(--primary-color, #6b8aef);
    text-decoration: underline;
}

.blog-content a:hover {
    text-decoration: none;
}

/* Sidebar */
.blog-sidebar .card {
    border-radius: 12px;
}

/* Featured Image */
.blog-content figure {
    margin: 0;
}

.blog-content figure img {
    margin: 0;
}

.blog-content figcaption {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .blog-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-content {
        font-size: 1rem;
    }

    .blog-post-card .card-img-top {
        height: 150px;
    }
}
