.wt-post .uagb-post__inner-wrap .uagb-post__image:first-child {
  margin-left: -20px !important;
  margin-right: -20px !important;
  margin-top: -20px !important;
}
.wt-post .uagb-post-pagination-wrap {
  margin-left: 0 !important;
  gap: 20px !important;
  justify-content: center !important;
}

.wt-post .uagb-post-pagination-wrap span,
.wt-post .uagb-post-pagination-wrap a {
  margin: 0 !important;
  padding: 12px 19px !important;
  border-radius: 6px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  align-items: center;
  justify-content: center;
}

.wt-post .uagb-post-pagination-wrap span:hover,
.wt-post .uagb-post-pagination-wrap a:hover {
  background-color: #0d2340 !important;
  color: white !important;
}

.wt-post .uagb-post-pagination-wrap span:not(.current),
.wt-post .uagb-post-pagination-wrap a:not(.current) {
  border: 1px solid #c4c4c4;
}

/* Nút prev và next */
.wt-post .uagb-post-pagination-wrap a.prev,
.wt-post .uagb-post-pagination-wrap a.next {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  /* ẩn text */
  width: 40px;
  /* chỉnh theo ý */
  height: 40px;
  /* chỉnh theo ý */
  padding: 0;
  line-height: 0;
}

/* Icon prev */
.wt-post .uagb-post-pagination-wrap a.prev::before {
  content: "";
  display: block;
  width: 8px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M6.875 0.875L0.875 6.875L6.875 12.875' stroke='%23111827' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Icon next */
.wt-post .uagb-post-pagination-wrap a.next::after {
  content: "";
  display: block;
  width: 8px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M0.875 0.875L6.875 6.875L0.875001 12.875' stroke='%23111827' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Hover prev -> icon trắng */
.wt-post .uagb-post-pagination-wrap a.prev:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M6.875 0.875L0.875 6.875L6.875 12.875' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hover next -> icon trắng */
.wt-post .uagb-post-pagination-wrap a.next:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='14' viewBox='0 0 8 14' fill='none'%3E%3Cpath d='M0.875 0.875L6.875 6.875L0.875001 12.875' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Dấu "..." rút gọn pagination */
.wt-post .uagb-post-pagination-wrap span.dots {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  padding: 0 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.wt-post .uagb-post-pagination-wrap span.dots:hover {
  background-color: transparent !important;
  color: inherit !important;
}

/* ============================================== */
/* ZOOM ẢNH KHI HOVER BÀI VIẾT (wt-post-hover-img) */
/* ============================================== */
.wt-post article {
  border-radius: 8px !important;
  overflow: hidden !important;
  background-color: #fff;
}

.wt-post article .uagb-post__inner-wrap {
  padding-bottom: 24px !important;
}

.wt-post article .uagb-post__image {
    overflow: hidden;
    border-radius: 8px 8px 0 0 !important;
    max-height: 220px;
    margin-bottom: 20px;
}

.wt-post article .uagb-post__image img {
  transition: transform 0.5s ease;
  will-change: transform;
  min-height: 220px;
}

.wt-post article:hover .uagb-post__image img {
  transform: scale(1.05);
}

/* Ẩn breadcrumb mặc định của theme/plugin để dùng custom breadcrumb */
.single-post .ast-breadcrumbs-wrapper,
.single-post .rank-math-breadcrumb,
.single-post #breadcrumbs,
.single-post .yoast-breadcrumb {
  display: none !important;
}

/* Loại bỏ khoảng cách trống phía trên để breadcrumb sát với header */
.single-post .site-content,
.single-post #content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.single-post .site-content > .ast-container {
  padding-top: 0 !important;
}
.wt-related-section-outer {
  width: 100%;
  padding: 0px 0 60px;
}

.wt-related-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.wt-related-posts-title {
  font-size: 1.5rem;
  color: #0d2340;
  margin-bottom: 24px;
  font-weight: 700;
}

.wt-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wt-related-post-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.wt-related-post-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wt-related-post-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.wt-related-post-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.wt-related-post-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.5s ease;
}

.wt-related-post-card:hover .wt-related-post-img {
  transform: scale(1.05);
}

.wt-related-post-body {
  padding: 16px 20px 20px;
}

.wt-related-post-title {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 700;
  color: #0d2340;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.wt-related-post-card:hover .wt-related-post-title {
  color: #e41e26;
}

.wt-related-post-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
  .wt-related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wt-related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wt-related-post-img-wrap {
    height: 200px;
  }
}
