*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #374151;
  line-height: 1.6;
  background: #fff;
}

/* ── Nav ── */
.nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo { font-size: 1.3rem; font-weight: 800; color: #111827; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: #4a6cf7; }
.nav-cta {
  background: #4a6cf7; color: #fff; padding: 9px 22px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: background 0.2s;
}
.nav-cta:hover { background: #3655d4; }

/* ── Blog Index ── */
.blog-hero {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 60px 24px;
  text-align: center;
}
.blog-hero h1 { font-size: 2.2rem; font-weight: 800; color: #111827; letter-spacing: -0.5px; margin-bottom: 12px; }
.blog-hero p  { color: #6b7280; font-size: 1rem; max-width: 480px; margin: 0 auto; }

.blog-grid {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-3px); }
.post-card-body { padding: 24px; flex: 1; }
.post-tag {
  display: inline-block; background: #eff2ff; color: #4a6cf7;
  border-radius: 4px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: 0.3px;
}
.post-card h2 { font-size: 1.05rem; font-weight: 700; color: #111827; line-height: 1.4; margin-bottom: 10px; }
.post-card p  { font-size: 0.875rem; color: #6b7280; line-height: 1.6; }
.post-card-footer {
  padding: 14px 24px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.8rem;
  color: #4a6cf7;
  font-weight: 600;
}

/* ── Article Page ── */
.breadcrumb {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 0.8rem;
  color: #9ca3af;
}
.breadcrumb a { color: #9ca3af; text-decoration: none; }
.breadcrumb a:hover { color: #4a6cf7; }

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.article-tag {
  background: #eff2ff; color: #4a6cf7; border-radius: 4px;
  padding: 4px 12px; font-size: 0.78rem; font-weight: 700;
}
.article-date { font-size: 0.82rem; color: #9ca3af; }

.article-wrap h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.article-lead {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.75;
  border-left: 4px solid #4a6cf7;
  padding-left: 18px;
  margin-bottom: 40px;
}

.article-body { font-size: 0.975rem; line-height: 1.8; }
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 40px 0 14px;
  letter-spacing: -0.3px;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 28px 0 10px;
}
.article-body p  { margin-bottom: 18px; color: #374151; }
.article-body ul, .article-body ol {
  margin: 0 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body li { color: #374151; }
.article-body strong { color: #111827; }

.steps-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
}
.steps-box ol { margin-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.steps-box li { font-size: 0.95rem; line-height: 1.6; color: #374151; }
.steps-box li strong { color: #111827; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #4a6cf7 0%, #3655d4 100%);
  border-radius: 16px;
  padding: 36px 32px;
  margin: 48px 0;
  text-align: center;
  color: #fff;
}
.cta-banner h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.cta-banner p  { font-size: 0.95rem; color: rgba(255,255,255,0.8); margin-bottom: 22px; }
.cta-banner a  {
  display: inline-block;
  background: #fff; color: #4a6cf7;
  padding: 13px 32px; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: background 0.2s;
}
.cta-banner a:hover { background: #f0f3ff; }

/* ── Related Posts ── */
.related { margin-top: 56px; }
.related h2 { font-size: 1.2rem; font-weight: 700; color: #111827; margin-bottom: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.related-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.related-card span { font-size: 0.72rem; font-weight: 700; color: #4a6cf7; display: block; margin-bottom: 6px; }
.related-card p { font-size: 0.875rem; font-weight: 600; color: #111827; line-height: 1.4; }

/* ── Footer ── */
footer {
  background: #111827;
  color: rgba(255,255,255,0.55);
  padding: 44px 0;
  text-align: center;
}
footer .logo-foot {
  font-size: 1.1rem; font-weight: 800; color: rgba(255,255,255,0.9);
  text-decoration: none; display: inline-block; margin-bottom: 10px;
}
footer .logo-foot span { color: #4a6cf7; }
footer p { font-size: 0.84rem; line-height: 1.9; }
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,0.9); }

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.7rem; }
  .article-wrap h1 { font-size: 1.5rem; }
  .cta-banner { padding: 28px 22px; }
}
