.knowledge-hub-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-off-white);
}

.knowledge-hub-page__container {
    max-width: var(--max-content-width, 1280px);
    margin: 0 auto;
    width: 100%;
}

.knowledge-hub-page__intro,
.knowledge-hub-page__featured,
.knowledge-hub-page__list,
.knowledge-hub-page__cta-band {
    padding: 96px 24px;
}

/* Banded Backgrounds for visual separation */
.knowledge-hub-page__intro {
    background: linear-gradient(180deg, var(--color-off-white) 0%, #f8fafb 100%);
    border-top: 1px solid var(--color-soft-grey);
}

.knowledge-hub-page__featured {
    background: linear-gradient(180deg, #f4f7fb 0%, #fbfcfd 100%);
    border-top: 1px solid var(--color-soft-grey);
}

.knowledge-hub-page__list {
    background: linear-gradient(180deg, #eef5fb 0%, #fafcff 100%);
    border-top: 1px solid var(--color-soft-grey);
}

.knowledge-hub-page__cta-band {
    background: linear-gradient(180deg, rgba(31, 138, 112, 0.07) 0%, #f9fcfb 100%);
    border-top: 1px solid var(--color-soft-grey);
}

.knowledge-hub-page__section-header {
    text-align: center;
    margin-bottom: 40px;
}

.knowledge-hub-page__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(31, 138, 112, 0.1);
    color: var(--color-calm-teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.knowledge-hub-page__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--color-trust-blue);
    margin: 0;
    text-align: center;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.knowledge-hub-page__subtitle {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 18px;
    color: var(--color-charcoal);
    margin: 14px auto 0;
    text-align: center;
    line-height: 1.75;
    max-width: 860px;
}

.knowledge-hub-page__highlights,
.knowledge-hub-page__featured-grid,
.knowledge-hub-page__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1180px;
    margin: 0 auto;
}

/* Base Card Styling */
.knowledge-hub-page__highlight-card,
.knowledge-hub-page__card,
.knowledge-hub-page__cta-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition:
        transform var(--motion-fast) ease-out,
        box-shadow var(--motion-fast) ease-out,
        border-color var(--motion-fast) ease-out;
}

.knowledge-hub-page__highlight-card:hover,
.knowledge-hub-page__card:hover,
.knowledge-hub-page__cta-box:hover,
.knowledge-hub-page__highlight-card:focus-within,
.knowledge-hub-page__card:focus-within,
.knowledge-hub-page__cta-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    border-color: rgba(31, 138, 112, 0.22);
}

.knowledge-hub-page__highlight-icon {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--color-calm-teal);
    font-size: 24px;
}

.knowledge-hub-page__highlight-title,
.knowledge-hub-page__card-title,
.knowledge-hub-page__cta-title {
    margin: 0 0 10px 0;
    color: var(--color-trust-blue);
    line-height: 1.25;
}

.knowledge-hub-page__highlight-title,
.knowledge-hub-page__cta-title {
    font-size: 22px;
}

.knowledge-hub-page__highlight-text,
.knowledge-hub-page__card-summary,
.knowledge-hub-page__cta-text {
    margin: 0;
    color: var(--color-charcoal);
    line-height: 1.8;
    font-size: 16px;
}

/* Updated Filter Row matching Partners page */
.knowledge-hub-page__filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 48px;
}

.knowledge-hub-page__filter-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--color-charcoal);
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(11, 60, 93, 0.03);
    transition: all var(--motion-fast) ease;
}

.knowledge-hub-page__filter-btn:hover,
.knowledge-hub-page__filter-btn:focus-visible {
    background-color: var(--color-off-white);
    border-color: rgba(31, 138, 112, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(11, 60, 93, 0.06);
    outline: none;
}

.knowledge-hub-page__filter-btn--active {
    background-color: var(--color-trust-blue);
    color: #ffffff;
    border-color: var(--color-trust-blue);
    box-shadow: 0 4px 12px rgba(11, 60, 93, 0.15);
}

.knowledge-hub-page__filter-btn--active:hover,
.knowledge-hub-page__filter-btn--active:focus-visible {
    background-color: #082d46;
    color: #ffffff;
    border-color: #082d46;
}

.knowledge-hub-page__card-tags,
.knowledge-hub-page__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.knowledge-hub-page__featured-grid,
.knowledge-hub-page__grid {
    align-items: stretch;
}

.knowledge-hub-page__card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.knowledge-hub-page__card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 12px;
}

.knowledge-hub-page__category,
.knowledge-hub-page__card-time {
    font-size: 0.85rem;
    color: var(--color-charcoal);
}

.knowledge-hub-page__card-time {
    color: var(--color-soft-grey);
    white-space: nowrap;
}

.knowledge-hub-page__card-title {
    font-size: 1.25rem;
}

.knowledge-hub-page__card-summary {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.knowledge-hub-page__tag {
    background-color: rgba(11, 60, 93, 0.05);
    color: var(--color-charcoal);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Featured Guide Customizations */
.knowledge-hub-page__featured .knowledge-hub-page__card {
    border-top: 4px solid var(--color-calm-teal);
}

.knowledge-hub-page__featured-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 138, 112, 0.1);
    color: var(--color-calm-teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.knowledge-hub-page__card-link {
    color: var(--color-calm-teal);
    font-weight: 700;
    font-size: 0.95rem;
    align-self: flex-start;
    margin-top: auto;
}

/* Updated CTA box: same UI, shifted slightly right, more spacing above buttons */
.knowledge-hub-page__cta-box {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding: 28px 40px 32px 72px;
}

.knowledge-hub-page__cta-text {
    margin: 0 auto;
    max-width: 760px;
    color: var(--color-charcoal);
    font-size: 20px;
    line-height: 1.7;
}

.knowledge-hub-page__cta-actions {
    justify-content: center;
    margin-top: 24px;
}

.knowledge-hub-page__cta-btn {
    background: var(--color-trust-blue);
    color: #ffffff;
    border: 1px solid var(--color-trust-blue);
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--motion-fast) ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.knowledge-hub-page__cta-btn--secondary {
    background: transparent;
    color: var(--color-trust-blue);
    border-color: transparent;
}

.knowledge-hub-page__cta-btn--secondary:hover {
    background-color: rgba(11, 60, 93, 0.05);
}

/* Hero button overrides */
.hero-section__btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition:
        color var(--motion-fast) ease-out,
        text-decoration-color var(--motion-fast) ease-out,
        transform var(--motion-fast) ease-out;
}

.hero-section__btn--secondary {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 6px;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-section__btn--secondary:hover,
.hero-section__btn--secondary:focus-visible {
    color: var(--color-calm-teal);
    text-decoration-color: var(--color-calm-teal);
    outline: none;
}

.hero-section__btn--secondary:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
    border-radius: 4px;
}

@media screen and (max-width: 1024px) {
    .knowledge-hub-page__highlights,
    .knowledge-hub-page__featured-grid,
    .knowledge-hub-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .knowledge-hub-page__intro,
    .knowledge-hub-page__featured,
    .knowledge-hub-page__list,
    .knowledge-hub-page__cta-band {
        padding: 72px 20px;
    }

    .knowledge-hub-page__highlights,
    .knowledge-hub-page__featured-grid,
    .knowledge-hub-page__grid {
        grid-template-columns: 1fr;
    }

    .knowledge-hub-page__section-header {
        margin-bottom: 28px;
    }

    .knowledge-hub-page__title {
        font-size: 28px;
    }

    .knowledge-hub-page__subtitle {
        font-size: 16px;
    }

    .knowledge-hub-page__highlight-card,
    .knowledge-hub-page__card,
    .knowledge-hub-page__cta-box {
        padding: 22px;
    }

    .knowledge-hub-page__cta-actions {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knowledge-hub-page__highlight-card,
    .knowledge-hub-page__card,
    .knowledge-hub-page__cta-box,
    .knowledge-hub-page__filter-btn,
    .knowledge-hub-page__cta-btn,
    .hero-section__btn {
        transition: none !important;
    }
}