/**
 * Blog Hub — scoped to .choice-bh.
 *
 * The live theme sets html { font-size: 10px }, so every size here is in px —
 * rem would be silently wrong. Colours and layout come from CSS variables the
 * template writes per instance, so two Blog Hubs on one page can differ.
 */

.choice-bh {
    font-size: 16px;
    font-family: proxima-nova, Arial, Helvetica, sans-serif;
    color: #4b5563;
    box-sizing: border-box;
}
.choice-bh *,
.choice-bh *::before,
.choice-bh *::after { box-sizing: inherit; }

.choice-bh .bh-inner {
    max-width: var(--bh-max-w, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */
.choice-bh .bh-head {
    text-align: center;
    margin-bottom: 28px;
}
.choice-bh .bh-heading {
    font-family: ivypresto-display, 'Times New Roman', Times, serif;
    font-weight: 300;
    font-size: 42px;
    line-height: 1.15;
    color: #2b4854;
    margin: 0 0 10px;
}
.choice-bh .bh-intro {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: #6b7280;
}

/* ── Category filters ────────────────────────────────────────────────────── */
.choice-bh .bh-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
}
.choice-bh .bh-filter {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 9px 20px;
    border: 1.5px solid #e3dced;
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #6b7280;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.choice-bh .bh-filter:hover {
    border-color: var(--bh-primary, #913f90);
    color: var(--bh-primary, #913f90);
}
.choice-bh .bh-filter.is-active {
    background: var(--bh-primary, #913f90);
    border-color: var(--bh-primary, #913f90);
    color: #fff;
}
.choice-bh .bh-filter:focus-visible {
    outline: 2px solid var(--bh-accent, #37aec9);
    outline-offset: 2px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.choice-bh .bh-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ece9f1;
    border-radius: var(--bh-radius, 18px);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.choice-bh .bh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(43, 72, 84, .12);
}
.choice-bh .bh-card[hidden] { display: none; }

.choice-bh .bh-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f4f1f7;
    overflow: hidden;
}
.choice-bh .bh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.choice-bh .bh-card:hover .bh-card-media img { transform: scale(1.04); }
.choice-bh .bh-card-media--empty {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, #f4f1f7, #e9f4f7);
}

.choice-bh .bh-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 24px;
}

.choice-bh .bh-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}
.choice-bh .bh-cat {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f6eef6;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bh-primary, #913f90);
}

.choice-bh .bh-card-title {
    font-family: ivypresto-display, 'Times New Roman', Times, serif;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.25;
    color: #2b4854;
    margin: 0 0 10px;
}
.choice-bh .bh-card-title a {
    color: inherit;
    text-decoration: none;
}
.choice-bh .bh-card-title a:hover { color: var(--bh-primary, #913f90); }

.choice-bh .bh-card-excerpt {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
}

/* Pushes the link to the bottom so cards in a row line up. */
.choice-bh .bh-card-more {
    margin: auto 0 0;
    font-size: 14.5px;
    font-weight: 700;
}
.choice-bh .bh-card-more a {
    color: var(--bh-primary, #913f90);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.choice-bh .bh-card-more a:hover { text-decoration: underline; }
.choice-bh .bh-card-more span[aria-hidden] { transition: transform .15s ease; }
.choice-bh .bh-card-more a:hover span[aria-hidden] { transform: translateX(3px); }

/* ── Featured post — image beside the copy on desktop ────────────────────── */
.choice-bh .bh-feature { margin-bottom: 28px; }
.choice-bh .bh-feature[hidden] { display: none; }

.choice-bh .bh-card--feature {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
}
.choice-bh .bh-card--feature .bh-card-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.choice-bh .bh-card--feature .bh-card-body { padding: 34px 38px; justify-content: center; }
.choice-bh .bh-card--feature .bh-card-title { font-size: 32px; }
.choice-bh .bh-card--feature .bh-card-excerpt { font-size: 16.5px; }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.choice-bh .bh-grid {
    display: grid;
    grid-template-columns: repeat(var(--bh-cols, 3), minmax(0, 1fr));
    gap: 26px;
}

.choice-bh .bh-empty {
    margin: 28px 0 0;
    text-align: center;
    font-size: 16px;
    color: #8b8f98;
}
.choice-bh .bh-empty[hidden] { display: none; }

/* ── Footer CTA ──────────────────────────────────────────────────────────── */
.choice-bh .bh-cta {
    margin: 34px 0 0;
    text-align: center;
}
.choice-bh .bh-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    background: var(--bh-primary, #913f90);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .15s ease;
}
.choice-bh .bh-cta-btn:hover { opacity: .92; color: #fff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .choice-bh .bh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .choice-bh .bh-card--feature { grid-template-columns: 1fr; }
    .choice-bh .bh-card--feature .bh-card-media { aspect-ratio: 16 / 9; min-height: 0; }
    .choice-bh .bh-card--feature .bh-card-body { padding: 24px; }
    .choice-bh .bh-card--feature .bh-card-title { font-size: 26px; }
    .choice-bh .bh-heading { font-size: 34px; }
}
@media (max-width: 560px) {
    .choice-bh .bh-grid { grid-template-columns: 1fr; }
    .choice-bh .bh-inner { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .choice-bh .bh-card,
    .choice-bh .bh-card-media img,
    .choice-bh .bh-card-more span[aria-hidden] { transition: none; }
    .choice-bh .bh-card:hover { transform: none; }
    .choice-bh .bh-card:hover .bh-card-media img { transform: none; }
}
