/* ===========================================================
   pages.css — style cho trang con (landing tuyến, blog, bài
   viết, trang phụ). Tái dùng biến thiết kế trong style.css.
   =========================================================== */

.container.narrow { max-width: var(--container-narrow); }

/* ----------------------------- Breadcrumb ---------------------- */
.breadcrumb { border-bottom: 1px solid var(--c-line); background: var(--c-bg-alt); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  list-style: none;
  /* margin/padding ngang để .container quyết định — giữ thẳng hàng với nội dung trang */
  margin: 0 auto; padding-top: 12px; padding-bottom: 12px;
  font-size: .85rem; color: var(--c-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--c-line-strong); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent-2); }
.breadcrumb li[aria-current] {
  color: var(--c-ink); font-weight: 600;
  /* Tiêu đề bài dài: cắt 1 dòng để breadcrumb không chiếm 3 dòng trên mobile */
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw;
}

/* ----------------------------- Page head ---------------------- */
.page-head { padding: clamp(28px, 4vw, 52px) 0 8px; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; }
.page-head p { color: var(--c-muted); max-width: 720px; font-size: 1.02rem; }

/* ----------------------------- Prose -------------------------- */
.prose { color: var(--c-ink-2); font-size: 1.04rem; line-height: 1.75; }
.prose > h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 1.6em 0 .5em; line-height: 1.25; color: var(--c-ink); }
.prose > h3 { font-size: 1.15rem; margin: 1.3em 0 .4em; color: var(--c-ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--c-accent-2); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--c-accent); }
.prose strong { color: var(--c-ink); }

/* Bảng giá trong prose / bài viết */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.price-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.price-table th, .price-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-line); }
.price-table thead th { background: var(--c-bg-alt); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.price-table tbody tr:hover { background: var(--p-amber-bg); }
.price-table td:first-child { font-weight: 600; }

/* Callout / CTA box trong bài */
.post-callout {
  margin: 1.6em 0; padding: 18px 20px;
  background: var(--p-amber-bg); border: 1px solid rgba(168,84,8,.18);
  border-radius: var(--r-lg); border-left: 4px solid var(--c-accent);
}
.post-callout p { margin: 0; color: var(--c-ink-2); }

/* ====================== LANDING TUYẾN ======================== */
.lp-hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 32px);
  background:
    radial-gradient(1200px 280px at 80% -40%, var(--p-amber-bg), transparent 70%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.lp-hero__eyebrow { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent-2); font-weight: 700; margin: 0 0 10px; }
.lp-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; margin: 0 0 12px; max-width: 18ch; }
.lp-hero__lead { font-size: 1.08rem; color: var(--c-ink-2); max-width: 640px; margin: 0 0 18px; line-height: 1.6; }

.lp-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.lp-stats > div {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 10px 16px; min-width: 120px; box-shadow: var(--s-1);
}
.lp-stats span { display: block; font-size: .78rem; color: var(--c-muted); }
.lp-stats b { font-size: 1.05rem; color: var(--c-ink); }

.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.lp-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.lp-main > h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 1.5em 0 .6em; }
.lp-main > h2:first-child { margin-top: 0; }

.lp-highlights { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.lp-highlights li {
  position: relative; padding: 12px 14px 12px 42px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
}
.lp-highlights li::before {
  content: "✓"; position: absolute; left: 12px; top: 11px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--p-green-bg); color: var(--p-green-tx); border-radius: 50%; font-weight: 800; font-size: .8rem;
}
.lp-note { font-size: .9rem; color: var(--c-muted); margin: 0 0 1em; }

/* Price cards */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 1em; }
.price-card {
  position: relative; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-xl); padding: 18px 16px; text-align: center; box-shadow: var(--s-1);
}
.price-card--best { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent), var(--s-2); }
.price-card__tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--c-accent); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.price-card__label { display: block; font-size: .85rem; color: var(--c-muted); margin-bottom: 6px; }
.price-card__value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--c-ink); }

/* Aside box */
.lp-aside { position: sticky; top: 84px; }
.lp-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2xl); padding: 20px; box-shadow: var(--s-2); display: grid; gap: 10px; }
.lp-box h3 { margin: 0; font-size: 1.15rem; }
.lp-box p { margin: 0 0 4px; color: var(--c-muted); font-size: .92rem; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--c-ink);
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--c-accent-2); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item__body { padding: 0 16px 14px; color: var(--c-ink-2); }
.faq-item__body p { margin: 0; }

/* Related cards */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rel-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: 16px; transition: transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--s-hover); }
.rel-card__label { font-weight: 700; color: var(--c-ink); }
.rel-card__price { color: var(--c-accent-2); font-weight: 600; font-size: .95rem; }
.rel-card__go { color: var(--c-muted); font-size: .85rem; margin-top: 4px; }

/* ======================== BLOG INDEX ========================= */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl);
  box-shadow: var(--s-1); transition: transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--s-hover); }
.post-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--c-bg-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-accent-2); font-weight: 700; }
.post-card__title {
  font-size: 1.1rem; font-weight: 700; color: var(--c-ink); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__excerpt {
  font-size: .92rem; color: var(--c-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta { font-size: .8rem; color: var(--c-muted); margin-top: auto; }

/* ========================= BLOG POST ========================= */
.post__wrap { max-width: var(--container-narrow); }
.post__cat { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-accent-2); font-weight: 700; margin: 0 0 8px; }
.post h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 0 0 10px; }
.post__meta { color: var(--c-muted); font-size: .9rem; margin: 0 0 20px; }
.post__hero { margin: 0 0 24px; border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--s-2); }
.post__hero img { width: 100%; height: auto; display: block; aspect-ratio: 1200/630; object-fit: cover; }
.post__relh { font-size: 1.3rem; margin: 1.8em 0 .7em; }
.post-grid--rel { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Link "Chi tiết" trong thẻ tuyến trang chủ */
.route__more {
  font-size: .85rem; font-weight: 600; color: var(--c-accent-2);
  text-decoration: none; margin-right: auto; white-space: nowrap;
  padding: 10px 0; /* tap target ≥ 40px cho mobile */
}
.route__more:hover { color: var(--c-accent); text-decoration: underline; }

/* --------------------------- Responsive ---------------------- */
@media (max-width: 880px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-aside { position: static; }
}
@media (max-width: 600px) {
  /* Nút CTA full-width trên điện thoại — dễ bấm bằng ngón cái, tăng tỉ lệ gọi */
  .lp-cta-row { flex-direction: column; }
  .lp-cta-row .btn { width: 100%; justify-content: center; }
  .lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lp-stats > div { min-width: 0; padding: 8px 10px; }
  .lp-stats b { font-size: .92rem; }
  .lp-hero h1 { max-width: none; }
  .post__hero { border-radius: var(--r-lg); }
}
@media print {
  .breadcrumb, .lp-aside, .post-callout { display: none; }
}
