/* ==========================================================
   CriticalWP — Blog Sidebar Conversion Card
   /assets/css/blog-sidebar.css
   ========================================================== */

/* ── Container layout when sidebar is present ── */
@media (min-width: 1025px) {
  .blog-post-wrap .container.has-blog-sidebar {
    max-width: 1080px;
    display: grid;
    grid-template-columns: 760px 1fr;
    gap: 48px;
    align-items: start;
  }

  .blog-post-wrap .container.has-blog-sidebar .blog-post-inner {
    max-width: 100%;
    margin: 0;
  }
}

/* ── Sidebar card ── */
#blog-sidebar-card {
  position: sticky;
  top: 100px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#blog-sidebar-card.bsc-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

#blog-sidebar-card.bsc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Card inner — light card ── */
.bsc-inner {
  background: #ffffff;
  border: 2px solid #e8edf2;
  border-radius: 14px;
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bsc-inner:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(255,106,61,0.12);
}

/* ── Tag ── */
.bsc-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fff5f2;
  border: 1px solid rgba(255,106,61,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  align-self: flex-start;
}

/* ── Heading ── */
.bsc-heading {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── Body ── */
.bsc-body {
  font-size: 0.82rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

/* ── CTA Button ── */
.bsc-btn {
  display: block;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 7px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
  margin-top: 4px;
}

.bsc-btn:hover { opacity: 0.88; }

/* ── Hide on tablet and mobile ── */
@media (max-width: 1024px) {
  #blog-sidebar-card { display: none; }
}

/* ── Sidebar column wrapper (lead magnet + CTA stacked) ── */
#blog-sidebar-col {
  position: sticky;
  top: 100px;
}

@media (max-width: 1024px) {
  #blog-sidebar-col { display: none; }
}

/* ── Override original sticky on individual cards now that col handles it ── */
#blog-sidebar-card,
#blog-lead-magnet {
  position: static;
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Lead magnet card variant ── */
.bsc-inner--lead {
  background: #f8f5ff;
  border-color: #d6c8f5;
}

.bsc-inner--lead:hover {
  border-color: #9b7fe8;
  box-shadow: 0 8px 28px rgba(155,127,232,0.15);
}

.bsc-inner--lead .bsc-tag {
  background: #f0ebff;
  border-color: rgba(155,127,232,0.4);
  color: #6b46c1;
}

/* ── Email input inside lead magnet ── */
.bsc-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bsc-email-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d6c8f5;
  border-radius: 6px;
  font-size: 0.83rem;
  font-family: inherit;
  color: var(--dark);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.bsc-email-input:focus {
  outline: none;
  border-color: #9b7fe8;
}

.bsc-btn--lead {
  background: #6b46c1;
}

.bsc-btn--lead:hover {
  opacity: 0.88;
}

/* ── Success message ── */
.bsc-success {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d6a4f;
  margin: 4px 0 0;
}

/* ── Disclaimer ── */
.bsc-disclaimer {
  font-size: 0.72rem;
  color: #9ba5b4;
  margin: 0;
}
