/* ==========================================================================
   Giao dien moi: Trang chu tin tuc, Gui file (React), Tao QR (React)
   Dung mau cua Admin > Settings (bien --primaryColor / --secondaryColor)
   ========================================================================== */

.site-v2 {
    --ink: #1f2a37;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

/* Dai mau phia tren (header + hero) */
.site-band { position: relative; }
.site-hero { padding: 110px 0 70px; color: #fff; }
.site-main { flex: 1; padding-bottom: 60px; }

/* ---------- Hero tin tuc ---------- */
.news-hero-title { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.news-hero-title span { color: var(--secondaryColor); }
.news-hero-sub { opacity: .85; font-size: 17px; max-width: 620px; margin: 0 auto 26px; }
.news-search {
    display: flex; align-items: center; gap: 8px;
    max-width: 560px; margin: 0 auto;
    background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.news-search i { color: var(--muted); }
.news-search input { flex: 1; border: 0; outline: 0; font-size: 16px; min-width: 0; color: var(--ink); background: transparent; }
.news-search button {
    border: 0; border-radius: 999px; padding: 9px 22px;
    background: var(--secondaryColor); color: #fff; font-weight: 600;
}
.news-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.news-cat {
    color: #fff; text-decoration: none; font-size: 14px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 6px 14px;
    transition: background .15s, border-color .15s;
}
.news-cat small { opacity: .7; margin-left: 4px; }
.news-cat:hover { color: #fff; border-color: #fff; }
.news-cat.active { background: #fff; color: var(--primaryColor); border-color: #fff; }

/* ---------- Khung noi dung ---------- */
.news-wrap, .tool-wrap { margin-top: -40px; position: relative; z-index: 2; }

.tool-cards { margin-bottom: 28px; }
.tool-card {
    display: flex; align-items: center; gap: 16px; height: 100%;
    background: var(--card); border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(16, 24, 40, .12); color: var(--ink); }
.tool-card-icon {
    flex: 0 0 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.tool-card-transfer .tool-card-icon { background: var(--secondaryColor); }
.tool-card-qr .tool-card-icon { background: var(--primaryColor); }
.tool-card-body { flex: 1; display: flex; flex-direction: column; }
.tool-card-body strong { font-size: 17px; }
.tool-card-body small { color: var(--muted); }
.tool-card-go { color: var(--muted); }

.news-result-info { color: var(--muted); margin: 6px 0 18px; }

/* Bai noi bat */
.news-featured {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); margin-bottom: 28px;
}
.news-featured-img { display: block; min-height: 280px; background: #eef1f6; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-featured-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.news-featured-body h2 { font-size: 26px; font-weight: 700; margin: 10px 0; line-height: 1.3; }
.news-featured-body h2 a, .news-card-body h3 a { color: var(--ink); text-decoration: none; }
.news-featured-body h2 a:hover, .news-card-body h3 a:hover { color: var(--secondaryColor); }
.news-featured-body p { color: var(--muted); }

/* The bai viet */
.news-card {
    display: flex; flex-direction: column; height: 100%;
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    transition: transform .15s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card-img { display: block; aspect-ratio: 16 / 9; background: #eef1f6; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card-body h3 { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 10px 0 8px; }
.news-card-body p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.news-chip {
    align-self: flex-start; font-size: 12px; font-weight: 600; text-decoration: none;
    color: var(--primaryColor); background: rgba(91, 188, 46, .14); border-radius: 999px; padding: 3px 10px;
}
.news-meta { margin-top: auto; display: flex; gap: 14px; color: var(--muted); font-size: 13px; }
.news-meta i { margin-right: 4px; }
.news-empty { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 48px; text-align: center; color: var(--muted); }
.news-pagination { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Hero trang cong cu ---------- */
.tool-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 10px; }
.tool-hero p { opacity: .85; font-size: 17px; margin: 0 auto; max-width: 640px; }
.tool-loading { background: #fff; border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); box-shadow: var(--shadow); }

@media (max-width: 767.98px) {
    .site-hero { padding: 95px 0 60px; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured-img { min-height: 200px; }
    .news-featured-body { padding: 20px; }
}
