/* ════════════════════════════════════════════════════════════════
   Lesson tutoring CTA  (.lcta)
   Single source of truth for the "Book a free session" block injected
   into every lesson & worksheet by qa/phase4-inject-cta.js.
   Loaded via an absolute path (/assets/css/lesson-cta.css) so it works
   regardless of how deep the page sits or which CSS stack it uses.
   The legacy 🎓 emoji in the markup is hidden here and replaced with a
   crisp line-art graduation-cap SVG, so no HTML needs rewriting.
   Palette matches the site's warm cream/plum tokens (quiz-engine.css).
   ════════════════════════════════════════════════════════════════ */

.lcta {
  margin: 44px 0 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #efe8f6 0%, #f3eaf3 55%, #f7eee2 100%);
  border: 1.5px solid #ddd0ec;
  border-radius: 18px;
  box-shadow: 0 3px 0 #ddd0ec;
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
}

/* Icon badge — hides the legacy emoji text and paints an SVG cap */
.lcta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #6d5b8a; /* --qe-plum */
  box-shadow: 0 2px 0 #4e4068; /* --qe-plum-deep */
  /* hide whatever text node (e.g. 🎓) sits inside the span */
  font-size: 0;
  color: transparent;
  position: relative;
}
.lcta-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M21.5 9.5 12 5 2.5 9.5 12 14l9.5-4.5Z"/><path d="M6 11.3V16c0 1.4 2.7 2.6 6 2.6s6-1.2 6-2.6v-4.7"/><path d="M21.5 9.5v5.2"/></svg>') center / 26px 26px no-repeat;
}

.lcta-body {
  flex: 1;
  min-width: 0;
}
.lcta-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #4e4068; /* --qe-plum-deep */
  line-height: 1.3;
}
.lcta-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5b5d75; /* --qe-ink-soft */
}

.lcta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 20px;
  background: #6d5b8a; /* --qe-plum */
  color: #fff !important;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 0 #4e4068; /* --qe-plum-deep */
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.lcta-btn:hover {
  background: #5f4f79;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #4e4068;
}
.lcta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #4e4068;
}

@media (max-width: 520px) {
  .lcta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px;
  }
}
