/* ==========================================================================
   Khối "Tin tức, cảnh báo và thủ đoạn lừa đảo" ở trang chủ: tin nổi bật (trái) + danh sách 2 tab (giữa)
   + bản đồ hành chính Đồng Nai (phải), theo bố cục báo điện tử (tham khảo Cổng TTĐT Hưng Yên).
   Dùng cho resources/views/partials/home-news-hub.blade.php. Tiền tố nh- (News Hub) để không đụng Tailwind
   hay các khối khác của trang chủ (hl-, pt-...).
   Màu/kích thước lấy chính xác theo thông số spec thiết kế, không dùng bảng màu Tailwind mặc định.
   ========================================================================== */
:root{
  --nh-bg:#F5F7FA;--nh-card:#FFFFFF;--nh-text:#102449;--nh-text2:#64748B;
  --nh-link:#0066CC;--nh-red:#D71920;--nh-border:#DFE5EC;
}

.nh{background:var(--nh-bg);padding:48px 0}
.nh__head{margin-bottom:20px}
.nh__title{font-weight:800;font-size:clamp(22px,2.2vw,30px);color:var(--nh-text);letter-spacing:-.01em;margin:0}
.nh__rule{height:3px;width:64px;background:var(--nh-link);border-radius:2px;margin-top:10px}

/* ---------- Lưới 3 cột: 40% / 35% / 25% (8fr 7fr 5fr) ---------- */
.nh__grid{display:grid;grid-template-columns:minmax(0,8fr) minmax(0,7fr) minmax(0,5fr);gap:22px;align-items:start}
@media (max-width:1023px){.nh__grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:639px){.nh__grid{grid-template-columns:minmax(0,1fr)}}

.nh__card{background:var(--nh-card);border:1px solid var(--nh-border);border-radius:6px;overflow:hidden}

/* ---------- Cột trái: tin nổi bật ---------- */
.nh-feat{display:flex;flex-direction:column;height:100%}
.nh-feat__img-wrap{position:relative;width:100%;aspect-ratio:16/10;background:var(--nh-bg);overflow:hidden}
.nh-feat__img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.nh-feat__img-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#102449,#1d3f7a);color:#9fc1ff}
.nh-feat__img-fallback svg{width:48px;height:48px}
.nh-feat__body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.nh-badge{display:inline-flex;align-items:center;align-self:flex-start;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:700;color:var(--nh-red);background:#FDEBEC;margin-bottom:12px}
.nh-feat__title{font-weight:800;font-size:clamp(20px,2vw,28px);line-height:1.3;color:var(--nh-text);margin:0 0 10px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-feat__title a{color:inherit;text-decoration:none}
.nh-feat__title a:hover{color:var(--nh-link)}
.nh-feat__summary{font-size:15px;line-height:1.6;color:var(--nh-text2);margin:0 0 14px;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-feat__meta{font-size:13px;color:var(--nh-text2);margin-top:auto;padding-top:12px;border-top:1px solid var(--nh-border)}

/* ---------- Cột giữa: tab + danh sách ---------- */
.nh-tabs{padding:16px 20px 8px;border-bottom:1px solid var(--nh-border)}
.nh-tabs__row{display:flex;gap:28px}
.nh-tab{appearance:none;background:none;border:0;border-bottom:3px solid transparent;cursor:pointer;
  font-family:inherit;font-weight:700;font-size:16px;color:var(--nh-text);padding:0 0 12px;margin-bottom:-1px;
  transition:color .15s ease}
.nh-tab:hover{color:var(--nh-red)}
.nh-tab:focus-visible{outline:2px solid var(--nh-link);outline-offset:3px;border-radius:2px}
.nh-tab[aria-selected="true"]{color:var(--nh-red);border-bottom-color:var(--nh-red)}

.nh-list{padding:6px 20px 18px}
.nh-list[hidden]{display:none}
.nh-row{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--nh-border);text-decoration:none}
.nh-row:last-child{border-bottom:0}
.nh-row__thumb{flex:none;width:92px;aspect-ratio:4/3;border-radius:4px;overflow:hidden;background:var(--nh-bg)}
.nh-row__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nh-row__thumb--fallback{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#102449,#1d3f7a);color:#9fc1ff}
.nh-row__thumb--fallback svg{width:22px;height:22px}
.nh-row__body{min-width:0;flex:1}
.nh-row__title{font-weight:600;font-size:clamp(15px,1.1vw,17px);line-height:1.45;color:var(--nh-text);margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nh-row:hover .nh-row__title{color:var(--nh-link)}
.nh-row__risk{display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:700;color:var(--nh-red);background:#FDEBEC}
.nh-empty{padding:28px 4px;text-align:center;color:var(--nh-text2);font-size:14px}
.nh-more{display:flex;justify-content:flex-end;padding:4px 20px 18px}
.nh-more a{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--nh-link);text-decoration:none}
.nh-more a:hover{text-decoration:underline}

/* ---------- Cột phải: bản đồ ---------- */
.nh-map{padding:20px}
.nh-map__eyebrow{font-size:12px;font-weight:700;color:var(--nh-text2);letter-spacing:.04em;margin:0 0 4px}
.nh-map__title{font-size:17px;font-weight:800;color:var(--nh-text);margin:0 0 16px}
.nh-map__frame{width:100%;aspect-ratio:4/5;background:var(--nh-bg);border:1px solid var(--nh-border);border-radius:4px;
  display:flex;align-items:center;justify-content:center;overflow:hidden}
.nh-map__frame img{width:100%;height:100%;object-fit:contain;display:block}
.nh-map__placeholder{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--nh-text2);text-align:center;padding:20px}
.nh-map__placeholder svg{width:40px;height:40px;color:#9AA7B8}
.nh-map__source{font-size:12px;color:var(--nh-text2);margin:12px 0 14px}
.nh-map__source a{color:var(--nh-link);text-decoration:none}
.nh-map__source a:hover{text-decoration:underline}
.nh-map__btn{display:block;width:100%;text-align:center;padding:10px 14px;border-radius:4px;background:var(--nh-link);
  color:#fff;font-weight:700;font-size:14px;text-decoration:none}
.nh-map__btn:hover{background:#0052a3}

/* ---------- Responsive: tablet 2 cột (nổi bật+danh sách), bản đồ xuống dưới; điện thoại 1 cột ---------- */
@media (max-width:1023px){
  .nh-map{grid-column:1 / -1}
  .nh-map__frame{aspect-ratio:16/9;max-width:480px;margin:0 auto}
}
@media (max-width:639px){
  .nh{padding:32px 0}
  .nh__grid{gap:16px}
  .nh-tabs__row{gap:20px}
  .nh-row__thumb{width:76px}
  .nh-map__frame{aspect-ratio:4/5;max-width:none}
}

/* ===== Bố cục mới: [tin nổi bật | danh sách] 2fr  +  [bản đồ] 1fr; tiêu đề có gạch đỏ + "Xem tất cả" ===== */
.nh{background:transparent;padding:30px 0 12px}
.nh__head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.nh__title{font-size:clamp(20px,1.75vw,28px);color:#0b2a5b}
.nh__rule{background:var(--nh-red);width:54px;height:4px;border-radius:4px;margin-top:8px}
.nh__all{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14px;color:var(--nh-link);white-space:nowrap;padding-bottom:4px}
.nh__all:hover{text-decoration:underline}
.nh__grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:20px}
.nh__news{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.nh__card{border-radius:14px;box-shadow:0 2px 10px rgba(11,42,91,.07)}
.nh-badge{border-radius:6px;font-size:11px;letter-spacing:.03em}
.nh-feat__title{font-size:clamp(17px,1.35vw,21px)}
.nh-feat__summary{font-size:14px}
.nh-tab{flex:1;font-size:14px;text-align:center;padding:12px 0}
.nh-tabs{padding:0;border-bottom:1px solid var(--nh-border)}
.nh-tabs__row{gap:0}
.nh-tab{margin-bottom:-1px}
.nh-list{padding:2px 0 8px}
.nh-row{position:relative;padding:12px 34px 12px 14px;align-items:center}
.nh-row:after{content:"›";position:absolute;right:14px;top:50%;margin-top:-15px;font-size:24px;line-height:1;color:#9aa8c2}
.nh-row__thumb{width:80px}
.nh-row__title{font-size:14px;font-weight:700;line-height:1.35;-webkit-line-clamp:2}
.nh-row__meta{display:flex;gap:12px;margin-top:4px;font-size:12px;color:var(--nh-text2)}
.nh-more{justify-content:flex-start;padding:8px 14px 14px}
.nh-map{padding:18px}
.nh-map__title{margin-bottom:12px}
.nh-map__frame{aspect-ratio:auto;padding:8px}
.nh-map__frame img{height:auto;max-height:420px}
.nh-map__btn{background:#fff;color:var(--nh-link);border:1.5px solid var(--nh-link);border-radius:10px;padding:11px 14px}
.nh-map__btn:hover{background:var(--nh-link);color:#fff}
@media (max-width:1199.98px){
.nh__grid{grid-template-columns:minmax(0,1fr)}
.nh-map{grid-column:auto}
.nh-map__frame{max-width:none}
}
@media (max-width:767.98px){
.nh__news{grid-template-columns:minmax(0,1fr)}
.nh__title{font-size:clamp(17px,4.6vw,22px)}
}

/* ===== Kích cỡ theo ảnh mẫu: 3 thẻ cao bằng nhau, ảnh nổi bật dẹt, danh sách 3 dòng, bản đồ thấp hơn ===== */
.nh{padding:26px 0 6px}
.nh__head{margin-bottom:16px}
.nh__grid{align-items:stretch}
.nh__news{align-items:stretch}
.nh-feat__img-wrap{aspect-ratio:2.18/1}
.nh-feat{height:100%}
.nh__news>.nh__card{height:100%}
.nh-list .nh-row:nth-child(n+4){display:none}
.nh-map{display:flex;flex-direction:column}
.nh-map__frame{flex:1;min-height:0}
.nh-map__frame img{max-height:clamp(190px,17vw,250px);width:auto;max-width:100%;margin:auto}
