/* Dynamic CTA — [dynamic_cta_blog] — "cta-banner" layout
   Background images come in as CSS custom properties set inline per
   shortcode call (see PHP): --cta-bg (desktop/default) and optionally
   --cta-bg-mobile. This rule uses --cta-bg; the mobile media query below
   switches to --cta-bg-mobile when it's set, falling back to --cta-bg
   when a post only provides one image.

   Every declaration below is !important. This component renders inside
   arbitrary blog post content, where the theme's own blog-content styles
   (e.g. .brxe-post-content h2) carry higher specificity (class+element,
   0,1,1) than a plain class selector (0,1,0) and silently win on any
   property we don't force. !important makes this stylesheet fully
   self-contained regardless of what the surrounding page's CSS does. */

.cta-banner {
  position: relative !important;
  max-width: 1200px !important;
  margin: 56px auto !important;
  padding: 48px 56px 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background-color: #311B49 !important; /* fallback if no image at all */
  background-image: var(--cta-bg) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  font-family: 'BagossCondensed-TRIAL-Medium', sans-serif !important;
  isolation: isolate !important;
}

/* ---------- Top content ---------- */
.cta-banner__eyebrow {
  display: inline-block !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #A644FF !important;
  font-size: 1.4rem !important;
  line-height: 2rem !important;
  font-family: 'BagossCondensed-TRIAL-Medium', sans-serif !important;
  font-weight: 500 !important;
  padding: 6px 18px !important;
  border-radius: 999px !important;
  margin-bottom: 20px !important;
  margin-left: 0 !important;
}

.cta-banner__title {
  color: #fff !important;
  font-family: 'BagossCondensed-TRIAL-Medium', sans-serif !important;
  font-weight: 500 !important;
  font-size: 3.4rem !important;
  line-height: 4rem !important;
  margin: 0 0 24px !important;
  /* Reset: the theme's blog-content h2 styling (.brxe-post-content h2)
     adds a left accent bar + padding + its own color/size — not part of
     this design. */
  border-left: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Laptop */
@media (max-width: 1439px) {
  .cta-banner__title {
    font-size: 3rem !important;
    line-height: 3.6rem !important;
  }
}
/* Tablet */
@media (max-width: 1023px) {
  .cta-banner__title {
    font-size: 2.6rem !important;
    line-height: 3.2rem !important;
  }
}
/* Mobile */
@media (max-width: 767px) {
  .cta-banner__title {
    font-size: 2.2rem !important;
    line-height: 2.8rem !important;
  }
}

.cta-banner__features {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 32px !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
}
.cta-banner__features li {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1.6rem !important;
  line-height: 2.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
/* Laptop */
@media (max-width: 1439px) {
  .cta-banner__features li {
    font-size: 1.4rem !important;
    line-height: 2rem !important;
  }
}
/* Tablet */
@media (max-width: 1023px) {
  .cta-banner__features li {
    font-size: 1.2rem !important;
    line-height: 1.8rem !important;
  }
}
/* Mobile */
@media (max-width: 767px) {
  .cta-banner__features li {
    font-size: 1.2rem !important;
    line-height: 1.8rem !important;
  }
}
.cta-banner__features li::before {
  content: '' !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.2 11.5L13 4.5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 9px !important;
}

/* ---------- Bottom white card ---------- */
.cta-banner__card {
  position: relative !important;
  background: linear-gradient(180deg, #FFFFFFF2, #FFFFFFD9) !important;
  border-radius: 20px !important;
  padding: 24px 32px !important;
  margin: 0 8px 30px 0px !important;
  transform: translateY(24px) !important;
  box-shadow: 0 4px 10px #832FB033 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  border: none !important;
}
.cta-banner__card-text .eyebrow {
  display: block !important;
  color: #a179ff !important;
  font-size: 1.4rem !important;
  line-height: 2rem !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: none !important;
}
.cta-banner__card-text .headline {
  display: block !important;
  color: #311B49 !important;
  font-size: 2rem !important;
  line-height: 2.6rem !important;
  font-family: 'BagossCondensed-TRIAL-Medium', sans-serif !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
.cta-banner__card-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
.btn-outline,
.btn-solid {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-size: 1.4rem !important;
  font-weight: 500 !important;
  font-family: 'BagossCondensed-TRIAL-Medium', sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
  border-width: 1.5px !important;
  border-style: solid !important;
  margin: 0 !important;
}
.btn-outline {
  color: #ff7a1a !important;
  border-color: #ff7a1a !important;
  background: transparent !important;
}
.btn-outline:hover,
.btn-outline:focus {
  color: #ff7a1a !important;
  background: #fff3ea !important;
}
.btn-solid {
  color: #fff !important;
  border-color: transparent !important;
  background: #ff7a1a !important;
}
.btn-solid:hover,
.btn-solid:focus {
  color: #fff !important;
  background: #e86a0f !important;
}

/* bottom spacer so the overlapping card has breathing room inside the banner */
.cta-banner__spacer {
  height: 24px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cta-banner {
    padding: 40px 32px 0 !important;
  }
  .cta-banner__card {
    padding: 22px 24px !important;
  }
}
@media (max-width: 640px) {
  .cta-banner {
    padding: 32px 20px 0 !important;
    border-radius: 20px !important;
    /* Falls back to --cta-bg (desktop image) when no mobile-specific
       image was passed via bg_image_mobile. */
    background-image: var(--cta-bg-mobile, var(--cta-bg)) !important;
  }
  .cta-banner__title {
    max-width: 100% !important;
  }
  .cta-banner__card {
    flex-direction: column !important;
    align-items: flex-start !important;
    transform: translateY(16px) !important;
  }
  .cta-banner__card-actions {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  .btn-outline,
  .btn-solid {
    flex: 1 !important;
    text-align: center !important;
  }
}

/* ---------- Admin preview tweaks (harmless on front-end) ---------- */
.cta-banner--empty-notice {
  font-family: sans-serif !important;
  font-size: 13px !important;
  color: #b32d2e !important;
  border: 1px dashed #b32d2e !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
}