@import url('base.css');



/* Layout safeguard */
.articles-grid,
.article-card,
.article-thumb,
.article-body {
  min-width: 0;
}
.page-header {
  position: relative;
  padding-top: clamp(6rem, 12vh, 8rem);
  padding-bottom: var(--space-xl);
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(146, 64, 14, 0.18) 0%, transparent 55%),
              linear-gradient(180deg, rgba(28,25,23,0.9) 0%, var(--brand-bg) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--brand-text-muted);
  font-size: var(--text-base);
  max-width: 700px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.article-card {
  composes: card;
  display: flex;
  flex-direction: column;
  background: var(--brand-bg-light);
}

.article-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  margin: var(--space-xs) 0;
}

.article-card:hover .article-thumb img {
  transform: scale(1.06);
}

.article-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.article-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.article-card:hover .article-body h3 {
  color: #fbbf24;
}

.article-excerpt {
  color: var(--brand-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-text-muted);
  font-size: var(--text-xs);
}

.article-meta a {
  color: var(--brand-accent);
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--brand-bg-light);
  color: var(--brand-text-muted);
  transition: all 0.2s ease;
}

.pagination a:hover,
.pagination span.current {
  background: var(--brand-primary);
  color: var(--brand-text);
  border-color: var(--brand-primary);
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
