/* ── Blog overview ──────────────────────────────────────────────────────── */

.blog-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0.5rem 0;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 80px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.blog-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  background: rgba(245, 166, 35, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.blog-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.blog-card-arrow {
  font-size: 0.9rem;
  color: var(--orange);
  margin-top: auto;
}

/* ── Blog article page ──────────────────────────────────────────────────── */

.blog-article {
  padding: 120px 0 80px;
}

.article-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.back-link {
  color: var(--orange);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.article-meta time,
.reading-time {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 2rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.article-content p {
  margin: 0 0 1.25rem;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.5rem;
}

.article-content ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.article-content ul li {
  margin-bottom: 0.5rem;
}

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

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

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

/* CTA box within article */
.article-cta {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
}

.article-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text);
}

.article-cta p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Author box */
.article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.author-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author strong {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.article-author span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Blog teaser on main page ────────────────────────────────────────────── */

.blog-teaser-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.blog-teaser-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-teaser-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0;
}

.blog-teaser-header a {
  color: var(--orange);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .blog-teaser-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
