/* Blog listing and article layout — uses main site variables via ../styles.css */

.blog-page .blog-inner,
.article-page .article-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-hero {
  padding: 48px 0 40px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.blog-list {
  list-style: none;
  padding: 0 0 64px;
}

.blog-list li {
  border-bottom: 1px solid var(--gray-200);
}

.blog-list article {
  display: block;
}

.blog-list li:first-child {
  border-top: 1px solid var(--gray-200);
}

.blog-list a {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  color: var(--gray-800);
  transition: color 0.2s, background 0.2s;
}

.blog-list a:hover {
  color: var(--violet-600);
  background: var(--gray-50);
}

.blog-list .post-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.blog-list .post-date {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.blog-list .post-excerpt {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-top: 8px;
  line-height: 1.5;
}

/* Article (single post) */
.article-page main {
  padding: 32px 0 64px;
}

.article-header {
  margin-bottom: 28px;
}

.article-header .post-date {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.article-header h1 {
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.article-hero {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  /* Consistent 16:9 proportion so every hero image looks balanced */
  aspect-ratio: 16 / 9;
}

.article-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 32px 0 12px;
  padding-bottom: 4px;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 24px 0 10px;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--gray-800);
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--violet-600);
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-cta {
  margin-top: 40px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.article-cta h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.article-cta p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.article-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  background: var(--gradient-hero);
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.related-posts-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.related-posts-section h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.related-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  margin-bottom: 8px;
}

.related-posts a {
  color: var(--violet-600);
  text-decoration: none;
  font-size: 0.95rem;
}

.related-posts a:hover {
  text-decoration: underline;
}

.article-nav {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.article-nav a {
  color: var(--violet-600);
  text-decoration: none;
}

.article-nav a:hover {
  text-decoration: underline;
}
