/* 0.57.0 · Kartu gabungan beranda: Event, Kompetisi, Pelatihan, Ebook. Semua aturan di bawah .bhc. */
.bhc { --bhc-teal: #0a6f7d; --bhc-teal-dark: #085a66; --bhc-ink: #12324a; --bhc-mut: #566b7e; --bhc-line: #e1e9f0; --bhc-green: #15803d; color: var(--bhc-ink); font-family: inherit; }
.bhc *, .bhc *::before, .bhc *::after { box-sizing: border-box; }
.bhc__panel { background: #fff; border: 1px solid var(--bhc-line); border-radius: 28px; padding: 40px 32px 36px; box-shadow: 0 10px 40px rgba(18, 50, 74, .06); }
.bhc__head { text-align: center; margin: 0 auto 24px; max-width: 720px; }
.bhc__head h2 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--bhc-ink); }
.bhc__head p { margin: 0; font-size: 16px; color: var(--bhc-mut); }
.bhc__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }
.bhc__pill { appearance: none; border: 1px solid var(--bhc-line); background: #fff; color: var(--bhc-mut); font: inherit; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bhc__pill:hover { border-color: var(--bhc-teal); color: var(--bhc-teal); }
.bhc__pill.is-on { background: var(--bhc-teal); border-color: var(--bhc-teal); color: #fff; }
.bhc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.bhc-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: visible; box-shadow: 0 2px 6px rgba(18, 50, 74, .08), 0 8px 24px rgba(18, 50, 74, .08); transition: transform .18s, box-shadow .18s; }
.bhc-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(18, 50, 74, .1), 0 14px 32px rgba(18, 50, 74, .12); }
.bhc-card[hidden] { display: none; }
.bhc-card__media { display: block; aspect-ratio: 16 / 10; margin: 0; background: #F5F7FA; border-radius: 20px 20px 0 0; overflow: hidden; }
.bhc-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bhc-card__art { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--bhc-teal), #0b3a52); }
.bhc-badge { position: absolute; top: -12px; left: -6px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.bhc-badge .bhc-ico { width: 16px; height: 16px; }
.bhc-badge--new { background: #16a34a; }
.bhc-badge--hot { background: #ea580c; }
.bhc-type { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--bhc-ink); font-size: 11px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.bhc-type--competition { color: #92400e; }
.bhc-type--training { color: #4338ca; }
.bhc-type--ebook { color: #0f766e; }
.bhc-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.bhc-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.bhc-date { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #1e3a8a; color: var(--bhc-teal-dark); }
.bhc-date .bhc-ico { color: var(--bhc-teal); }
.bhc-status { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.bhc-status--soon { background: #dcfce7; color: var(--bhc-green); }
.bhc-status--live { background: #fef3c7; color: #b45309; }
.bhc-status--done { background: #e0efff; color: #1d6fd1; }
.bhc-card__title { margin: 0 0 14px; font-size: 17px; line-height: 1.35; font-weight: 800; min-height: calc(1.35em * 3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bhc-card__title a { color: var(--bhc-ink); text-decoration: none; }
.bhc-card__title a:hover { color: var(--bhc-teal); }
.bhc-card__where { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--bhc-line); border-bottom: 1px solid var(--bhc-line); font-size: 15px; color: var(--bhc-mut); }
.bhc-card__where .bhc-ico { flex: none; color: var(--bhc-teal); }
.bhc-card__where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bhc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.bhc-price { display: flex; flex-direction: column; line-height: 1.2; }
.bhc-price small { font-size: 13px; color: var(--bhc-mut); }
.bhc-price strong { font-size: 16px; font-weight: 800; color: var(--bhc-teal-dark); }
.bhc-price strong.is-free { color: var(--bhc-green); }
.bhc-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border-radius: 10px; background: var(--bhc-teal); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; text-align: center; transition: background .15s; }
.bhc-btn:hover { background: var(--bhc-teal-dark); color: #fff; }
.bhc__more { display: flex; justify-content: center; margin-top: 32px; }
.bhc__more-btn { appearance: none; background: #fff; color: var(--bhc-teal-dark); border: 1px solid var(--bhc-teal); border-radius: 8px; padding: 12px 56px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.bhc__more-btn:hover { background: var(--bhc-teal); color: #fff; }
.bhc__more-btn[hidden] { display: none; }
@media (max-width: 1100px) { .bhc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.bhc__panel { padding: 28px 16px 24px; border-radius: 22px; }
	.bhc__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.bhc__filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
	.bhc__pill { flex: none; padding: 9px 16px; }
	.bhc-card__title { min-height: 0; }
}

/* 0.57.6 · Dipakai juga di katalog Event dan Ebook: panel penuh lebar, judul halaman (h1). */
.bhc h1 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #12324a; }
.bec > .bhc, .bl-catalog > .bhc { margin-top: 8px; }
.bhc__more[hidden], .bhc-card[hidden] { display: none !important; }
body.beeang-event-catalog-page .bhc-card__media { aspect-ratio: 16 / 9; }
body.beeang-event-catalog-page .bhc-card__media img { object-fit: cover; }
body.beeang-event-catalog-page .bhc__grid,
body.beeang-competition-catalog-page .bhc__grid,
.bl-catalog .bhc__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
	body.beeang-event-catalog-page .bhc__grid,
	body.beeang-competition-catalog-page .bhc__grid,
	.bl-catalog .bhc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body.beeang-event-catalog-page .bhc__grid,
	body.beeang-competition-catalog-page .bhc__grid,
	.bl-catalog .bhc__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 0.57.37 · Rapikan beranda: grid mengisi lebar walau kartu sedikit, poster tidak terpotong, label tidak menimpa gambar. */
.bhc__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bhc-card__media { aspect-ratio: 4 / 3; background: #e9f0f5; }
.bhc-card__media img { object-fit: contain; }
.bhc-card__media .bhc-card__art { font-size: 56px; }
.bhc-badge { top: 10px; left: 10px; padding: 5px 11px 5px 8px; font-size: 12px; border-radius: 999px; }
.bhc-type { top: 10px; right: 10px; }
.bhc-card__title { min-height: calc(1.35em * 2); -webkit-line-clamp: 2; }
.bhc-card__where span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bhc__panel { padding: 36px 28px 32px; }
@media (max-width: 640px) { .bhc__grid { grid-template-columns: minmax(0, 1fr); } }

/* 0.57.38 · Halaman Ebook: satu atau dua ebook tidak lagi melebar. Kartu berukuran wajar, cover potret 3:4 tanpa pita kosong. */
.bl-catalog .bhc__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bl-catalog .bhc__grid:has(> .bhc-card:only-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: start; }
.bl-catalog .bhc-card__media { aspect-ratio: 16 / 9; background: #e9f0f5; }
.bl-catalog .bhc-card__media img { object-fit: cover; }
.bl-catalog .bhc-card__title { min-height: 0; }
.bl-catalog .bhc__more:has(> .bhc__more-btn[hidden]) { display: none; }
@media (max-width: 640px) {
	.bl-catalog .bhc__grid:has(> .bhc-card:only-child) { grid-template-columns: minmax(0, 1fr); }
}
