/* ===== Blog Page ===== */

.blog-container {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 15px 40px;
}

.blog-container .home-categories-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 10px 0 30px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.blog-container .home-categories-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

/* Blog post card */
.blog-post-card {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-post-card:last-child {
    border-bottom: none;
}

.blog-post-image {
    flex-shrink: 0;
    width: 380px;
    overflow: hidden;
    border-radius: 4px;
}

.blog-post-image img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
}

.blog-post-meta .separator {
    color: #ccc;
}

.blog-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.blog-post-title a {
    color: #333;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #000;
}

.blog-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Category label */
.blog-category-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-category-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Sidebar */
.blog-sidebar {
    padding-left: 20px;
    padding-top: 20px;
}

.blog-sidebar-section {
    margin-bottom: 32px;
}

.blog-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e5e5;
}

/* Sidebar: categories as tags */
.blog-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-category-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.blog-category-tag:hover,
.blog-category-tag.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Sidebar: popular posts */
.blog-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-popular-item:last-child {
    border-bottom: none;
}

.blog-popular-item-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    flex-grow: 1;
}

.blog-popular-item-title a {
    color: #333;
    text-decoration: none;
}

.blog-popular-item-title a:hover {
    color: #000;
}

.blog-popular-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.blog-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar: social links */
.blog-social-links {
    display: flex;
    gap: 8px;
}

.blog-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-social-link:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Empty state */
.blog-no-posts {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 16px;
    color: #888;
}

/* ===== Blog Single Post ===== */
.blog-single-header {
    margin-top: 20px;
    margin-bottom: 20px;
}

.blog-single-title {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
}

.blog-single-image {
    margin-bottom: 24px;
    border-radius: 4px;
    overflow: hidden;
}

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

#blog-content {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
}

#blog-content ul {
    padding-left: 2rem !important;
    list-style-type: disc !important;
    list-style-position: outside !important;
}

#blog-content ol {
    padding-left: 2rem !important;
    list-style-type: decimal !important;
    list-style-position: outside !important;
}

#blog-content li {
    display: list-item !important;
    margin-bottom: 0.5rem;
}

/* Related posts */
.blog-related-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e5e5e5;
}

.blog-related-post {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.blog-related-post:last-child {
    border-bottom: none;
}

.blog-related-image {
    flex-shrink: 0;
    width: 260px;
    border-radius: 4px;
    overflow: hidden;
}

.blog-related-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-related-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-related-content .blog-post-title {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .blog-post-card {
        flex-direction: column;
        gap: 16px;
    }

    .blog-post-image {
        width: 100%;
    }

    .blog-post-image img {
        height: 220px;
    }

    .blog-related-post {
        flex-direction: column;
        gap: 12px;
    }

    .blog-related-image {
        width: 100%;
    }

    .blog-related-image img {
        height: 200px;
    }

    .blog-single-image img {
        height: 250px;
    }
}
