/* ================================================
   HireLikeaPro Blog — Shared Design System
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red: #FF0000;
  --red-dark: #cc0000;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --nav-h: 60px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── READING PROGRESS ──────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── NAV ───────────────────────────────────────────── */
.blog-nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--nav-h);
}
.blog-nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}
.blog-nav-brand img {
  height: 28px;
  width: auto;
}
.blog-nav-cta {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.15s;
}
.blog-nav-cta:hover { background: var(--red-dark); }

/* ── POST HEADER ───────────────────────────────────── */
.post-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.post-header h1 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.lede {
  font-size: 18px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 20px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.post-meta-author { font-weight: 600; color: var(--text); }
.post-meta-sep { color: var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
}
.tag.primary {
  color: var(--red);
  background: #fff0f0;
  border-color: #fca5a5;
}

/* ── POST CONTENT SECTIONS ─────────────────────────── */
.post-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}
.post-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.post-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 24px;
}
.post-section p {
  font-size: 16px;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.7;
}
.post-section ul, .post-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.post-section li {
  font-size: 15px;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.6;
}
.section-intro { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.note {
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-left: 3px solid var(--border);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  margin: 12px 0;
}
.mt-lg { margin-top: 28px; }
.question-item { font-size: 15px; color: #334155; margin-bottom: 10px; line-height: 1.6; }
.phase-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 14px;
}
.example-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 12px 0 16px;
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
}
.example-box p { margin-bottom: 8px; }

/* ── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 14px 0;
}
.card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── COMPARE GRID ──────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.compare-weak, .compare-strong {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.compare-weak { background: #fff8f8; border-left: 4px solid #fca5a5; }
.compare-strong { background: #f0fdf4; border-left: 4px solid #86efac; }
.compare-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.compare-weak .compare-label { color: #ef4444; }
.compare-strong .compare-label { color: #16a34a; }

/* ── CHECK LIST ────────────────────────────────────── */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.check-item:last-child { border-bottom: none; }
.check-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  margin-top: 2px;
}
.check-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.check-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── CTAs ──────────────────────────────────────────── */
.cta-full {
  background: #0f172a;
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
  margin: 8px 0;
}
.cta-full h2 { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.cta-full p { font-size: 16px; color: #94a3b8; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btn-white {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
  transition: background 0.15s;
}
.cta-btn-white:hover { background: var(--red-dark); }
.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  gap: 16px;
  margin: 20px 0;
}
.cta-inline p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.cta-btn-sm {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s;
}
.cta-btn-sm:hover { background: var(--red-dark); }

/* ── RELATED LIST ──────────────────────────────────── */
.related-list { list-style: none; padding: 0; }
.related-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.related-list li:last-child { border-bottom: none; }
.related-list li::before { content: "→ "; color: var(--red); font-weight: 700; }
.related-list a { color: var(--text); text-decoration: none; }
.related-list a:hover { color: var(--red); }

/* ── BLOG INDEX POST CARDS ─────────────────────────── */
a.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.post-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 12px rgba(255,0,0,0.07);
}
.post-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--red);
  margin-bottom: 8px;
}
a.post-card h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
a.post-card p { font-size: 14px; color: var(--muted); margin: 0 0 8px; line-height: 1.55; }
.post-card-meta { font-size: 12px; color: #94a3b8; }

/* ── INFOGRAPHICS ──────────────────────────────────── */
.infographic {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}
.infographic-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

/* Step Flow */
.step-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.step-flow-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 90px; max-width: 110px; }
.step-flow-arrow { font-size: 22px; color: var(--red); align-self: center; padding: 0 4px; opacity: 0.5; }
.step-circle {
  width: 40px; height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 8px;
}
.step-label { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.step-sub { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* Matrix Table */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.matrix-table th {
  background: var(--text);
  color: var(--white);
  text-align: left;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 12px;
}
.matrix-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: #334155;
  vertical-align: top;
  line-height: 1.5;
}
.matrix-table tr:nth-child(even) td { background: #f1f5f9; }
.matrix-table tr:nth-child(odd) td { background: var(--white); }

/* Phase Timeline */
.phase-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.phase-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
}
.phase-num {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 4px;
}
.phase-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.phase-items { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* JD Anatomy */
.jd-anatomy { display: flex; flex-direction: column; gap: 10px; }
.jd-section-row { display: flex; align-items: center; gap: 12px; }
.jd-section-bar { height: 6px; background: var(--red); border-radius: 3px; flex-shrink: 0; }
.jd-section-name { font-size: 13px; font-weight: 600; color: var(--text); min-width: 200px; }
.jd-section-impact { font-size: 12px; color: var(--muted); flex: 1; }

/* ── TEMPLATE BLOCK ────────────────────────────────── */
.template-wrapper {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}
.template-header {
  background: var(--text);
  color: var(--white);
  padding: 20px 24px;
}
.template-header .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  margin-bottom: 6px;
}
.template-header .role { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.template-header .sub { font-size: 13px; color: #94a3b8; }
.template-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.template-section:last-child { border-bottom: none; }
.template-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.template-section p { font-size: 14px; color: #334155; margin-bottom: 8px; line-height: 1.6; }
.template-section ul { padding-left: 18px; }
.template-section li { font-size: 14px; color: #334155; margin-bottom: 6px; line-height: 1.55; }

/* ── FOOTER ────────────────────────────────────────── */
.blog-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.blog-footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.blog-footer-links a:hover { color: var(--red); }
.blog-footer p { font-size: 12px; color: #94a3b8; line-height: 1.6; }
.blog-footer a { color: inherit; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 640px) {
  .post-header { padding: 28px 18px 24px; }
  .post-section { padding: 24px 18px; }
  .compare-grid { grid-template-columns: 1fr; }
  .phase-timeline { grid-template-columns: repeat(2, 1fr); }
  .step-flow { gap: 8px 2px; }
  .step-flow-arrow { display: none; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .jd-section-name { min-width: 140px; font-size: 12px; }
  .jd-section-impact { display: none; }
  .blog-nav-brand span { display: none; }
}
