/* ============================================================
   LeadAPoint – Showcase Blog Post Styles
   Scoped to .lap-blog — applied on the showcase single post.
   ============================================================ */

/* ── Global shadow token ──────────────────────────────────── */
.lap-shadow {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.lap-shadow-md {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Title header compression ─────────────────────────────── */
.lap-blog .lap-header {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.lap-blog .lap-header h1 {
  font-size: 1.8rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .lap-blog .lap-header h1 {
    font-size: 2rem;
  }
}
@media (min-width: 1024px) {
  .lap-blog .lap-header h1 {
    font-size: 2.2rem;
  }
}

/* ── Reduced paragraph spacing (−30%) ─────────────────────── */
.lap-blog .lap-prose > p + p {
  margin-top: 0.875rem;
}
.lap-blog .lap-prose {
  line-height: 1.75;
}

/* ── Heading hierarchy (−15%) ─────────────────────────────── */
.lap-blog h2.lap-section-heading {
  font-size: 1.5rem;
}
@media (min-width: 768px) {
  .lap-blog h2.lap-section-heading {
    font-size: 1.6rem;
  }
}

/* ── Section wrapper with border + shadow ─────────────────── */
.lap-section-bordered {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* ── Hero section ─────────────────────────────────────────── */
.lap-hero-container {
  display: flex;
  flex-direction: column-reverse; /* Image on top for mobile */
  gap: 2rem;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .lap-hero-container {
    flex-direction: row; /* Side-by-side on desktop */
    align-items: stretch;
  }
}
.lap-hero-container .lap-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lap-hero-container .lap-hero-image {
  flex: 1;
  display: flex;
}
.lap-hero-container .lap-hero-image img {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
}

/* ── Key Takeaways + TOC equal height ─────────────────────── */
.lap-takeaway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .lap-takeaway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lap-takeaway-card {
  background: #f8fafc;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* ── Section 1 grid ───────────────────────────────────────── */
.lap-sec1-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .lap-sec1-grid {
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
  }
}
.lap-sec1-grid .lap-sec1-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lap-sec1-grid .lap-sec1-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lap-sec1-grid .lap-sec1-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* ── Persona cards ────────────────────────────────────────── */
.lap-persona-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on mobile */
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .lap-persona-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
}
@media (min-width: 1024px) {
  .lap-persona-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
  }
}
.lap-persona-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 10px -3px rgba(6, 81, 237, 0.1);
  transition: box-shadow 0.2s;
}
.lap-persona-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.lap-persona-card .lap-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.lap-persona-card .lap-card-icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* ── Section 2 step cards ─────────────────────────────────── */
.lap-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .lap-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.lap-step-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px -3px rgba(6, 81, 237, 0.1);
  display: flex;
  flex-direction: column;
}
.lap-step-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto 0.75rem;
}

/* ── Sidebar Layout ───────────────────────────────────────── */
.lap-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .lap-sidebar-layout {
    grid-template-columns: 1fr 320px;
    /* align-items: start; removed to allow the sticky sidebar to slide down */
  }
}

.lap-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .lap-sidebar-sticky {
    position: sticky;
    top: 2rem;
  }
}

/* ── Author Sidebar Card ──────────────────────────────────── */
.lap-author-sidebar {
  background: #f8fafc;
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}
.lap-author-sidebar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.lap-author-sidebar-header img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* ── CTA banners (Horizontal) ─────────────────────────────── */
.lap-cta-banner {
  background: #f4f7ff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) {
  .lap-cta-banner {
    flex-direction: row;
    justify-content: space-between;
  }
}
.lap-cta-icon {
  width: 3rem;
  height: 3rem;
  background: #fff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: #2563eb;
}

/* ── CTA banners (Sidebar) ────────────────────────────────── */
.lap-cta-sidebar {
  background: #f4f7ff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.lap-cta-sidebar .lap-cta-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Reduced section margins (−30%) ───────────────────────── */
.lap-blog .lap-section {
  margin-bottom: 2.5rem;
}
