.wnvcat-page {
  --wnvcat-bg: #f6f7f9;
  --wnvcat-paper: #ffffff;
  --wnvcat-text: #111827;
  --wnvcat-muted: #5f6368;
  --wnvcat-border: #e8e8e8;
  --wnvcat-accent: #d32f2f;
  width: 100%;
  max-width: none;
}

body.ast-right-sidebar .wnvcat-page,
body.ast-left-sidebar .wnvcat-page,
body.ast-separate-container .wnvcat-page {
  width: 100% !important;
  max-width: none !important;
}

body.ast-separate-container .wnvcat-page .ast-article-post,
body.ast-separate-container .wnvcat-page .ast-article-single {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.wnvcat-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.wnvcat-hero {
  padding: 44px 0 20px;
}

.wnvcat-title {
  margin: 0;
  color: var(--wnvcat-text);
  font-size: clamp(2rem, 4vw, 3rem);
}

.wnvcat-description {
  margin: 12px 0 0;
  color: var(--wnvcat-muted);
  line-height: 1.8;
}

.wnvcat-body {
  padding: 10px 0 56px;
}

.wnvcat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.wnvcat-list {
  display: grid;
  gap: 16px;
}

.wnvcat-post {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--wnvcat-border);
  border-radius: 12px;
  background: var(--wnvcat-paper);
  overflow: hidden;
  padding: 14px;
  margin: 0;
}

.wnvcat-thumb-link {
  display: block;
}

.wnvcat-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.wnvcat-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffe0d2, #ffd2c3);
  color: #8c2f0f;
  font-weight: 700;
}

.wnvcat-meta {
  margin: 0;
  color: var(--wnvcat-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wnvcat-post-title {
  margin: 8px 0;
  font-size: 1.45rem;
  line-height: 1.25;
}

.wnvcat-post-title a {
  color: var(--wnvcat-text);
  text-decoration: none;
}

.wnvcat-post-title a:hover {
  color: var(--wnvcat-accent);
}

.wnvcat-excerpt {
  margin: 0;
  color: var(--wnvcat-muted);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wnvcat-readmore {
  display: inline-block;
  margin-top: 10px;
  color: var(--wnvcat-accent);
  text-decoration: none;
  font-weight: 700;
}

.wnvcat-readmore:hover {
  text-decoration: underline;
}

.wnvcat-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.wnvcat-page-item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--wnvcat-border);
  background: #fff;
  color: #262626;
  text-decoration: none;
  font-weight: 600;
  padding: 0 12px;
}

.wnvcat-page-item .page-numbers.current {
  background: var(--wnvcat-accent);
  border-color: var(--wnvcat-accent);
  color: #fff;
}

.wnvcat-sidebar {
  position: sticky;
  top: 20px;
}

.wnvcat-sidebar .widget,
.wnvcat-widget {
  border: 1px solid var(--wnvcat-border);
  border-radius: 10px;
  background: var(--wnvcat-paper);
  padding: 14px;
}

.wnvcat-sidebar .widget + .widget,
.wnvcat-widget + .wnvcat-widget {
  margin-top: 14px;
}

.wnvcat-sidebar .widget-title,
.wnvcat-widget-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.wnvcat-sidebar .widget ul,
.wnvcat-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wnvcat-sidebar .widget li,
.wnvcat-categories li {
  border-bottom: 1px solid #f1f1f1;
  padding: 8px 0;
}

.wnvcat-sidebar .widget li:last-child,
.wnvcat-categories li:last-child {
  border-bottom: 0;
}

.wnvcat-categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wnvcat-sidebar a,
.wnvcat-categories a {
  color: var(--wnvcat-text);
  text-decoration: none;
}

.wnvcat-sidebar a:hover,
.wnvcat-categories a:hover {
  color: var(--wnvcat-accent);
}

.wnvcat-empty {
  margin: 0;
  color: var(--wnvcat-muted);
}

@media (max-width: 1080px) {
  .wnvcat-layout {
    grid-template-columns: 1fr;
  }

  .wnvcat-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .wnvcat-post {
    grid-template-columns: 1fr;
    padding: 12px;
  }
}
