/* ============================================================
   JobLock — Blog Stylesheet (blog.css)
   Standalone styles for blog index + article pages.
   Loaded alongside style.css (which handles nav/footer/buttons).
   ============================================================ */

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

/* ----------------------
   Page chrome
   ---------------------- */
body.blog-page {
  background: #f5f4f1;
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------
   Hero
   ---------------------- */
.b-hero {
  background: #1e3a5f;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.b-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(249,115,22,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.b-hero .container {
  position: relative;
  z-index: 1;
}

.b-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.b-breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.b-breadcrumb a:hover { color: #fff; }

.b-breadcrumb-sep { color: rgba(255,255,255,0.3); }

.b-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fdba74;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.b-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.4px;
  max-width: 740px;
  margin: 0 0 1rem;
}

.b-hero-deck {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 0 1.5rem;
}

.b-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
}

.b-meta span { display: inline; }

.b-meta span:not(:last-child)::after {
  content: '·';
  margin: 0 0.6rem;
  color: rgba(255,255,255,0.3);
}

/* ----------------------
   Article layout
   ---------------------- */
.b-body {
  padding: 3rem 0 5rem;
}

.b-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  align-items: start;
}

/* ----------------------
   Article prose
   ---------------------- */
.b-article {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
}

.b-prose {
  font-size: 1.03rem;
  line-height: 1.82;
  color: #2d2d2d;
}

.b-prose > p:first-child {
  font-size: 1.12rem;
  color: #1a1a1a;
  line-height: 1.75;
}

.b-prose p { margin: 0 0 1.3rem; }

.b-prose h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.2px;
}

.b-prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 2rem 0 0.6rem;
}

.b-prose h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
}

.b-prose ul,
.b-prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.3rem;
}

.b-prose li { margin-bottom: 0.55rem; }

.b-prose strong { color: #111827; font-weight: 700; }

.b-prose a {
  color: #1e3a5f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Callout */
.b-callout {
  background: #fff8f0;
  border-left: 3px solid #f97316;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.6rem;
}

.b-callout h3 {
  margin: 0 0 0.45rem !important;
  font-size: 1rem !important;
  color: #c2500a !important;
}

.b-callout p { margin: 0; color: #4b3728; }

/* Highlight box (for copy-paste templates) */
.b-highlight {
  background: #f0f6ff;
  border: 1px solid #c7d9f5;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 0 0 1rem;
}

.b-highlight p { margin: 0; }

/* Table */
.b-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.6rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.b-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.b-table th {
  background: #f9fafb;
  font-weight: 700;
  color: #374151;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.b-table td {
  padding: 0.7rem 1rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.b-table tr:last-child td { border-bottom: none; }

/* Checklist */
.b-checklist {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.6rem;
}

.b-checklist-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: #fafaf9;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.b-check {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #1e3a5f;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.b-checklist-item h4 { margin: 0 0 0.25rem; }
.b-checklist-item p { margin: 0; font-size: 0.92rem; color: #4b5563; }

/* FAQ */
.b-faq { display: grid; gap: 0.75rem; margin: 1rem 0 1.6rem; }

.b-faq-item {
  padding: 1rem 1.2rem;
  background: #fafaf9;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.b-faq-item h3 {
  margin: 0 0 0.4rem !important;
  font-size: 0.98rem !important;
  color: #111827 !important;
}

.b-faq-item p { margin: 0; font-size: 0.93rem; color: #4b5563; }

/* Source list */
.b-sources { display: grid; gap: 1rem; margin: 1rem 0 1.6rem; }

.b-sources a {
  font-weight: 600;
  color: #1e3a5f;
}

.b-sources p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: #6b7280;
}

/* CTA box */
.b-cta-box {
  background: linear-gradient(135deg, #1a3356 0%, #0f2238 100%);
  border-radius: 16px;
  padding: 2rem 2.2rem;
  margin: 2rem 0 1.6rem;
  position: relative;
  overflow: hidden;
}

.b-cta-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(249,115,22,0.22) 0%, transparent 60%);
  pointer-events: none;
}

.b-cta-box > * { position: relative; }

.b-cta-box h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0 0 0.6rem !important;
}

.b-cta-box p {
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.2rem;
  max-width: 480px;
}

/* ----------------------
   Sidebar
   ---------------------- */
.b-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
}

.b-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

.b-panel h3 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.9rem;
}

.b-panel h4 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.9rem;
}

.b-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.b-panel li a {
  display: block;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.15s;
}

.b-panel li:last-child a { border-bottom: none; }

.b-panel li a:hover { color: #1e3a5f; }

/* ----------------------
   Related posts
   ---------------------- */
.b-related {
  background: #eeecea;
  padding: 3rem 0;
}

.b-related-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.b-related h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 2rem;
}

.b-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.b-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}

.b-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.b-card-band {
  height: 5px;
}

.b-card-band-orange { background: #f97316; }
.b-card-band-navy   { background: #1e3a5f; }
.b-card-band-teal   { background: #0d9488; }

.b-card-body { padding: 1.25rem 1.35rem 1.4rem; }

.b-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.b-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.b-card p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

/* ----------------------
   Blog index
   ---------------------- */
.b-index-hero {
  background: #1e3a5f;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.b-index-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 75% 40%, rgba(249,115,22,0.2) 0%, transparent 55%);
  pointer-events: none;
}

.b-index-hero .container { position: relative; z-index: 1; }

.b-index-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0 0 1rem;
  max-width: 560px;
}

.b-index-hero p {
  color: rgba(255,255,255,0.68);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 0 1.5rem;
}

.b-index-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdba74;
  margin-bottom: 1rem;
}

.b-index-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

.b-index-body {
  padding: 3.5rem 0 5rem;
}

.b-index-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.b-post-list { display: grid; gap: 1.5rem; }

.b-post-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.18s, box-shadow 0.18s;
  border-left: 3px solid transparent;
}

.b-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  border-left-color: #f97316;
}

.b-post-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 0.5rem;
}

.b-post-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 0.55rem;
}

.b-post-card p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

.b-post-card-meta {
  font-size: 0.8rem;
  color: #9ca3af;
}

.b-post-card-arrow {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-top: 0.25rem;
  transition: color 0.15s, transform 0.15s;
}

.b-post-card:hover .b-post-card-arrow {
  color: #f97316;
  transform: translateX(3px);
}

/* Index sidebar */
.b-index-sidebar { display: grid; gap: 1.25rem; }

.b-index-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

.b-index-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem;
}

.b-index-panel p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.b-index-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.b-index-panel li {
  font-size: 0.9rem;
  color: #4b5563;
  padding-left: 1rem;
  position: relative;
}

.b-index-panel li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #f97316;
  font-size: 0.75rem;
}

/* Email signup */
.b-signup-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.b-signup-form input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  min-width: 0;
}

.b-signup-form input:focus {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}

.b-signup-note {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0.5rem 0 0;
}

/* ----------------------
   Responsive
   ---------------------- */
@media (max-width: 1024px) {
  .b-layout {
    grid-template-columns: 1fr 220px;
    gap: 1.75rem;
  }

  .b-index-grid {
    grid-template-columns: 1fr 280px;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .b-hero { padding: 2.5rem 0 3rem; }

  .b-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  .b-layout {
    grid-template-columns: 1fr;
  }

  .b-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .b-cards {
    grid-template-columns: 1fr;
  }

  .b-index-grid {
    grid-template-columns: 1fr;
  }

  .b-index-sidebar {
    grid-template-columns: 1fr;
  }

  .b-post-card {
    grid-template-columns: 1fr;
  }

  .b-post-card-arrow { display: none; }

  .b-article { padding: 1.5rem 1.25rem; }
}

@media (max-width: 480px) {
  .b-sidebar {
    grid-template-columns: 1fr;
  }

  .b-signup-form { flex-direction: column; }
}
