/* CẤU HÌNH KHUNG CHỨA BLOG & CÂN BẰNG CHIỀU CAO */
.row.blog {
    display: flex;
    flex-wrap: wrap;
}

/* Bắt buộc tất cả các cột trong hàng phải có chiều cao bằng nhau */
.row.blog .col {
    display: flex;
    margin-bottom: 30px;
}

/* Ép TOÀN BỘ cấu trúc phân cấp lồng nhau phải giãn đều 100% */
.blog .col-inner,
.blog .box,
.blog .box-text,
.blog .blog-post-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100%;
}

/* Định dạng khung thẻ Card */
.blog .col-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng rê chuột vào thẻ Card */
.blog .col-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* XỬ LÝ HÌNH ẢNH (NGĂN CHẶN BỊ MẤT ẢNH) */
.blog .box-image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    width: 100%;
    flex: 0 0 auto !important; /* Giữ nguyên kích thước ảnh, không cho ảnh tự co giãn */
}

/* Hiệu ứng thu phóng nhẹ hình ảnh khi hover */
.blog .image-cover img {
    transition: transform 0.5s ease !important;
}

.blog .col-inner:hover .image-cover img {
    transform: scale(1.04);
}

/* PHẦN NỘI DUNG CHỮ & ĐIỀU CHỈNH THỨ TỰ */
.blog .box-text {
    padding: 15px;
    background-color: transparent !important;
}

/* 1. Ngày tháng (Meta) đưa lên đầu */
.blog .post-meta {
    order: 1;
    font-size: 14px;
    color: #8a96a3 !important;
    margin-bottom: 8px;
    text-transform: none;
    flex: 0 0 auto !important;
}

/* 2. Tiêu đề bài viết */
.blog .post-title {
    order: 2;
    font-size: 20px;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 700;
    flex: 0 0 auto !important;
}

.blog .post-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.2s ease;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.blog .post-title a:hover {
    color: var(--color-main) !important;
}

/* Ẩn dấu gạch ngang mặc định của theme */
.blog .is-divider {
    display: none !important;
}

/* 3. Đoạn trích dẫn văn bản */
.blog .from_the_blog_excerpt {
    order: 3;
    font-size: 14px;
    color: var(--text-muted-color);
	font-weight: 500;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn tối đa 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto !important;
}

/* NÚT "READ MORE" NẰM DƯỚI CÙNG & THẲNG HÀNG TUYỆT ĐỐI */
.blog .blog-post-inner a.button {
    order: 4;
    margin-top: auto !important;
    padding-top: 15px !important;
    align-self: flex-start;
    flex: 0 0 auto !important;
    background: transparent !important;
    border: none !important;
    color: var(--color-main) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    font-size: 16px;
    font-weight: bold;
    text-transform: none;
    box-shadow: none !important;
    min-height: auto;
    display: inline-flex;
    align-items: center;
}

.blog .blog-post-inner a.button:hover {
    color: #ff453a !important;
}

/* Tạo mũi tên phía sau chữ Read More */
.blog .blog-post-inner a.button::after {
    content: " →";
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog .blog-post-inner a.button:hover::after {
    transform: translateX(4px);
}

/* TƯƠNG THÍCH TRÊN DI ĐỘNG (RESPONSIVE) */
@media (max-width: 767px) {
    .blog .box-text {
        padding: 16px;
    }
    
    .blog .post-title {
        font-size: 18px;
    }
    
    .row.blog .col {
        margin-bottom: 20px;
    }
}