/* ==========================================================================
   CAT-8 — 2-col Overlay Grid với wide cards xen kẽ
   ========================================================================== */
.cat-8__header {
  padding: 3rem 4rem 2.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.cat-8__header-inner { max-width: 700px; }
.cat-8__title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  margin: 0 0 .4rem; color: var(--color-text); letter-spacing: -.02em;
}
.cat-8__desc { color: var(--color-muted); margin: 0 0 .5rem; font-size: 1rem; }
.cat-8__count {
  display: inline-block; font-size: .72rem; color: var(--color-muted);
  border: 1px solid var(--color-border); padding: .2rem .7rem; border-radius: 20px;
}

.cat-8__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 0;
}
.cat-8__card {
  position: relative; display: flex; align-items: flex-end;
  text-decoration: none; overflow: hidden;
  background: var(--color-secondary) center/cover no-repeat;
  min-height: 280px; transition: filter .3s;
}
.cat-8__card--wide { grid-column: span 2; min-height: 380px; }
.cat-8__card:hover { filter: brightness(1.08); }
.cat-8__card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
}
.cat-8__card-body {
  position: relative; z-index: 1; padding: 1.5rem 1.75rem;
  color: #fff; display: flex; flex-direction: column; gap: .4rem;
}
.cat-8__card--wide .cat-8__card-body { padding: 2rem 3rem; }
.cat-8__card-title {
  font-size: .95rem; font-weight: 800; line-height: 1.3; color: #fff; margin: 0;
  transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-8__card--wide .cat-8__card-title { font-size: clamp(1.2rem, 2.2vw, 1.8rem); -webkit-line-clamp: 3; }
.cat-8__card:hover .cat-8__card-title { color: var(--color-primary); }
.cat-8__card-meta { font-size: .68rem; color: rgba(255,255,255,.5); }

@media (max-width: 768px) {
  .cat-8__grid { grid-template-columns: 1fr; }
  .cat-8__card--wide { grid-column: span 1; min-height: 280px; }
  .cat-8__header { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .cat-8__card { min-height: 220px; }
  .cat-8__card-body { padding: 1.25rem; }
}

.cat-8__cell:hover .cat-8__cell-overlay { opacity: .9; }
.cat-8__cell-body {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  color: #fff;
}
.cat-8__cell-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: .35rem 0 .3rem;
  line-height: 1.3;
}
.cat-8__cell-title--sm { font-size: .875rem; }
.cat-8__cell-meta { font-size: .72rem; opacity: .7; }

@media (max-width: 1024px) {
  .cat-8__bento { padding: 2rem; }
  .cat-8__row-top { height: 340px; }
  .cat-8__row-bottom { height: 200px; }
  .cat-8__header { padding: 2.5rem 2rem; }
}
@media (max-width: 768px) {
  .cat-8__row-top { grid-template-columns: 1fr; height: auto; }
  .cat-8__cell--big { height: 300px; }
  .cat-8__col-side { flex-direction: row; }
  .cat-8__cell--tall { height: 180px; }
  .cat-8__row-bottom { grid-template-columns: repeat(2, 1fr); height: auto; }
  .cat-8__cell--square { height: 180px; }
  .cat-8__header { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .cat-8__bento { padding: 1rem; }
  .cat-8__col-side { flex-direction: column; }
  .cat-8__row-bottom { grid-template-columns: 1fr; }
  .cat-8__cell--big { height: 260px; }
  .cat-8__cell--tall { height: 200px; }
  .cat-8__cell--square { height: 200px; }
}