.wt-filter-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
/* ── Filter Tabs ─────────────────────────────────────────── */
.wt-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 80px 0 24px 0;
}

.wt-tab-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #d0d0d0;
  background: #fff;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.4;
}

.wt-tab-btn:hover {
  border-color: #888;
  color: #111;
}

.wt-tab-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* ── Post List ───────────────────────────────────────────── */
.wt-posts-list {
  display: flex;
  flex-direction: column;
  gap:40px;
  transition: opacity 0.2s ease;
}

.wt-post-item {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* Thumbnail */
.wt-post-thumb-wrap {
    width: 23.33%;
    max-width: 280px;
    flex-shrink: 0;
    text-decoration: none;
}

.wt-post-thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 100%;
  border-radius: 10px;
}

.wt-post-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.wt-post-thumb-wrap:hover .wt-post-thumb-inner img {
  transform: scale(1.05);
}

.wt-no-thumb {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
}

/* Badge New */
.wt-post-badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fdf0e8;
  border: 1px solid #c8521a;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  color: #c8521a;
  line-height: 1.4;
  pointer-events: none;
}

/* Post Content */
.wt-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

/* Category tag */
.wt-post-cat-tag {
  display: inline-block;
  font-size: 11px;
  background: #f0ede7;
  color: #111110;
  border: 1px solid #d0d0d0;
  border-radius: 100px;
  padding: 4px 10px;
  width: fit-content;
  line-height: 1.5;
}

/* Title */
.wt-post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  margin-top: 8px;
  color: #111;
}

.wt-post-title a {
  text-decoration: none;
  color: inherit;
}

.wt-post-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Excerpt */
.wt-post-excerpt {
  font-size: 14px;
  color: #A89F93;
  line-height: 1.55;
  margin: 0;
  margin-top: 12px;
}

/* Meta */
.wt-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
  margin-top: 24px;
}

.wt-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.wt-meta-divider {
  color: #d0d0d0;
}

/* ── No Posts ────────────────────────────────────────────── */
.wt-no-posts {
  padding: 40px 0;
  text-align: center;
  color: #999;
  font-size: 15px;
}

/* ── Loading Spinner ─────────────────────────────────────── */
.wt-loading {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.wt-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e0e0e0;
  border-top-color: #111;
  border-radius: 50%;
  animation: wt-spin 0.7s linear infinite;
}

@keyframes wt-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Pagination Bar ──────────────────────────────────────── */
.wt-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 16px;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Pagination Nav ──────────────────────────────────────── */
.wt-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wt-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wt-page-btn:hover:not([disabled]):not(.active) {
  border-color: #aaa;
  color: #111;
}

.wt-page-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.wt-page-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Nút prev/next to hơn một chút */
.wt-page-prev,
.wt-page-next {
  font-size: 18px;
  color: #555;
  padding: 0 8px;
}

/* Dấu chấm ... */
.wt-page-dots {
  font-size: 14px;
  color: #aaa;
  padding: 0 4px;
  line-height: 36px;
  letter-spacing: 2px;
  user-select: none;
}

/* ── Showing text ────────────────────────────────────────── */
.wt-showing {
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  margin-left: auto;
}



.wt-fade-out {
  opacity: 0;
}

.wt-fade-in {
  animation: wtFadeIn 0.3s ease forwards;
}

@keyframes wtFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .wt-filter-tabs {
    padding-top: 40px;
  }

  .wt-posts-list{
    gap: 24px;
  }

   .wt-post-item {
    gap: 12px;
    flex-direction: column;
  }

  .wt-post-thumb-wrap {
    width: 100%;
    max-width: 100%;
  }

  .wt-post-thumb-inner {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .wt-post-title {
    font-size: 15px;
  }

  .wt-filter-tabs {
    gap: 6px;
  }

  .wt-tab-btn {
    font-size: 13px;
    padding: 6px 14px;
  }
  .wt-pagination-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wt-showing {
    margin-left: 0;
  }

  .wt-page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
