/* ============================================
   BLOG / TIN TUC - CSS
   Đồng bộ với style website Nội Thất Ngọc Thúy
   ============================================ */

/* --- Trang danh sách --- */
.blog-page {
    background: #FAF7F0;
}

.blog-hero {
    background: linear-gradient(135deg, #1F1A13 0%, #3d3020 100%);
}

/* --- Card bài viết --- */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.blog-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    height: 180px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ECA91E;
    color: #1F1A13;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-card-title a {
    color: #1F1A13;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    color: #ECA91E;
}

.blog-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 0.8rem;
}

/* --- Trang chi tiết --- */
.blog-detail-page {
    background: #FAF7F0;
}

.blog-article-hero {
    border: 1px solid #eee;
}

.blog-article-meta {
    font-size: 0.9rem;
}

/* --- Sidebar --- */
.blog-sidebar .list-group-item {
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s ease;
}

.blog-sidebar .list-group-item:hover {
    color: #ECA91E;
    padding-left: 1.2rem;
}

.blog-sidebar .list-group-item.active {
    background: #ECA91E;
    color: #1F1A13;
    border-radius: 8px;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .blog-card-img-wrap {
        height: 160px;
    }
    
    .blog-article-hero img {
        max-height: 300px;
    }
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 2rem 1rem;
    }
    
    .blog-hero h1 {
        font-size: 1.5rem !important;
    }
    
    .blog-card-img-wrap {
        height: 180px;
    }
    
    .blog-article-content {
        font-size: 1rem;
    }
    
    .blog-article-content h2 {
        font-size: 1.25rem;
    }
    
    .blog-article-content h3 {
        font-size: 1.1rem;
    }
}
