﻿/* --- MODERN BLOG CARD STYLES --- */

.blog-card-modern {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

    /* Hover Effect: Nổi thẻ lên */
    .blog-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 70, 186, 0.1);
        border-color: rgba(0, 70, 186, 0.15);
    }

/* 1. Image Styling */
.blog-img-wrapper {
    position: relative;
    width: 100%;
    /* Tỷ lệ khung hình 16:9 (chuẩn tin tức) */
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #f3f4f6;
}

.blog-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom ảnh khi hover vào cả thẻ */
.blog-card-modern:hover .blog-img {
    transform: scale(1.08);
}

/* Category Badge */
.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color, #0046ba);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

    .blog-category-badge:hover {
        background: #003399; /* Màu đậm hơn khi hover */
        color: #fff;
    }

/* 2. Body Content */
.blog-body {
    padding: 20px;
    flex-grow: 1; /* Để phần này giãn ra lấp đầy chiều cao nếu cần */
}

/* Meta Data */
.blog-meta {
    font-size: 0.85rem;
}

/* Title */
.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    /* Cắt dòng tiêu đề (tối đa 2 dòng) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .blog-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s;
    }

.blog-card-modern:hover .blog-title a {
    color: var(--primary-color, #0046ba);
}

/* Description */
.blog-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    /* Cắt dòng mô tả (tối đa 3 dòng) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link */
.read-more-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color, #0046ba);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

    .read-more-link i {
        transition: margin-left 0.3s;
    }

    .read-more-link:hover {
        color: #002a70;
    }

        .read-more-link:hover i {
            margin-left: 8px; /* Mũi tên trượt sang phải */
        }
