.blog-hero {
  border-bottom: 1px solid #6b6053;
}

.blog-hero-inner {
  margin: 0 auto;
}

.hero-eyebrow {
  margin: 0 0 20px;
  font-size: clamp(20px, 2vw, 26px);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: #1C1A17;
  line-height: 1.2;
  letter-spacing: .01em;
}

.hero-desc-wrap {
  background: #FDFAF4;
  border: 1px solid #6b6053;
  border-left: 3px solid #8f4f30;
  border-radius: 0 4px 4px 0;
  padding: 16px 20px 14px;
}

.hero-desc {
  font-size: 14px;
  /* WCAG AA: #8a8070 trên #fdfaf4 ~3.73:1 → #6b6053 ~6.2:1 (áp cả thẻ p từ wpautop) */
  color: #6b6053 !important;
  line-height: 1.85;
  max-height: 46px;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(0.4, 0, 0.2, 1);
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-desc p,
.hero-desc li {
  color: #6b6053 !important;
  margin: 0;
}

.hero-desc p + p {
  margin-top: 0.5em;
}

.hero-desc.expanded {
  max-height: 300px;
  mask-image: none;
  -webkit-mask-image: none;
}

.hero-desc-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 5px;
  margin-top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  color: #8f4f30;
  letter-spacing: .04em;
  padding: 0;
  transition: opacity .2s;
}

.hero-desc-toggle:hover {
  opacity: .7;
}

.hero-desc-toggle svg {
  transition: transform .3s;
}

.hero-desc-toggle.open svg {
  transform: rotate(180deg);
}

.blog-page {
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  overflow: visible;
}

.posts-col {
  overflow: visible;
}

.blog-breadcrumb {
  margin: 0 auto;
  padding: 1rem 0;
  font-size: 12px;
  letter-spacing: .04em;
  /* WCAG AA: #6b6053 on #fdfaf4 ~3.73:1 → #6b6053 ~6.2:1 */
  color: #6b6053;
}

/* Ghi đè Yoast / plugin; link “Trang chủ” đủ contrast */
main .blog-breadcrumb a,
main .blog-breadcrumb a:visited,
main .breadcrumb.blog-breadcrumb a,
main .breadcrumb.blog-breadcrumb a:visited {
  color: #6b6053 !important;
  text-decoration: none;
}

main .blog-breadcrumb a:hover,
main .breadcrumb.blog-breadcrumb a:hover {
  color: #8f4f30 !important;
}

.blog-breadcrumb .breadcrumb_last,
.blog-breadcrumb span:not(.bc-sep) {
  color: #1C1A17;
}

.post-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b6053;
  font-style: italic;
}

.post-date-badge::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: #C9A96E;
  flex-shrink: 0;
}

.post-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #6b6053;
  background: #FDFAF4;
  margin-bottom: 28px;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  animation: fade-up .5s .05s ease both;
}

.post-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(28, 26, 23, .09);
}

.featured-list {
  display: grid;
  /* Một bài nổi bật full-width (không còn 2 cột) */
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.featured-list .post-featured {
  margin-bottom: 0;
  height: 100%;
}

.feat-img {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #6b6053;
}

.feat-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  /* WCAG AA: #8f4f30 on #fdfaf4 ~3.47:1 → #8f4f30 ~5.5:1 */
  color: #8f4f30;
  font-weight: 600;
}

.feat-badge::before {
  content: '✦';
  font-size: 8px;
}

.feat-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  color: #1C1A17;
  margin: 0;
}

.feat-excerpt {
  font-size: 13px;
  color: #6b6053;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: #8f4f30;
  letter-spacing: .06em;
  text-decoration: none;
  border-bottom: 1px solid #E8D5A3;
  padding-bottom: 1px;
  transition: border-color .2s;
}

.read-link:hover {
  border-color: #8f4f30;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.post-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #6b6053;
  background: #FDFAF4;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(28, 26, 23, .08);
}

.post-card:nth-child(1) {
  animation: fade-up .5s .1s ease both;
}

.post-card:nth-child(2) {
  animation: fade-up .5s .15s ease both;
}

.post-card:nth-child(3) {
  animation: fade-up .5s .2s ease both;
}

.post-card:nth-child(4) {
  animation: fade-up .5s .25s ease both;
}

.post-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #6b6053;
}

.post-img-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
}

.tag-guide {
  background: #E8F4EF;
  color: #2E6B52;
}

.tag-tip {
  background: #FFF3E0;
  color: #8B5A00;
}

.tag-review {
  background: #F3E8FF;
  color: #5E3A8A;
}

.tag-news {
  background: #FDE8E8;
  color: #8B2020;
}

.post-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-cat {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8f4f30;
  margin-bottom: 6px;
  font-weight: 600;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #1C1A17;
  margin: 0 0 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  padding-top: 10px;
  border-top: 1px solid #6b6053;
  margin-top: auto;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.post-list-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #6b6053;
  border-radius: 8px;
  background: #FDFAF4;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
  align-items: center;
}

.post-list-item:hover {
  border-color: #C9A96E;
  transform: translateX(4px);
}

.list-img {
  width: 88px;
  height: 66px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
  background: #6b6053;
}

.list-cat {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8f4f30;
  font-weight: 600;
  margin-bottom: 3px;
}

.list-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #1C1A17;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #6b6053;
  font-style: italic;
}

.list-meta::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: #C9A96E;
  flex-shrink: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
}

.page-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 4px;
  border: 1px solid #6b6053;
  background: #fff;
  font-size: 13px;
  color: #6b6053;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s;
}

.page-btn:hover {
  border-color: #1C1A17;
  color: #1C1A17;
}

.page-btn.current {
  background: #1C1A17;
  color: #F5F0E8;
  border-color: #1C1A17;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
  position: -webkit-sticky;
  position: sticky;
  top: 88px;
  z-index: 6;
  max-height: none;
  overflow: visible;
  width: 300px;
}

.sb-widget {
  background: #FDFAF4;
  border: 1px solid #6b6053;
  border-radius: 10px;
  overflow: hidden;
}

.sb-widget-head {
  padding: 14px 18px;
  border-bottom: 1px solid #6b6053;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1C1A17;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-widget-head::before {
  content: '✦';
  color: #8f4f30;
  font-size: 9px;
}

.sb-widget-body {
  padding: 16px 18px;
}

.popular-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #6b6053;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-item:hover .pop-title {
  color: #8f4f30;
}

.pop-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  /* WCAG AA: #6b6053 trên #fdfaf4 ~1.3:1 → #6b6053 ~6.2:1 */
  color: #6b6053;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  transition: color .2s;
}

.popular-item:hover .pop-num {
  color: #8f4f30;
}

.pop-title {
  font-size: 13px;
  line-height: 1.4;
  color: #1C1A17;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pop-meta {
  font-size: 11px;
  color: #6b6053;
}

.tip-banner {
  background: linear-gradient(135deg, #F5F0E8, #EEE8DE);
  border: 1px solid #E8D5A3;
  border-radius: 10px;
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.tip-banner::before {
  content: '✦';
  position: absolute;
  top: -8px;
  right: 12px;
  font-size: 48px;
  color: #E8D5A3;
  opacity: .4;
  line-height: 1;
}

.tip-label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C9A96E;
  font-weight: 600;
  margin-bottom: 8px;
}

.tip-text {
  font-size: 13px;
  color: #1C1A17;
  line-height: 1.6;
  font-style: italic;
}

.tip-author {
  font-size: 11px;
  color: #6b6053;
  margin-top: 8px;
}

.feat-img img,
.post-img img,
.list-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .blog-breadcrumb {
    padding-left: 32px;
    padding-right: 32px;
  }

  .blog-hero {
    padding: 36px 32px 28px;
  }

  .blog-page {
    padding: 36px 32px 60px;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .blog-sidebar {
    width: 260px;
    max-height: none;
    overflow: visible;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-breadcrumb {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-hero {
    padding: 32px 20px 28px;
  }

  .blog-page {
    padding: 24px 20px 60px;
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }

  .post-featured {
    grid-template-columns: 1fr;
  }

  .featured-list {
    grid-template-columns: 1fr;
  }

  .feat-img {
    aspect-ratio: 16/9;
    min-height: 0;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}