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

/* Container chính */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;

}

/* Wrapper để tạo layout 2 cột */
.blog-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

/* ========================================
   NỘI DUNG CHÍNH (BÊN TRÁI)
   ======================================== */

.blog-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		display:block !important
}

/* Header bài viết */
.blog-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.blog-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
    color: #666;
    flex-direction: column;
}
.blog-meta .meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-meta span {
    display: flex;
	flex-wrap:wrap;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: #0073aa;
}

.blog-meta a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-meta a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Ảnh đại diện */
.blog-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Nội dung bài viết */
.blog-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.blog-body h2 {
    font-size: 28px;
}

.blog-body h3 {
    font-size: 24px;
}

.blog-body h4 {
    font-size: 20px;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

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

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

/* Tags */
.blog-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.blog-tags strong {
    display: block;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.tag-item {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #0073aa;
    color: #fff;
}

/* Chia sẻ mạng xã hội */
.blog-share {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.blog-share h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.facebook:hover {
    background: #2d4373;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #0c85d0;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.linkedin:hover {
    background: #005582;
}

/* ========================================
   SIDEBAR (BÊN PHẢI)
   ======================================== */

.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
    color: #1a1a1a;
}

/* Sidebar post items */
.sidebar-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-post-thumb:hover img {
    transform: scale(1.1);
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.sidebar-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-post-title a:hover {
    color: #0073aa;
}

.sidebar-post-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Danh mục */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.category-list li a:hover {
    background: #0073aa;
    color: #fff;
}

.category-list .count {
    font-size: 12px;
    background: #fff;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
}

.category-list li a:hover .count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 992px) {
    .blog-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-content {
        padding: 30px;
    }
}

@media screen and (max-width: 768px) {
    .blog-container {
        padding: 20px 15px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-meta {
        font-size: 13px;
        gap: 15px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .blog-title {
        font-size: 24px;
    }
    
    .sidebar-post-thumb {
        width: 60px;
        height: 60px;
    }
    
    .sidebar-post-title {
        font-size: 14px;
    }
}
