.page-header {
  text-align: center;
  margin: 4rem 0;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  color: var(--color-text);
}

.page-excerpt {
  font-size: 2rem;
  color: var(--color-text-light);
  margin: 0 0 3rem 0;
  line-height: 1.4;
}

.page-meta {
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin-bottom: 4rem;
}

.page-image {
  margin: 0 0 4rem 0;
}

.page-image img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
}

.page-image figcaption {
  font-size: 1.4rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

.page-content {
  max-width: 80rem;
  margin: 0 auto;
  font-size: 1.8rem;
  line-height: 1.7;
}

.page-content h2 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 4rem 0 2rem 0;
  color: var(--color-text);
}

.page-content h3 {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 3.2rem 0 1.6rem 0;
  color: var(--color-text);
}

.page-content p {
  margin: 0 0 2rem 0;
}

.page-content ul,
.page-content ol {
  margin: 0 0 2rem 0;
  padding-left: 3rem;
}

.page-content li {
  margin-bottom: 0.8rem;
}

.page-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 2rem;
  margin: 3rem 0;
  background: var(--color-accent);
  font-style: italic;
  border-radius: 0 0.8rem 0.8rem 0;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.8rem;
  margin: 2rem 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-content th,
.page-content td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.page-content th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.page-content tr:nth-child(even) {
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3.2rem;
  }

  .page-excerpt {
    font-size: 1.8rem;
  }

  .page-content {
    font-size: 1.6rem;
  }

  .page-content ul,
  .page-content ol {
    padding-left: 2rem;
  }
}

/* ============================================
   TAG PAGE
   ============================================ */
.tag-header {
  text-align: center;
  margin: 2rem auto 3rem;
  max-width: 680px;
}

.tag-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tag-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

.tag-image {
  max-width: 240px;
  margin: 1rem auto;
  display: block;
  border-radius: 6px;
}

/* Grid posts */
.tag-posts .news-grid {
  display: block;
}

/* Article card */
.news-article {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.news-article:hover {
  transform: translateY(-4px);
}

.article-image img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Content */
.article-content {
  flex: 1;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-title a {
  color: #000;
  text-decoration: none;
}

.article-title a:hover {
  text-decoration: none;
}

.article-excerpt {
  font-size: 1.4rem;
  color: #444;
  line-height: 1.5;
}

/* Meta info */
.article-meta {
  font-size: 1.2rem;
  color: #777;
  display: flex;
  gap: 0.75rem;
}

.article-meta time {
  white-space: nowrap;
}

.article-meta .author {
  font-weight: 500;
}

/* No posts */
.no-posts {
  text-align: center;
  padding: 3rem 1rem;
  color: #555;
}

.no-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .tag-posts .news-grid {
    grid-template-columns: 1fr;
  }

  .article-image img {
    height: 200px;
  }
}
