/* ============================================================
   BLCI block styles — pages built in WP Admin with the ready-made
   BLCI sections (inc/block-patterns.php). Loaded on the site AND in
   the editor, so fallbacks are given for the theme's CSS variables.
   ============================================================ */

/* ----- Editor base (the editor doesn't load styles.css) ----- */
.editor-styles-wrapper {
  font-family: 'Poppins', Arial, sans-serif;
  color: #1A1828;
  background: #FAFAF7;
  font-size: 16px;
  line-height: 1.7;
}
.editor-styles-wrapper h1, .editor-styles-wrapper h2,
.editor-styles-wrapper h3, .editor-styles-wrapper h4 { font-family: 'Poppins', Arial, sans-serif; font-weight: 700; }

/* ----- Page layout (Halaman BLCI template) ----- */
.blci-page { padding-top: 76px; background: var(--cream, #FAFAF7); }
.blci-page .page-hero { padding-top: 64px; }
.blci-flow { padding: 64px 0 96px; }
.blci-flow--banner { padding-top: 0; }
.blci-flow > * {
  max-width: 840px;
  margin-left: auto; margin-right: auto;
  padding-left: 24px; padding-right: 24px;
}
.blci-flow > * + * { margin-top: 40px; }
.blci-flow > .alignwide { max-width: 1320px; }
.blci-flow > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.blci-flow p { margin: 0 0 16px; }
.blci-flow h2 { font-size: var(--fs-h2, 40px); line-height: 1.2; margin: 0 0 16px; }
.blci-flow h3 { font-size: var(--fs-h4, 22px); line-height: 1.3; margin: 0 0 10px; }
.blci-flow ul, .blci-flow ol { margin: 0 0 16px 22px; }
.blci-flow img { max-width: 100%; height: auto; }
.blci-flow a:not(.wp-block-button__link) { color: var(--purple, #342C87); text-decoration: underline; }

/* ----- Buttons: BLCI yellow pill by default, "Outline" = purple outline ----- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--teal, #FCB103);
  color: var(--purple-dark, #26206A) !important;
  border: 2px solid transparent;
  border-radius: 100px;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: var(--fs-btn, 14px); font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wp-block-button__link:hover { box-shadow: 0 8px 24px rgba(252,177,3,.3); transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: currentColor;
  color: var(--purple, #342C87) !important;
}

/* ----- Banner ----- */
.blci-banner {
  background: var(--purple, #342C87);
  color: #fff;
  text-align: center;
  padding: 96px 24px 88px !important;
}
.blci-banner > *, .blci-banner > .wp-block-group__inner-container > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.blci-banner h1 { color: #fff; font-size: var(--fs-h1, 48px); line-height: 1.1; margin: 0 0 16px; }
.blci-banner p { color: rgba(255,255,255,.78); font-size: var(--fs-lead, 18px); line-height: 1.7; }
.blci-banner .wp-block-buttons { justify-content: center; margin-top: 24px; }
.blci-banner .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; }

/* ----- Section heading ----- */
.blci-section-head { text-align: center; }
.blci-section-head p { color: var(--gray, #6B7280); font-size: var(--fs-lead, 18px); max-width: 620px; margin-left: auto; margin-right: auto; }

/* ----- Cards / steps ----- */
.blci-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.blci-cards > .wp-block-column { flex: 1 1 240px; }
.blci-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px !important;
  box-shadow: 0 4px 20px rgba(52,44,135,.07);
}
.blci-card h3 { color: var(--purple, #342C87); }
.blci-card p { font-size: var(--fs-small, 14px); color: var(--gray, #6B7280); line-height: 1.7; margin: 0; }
.blci-card p.blci-num {
  font-size: var(--fs-num, 32px); font-weight: 700; line-height: 1;
  color: var(--teal, #FCB103); margin: 0 0 12px;
}

/* ----- Image + text ----- */
.blci-image-text { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.blci-image-text > .wp-block-column { flex: 1 1 320px; }
.blci-image-text .wp-block-image { margin: 0; }
.blci-image-text .wp-block-image img { width: 100%; border-radius: 16px; object-fit: cover; }

/* ----- FAQ ----- */
.blci-faq h2 { text-align: center; margin-bottom: 24px; }
.blci-faq .wp-block-details {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  margin: 0 0 12px;
  box-shadow: 0 2px 12px rgba(52,44,135,.06);
}
.blci-faq .wp-block-details summary {
  cursor: pointer;
  font-weight: 600; color: var(--purple, #342C87);
}
.blci-faq .wp-block-details[open] summary { margin-bottom: 10px; }
.blci-faq .wp-block-details p { margin: 0; color: var(--gray, #6B7280); }

/* ----- WhatsApp CTA ----- */
.blci-cta {
  background: var(--purple, #342C87) !important;
  color: #fff;
  border-radius: 24px;
  text-align: center;
  padding: 56px 32px !important;
}
.blci-flow > .blci-cta { max-width: 1272px; width: calc(100% - 48px); }
.blci-cta h2 { color: #fff; }
.blci-cta p { color: rgba(255,255,255,.78); max-width: 560px; margin-left: auto; margin-right: auto; }
.blci-cta .wp-block-buttons { justify-content: center; margin-top: 20px; }

/* ----- Palette classes (so colours work even without WP's global styles) ----- */
.has-blci-purple-color      { color: #342C87 !important; }
.has-blci-purple-dark-color { color: #26206A !important; }
.has-blci-yellow-color      { color: #FCB103 !important; }
.has-blci-sky-color         { color: #2CC6FF !important; }
.has-blci-text-color        { color: #1A1828 !important; }
.has-blci-gray-color        { color: #6B7280 !important; }
.has-white-color            { color: #FFFFFF !important; }
.has-blci-purple-background-color      { background-color: #342C87 !important; }
.has-blci-purple-dark-background-color { background-color: #26206A !important; }
.has-blci-yellow-background-color      { background-color: #FCB103 !important; }
.has-blci-sky-background-color         { background-color: #2CC6FF !important; }
.has-blci-cream-background-color       { background-color: #F4F2ED !important; }
.has-white-background-color            { background-color: #FFFFFF !important; }
.has-background:not(.blci-banner):not(.blci-cta):not(.wp-block-button__link) { padding: 32px; border-radius: 16px; }

/* ----- Phones ----- */
@media (max-width: 600px) {
  .blci-flow { padding: 40px 0 64px; }
  .blci-flow > * + * { margin-top: 28px; }
  .blci-banner { padding: 64px 20px 56px !important; }
  .blci-cta { padding: 40px 20px !important; border-radius: 18px; }
  .blci-flow > .blci-cta { width: calc(100% - 32px); }
  .blci-image-text { gap: 20px; }
}
