/* Trang Tin tức - Kiến thức và trang bài viết dựng bằng bộ dựng: đầu trang, danh sách tin, chủ đề, nội dung bài. */

/* ---------- Đầu trang tin tức ---------- */
.news-hero { position: relative; overflow: hidden; padding: 18px 0 22px; border-bottom: 1px solid #f0e2d8; background: linear-gradient(120deg, #fff4ec 0%, #fffaf6 55%, #fff 100%); }
.news-hero.is-dark { border: 0; background: radial-gradient(circle at 85% 20%, rgba(255, 106, 22, .28), transparent 42%), linear-gradient(110deg, #111d25 0%, #17252d 58%, #273d45 100%); color: #fff; }
.news-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 320px; height: 320px; border: 46px solid rgba(255, 106, 22, .08); border-radius: 50%; pointer-events: none; }
.news-hero .breadcrumb { margin-bottom: 14px; }
.news-hero.is-dark .breadcrumb, .news-hero.is-dark .breadcrumb a, .news-hero.is-dark .breadcrumb span { color: #b9c6cb; }
.news-hero.is-dark .breadcrumb span:last-child { color: #fff; }
.news-hero-main { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 18px 40px; align-items: end; }
.news-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.news-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.news-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 850; line-height: 1.15; letter-spacing: -.02em; }
.news-hero-text p { max-width: 640px; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.news-hero.is-dark .news-hero-text p { color: #c7d2d5; }
.news-hero-stats { display: flex; gap: 22px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.news-hero.is-dark .news-hero-stats { color: #b9c6cb; }
.news-hero-stats strong { margin-right: 4px; color: var(--orange); font-size: 20px; font-weight: 850; }
.news-search { display: flex; padding: 5px; border: 1px solid #ead9cc; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(17, 29, 37, .08); }
.news-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; outline: 0; background: transparent; color: #1d2830; font: inherit; font-size: 15px; text-align: left; }
.news-search button { padding: 0 20px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #ff8a2a, #f04a0c); color: #fff; font-weight: 800; cursor: pointer; }
.news-search:focus-within { border-color: var(--orange); }
.news-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.news-chips a { display: inline-block; padding: 7px 15px; border: 1px solid #e3d4c8; border-radius: 20px; background: #fff; color: #33404a; font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: .15s; }
.news-hero.is-dark .news-chips a { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e5ecee; }
.news-chips a:hover, .news-chips a.is-active, .news-hero.is-dark .news-chips a:hover, .news-hero.is-dark .news-chips a.is-active { border-color: var(--orange); background: var(--orange); color: #fff; }

/* ---------- Danh sách tin ---------- */
.news-result { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 11px 16px; border: 1px solid #f0e2d8; border-radius: 10px; background: #fffaf6; font-size: 14px; }
.news-result a { color: var(--orange); font-weight: 700; }
.news-empty { padding: 40px 24px; border: 1px dashed #e3d4c8; border-radius: 14px; background: #fff; text-align: center; }
.news-empty p { margin: 6px 0 16px; color: var(--muted); }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.news-read { display: inline-flex; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--orange); font-size: 13.5px; font-weight: 750; }

.news-lead { margin-bottom: 22px; }
.news-lead > a { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--dark); box-shadow: 0 10px 30px rgba(17, 29, 37, .06); transition: .2s; }
.news-lead > a:hover { border-color: #ffc7a6; box-shadow: 0 14px 36px rgba(240, 74, 12, .12); transform: translateY(-2px); }
.news-lead-img { position: relative; display: block; min-height: 260px; background: #f6f7f8; }
.news-lead-img { border-right: 1px solid var(--line); background: #fff; }
.news-lead-img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.news-badge { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 6px; background: linear-gradient(135deg, #ff8a2a, #f04a0c); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.news-lead-text { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; }
.news-lead-text h2 { margin: 0; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.3; letter-spacing: -.01em; }
.news-lead-text p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #4a5763; font-size: 15px; line-height: 1.6; }
.news-lead > a:hover h2 { color: #d9480f; }

.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-grid.is-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--dark); transition: .2s; }
.news-card > a:hover { border-color: #ffc7a6; box-shadow: 0 12px 28px rgba(240, 74, 12, .1); transform: translateY(-3px); }
.news-card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.news-card-img img { width: 100%; height: 100%; padding: 8px; object-fit: contain; transition: transform .35s; }
.news-card > a:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.news-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 16px; line-height: 1.4; }
.news-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.news-card > a:hover h3 { color: #d9480f; }
/* Kiểu danh sách: ảnh nhỏ bên trái. */
.news-grid.is-list { grid-template-columns: 1fr; gap: 14px; }
.news-grid.is-list .news-card > a { flex-direction: row; }
.news-grid.is-list .news-card-img { flex: 0 0 240px; aspect-ratio: auto; min-height: 150px; }

.news-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.news-pager a, .news-pager span { min-width: 40px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #33404a; font-weight: 700; text-align: center; }
.news-pager a:hover { border-color: var(--orange); color: var(--orange); }
.news-pager [aria-current] { border-color: var(--orange); background: var(--orange); color: #fff; }
.news-pager .gap { border-color: transparent; background: none; }

/* ---------- Cột phải: chủ đề, sản phẩm trong bài ---------- */
.blk--news-topics, .blk--article-products.is-narrow, .page-column > .blk--hotline, .page-column > .blk--features.is-narrow { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.is-news-page .blk.is-narrow .blk-heading, .is-article-page .blk.is-narrow .blk-heading { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.news-topics { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.news-topics a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #33404a; font-size: 14.5px; font-weight: 600; }
.news-topics em { min-width: 28px; padding: 1px 8px; border-radius: 10px; background: #f2f4f5; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800; text-align: center; }
.news-topics a:hover { background: #fff6f0; color: #d9480f; }
.news-topics a.is-active { background: #fff1e6; color: #d9480f; }
.news-topics a.is-active em { background: var(--orange); color: #fff; }
.news-side-products { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.news-side-products a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; color: var(--dark); }
.news-side-products img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.news-side-products strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.news-side-products em { display: block; margin-top: 3px; color: #e03d0a; font-size: 14px; font-style: normal; font-weight: 800; }
.news-side-products a:hover strong { color: #d9480f; }

/* ---------- Bài viết ---------- */
.news-article { padding: 30px 36px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(17, 29, 37, .04); }
.news-article-head h1 { margin: 12px 0 16px; font-size: clamp(25px, 3.3vw, 36px); line-height: 1.22; letter-spacing: -.02em; }
.news-article-head .blk-tag { font-size: 11.5px; }
.news-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.news-byline strong { display: block; font-size: 14.5px; }
.news-byline small { color: var(--muted); font-size: 13px; }
.news-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #ff8a2a, #f04a0c); color: #fff; font-size: 14px; font-weight: 900; }
.news-lede { margin: 18px 0 0; color: #33404a; font-size: 18px; font-weight: 500; line-height: 1.65; }
.news-cover { margin: 22px 0; }
.news-cover img { display: block; width: 100%; max-height: 480px; object-fit: contain; border-radius: 12px; background: #f6f7f8; }
.news-toc { margin: 0 0 26px; border: 1px solid #f0e2d8; border-left: 4px solid var(--orange); border-radius: 10px; background: #fffaf6; }
.news-toc summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 15.5px; font-weight: 850; cursor: pointer; }
.news-toc summary small { color: var(--muted); font-weight: 600; }
.news-toc ol { margin: 0; padding: 0 18px 16px 40px; counter-reset: none; }
.news-toc li { margin: 6px 0; line-height: 1.45; }
.news-toc li::marker { color: var(--orange); font-weight: 800; }
.news-toc .toc-l3 { margin-left: 18px; list-style: circle; font-size: 14px; }
.news-toc a { color: #33404a; }
.news-toc a:hover { color: #d9480f; text-decoration: underline; }
.news-article .article-body h2 { position: relative; padding: 0 0 8px 16px; border-bottom: 0; }
.news-article .article-body h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 12px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, #ffa53a, #f04a0c); }
.news-article .article-body figure img { border: 1px solid var(--line); }
.news-article .article-body table { overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.news-article .article-body tbody tr:nth-child(even) { background: #fafbfb; }
.news-faq { margin-top: 32px; }
.news-faq h2 { margin: 0 0 14px; font-size: 22px; }
.news-faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: .15s; }
.news-faq details[open] { border-color: #ffc7a6; background: #fffaf6; }
.news-faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 750; cursor: pointer; list-style: none; }
.news-faq summary::-webkit-details-marker { display: none; }
.news-faq summary::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.news-faq details[open] summary::after { content: "−"; }
.news-faq details p { margin: 0; padding: 0 18px 16px; color: #3d4852; line-height: 1.7; }
.news-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.news-share a, .news-share button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #33404a; font: inherit; font-weight: 700; cursor: pointer; }
.news-share a:hover, .news-share button:hover { border-color: var(--orange); color: var(--orange); }

@media (max-width: 900px) {
  .news-hero-main { grid-template-columns: 1fr; }
  .news-lead > a { grid-template-columns: 1fr; }
  .news-lead-img { min-height: 0; aspect-ratio: 16 / 9; }
  .news-grid.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .news-lead-img { border-right: 0; border-bottom: 1px solid var(--line); }
  .news-grid, .news-grid.is-wide { grid-template-columns: 1fr; }
  .news-grid.is-list .news-card > a { flex-direction: column; }
  .news-grid.is-list .news-card-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .news-article { padding: 20px 16px; border-radius: 12px; }
  .news-lede { font-size: 16.5px; }
  .news-hero-stats { gap: 16px; }
}
