/* ══════════════════════════════════════════════════════════════════
   Blok Heading — markup dari renderBlock() case 'heading' (page-builder.js).
   .bk-hd (pembungkus) > [.bk-hd-num] [.bk-hd-kicker] .bk-hd-title [.bk-hd-bar] [.bk-hd-sub]
   Dekorasi: d-theme · d-none · d-bar · d-side · d-lines · d-number · d-ghost · d-dot
   Ukuran: s-sm · s-md · s-lg · s-xl · s-display     Sorotan *kata*: .bk-hd-hl-*
   Heading polos (tanpa fitur baru) tetap <hN class="text-…"> seperti dulu.
   ══════════════════════════════════════════════════════════════════ */
.bk-hd { --bkhd-accent: var(--main-color, #2563eb); position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: start; }
.bk-hd-a-center { align-items: center; text-align: center; }
.bk-hd-a-end { align-items: flex-end; text-align: end; }
.bk-hd-w-md { max-width: 760px; } .bk-hd-w-sm { max-width: 560px; }
.bk-hd-a-center.bk-hd-w-md, .bk-hd-a-center.bk-hd-w-sm { margin-inline: auto; }
.bk-hd-a-end.bk-hd-w-md, .bk-hd-a-end.bk-hd-w-sm { margin-inline-start: auto; }

/* judul: reset gaya prosa (.pg-body h2 garis bawah & margin) kecuali dekorasi "theme" */
.bk-hd .bk-hd-title { position: relative; margin: 0 !important; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.bk-hd:not(.bk-hd-d-theme) .bk-hd-title { padding: 0 !important; border: 0 !important; }
.bk-hd-d-theme .bk-hd-title { width: 100%; }
.bk-hd-upper .bk-hd-title { text-transform: uppercase; letter-spacing: .02em; }
.bk-hd-t-tight .bk-hd-title { letter-spacing: -.035em; }
.bk-hd-t-wide .bk-hd-title { letter-spacing: .08em; }

/* ukuran tampilan (terpisah dari level SEO h1–h6) */
.bk-hd-s-sm .bk-hd-title { font-size: clamp(18px, 16px + .5vw, 22px); }
.bk-hd-s-md .bk-hd-title { font-size: clamp(22px, 18px + 1vw, 28px); }
.bk-hd-s-lg .bk-hd-title { font-size: clamp(26px, 20px + 1.6vw, 36px); }
.bk-hd-s-xl .bk-hd-title { font-size: clamp(30px, 22px + 2.4vw, 48px); line-height: 1.12; }
.bk-hd-s-display .bk-hd-title { font-size: clamp(36px, 24px + 3.6vw, 64px); line-height: 1.05; letter-spacing: -.03em; }

/* kicker (label kecil di atas) */
.bk-hd .bk-hd-kicker { margin: 0 0 10px !important; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; color: var(--bkhd-accent); }
.bk-hd-k-pill { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); letter-spacing: .1em; font-size: 12px; }
.bk-hd-k-line { display: inline-flex; align-items: center; gap: 10px; }
.bk-hd-k-line::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.bk-hd-a-center .bk-hd-k-line::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.bk-hd-a-end .bk-hd-k-line { flex-direction: row-reverse; }

/* subjudul */
.bk-hd .bk-hd-sub { margin: 12px 0 0 !important; max-width: 680px; font-size: clamp(15px, 14px + .3vw, 17.5px); line-height: 1.6; color: #667085; }

/* sorotan *kata* */
.bk-hd-hl { white-space: normal; }
.bk-hd-hl-color { color: var(--bkhd-accent); }
.bk-hd-hl-marker { padding: 0 .12em; border-radius: .18em; background-color: color-mix(in srgb, var(--bkhd-accent) 18%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bk-hd-hl-underline { border-bottom: .12em solid var(--bkhd-accent); padding-bottom: .02em; }
.bk-hd-hl-gradient { background-image: linear-gradient(100deg, var(--bkhd-accent), color-mix(in srgb, var(--bkhd-accent) 45%, #7c3aed)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bk-hd-hl-italic { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; color: var(--bkhd-accent); }

/* dekorasi */
.bk-hd .bk-hd-bar { display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--bkhd-accent); }
.bk-hd-dots { display: inline-flex; gap: 6px; margin-top: 14px; }
.bk-hd-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--bkhd-accent); }
.bk-hd-dots i:nth-child(2) { opacity: .6; } .bk-hd-dots i:nth-child(3) { opacity: .3; }
.bk-hd-d-side { padding-inline-start: 18px; border-inline-start: 4px solid var(--bkhd-accent); }
.bk-hd-d-lines .bk-hd-title { display: flex; align-items: center; gap: 18px; width: 100%; }
.bk-hd-d-lines .bk-hd-title::before, .bk-hd-d-lines .bk-hd-title::after { content: ""; flex: 1; min-width: 24px; height: 2px; border-radius: 2px; background: #e4e7ec; }
.bk-hd-d-lines.bk-hd-a-start .bk-hd-title::before, .bk-hd-d-lines.bk-hd-a-end .bk-hd-title::after { display: none; }
.bk-hd-d-lines[style*="border-color"] .bk-hd-title::before, .bk-hd-d-lines[style*="border-color"] .bk-hd-title::after { background: currentColor; opacity: .25; }
.bk-hd-d-number { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.bk-hd-d-number > :not(.bk-hd-num) { grid-column: 2; }
.bk-hd-num { grid-row: 1 / span 3; font-size: clamp(40px, 28px + 3vw, 72px); font-weight: 900; line-height: .9; color: var(--bkhd-accent); opacity: .9; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.bk-hd-d-ghost { isolation: isolate; }
.bk-hd-d-ghost::before { content: attr(data-ghost); position: absolute; z-index: -1; top: 50%; left: 0; right: 0; transform: translateY(-58%); font-size: clamp(48px, 30px + 5vw, 110px); font-weight: 900; line-height: 1; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; color: transparent; -webkit-text-stroke: 1.2px rgba(16, 24, 40, .1); pointer-events: none; user-select: none; }
.bk-hd-d-ghost.bk-hd-a-center::before { text-align: center; }
.bk-hd-d-ghost.bk-hd-a-end::before { text-align: end; }
.bk-hd-d-ghost:has(.bk-hd-sub)::before { top: 42%; }

@media (max-width: 575.98px) {
    .bk-hd .bk-hd-kicker { font-size: 11.5px; margin-bottom: 8px !important; }
    .bk-hd-d-number { column-gap: 12px; }
    .bk-hd-d-lines .bk-hd-title { gap: 10px; }
}

/* Teks bayangan (ghost): lebih besar untuk judul ukuran "display", dan garis terang di section bertema teks terang */
.bk-hd-s-display.bk-hd-d-ghost::before { font-size: clamp(96px, 40px + 10vw, 240px); transform: translateY(-54%); }
.bk-flexrow-light .bk-hd-d-ghost::before { -webkit-text-stroke-color: rgba(255, 255, 255, .18); }
