/* ==========================================================================
   BestBlogTheme — Médiathèque Category ("Brand") Pages
   ========================================================================== */

.bbt-hub.bbt-site-main {
    padding-top: 2rem;
    padding-block-start: 2rem;
}

/* -- Identity band: logo (1/3) + presentation text (2/3) ------------------ */
.bbt-hub__identity {
    padding-block: 2.5rem;
    background: #fff;
}

.bbt-hub__identity-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: center;
}

.bbt-hub__identity-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbt-hub__logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.bbt-hub__logo-fallback {
    font-family: var(--bbt-font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bbt-color-primary);
    text-align: center;
}

.bbt-hub__title {
    font-family: var(--bbt-font-primary);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--bbt-brand-color-1, var(--bbt-color-primary));
    margin-top: 0;
    margin-bottom: 1rem;
}

.bbt-hub__identity-desc {
    font-family: var(--bbt-font-secondary, var(--bbt-font-primary));
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bbt-color-paragraph);
}

.bbt-hub__identity-desc > *:first-child {
    margin-top: 0;
}

.bbt-hub__identity-desc > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .bbt-hub__identity-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .bbt-hub__logo-img {
        max-height: 120px;
    }
}

/* -- Columns Section (optional, legacy) ------------------------------------ */
.bbt-hub__columns {
    padding-block: 3rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.bbt-hub__columns-grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.bbt-hub__columns-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.bbt-hub__columns-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.bbt-hub__columns-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
    .bbt-hub__columns-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bbt-hub__columns-grid--2,
    .bbt-hub__columns-grid--3,
    .bbt-hub__columns-grid--4 {
        grid-template-columns: 1fr;
    }
}

.bbt-hub__col {
    padding: 1.75rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.bbt-hub__col--empty {
    display: none;
}

.bbt-hub__col > *:first-child {
    margin-top: 0;
}

.bbt-hub__col > *:last-child {
    margin-bottom: 0;
}

/* -- FAQ Section (optional, legacy) ----------------------------------------- */
.bbt-hub__faq {
    padding-block: 3rem;
    padding-bottom: calc(3rem + 20px);
    background: #fff;
}

.bbt-hub__faq-box {
    max-width: 860px;
    margin-inline: auto;
    padding: 2rem 2.25rem;
    background: #f3f4f6;
    border-radius: 12px;
    border-left: 4px solid var(--bbt-color-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
}

.bbt-hub__faq-title {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-family: var(--bbt-font-primary);
    color: var(--bbt-color-primary);
}

.bbt-hub__faq-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #1e293b;
}

.bbt-hub__faq-body p {
    font-size: 0.8em;
    margin-bottom: 1rem;
    margin-left: 0.25rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--bbt-color-secondary);
    color: #475569;
}

.bbt-hub__faq-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .bbt-hub__faq-box {
        padding: 1.5rem 1.25rem;
    }
}

/* -- Separator (brand color 1) --------------------------------------------- */
.bbt-hub__separator {
    margin: 0 auto 2.5rem;
    border: none;
    border-top: 3px solid var(--bbt-brand-color-1, var(--bbt-color-primary));
}

/* -- Content Listing — reuses .bbt-posts-grid / .bbt-card from blog.css,
   the exact same component the homepage uses, so both listings match. ---- */
.bbt-hub__articles {
    padding-block: 1rem 3.5rem;
    background: #fff;
}

.bbt-hub__no-posts {
    padding: 2.5rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 1rem;
}

.bbt-hub__articles .bbt-pagination {
    margin-top: 2.5rem;
}
