/* ===== Trang chi tiết bài viết (dưới Hero) ===== */
/* Nền kem trải nền; thanh nâu tiêu đề + tờ giấy trắng nội dung + footer nâu. */

.article {
  /* Nền kem trải toàn khối, nối tiếp bên dưới Hero */
  background: url("../assets/article/article-bg.png?v=4255208b") repeat-y center top / 100% auto,
              #fdf6e3;
}

/* Container căn giữa dùng chung cho thanh nâu và tờ giấy */
.article-topbar__inner,
.article-paper__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ===== Thanh nâu tiêu đề mục + breadcrumb ===== */
.article-topbar {
  /* Dải nâu ngang: dùng ảnh header-bar làm nền phủ ngang */
  background: url("../assets/article/article-header-bar.png?v=7dba7d96") no-repeat center / cover;
}
.article-topbar__inner {
  padding: 14px 24px;
}
.article-topbar__label {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Breadcrumb dưới nhãn mục */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: clamp(12px, 1.2vw, 14px);
  color: #e9d7bf;
}
.article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e9d7bf;
  text-decoration: none;
}
.article-breadcrumb a:hover { color: #fff; }
.article-breadcrumb__home { width: 14px; height: 14px; object-fit: contain; }
.article-breadcrumb__sep { color: #cbb493; }
.article-breadcrumb__current { color: #fff; font-weight: 700; }

/* ===== Tờ giấy nội dung ===== */
.article-paper {
  padding: 28px 16px 0;
}
.article-paper__inner {
  /* Tờ giấy trắng: ảnh nền co giãn theo nội dung, padding để chữ lọt vào */
  background: url("../assets/article/article-paper.png?v=742b2886") no-repeat center top / 100% 100%,
              #fbf7ee;
  padding: 48px clamp(32px, 5vw, 72px) 56px;
}

/* Tiêu đề + thời gian */
.article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 0 15px; /* thẳng hàng với thân bài (.article-body cách 2 bên 15px) */
}
.article-title {
  margin: 0;
  color: #4a1c14;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.article-meta {
  flex: none;
  display: flex;
  gap: 14px;
  padding-top: 8px;
  color: #b9a894;
  font-size: clamp(12px, 1.2vw, 15px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Thân bài */
.article-body {
  color: #2c2620;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.7;
  padding: 0 15px; /* cách 2 bên 15px */
}
.article-body p { margin: 0 0 8px; }
/*
  Cỡ chữ đặt sẵn từ trình soạn bài admin (span.text-size-*, xem html-sanitize.js).
  Dùng em để co theo chữ thân bài (đã clamp theo màn hình).
*/
.article-body .text-size-sm { font-size: 0.875em; }
.article-body .text-size-lg { font-size: 1.25em; }
.article-body .text-size-xl { font-size: 1.5em; }
.article-body strong { font-weight: 700; }
.article-body a {
  color: #b8332a;
  font-weight: 700;
  text-decoration: none;
}
.article-body a:hover { text-decoration: underline; }

/* ===== Footer thương hiệu (dải ảnh full-width) ===== */
.article-footer {
  margin-top: 32px;
}
.article-footer__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Mobile ===== */
@media (max-width: 760px) {
  .article-head {
    flex-direction: column;
    gap: 6px;
  }
  .article-meta { padding-top: 0; }
  .article-paper__inner { padding: 32px 22px 40px; }
}
