/* Article pages + blog section */

.blog {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 300ms var(--ease-out);
  cursor: pointer;
  height: 100%;
}

.blog-card:hover {
  border-color: rgba(212,175,55,0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-tag {
  display: inline-block;
  margin: 20px 20px 0;
  padding: 4px 12px;
  background: rgba(212,175,55,0.12);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  width: fit-content;
}

.blog-card-body {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--color-text);
}

.blog-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.blog-card--lazy {
  display: none;
}

.blog-card--lazy.is-visible {
  display: flex;
}

.blog-all {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

#blog-load-more[hidden] {
  display: none;
}

/* Article page layout */
.article-page {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}

.article-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 36px 0 14px;
  color: var(--color-text);
}

.article-content p {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 20px;
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.7;
}

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

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

.article-tip {
  padding: 20px 24px;
  margin: 28px 0;
  background: rgba(212,175,55,0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-tip p {
  margin: 0;
  font-style: italic;
}

.article-cta {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 32px;
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.article-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.article-cta p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-weight: 300;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.article-related {
  max-width: 960px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.article-related h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 28px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-related a {
  display: block;
  padding: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color var(--transition), color var(--transition);
  cursor: pointer;
}

.article-related a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.article-back:hover {
  color: var(--color-accent);
}

.logo--article .logo-city {
  display: inline;
}

@media (max-width: 1024px) {
  .blog-grid,
  .article-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .article-cta-actions {
    flex-direction: column;
  }

  .article-cta-actions .btn {
    width: 100%;
  }
}
