/* ═══════════════════════════════════════════════════════════════
   BLOG.CSS — Beeps Academy Blog Pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.blog-main { padding-top: 136px; padding-bottom: 0; }

.blog-content {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.blog-section {
  padding: 56px 0;
}

.blog-section--tinted {
  background: #f9f7ff;
}

/* ── Hero ── */
.blog-hero {
  background: linear-gradient(135deg, #1a0a42 0%, #0f172a 100%);
  padding: 72px 52px 56px; /* horizontal padding prevents edge bleed */
  color: #fff;
}

.blog-hero-inner {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) { /* mobile */
  .blog-hero { padding: 56px 24px 40px; }
}

.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(167, 139, 250, .15);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, .25);
}

.blog-tag--year {
  background: rgba(109, 40, 217, .3);
  color: #c4b5fd;
}

.blog-read-time {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-left: 4px;
}

.blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 20px;
}

.blog-hero h1 em {
  font-style: normal;
  color: #a78bfa;
  font-family: 'Fraunces', serif;
}

.blog-hero-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,.78);
  margin-bottom: 24px;
  max-width: 700px;
}

.blog-author-row {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.blog-author-name { color: rgba(255,255,255,.8); font-weight: 600; }
.blog-author-sep { color: rgba(255,255,255,.25); }

/* ── Table of Contents ── */
.blog-toc {
  background: #f0e9ff;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px auto;
  max-width: 780px;
  border-left: 4px solid #6d28d9;
}

.blog-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6d28d9;
  margin-bottom: 12px;
}

.blog-toc-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-toc-list li { font-size: 14px; }

.blog-toc-list a {
  color: #4c1d95;
  text-decoration: none;
  font-weight: 500;
}

.blog-toc-list a:hover { text-decoration: underline; }

/* ── Body Typography ── */
.blog-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}

.blog-lead {
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #1f2937 !important;
  font-weight: 400;
}

.blog-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #1a0a42;
  margin: 0 0 16px;
  line-height: 1.3;
}

.blog-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a0a42;
  margin: 24px 0 12px;
}

/* ── Callout ── */
.blog-callout {
  background: #f5f0ff;
  border-left: 4px solid #6d28d9;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
}

.blog-callout strong { color: #4c1d95; }

.blog-callout--purple {
  background: linear-gradient(135deg, #ede9fe, #f5f0ff);
  border-color: #7c3aed;
}

/* ── Cards Grid ── */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(109, 40, 217, .1);
}

.blog-card-icon { font-size: 1.5rem; margin-bottom: 10px; }

.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a0a42;
  margin-bottom: 8px;
}

.blog-card-body {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
}

/* ── Job Roles List ── */
.blog-roles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.blog-role-item {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(109, 40, 217, .1);
}

.blog-role-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.blog-role-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a0a42;
}

.blog-role-salary {
  font-size: 14px;
  font-weight: 700;
  color: #6d28d9;
  background: #f0e9ff;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.blog-role-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 12px;
}

.blog-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-role-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: #f5f0ff;
  color: #5b21b6;
  border: 1px solid rgba(109, 40, 217, .12);
}

/* ── Salary Table ── */
.blog-salary-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 14px;
  border: 1px solid rgba(109, 40, 217, .12);
}

.blog-salary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.blog-salary-table thead {
  background: #1a0a42;
  color: #fff;
}

.blog-salary-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}

.blog-salary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(109, 40, 217, .08);
  color: #374151;
}

.blog-salary-table tbody tr:last-child td { border-bottom: none; }

.blog-salary-table tbody tr:nth-child(odd) { background: #faf9ff; }

.blog-salary-highlight td {
  background: #f0e9ff !important;
  font-weight: 600;
  color: #1a0a42 !important;
}

.blog-salary-num {
  font-weight: 700;
  color: #6d28d9 !important;
  font-family: 'DM Mono', monospace;
}

/* ── Skills Grid ── */
.blog-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.blog-skill-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(109, 40, 217, .1);
}

.blog-skill-card--high { border-color: rgba(109, 40, 217, .25); }
.blog-skill-card--rising { border-color: rgba(16, 185, 129, .25); }

.blog-skill-demand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6d28d9;
  margin-bottom: 6px;
}

.blog-skill-card--rising .blog-skill-demand { color: #059669; }

.blog-skill-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a0a42;
  margin-bottom: 8px;
}

.blog-skill-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
}

/* ── Steps ── */
.blog-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
  position: relative;
}

.blog-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(to bottom, #6d28d9, rgba(109, 40, 217, .1));
}

.blog-step {
  display: flex;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
}

.blog-step:last-child { padding-bottom: 0; }

.blog-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #6d28d9;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.blog-step-body { flex: 1; padding-top: 8px; }

.blog-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a0a42;
  margin-bottom: 8px;
}

.blog-step-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

/* ── Checklist ── */
.blog-checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  padding-left: 0;
}

.blog-checklist li::before {
  content: '✓';
  color: #6d28d9;
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Course Feature Box ── */
.blog-course-feature {
  background: linear-gradient(135deg, #1a0a42 0%, #2d1b69 100%);
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
  color: #fff;
}

.blog-course-feature-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #a78bfa;
  margin-bottom: 12px;
}

.blog-course-feature h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.35;
}

.blog-course-feature p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
}

.blog-course-feature-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.blog-course-feat-item {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-feat-check {
  color: #a78bfa;
  font-weight: 700;
}

.blog-course-feature-price {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
}

.blog-course-feature-price strong {
  color: #fff;
  font-size: 16px;
}

.blog-course-feature-price s {
  opacity: .5;
}

.blog-course-feature-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Personas Grid ── */
.blog-personas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.blog-persona {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(109, 40, 217, .1);
}

.blog-persona-icon { font-size: 1.5rem; margin-bottom: 10px; }

.blog-persona-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a0a42;
  margin-bottom: 8px;
}

.blog-persona p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #4b5563 !important;
  margin: 0 !important;
}

/* ── Location Pills ── */
.blog-loc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.blog-loc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
  background: #f0e9ff;
  text-decoration: none;
  border: 1px solid rgba(109, 40, 217, .15);
  transition: background .15s, color .15s;
}

.blog-loc-pill:hover {
  background: #6d28d9;
  color: #fff;
}

/* ── CTA Section ── */
.blog-cta-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1a0a42 0%, #0f172a 100%);
}

.blog-cta-box {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.blog-cta-box h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.blog-cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
  line-height: 1.7;
}

.blog-cta-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.blog-cta-sub {
  font-size: 13px !important;
  color: rgba(255,255,255,.4) !important;
  margin: 0 !important;
}

/* ── Related Links ── */
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 24px 0;
}

.blog-related-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6d28d9;
  margin-bottom: 12px;
}

.blog-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-related-list a {
  font-size: 14px;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.blog-related-list a:hover {
  color: #6d28d9;
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .blog-course-feature-highlights { grid-template-columns: repeat(2, 1fr); }
  .blog-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .blog-section { padding: 40px 0; }
  .blog-hero { padding: 48px 0 40px; }
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-skills-grid { grid-template-columns: 1fr; }
  .blog-personas-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-course-feature { padding: 24px 20px; }
  .blog-course-feature-highlights { grid-template-columns: repeat(2, 1fr); }
  .blog-steps::before { display: none; }
  .blog-role-header { flex-direction: column; gap: 6px; }
  .blog-toc { padding: 18px 20px; }
  .blog-salary-table { font-size: 13px; }
  .blog-salary-table td, .blog-salary-table th { padding: 10px 12px; }
}
