/* ===================================================================== */
/* GIAO DIỆN TIN TỨC PHONG CÁCH TẠP CHÍ (EDITORIAL LIGHT)                 */
/* ===================================================================== */

.news-page {
    background-color: #ffffff; /* Nền trắng tinh khiết thay vì xám nhạt */
    padding-top: 40px;
}

/* Khu vực tiêu đề trang tối giản */
.news-header-clean {
    text-align: center;
    padding: 60px 20px 20px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.news-tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px; /* Kéo giãn khoảng cách chữ nhỏ ra */
    color: #ff9800;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}
.news-header-clean h1 {
    font-size: 42px; /* Tăng cỡ chữ lên một chút cho hoành tráng */
    color: #1a633a;
    font-family: 'Roboto', Arial, sans-serif; /* Chuyển về font Roboto đã có sẵn trong dự án */
    font-weight: 900; /* Ép độ dày lên mức tối đa (Black) để chữ cực kỳ sắc nét */
    letter-spacing: -0.5px; /* Thu hẹp khoảng cách chữ lại một chút cho có cảm giác premium */
    text-transform: uppercase; /* Viết hoa toàn bộ cho giống tạp chí */
    margin-top: 5px;
}
.clean-line {
    width: 60px;
    height: 3px;
    background-color: #1a633a;
    margin: 20px auto 0 auto;
    border-radius: 2px;
}

/* Khung chứa danh sách bài viết */
.news-container {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

/* Lưới hiển thị bài viết */
.news-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 35px; /* Tăng khoảng cách đứng để bài viết thở */
}

/* Thẻ bài viết phẳng - Không đổ bóng, không nền màu */
.news-editorial-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}

/* Khung chứa ảnh phẳng */
.item-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px; /* Bo góc nhẹ cho ảnh mềm mại */
    overflow: hidden;
    margin-bottom: 20px;
}
.editorial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.news-editorial-item:hover .editorial-img {
    transform: scale(1.04); /* Phóng to rất nhẹ nhàng sang trọng */
}

/* Nhãn thể loại nhỏ gọn */
.item-badge {
    position: absolute;
    bottom: 15px; left: 15px;
    background: rgba(26, 99, 58, 0.9);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

/* Phần nội dung chữ */
.item-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.item-date {
    font-size: 13px;
    color: #888888;
    margin-bottom: 10px;
}
.item-title {
    font-size: 19px;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.news-editorial-item:hover .item-title {
    color: #1a633a; /* Đổi màu xanh y tế khi di chuột vào */
}

.item-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Đường dẫn xem bài viết tinh tế */
.item-link {
    font-size: 14px;
    font-weight: 700;
    color: #1a633a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    align-self: flex-start;
    padding-bottom: 4px;
    transition: color 0.3s;
}
.item-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background-color: #ff9800;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}
.news-editorial-item:hover .item-link {
    color: #ff9800;
}
.news-editorial-item:hover .item-link::after {
    transform: scaleX(1);
    transform-origin: left;
}
/* --- Khối Tin tức trang chủ (Phong cách Tạp chí) --- */
.latest-news-section {
    padding: 60px 0;
    background: #fff;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.news-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
}
.news-thumb-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 220px;
}
.news-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-thumb-wrap img {
    transform: scale(1.05);
}
.news-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #1a633a;
    color: white;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: bold;
    border-top-right-radius: 8px;
}
.news-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-date {
    font-size: 13px;
    color: #94a3b8;
}
.news-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}
.news-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    color: #1a633a;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 5px;
    transition: color 0.3s;
}
.news-more:hover { color: #f59e0b; }

/* --- RESPONSIVE DÀNH CHO MOBILE & TABLET --- */
@media (max-width: 992px) {
    .news-editorial-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
    .news-header-clean h1 { font-size: 32px; }
}
@media (max-width: 600px) {
    .news-editorial-grid { grid-template-columns: 1fr; gap: 40px; }
    .news-header-clean { padding-top: 40px; }
}
