﻿/* * Modernized News CSS for NukeViet
 * Main Color: #08519c
 */

:root {
    --primary-color: #08519c;
    --primary-dark: #063e7a;
    --primary-light: #166eca;
    --accent-color: #dc0312;
    --tick-color: #ffc107; /* Màu vàng cho dấu tích */
    --text-color: #333333;
    --text-muted: #6c757d;
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* --- Layout Chung --- */
.tms-body {
    padding: 15px;
    background-color: var(--bg-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* --- Panel News Container --- */
.panelnews {
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* --- Panel Heading (Tiêu đề khối) --- */
.panelnewsheading {
    background: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding: 0;
    position: relative;
}

.panelnewsheading h2 {    
    margin: 0;
    background: var(--primary-color);
    display: inline-block;
    position: relative;
    padding: 10px 25px 10px 15px;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 0 20px 0 0;
}

.panelnewsheading h2 a {
    color: #fff !important;
}

/* --- Tin Nổi Bật (Big Card) --- */
.home1 {
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.home1:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tms_noibat_img {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.tms_noibat img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.tms_noibat:hover img {
    transform: scale(1.05);
}

/* Tiêu đề tin nổi bật: Màu đen, Đậm, Có dấu tích vàng */
.tms_noibat h3 {
    padding: 10px 0 5px 0;
    text-align: left;
    font-weight: 800; /* Đậm hơn */
    display: flex;
    align-items: flex-start;
    color: #000000; /* Màu đen */
    font-size: 18px;
    margin: 0;
}

.tms_noibat h3 a {
    color: #000000 !important;
    display: flex;
    align-items: flex-start;
}

/* Icon dấu tích vàng cho tin nổi bật */
.tms_noibat h3 a::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-top: 4px;
    flex-shrink: 0;
    background-color: var(--tick-color);
    /* Tạo hình dấu tích bằng mask */
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
}

.hometext_clean {
    width: 100%;
    overflow: hidden;
    padding: 10px;
    min-height: 80px;
    display: block;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 14px;
    margin-top: 10px;
}

/* --- Danh sách tin bên cạnh (Side List) --- */
.tmsline_left {
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
}

.tms_list_tin ul li {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
}

.tms_list_tin ul li:last-child {
    border-bottom: none;
}

img.imgother {
    height: 60px;
    width: 80px;
    margin-right: 15px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Tiêu đề tin danh sách: Màu đen, Đậm, Có dấu tích vàng */
.tms_list_tin ul li a {
    font-size: 14px;
    font-weight: 700; /* Đậm */
    color: #000000 !important; /* Màu đen */
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

/* Icon dấu tích vàng cho tin trong danh sách */
.tms_list_tin ul li a::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    margin-top: 3px;
    flex-shrink: 0;
    background-color: var(--tick-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
}

.tms_list_tin ul li a:hover {
    color: var(--primary-color) !important;
}

/* --- Top News Widget --- */
#topnews {
    border: 1px solid var(--primary-light);
    border-top: 3px solid var(--primary-color);
    background: #fff;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

#topnews ul.lastest-news li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    position: relative;
    padding-left: 20px;
}

#topnews ul.lastest-news a {
    color: #000 !important;
    font-weight: 600;
}

/* --- Tin Liên Quan / Tin Khác --- */
div.news_column ul.related li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

div.news_column ul.related a {
    color: #000 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}

div.news_column ul.related a::before {
    content: "✓";
    color: var(--tick-color);
    margin-right: 8px;
    font-weight: 900;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tmsline_left {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
    }
}