/* Xingfa Plaza — blog & article pages */
.blog-body { background: var(--bg); }

/* ---------- listing hero ---------- */
.list-hero {
  background: linear-gradient(135deg, #fffdf8 0%, #fdf6e7 45%, #f8ecd2 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.list-hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 10px; }
.list-hero .post-lead { max-width: 720px; margin: 0; }

/* topic pills in the hero */
.blog-topics-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.topic-pill {
  font-size: 13px; font-weight: 600; color: var(--rose-dark);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; text-decoration: none;
  transition: .18s;
}
.topic-pill:hover { background: var(--rose-dark); color: #fff; border-color: var(--rose-dark); }

/* ---------- article hero ---------- */
.post-hero { background: #2b1d23; }
.post-hero img {
  display: block; width: 100%; max-height: 460px; object-fit: cover;
}
.post-wrap { max-width: 820px; padding: 28px 20px 72px; }

/* ---------- breadcrumb ---------- */
.crumbs {
  font-size: 13px; color: var(--gray); margin-bottom: 26px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.crumbs a { color: var(--rose-dark); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-cur { color: var(--gray); }

/* ---------- article head ---------- */
.post-kicker {
  display: inline-block; background: var(--rose-soft); color: var(--rose-dark);
  border: 1px solid var(--line); padding: 5px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: .2px;
}
.post-head h1 { font-size: 34px; line-height: 1.25; margin-bottom: 14px; }
.post-lead { font-size: 17px; color: var(--gray); margin-bottom: 16px; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13.5px; color: var(--gray); padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.post-author { font-weight: 600; color: var(--ink); }
.post-meta .dot { color: var(--line); }

/* ---------- takeaways ---------- */
.takeaways {
  background: var(--rose-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 28px; margin: 30px 0 34px;
}
.takeaways-h { font-size: 18px; margin-bottom: 12px; color: var(--rose-dark); }
.takeaways ul { margin: 0; padding-inline-start: 20px; }
.takeaways li { font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::marker { color: var(--rose); font-weight: 700; }

/* ---------- body typography ---------- */
.post-body { font-size: 16px; }
.post-h2 {
  font-size: 25px; line-height: 1.35; margin: 42px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--rose-soft);
}
.post-h3 { font-size: 18.5px; margin: 26px 0 8px; color: var(--rose-dark); }
.post-p { margin-bottom: 16px; color: #4a3f33; line-height: 1.78; }
.post-ul, .post-ol { margin: 0 0 18px; padding-inline-start: 24px; }
.post-ul li, .post-ol li { margin-bottom: 9px; color: #4a3f33; line-height: 1.72; }
.post-ul li::marker, .post-ol li::marker { color: var(--rose); font-weight: 700; }

/* ---------- figures ---------- */
.post-figure { margin: 28px 0; }
.post-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: 0 14px 36px rgba(160, 120, 40, .16);
}
.post-figure figcaption {
  font-size: 13px; color: var(--gray); margin-top: 10px; line-height: 1.6;
  padding-inline-start: 12px; border-inline-start: 3px solid var(--rose);
}

/* ---------- tables ---------- */
.post-table-wrap { margin: 24px 0; overflow-x: auto; }
.post-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 14.5px; min-width: 520px;
}
.post-table caption {
  caption-side: top; text-align: start; font-size: 13px; color: var(--gray);
  padding-bottom: 10px; font-weight: 600;
}
.post-table th {
  background: var(--rose-soft); color: var(--rose-dark); font-weight: 700;
  text-align: start; padding: 13px 15px; border-bottom: 2px solid var(--line);
  font-size: 14px;
}
.post-table td {
  padding: 13px 15px; border-bottom: 1px solid var(--line); color: #4a3f33;
  vertical-align: top; line-height: 1.65;
}
.post-table tr:last-child td { border-bottom: none; }
.post-table tbody tr:nth-child(even) { background: #fdfaf3; }

/* ---------- FAQ ---------- */
.post-faq { margin-top: 46px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15.5px;
  color: var(--ink); list-style: none; position: relative; padding-inline-end: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--rose); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { padding: 15px 20px 17px; font-size: 15px; color: var(--gray); line-height: 1.75; margin: 0; }

/* ---------- about contributor ---------- */
.post-about {
  margin-top: 44px; padding: 26px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.post-about .post-h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; }
.post-about .post-p { margin-bottom: 8px; }
.post-about-link a { color: var(--rose-dark); font-weight: 600; text-decoration: none; }
.post-about-link a:hover { text-decoration: underline; }

/* ---------- CTA ---------- */
.post-cta {
  margin-top: 40px; padding: 30px 32px; text-align: center;
  background: linear-gradient(135deg, #fffdf8 0%, #fdf6e7 60%, #f8ecd2 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.post-cta h2 { font-size: 23px; margin-bottom: 10px; }
.post-cta p { color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.post-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  background: transparent; color: var(--rose-dark);
  border: 1.5px solid var(--rose); padding: 12px 24px;
}
.btn-outline:hover { background: var(--rose-soft); }

/* ---------- pager ---------- */
.post-pager { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-pager a { color: var(--rose-dark); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.post-pager a:hover { text-decoration: underline; }

/* ---------- listing cards ---------- */
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .2s;
}
.post-card:hover { box-shadow: 0 16px 44px rgba(160, 120, 40, .16); transform: translateY(-3px); }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body h2 { font-size: 20px; line-height: 1.35; }
.post-card-body h2 a { color: var(--ink); text-decoration: none; }
.post-card-body h2 a:hover { color: var(--rose); }
.post-card-body p { font-size: 14.5px; color: var(--gray); line-height: 1.7; flex: 1; }
.post-card-body .post-meta { padding-bottom: 0; border-bottom: none; }
.post-card-btn { align-self: flex-start; margin-top: 6px; }

/* ---------- featured (large) card ---------- */
.section-featured { padding-top: 46px; }
.post-card-lg {
  display: grid; grid-template-columns: 1.05fr 1fr;
  max-width: 1000px; margin: 0 auto;
}
.post-card-lg .post-card-img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.post-card-lg .post-card-body { padding: 34px 36px; justify-content: center; }
.post-card-lg .post-card-body h2 { font-size: 25px; }

/* ---------- all-guides grid ---------- */
.section-guides { padding-top: 8px; }
.guides-empty {
  grid-column: 1 / -1; text-align: center; color: var(--gray);
  font-size: 15px; padding: 36px 20px; background: #fff;
  border: 1px dashed var(--line); border-radius: var(--radius);
}

/* ---------- topic cards ---------- */
.section-topics { background: #fff; }
.topic-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.topic-card {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--rose-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 22px;
  text-decoration: none; transition: .2s;
}
.topic-card:hover {
  box-shadow: 0 16px 40px rgba(160, 120, 40, .16);
  transform: translateY(-3px); border-color: var(--rose);
}
.topic-icon {
  font-size: 24px; color: var(--rose-dark);
  width: 46px; height: 46px; line-height: 46px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.topic-name { font-size: 17.5px; font-weight: 700; color: var(--ink); }
.topic-desc { font-size: 13.8px; color: var(--gray); line-height: 1.65; flex: 1; }
.topic-more {
  font-size: 13.5px; font-weight: 700; color: var(--rose-dark);
  padding-top: 4px; border-top: 1px solid var(--line);
}

/* ---------- blog centre CTA ---------- */
.section-blog-cta { padding-top: 10px; }
.section-blog-cta .post-cta { margin-top: 0; }

/* ---------- article topic chips ---------- */
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.post-chip {
  font-size: 12.5px; font-weight: 600; color: var(--rose-dark);
  background: var(--rose-soft); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; text-decoration: none;
}
.post-chip:hover { background: var(--rose-dark); color: #fff; }

/* ---------- more guides ---------- */
.post-more { margin-top: 46px; }
.post-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.more-card {
  display: flex; gap: 14px; text-decoration: none; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; transition: .2s;
}
.more-card:hover { box-shadow: 0 12px 30px rgba(160, 120, 40, .14); border-color: var(--rose); }
.more-card img {
  width: 92px; height: 66px; object-fit: cover;
  border-radius: 8px; flex-shrink: 0;
}
.more-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.more-body h3 { font-size: 15px; line-height: 1.4; color: var(--ink); }
.more-body p {
  font-size: 12.8px; color: var(--gray); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.more-meta { font-size: 12px; color: var(--gray); }

/* ---------- RTL ---------- */
[dir="rtl"] .post-p,
[dir="rtl"] .post-ul li,
[dir="rtl"] .post-ol li,
[dir="rtl"] .faq-item p { text-align: right; }
[dir="rtl"] .post-table th,
[dir="rtl"] .post-table td { text-align: right; }
[dir="rtl"] .post-head h1,
[dir="rtl"] .post-lead { text-align: right; }
[dir="rtl"] .post-cta h2,
[dir="rtl"] .post-cta p { text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .post-card-lg { grid-template-columns: 1fr; }
  .post-card-lg .post-card-img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  .post-head h1 { font-size: 26px; }
  .post-h2 { font-size: 21px; }
  .post-wrap { padding: 22px 16px 56px; }
  .post-hero img { max-height: 260px; }
  .takeaways { padding: 20px; }
  .post-table { font-size: 13.5px; min-width: 440px; }
  .list-hero { padding: 38px 0 32px; }
  .list-hero h1 { font-size: 26px; }
  .topic-grid { grid-template-columns: 1fr; }
  .post-more-grid { grid-template-columns: 1fr; }
  .post-card-lg .post-card-body { padding: 24px 22px; }
  .post-card-lg .post-card-body h2 { font-size: 20px; }
}
