/* ================= BLOG & BÀI VIẾT APPDESKTOP ================= */
:root {
  --blog-brand: #B26E28;
  --blog-brand-dark: #8F551B;
  --blog-ink: #231F20;
  --blog-muted: #6E6A67;
  --blog-border: #E8DFD3;
  --blog-cream: #FAF5ED;
  --blog-shadow: 0 6px 24px rgba(35, 31, 32, 0.04);
}

/* Danh sách bài viết */
.blog-public-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.blog-hero {
  background: linear-gradient(135deg, var(--blog-cream) 0%, #F2E4D0 100%);
  border: 1px solid var(--blog-border);
  border-radius: 22px;
  padding: 28px 26px;
  margin-bottom: 24px;
}

.blog-hero h1 {
  font-size: 26px;
  font-weight: 600;
  color: var(--blog-ink);
  margin: 0 0 6px;
}

.blog-hero p {
  font-size: 15px;
  color: var(--blog-muted);
  max-width: 680px;
  margin: 0;
}

.blog-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.blog-cat-pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--blog-border);
  background: #FFFFFF;
  color: var(--blog-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.blog-cat-pill.active,
.blog-cat-pill:hover {
  background: var(--blog-brand);
  border-color: var(--blog-brand);
  color: #FFFFFF;
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.blog-post-card {
  background: #FFFFFF;
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--blog-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.blog-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(35, 31, 32, 0.08);
}

.bpc-thumb {
  width: 100%;
  height: 195px;
  object-fit: cover;
  background: var(--blog-cream);
}

.bpc-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bpc-cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: var(--blog-brand-dark);
  background: #F3E5D3;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-decoration: none;
}

.bpc-title {
  font-size: 17.5px;
  font-weight: 600;
  color: var(--blog-ink);
  line-height: 1.4;
  margin: 0 0 8px;
}

.bpc-excerpt {
  font-size: 14px;
  color: var(--blog-muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.bpc-meta {
  font-size: 12.5px;
  color: #8C857E;
  display: flex;
  justify-content: space-between;
}

/* Chi tiết bài viết */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 18px 60px;
}

.article-breadcrumb {
  font-size: 13.5px;
  color: var(--blog-muted);
  margin-bottom: 16px;
}

.article-breadcrumb a {
  color: var(--blog-brand-dark);
  text-decoration: none;
}

.article-box {
  background: #FFFFFF;
  border: 1px solid var(--blog-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--blog-shadow);
}

.article-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--blog-ink);
  line-height: 1.35;
  margin: 10px 0 12px;
}

.article-meta {
  font-size: 13.5px;
  color: var(--blog-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blog-border);
  margin-bottom: 18px;
}

.article-sapo {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: #4E3E31;
  margin: 0 0 18px;
}

.article-cover {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 22px;
  display: block;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--blog-ink);
}

.article-content h2 {
  font-size: 21px;
  font-weight: 600;
  color: var(--blog-brand-dark);
  margin: 24px 0 10px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 14px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 14px 0;
  display: block;
}

/* Liên kết sản phẩm tự động chèn trong bài */
.article-content .kaba-inline-prod-link {
  display: inline-block;
  vertical-align: baseline;
  padding: 0 8px;
  margin: 0 2px;
  border-radius: 999px;
  background: #FAF2E6;
  border: 1px solid #E2C5A1;
  color: var(--blog-brand-dark);
  font-weight: 600;
  line-height: 1.55;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.article-content .kaba-inline-prod-link::after {
  content: " ↗";
  font-size: 11px;
  opacity: 0.85;
}

.article-content .kaba-inline-prod-link:hover {
  background: var(--blog-brand);
  border-color: var(--blog-brand);
  color: #FFFFFF;
}

/* Bài viết liên quan */
.blog-related-sec {
  margin-top: 34px;
}

.blog-related-sec h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--blog-ink);
  margin: 0 0 16px;
}
