/* Resume88 Blog — shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ── */
.nav {
  border-bottom: 1px solid #f1f5f9;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: #0f172a;
  letter-spacing: -0.3px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-logo span { color: #2563eb; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.nav-links a { color: #64748b; font-weight: 500; }
.nav-links a:hover { color: #2563eb; text-decoration: none; }
.nav-cta {
  background: #2563eb;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(37,99,235,0.15);
  transition: all 0.2s ease;
}
.nav-cta:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  text-decoration: none !important;
}

/* ── Article ── */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.post-meta .category {
  background: #eff6ff;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 20px;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 40px;
  font-weight: 400;
}
article h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
}
article h3 {
  font-size: 21px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}
article h4 {
  font-size: 17px;
  font-weight: 700;
  color: #334155;
  margin-top: 24px;
  margin-bottom: 8px;
}
article p {
  margin-bottom: 18px;
  color: #334155;
}
article ul, article ol {
  margin: 0 0 22px 22px;
  color: #334155;
}
article li {
  margin-bottom: 8px;
  padding-left: 4px;
}
article strong { color: #0f172a; font-weight: 700; }
article em { color: #475569; }
article blockquote {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
  color: #1e3a8a;
  font-style: italic;
}
article blockquote p:last-child { margin-bottom: 0; }

article code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
}
article hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 48px 0;
}

/* Callout box */
.callout {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
}
.callout h3 {
  margin-top: 0;
  color: #1e40af;
  font-size: 18px;
}
.callout p { color: #1e3a8a; margin-bottom: 12px; }
.callout p:last-child { margin-bottom: 0; }
.callout-cta {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(37,99,235,0.2);
}
.callout-cta:hover {
  background: #1d4ed8;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}

/* Example / tip box */
.tip, .example, .warning {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  border: 1px solid;
}
.tip { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.tip strong { color: #15803d; }
.example { background: #fafaf9; border-color: #e7e5e4; color: #44403c; }
.example strong { color: #1c1917; }
.warning { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.warning strong { color: #991b1b; }

/* Stat highlight */
.stat {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
}

/* Table of contents */
.toc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 15px;
}
.toc-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 6px; padding-left: 0; }
.toc a { color: #475569; }
.toc a:hover { color: #2563eb; }

/* Bottom CTA banner */
.final-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0 0;
}
.final-cta h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 0;
}
.final-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  font-size: 15px;
}
.final-cta a.btn {
  display: inline-block;
  background: #fff;
  color: #2563eb !important;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.final-cta a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none !important;
}
.final-cta .trust { font-size: 12px; opacity: 0.7; margin-top: 12px; }

/* Related posts */
.related {
  border-top: 1px solid #e2e8f0;
  margin-top: 64px;
  padding-top: 40px;
}
.related h3 {
  font-size: 14px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  font-weight: 700;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  transition: all 0.2s ease;
}
.related-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  text-decoration: none;
}
.related-card-title {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.4;
}
.related-card-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Footer */
footer {
  border-top: 1px solid #f1f5f9;
  padding: 32px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
footer a { color: #64748b; margin: 0 8px; }

/* ── Blog index grid ── */
.hero-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 20px 40px;
}
.hero-block h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 14px;
}
.hero-block p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 24px;
}
.post-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.post-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 26px;
  color: inherit;
  transition: all 0.25s ease;
}
.post-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.08);
  text-decoration: none;
}
.post-card .category {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.post-card h2 {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}
.post-card p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}
.post-card .read {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  display: inline-block;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  article { padding: 32px 18px 60px; }
  article h2 { font-size: 24px; margin-top: 36px; }
  article h3 { font-size: 19px; }
  .final-cta { padding: 32px 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
