.biap-hub {
  --ink: #132641;
  --deep: #0B1730;
  --gold: #C9A84C;
  --gold-soft: #E4CD8C;
  --paper: #FAF6EC;
  --paper-line: #E4D9BC;
  --stone: #6B6558;
  --card: #FFFFFF;

  font-family: inherit;
  color: var(--ink);
}
.biap-hub * { box-sizing: border-box; font-family: inherit; }

.biap-hub .eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Boxed content wrapper (grid shortcode) ---------- */
.biap-hub .content-box {
  max-width: 1180px;
  margin: 0 auto;
}

.biap-hub .panel {
  background: #FDFCF8;
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(19,38,65,0.08);
}

/* ---------- Filter bar ---------- */
.biap-hub .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--paper-line);
}
.biap-hub .chip {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border: 1px solid var(--paper-line);
  background: var(--paper);
  color: var(--stone);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.biap-hub .chip:hover { border-color: var(--gold); color: var(--ink); }
.biap-hub .chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-soft);
}

/* ---------- Grid ---------- */
.biap-hub .grid {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .biap-hub .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .biap-hub .grid { grid-template-columns: 1fr; padding: 18px; }
  .biap-hub .filters { padding: 18px; }
}

/* ---------- Card ---------- */
.biap-hub .card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.biap-hub .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(19,38,65,0.13);
}

.biap-hub .thumb {
  position: relative;
  height: 168px;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.biap-hub .thumb img.motif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.biap-hub .tab {
  position: absolute;
  top: 0; left: 18px;
  background: var(--gold);
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px 5px;
  border-radius: 0 0 3px 3px;
  letter-spacing: 0.04em;
  z-index: 1;
}

.biap-hub .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.biap-hub .card-body .eyebrow { font-size: 10.5px; }
.biap-hub .card-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.biap-hub .card-body p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--stone);
  margin: 0;
  flex: 1;
}

.biap-hub .card-actions { display: flex; gap: 8px; margin-top: 4px; }
.biap-hub .btn {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 3px;
  text-align: center;
  flex: 1;
  cursor: pointer;
  border: 1px solid transparent;
}
.biap-hub .btn-primary { background: var(--ink); color: var(--gold-soft); }
.biap-hub .btn-primary:hover { background: var(--deep); }
.biap-hub .btn-ghost { background: transparent; color: var(--ink); border-color: var(--paper-line); }
.biap-hub .btn-ghost:hover { border-color: var(--gold); }

/* ---------- Single card shortcode ---------- */
.biap-hub .biap-single-card { max-width: 380px; }
.biap-hub .biap-single-card .card { height: 100%; }

/* ---------- Lightbox (shared across every shortcode on the page) ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,23,48,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  background: #0B1730;
  max-width: 560px;
  width: 100%;
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: #F4EFE2;
  position: relative;
  font-family: inherit;
}
.lightbox-inner h3 {
  font-size: 22px;
  margin: 18px 0 10px;
}
.lightbox-inner p { color: #C9C2AC; font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }
.lightbox-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: #C9C2AC;
  font-size: 20px; cursor: pointer; line-height: 1;
}
.lightbox-motif { max-width: 100%; max-height: 60vh; margin: 0 auto; }
.lightbox-motif img { max-width: 100%; max-height: 60vh; display: block; margin: 0 auto; border-radius: 3px; }
