/* ===== Tin tức & Sự kiện (/tin-tuc) ===== */
#navigation [aria-current] { text-decoration: underline; text-underline-offset: .35em; }
/* style.css ẩn mọi <nav> chưa mở ở màn hình nhỏ (dành cho menu chính); giữ hiển thị các nav của trang tin. */
.js nav.news-breadcrumb, .js nav.news-toc { display: block; }
.js nav.news-pager { display: flex; }

/* Đầu trang danh sách: theo mẫu trang Sản phẩm (.page-hero + body.has-hero trong cinema.css). */
.page-hero--news .page-hero-img { object-position: 60% 35%; }
.page-hero--news h1 small { font-size: .42em; font-weight: 500; letter-spacing: -.01em; color: #e2cdb8; }
.page-hero--news .breadcrumb { flex-wrap: wrap; }

/* Thanh chuyên mục: dùng .page-toc chung (dính dưới header); số bài hiện sau tên. */
.news-cats small { min-width: 22px; padding: 1px 7px; border-radius: 100px; background: #f0e3d3; color: var(--muted); font-size: .72rem; font-weight: 650; text-align: center; }
.news-cats a[aria-current] small { background: var(--brand-orange); color: #fff; }

/* Trang 404 */
.news-hero {
  padding-block: clamp(28px, 4.5vw, 64px) clamp(26px, 3.5vw, 44px);
  background: linear-gradient(125deg, #fbf4eb, #eadecf);
  border-bottom: 1px solid #e3d3c0;
}
.news-hero .kicker { color: var(--accent); margin-top: clamp(14px, 2vw, 22px); }
.news-hero h1 {
  max-width: 20ch;
  margin-top: 12px;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4.25rem);
  font-weight: 560;
  letter-spacing: -.045em;
  color: var(--ink);
}
.news-hero h1 small { font-size: .45em; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.news-hero-lead { max-width: 62ch; margin-top: 14px; color: var(--muted); font-size: clamp(1rem, .95rem + .25vw, 1.12rem); }

/* Đường dẫn (breadcrumb) */
.news-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .86rem;
  color: var(--muted);
}
.news-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.news-breadcrumb li + li::before {
  content: "›";
  margin-inline: 10px;
  color: #ad9783;
  font-size: 1.1rem;
  line-height: 1;
}
.news-breadcrumb a {
  color: #634d3f;
  text-decoration: none;
  transition: color .2s ease;
}
.news-breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-breadcrumb [aria-current] {
  color: #2b170e;
  font-weight: 600;
}

/* Danh sách */
.news-list { padding-block: clamp(32px, 5vw, 72px) clamp(48px, 7vw, 100px); background: linear-gradient(180deg, #fdf9f3, #f8efe4); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.news-card--featured + .news-grid { margin-top: clamp(16px, 2vw, 28px); }
.news-empty { padding: 40px 0; color: var(--muted); }

/* Thẻ bài viết: cả thẻ bấm được qua liên kết tiêu đề; nhãn chuyên mục nằm trên lớp liên kết. */
.news-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border-top: 3px solid #e7d6c3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-3px); border-top-color: var(--brand-orange); }
.news-card:focus-within { border-top-color: var(--brand-orange); }
.news-card-media { aspect-ratio: 1.91; overflow: hidden; background: #eadecf; }
.news-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.03); }
.news-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); }
#main .news-card-title { margin: 0; font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); font-weight: 620; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.news-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card-title a:focus-visible { outline: none; }
.news-card-title a:focus-visible::after { outline: 2px solid var(--brand-orange); outline-offset: 3px; }
.news-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: .94rem; }

.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin: 0; color: var(--muted); font-size: .82rem; }
.news-cat {
  position: relative; z-index: 2;
  color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem;
}
.news-cat:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Bài nổi bật đầu trang danh sách */
.news-card--featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.news-card--featured .news-card-media { aspect-ratio: auto; min-height: 100%; }
.news-card--featured .news-card-media img { aspect-ratio: 1.91; }
.news-card--featured .news-card-body { justify-content: center; gap: 14px; padding: clamp(22px, 3.4vw, 52px); }
#main .news-card--featured .news-card-title { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.18; letter-spacing: -.035em; }
.news-card--featured .news-card-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
.news-card-more { display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; color: var(--brand-red); font-size: .92rem; font-weight: 650; }

/* Phân trang */
.news-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(28px, 4vw, 48px); font-size: .92rem; font-weight: 600; }
.news-pager ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.news-pager ol a, .news-pager ol span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d9c6b1; border-radius: 50%; }
.news-pager ol span { background: var(--espresso); border-color: var(--espresso); color: #fff7eb; }
.news-pager > a:hover, .news-pager ol a:hover { color: var(--accent); border-color: var(--brand-orange); }

/* ----- Trang chi tiết ----- */
.news-article { background: #fffdfa; }
.news-article-head {
  padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, #f7eee3 0%, #fcf8f2 60%, #fffdfa 100%);
  border-bottom: 1px solid #ebd9c8;
}
.news-article-head .news-meta {
  margin-top: clamp(20px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.news-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: #edd8c5;
  color: #872e18;
  font-weight: 750;
  letter-spacing: .06em;
  font-size: .76rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.news-cat:hover {
  background: #e2c6ac;
  transform: translateY(-1px);
  text-decoration: none;
}
.news-article-head h1 {
  max-width: 26ch;
  margin-top: 18px;
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.035em;
  color: #1e130c;
  text-wrap: balance;
}
.news-lead {
  max-width: 66ch;
  margin-top: 22px;
  padding: 14px 20px;
  border-left: 4px solid var(--brand-orange);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 14px 14px 0;
  color: #4b362b;
  font-size: clamp(1.08rem, 1.02rem + .2vw, 1.22rem);
  line-height: 1.65;
  box-shadow: 0 4px 16px -8px rgba(62, 38, 22, 0.06);
}
.news-cover {
  margin: clamp(28px, 4vw, 44px) 0 0;
  overflow: hidden;
  border-radius: 20px;
  background: #eadecf;
  border: 1px solid #ebd9c8;
  box-shadow: 0 24px 60px -25px rgba(50, 30, 18, 0.22);
}
.news-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1.91; object-fit: cover; }

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(30px, 4.5vw, 64px) clamp(48px, 6vw, 88px);
}
.news-main { min-width: 0; max-width: 760px; }

/* Nội dung bài viết */
.news-prose { color: #3d2f27; font-size: clamp(1.02rem, .98rem + .2vw, 1.1rem); line-height: 1.78; }
.news-prose > * + * { margin-top: 1.1em; }
#main .news-prose h2 {
  margin-top: 2.2em;
  padding-bottom: 10px;
  border-bottom: 2px solid #ecddce;
  font-size: clamp(1.4rem, 1.2rem + .7vw, 1.85rem);
  font-weight: 680;
  line-height: 1.28;
  letter-spacing: -.025em;
  color: #20130c;
  scroll-margin-top: 100px;
}
#main .news-prose h3 {
  margin-top: 1.8em;
  font-size: 1.22rem;
  font-weight: 660;
  letter-spacing: -.015em;
  color: #872e18;
  scroll-margin-top: 100px;
}
.news-prose h2 + *, .news-prose h3 + * { margin-top: .7em; }
.news-prose ul, .news-prose ol { display: grid; gap: .55em; padding-left: 1.3em; }
.news-prose li::marker { color: var(--brand-orange); font-weight: 700; }
.news-prose strong { color: var(--ink); font-weight: 650; }
.news-prose a { color: var(--brand-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-prose a:hover { color: var(--brand-red-dark); text-decoration-thickness: 2px; }
.news-note {
  margin-inline: 0; padding: 20px 24px;
  border-radius: 14px;
  border-left: 4px solid var(--brand-orange);
  background: #fbf2e6;
  color: #4b362b; font-size: .96em;
  box-shadow: 0 4px 16px -8px rgba(62, 38, 22, 0.08);
}
.news-note p + p { margin-top: .6em; }
.news-table {
  overflow-x: auto;
  border: 1px solid #ebd9c8;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 6px 20px -10px rgba(62, 38, 22, 0.08);
}
.news-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92em; line-height: 1.45; }
.news-table th, .news-table td { padding: 12px 14px; border-bottom: 1px solid #ecdfcf; text-align: left; vertical-align: top; }
.news-table thead th { background: var(--espresso); color: #fff7eb; font-size: .82rem; font-weight: 650; letter-spacing: .02em; }
.news-table tbody th { color: var(--ink); font-weight: 650; }
.news-table td { white-space: nowrap; }
.news-table tbody tr:last-child > * { border-bottom: 0; }
.news-table tbody tr:nth-child(even) { background: #fbf4ea; }
.news-figure { margin-inline: 0; }
.news-figure img, .news-gallery img { display: block; width: 100%; height: auto; border-radius: 16px; }
.news-figure figcaption, .news-gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; }

.news-event {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: 0 0 28px; padding: 22px 26px;
  background: var(--card); border-top: 3px solid var(--brand-orange);
  border-radius: 18px; box-shadow: var(--card-shadow);
}
.news-event dt { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-event dd { margin: 4px 0 0; font-weight: 600; }
.news-event small { color: var(--muted); font-weight: 400; }

.news-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.news-gallery figure { margin: 0; }

.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.news-tags li { padding: 5px 14px; border-radius: 100px; background: #f0e3d3; color: #4e382b; font-size: .84rem; font-weight: 550; }

.news-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #e3d3c0; }
.news-share span { margin-right: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.news-share a, .news-share button {
  min-height: 38px; padding: 6px 16px;
  border: 1px solid #d9c6b1; border-radius: 100px;
  background: #fffdfa; color: var(--ink); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 6px rgba(62, 38, 22, 0.05);
  transition: all .2s ease;
}
.news-share a:hover, .news-share button:hover {
  border-color: var(--brand-orange); color: var(--accent);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(62, 38, 22, 0.1);
}

/* Cột phải: mục lục, đối tác, kêu gọi tư vấn */
.news-aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.news-toc, .news-partner, .news-cta {
  padding: 24px;
  background: var(--card);
  border: 1px solid #ebd9c8;
  border-radius: 18px;
  box-shadow: 0 10px 30px -15px rgba(62, 38, 22, 0.1);
}
.news-toc > p, .news-partner > p { margin: 0 0 12px; color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.news-toc li { counter-increment: toc; }
.news-toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--ink); font-size: .9rem; line-height: 1.4; transition: color .2s; }
.news-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--brand-orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.news-toc a:hover { color: var(--accent); }
.news-partner { display: grid; gap: 10px; border-top: 3px solid #e7d6c3; }
.news-partner img { width: 160px; max-width: 100%; height: 40px; object-fit: contain; object-position: left; mix-blend-mode: multiply; }
.news-partner strong { margin-top: 4px; color: var(--ink); }
.news-partner span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.news-partner a { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--brand-red); font-size: .86rem; font-weight: 650; }
.news-cta {
  display: grid; gap: 12px;
  background: radial-gradient(ellipse at 100% 0%, #5a3826, transparent 60%), var(--espresso);
  border: none;
  color: #f6ead9;
  box-shadow: 0 16px 40px -16px rgba(45, 25, 15, 0.4);
}
.news-cta strong { color: #fff7eb; font-size: 1.15rem; line-height: 1.3; }
.news-cta span { color: #d9c6b3; font-size: .9rem; line-height: 1.55; }
.news-cta .button { margin-top: 6px; width: 100%; justify-content: center; }
.news-cta-phone { color: var(--accent-on-dark); font-weight: 650; font-size: .92rem; text-align: center; }

/* Bài liên quan & khối tin trên trang chủ */
.news-related, .news-teaser { padding-block: clamp(44px, 6vw, 88px); background: linear-gradient(180deg, #f8efe4, #f3e9dd); border-top: 1px solid #e3d3c0; }
.news-related-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
#main .news-related h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 560; letter-spacing: -.035em; }
.news-teaser .kicker { color: var(--accent); }
#main .news-teaser h2 { margin-top: 10px; }

/* 404 */
.news-404 { padding-block: clamp(48px, 9vw, 130px); }
.news-404-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

@media (max-width: 1050px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-main { max-width: none; }
  .news-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .js nav.news-toc, .news-toc { display: none; }
}
@media (max-width: 760px) {
  .news-card--featured { grid-template-columns: minmax(0, 1fr); }
  .news-card--featured .news-card-media { min-height: 0; }
  .news-pager { flex-wrap: wrap; justify-content: center; }
  .news-pager ol { order: -1; width: 100%; justify-content: center; }
}
@media (max-width: 620px) {
  .news-grid, .news-event, .news-gallery { grid-template-columns: minmax(0, 1fr); }
  .news-breadcrumb [aria-current] { max-width: 24ch; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card, .news-card-media img { transition: none; }
  .news-card:hover { transform: none; }
  .news-card:hover .news-card-media img { transform: none; }
}
