.community-hub-nav {
    margin-bottom: 1.5rem;
}

.community-btn-create {
    align-items: center;
    background: #1f9d45;
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 700;
    gap: 0.45rem;
    padding: 0.62rem 1.15rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.community-btn-create:hover {
    background: #18863a;
    color: #fff;
    transform: translateY(-1px);
}

.community-hub-nav__intro {
    margin-bottom: 1rem;
}

.community-hub-nav__title {
    color: #1a3552;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.community-hub-nav__subtitle {
    color: #5a7189;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.community-hub-breadcrumb {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.community-hub-breadcrumb li {
    align-items: center;
    color: #6c849c;
    display: inline-flex;
    font-size: 0.82rem;
    gap: 0.35rem;
}

.community-hub-breadcrumb li + li::before {
    color: #a8bdcf;
    content: "/";
    margin-right: 0.35rem;
}

.community-hub-breadcrumb a {
    color: #1f66b4;
    font-weight: 600;
    text-decoration: none;
}

.community-hub-breadcrumb a:hover {
    text-decoration: underline;
}

.community-hub-breadcrumb .is-current {
    color: #0f2f55;
    font-weight: 700;
}

.community-hub-sections {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.35rem;
}

.community-hub-section-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 47, 85, 0.05);
    color: inherit;
    display: flex;
    flex-direction: row;
    gap: 0.7rem;
    min-height: 0;
    padding: 0.75rem 0.85rem;
    position: relative;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.community-hub-section-card::before {
    display: none;
}

.community-hub-section-card:hover {
    border-color: color-mix(in srgb, var(--hub-accent, #1f66b4) 40%, #dbe6f2);
    box-shadow: 0 12px 26px rgba(15, 47, 85, 0.1);
    color: inherit;
    transform: translateY(-2px);
}

.community-hub-section-card.is-active {
    border-color: color-mix(in srgb, var(--hub-accent, #1f66b4) 55%, #dbe6f2);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--hub-accent, #1f66b4) 16%, transparent);
}

.community-hub-section-card__icon {
    align-items: center;
    background: color-mix(in srgb, var(--hub-accent, #1f66b4) 14%, #fff);
    border-radius: 10px;
    color: var(--hub-accent, #1f66b4);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.community-hub-section-card__copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.community-hub-section-card__label {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #0f2f55;
    display: -webkit-box;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    overflow: hidden;
}

.community-hub-section-card__tagline {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: #6c849c;
    display: -webkit-box;
    font-size: 0.74rem;
    line-height: 1.35;
    margin: 0;
    overflow: hidden;
}

.community-hub-section-card__count {
    color: #8aa0b5;
    font-size: 0.74rem;
    font-weight: 600;
    margin-top: auto;
}

.community-hub-panel {
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 47, 85, 0.06);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.community-hub-panel__head {
    background: color-mix(in srgb, var(--hub-accent, #004aad) 86%, #071428);
    color: #fff;
    padding: 1.15rem 1.35rem;
}

.community-hub-panel__head-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
}

.community-hub-panel__icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.1rem;
    height: 2.6rem;
    justify-content: center;
    width: 2.6rem;
}

.community-hub-panel__copy {
    flex: 1 1 220px;
    min-width: 0;
}

.community-hub-panel__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.25rem;
}

.community-hub-panel__description {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.community-hub-panel__view-all {
    align-items: center;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 0.4rem;
    margin-left: auto;
    text-decoration: none;
    white-space: nowrap;
}

.community-hub-panel__view-all:hover {
    color: #fff;
    opacity: 0.88;
}

.community-hub-panel__body {
    padding: 1.15rem 1.25rem 1.3rem;
}

.community-hub-panel__section-label {
    color: #0f2f55;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.community-hub-subsections {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.community-hub-subsection-card {
    background: #f7fbff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 168px;
    overflow: hidden;
    padding: 1rem 1rem 0.9rem;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.community-hub-subsection-card:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--type-color, #1f66b4) 45%, #dbe6f2);
    transform: translateY(-1px);
}

.community-hub-subsection-card.is-active {
    background: color-mix(in srgb, var(--type-color, #1f66b4) 8%, #fff);
    border-color: color-mix(in srgb, var(--type-color, #1f66b4) 55%, #dbe6f2);
}

.community-hub-subsection-card__deco {
    bottom: -0.4rem;
    color: color-mix(in srgb, var(--type-color, #1f66b4) 14%, transparent);
    font-size: 5.4rem;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 0.35rem;
}

.community-hub-subsection-card__main {
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    text-decoration: none;
    z-index: 1;
}

.community-hub-subsection-card__main:hover {
    color: inherit;
}

.community-hub-subsection-card__icon {
    align-items: center;
    background: color-mix(in srgb, var(--type-color, #1f66b4) 14%, #fff);
    border-radius: 10px;
    color: var(--type-color, #1f66b4);
    display: inline-flex;
    font-size: 0.95rem;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.community-hub-subsection-card__label {
    color: #0f2f55;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.community-hub-subsection-card__text {
    color: #5a7189;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

.community-hub-subsection-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin-top: auto;
    padding-top: 0.55rem;
    position: relative;
    z-index: 1;
}

.community-hub-subsection-card__browse {
    color: var(--type-color, #1f66b4);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.community-hub-subsection-card__browse:hover {
    text-decoration: underline;
}

.community-hub-subsection-card__post {
    background: color-mix(in srgb, var(--type-color, #1f66b4) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--type-color, #1f66b4) 35%, #dbe6f2);
    border-radius: 999px;
    color: var(--type-color, #1f66b4);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    text-decoration: none;
}

.community-hub-subsection-card__post:hover {
    background: var(--type-color, #1f66b4);
    color: #fff;
}

.community-hub-categories {
    border-top: 1px solid #e7eef6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.community-hub-categories__head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.community-hub-categories__title {
    color: #0f2f55;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin: 0;
    text-transform: uppercase;
}

.community-hub-categories__hint {
    color: #8aa0b5;
    font-size: 0.78rem;
    margin: 0;
}

.community-hub-category-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.community-hub-category-link {
    align-items: center;
    background: #f3f8fd;
    border: 1px solid #c8d9ea;
    border-radius: 999px;
    color: #1a4570;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.35rem;
    padding: 0.38rem 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.community-hub-category-link:hover {
    background: #eaf2fa;
    border-color: #9eb9d4;
    color: #0f2f55;
}

.community-hub-category-link.is-active {
    background: color-mix(in srgb, var(--type-color, #1f66b4) 14%, #fff);
    border-color: color-mix(in srgb, var(--type-color, #1f66b4) 45%, #c8d9ea);
    color: color-mix(in srgb, var(--type-color, #1f66b4) 82%, #0f2f55);
    font-weight: 800;
}

.community-hub-category-chip {
    align-items: center;
    background: #f3f8fd;
    border: 1px solid #c8d9ea;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem 0.45rem 0.2rem 0.2rem;
}

.community-hub-category-chip.is-active {
    background: color-mix(in srgb, var(--type-color, #1f66b4) 14%, #fff);
    border-color: color-mix(in srgb, var(--type-color, #1f66b4) 45%, #c8d9ea);
}

.community-hub-category-chip .community-hub-category-link {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0.18rem 0.35rem;
}

.community-hub-category-chip .btn {
    font-size: 0.68rem;
    padding: 0.1rem 0.45rem;
}

.community-hub-posts-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.community-hub-posts-heading h2 {
    color: #0f2f55;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.community-hub-posts-heading p {
    color: #6c849c;
    font-size: 0.84rem;
    margin: 0;
}

.community-hub-posts-heading__view-all {
    align-items: center;
    color: #1f66b4;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 700;
    gap: 0.35rem;
    text-decoration: none;
}

.community-hub-posts-heading__view-all:hover {
    color: #0f2f55;
}

.community-hub-sections--compact {
    gap: 0.55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.community-hub-section-card--compact {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.65rem 0.75rem;
}

.community-hub-section-card--compact .community-hub-section-card__icon {
    font-size: 0.85rem;
    height: 2rem;
    width: 2rem;
}

.community-hub-section-card--compact .community-hub-section-card__label {
    font-size: 0.78rem;
    line-height: 1.2;
}

.community-hub-section-card--compact .community-hub-section-card__tagline,
.community-hub-section-card--compact .community-hub-section-card__count {
    display: none;
}

.community-hub-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-hub-sidebar__card,
.community-share-cta {
    background: #fff;
    border: 1px solid #dbe6f2;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 47, 85, 0.05);
    padding: 1.05rem 1.1rem 1.15rem;
}

.community-hub-sidebar__title {
    color: #0f2f55;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.85rem;
}

.community-hub-sidebar__empty {
    color: #6c849c;
    font-size: 0.82rem;
    list-style: none;
    margin: 0;
}

.community-topic-cloud {
    display: grid;
    gap: 0.5rem 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-topic-chip {
    align-items: center;
    background: #e8f4fb;
    border-radius: 999px;
    color: #1a5f86;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.3;
    min-height: 2rem;
    padding: 0.28rem 0.55rem;
    text-align: center;
    text-decoration: none;
}

.community-topic-chip span {
    color: #3d7ea3;
    font-weight: 650;
    margin-left: 0.2rem;
}

.community-topic-chip:hover {
    background: #d7ecf8;
    color: #0f2f55;
}

.community-contributors {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-contributor {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    position: relative;
}

.community-contributor__rank {
    align-items: center;
    background: #1f66b4;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.62rem;
    font-weight: 800;
    height: 1.15rem;
    justify-content: center;
    left: 1.55rem;
    position: absolute;
    top: -0.15rem;
    width: 1.15rem;
    z-index: 1;
}

.community-contributor__avatar,
.community-author-avatar.community-contributor__avatar {
    align-items: center;
    background: linear-gradient(135deg, #1f66b4, #2e7d32);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    height: 2.45rem;
    justify-content: center;
    overflow: hidden;
    width: 2.45rem;
}

.community-contributor__meta {
    min-width: 0;
}

.community-contributor__name {
    color: #0f2f55;
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-contributor__meta p {
    color: #6c849c;
    font-size: 0.74rem;
    margin: 0.1rem 0 0;
}

.community-share-cta {
    background: linear-gradient(180deg, #eaf5ff 0%, #f4f9ff 100%);
    overflow: hidden;
    position: relative;
}

.community-share-cta__icon {
    align-items: center;
    background: #fff3c4;
    border-radius: 12px;
    color: #d39b00;
    display: inline-flex;
    font-size: 1rem;
    height: 2.3rem;
    justify-content: center;
    margin-bottom: 0.7rem;
    width: 2.3rem;
}

.community-share-cta h3 {
    color: #0f2f55;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.community-share-cta p {
    color: #5a7189;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
}

.community-share-cta .community-btn-create {
    font-size: 0.84rem;
    padding: 0.5rem 0.95rem;
}

.community-share-cta__art {
    color: color-mix(in srgb, #1f66b4 22%, transparent);
    font-size: 4.2rem;
    line-height: 1;
    margin-top: 0.6rem;
    text-align: right;
}

.community-highlights {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
    padding: 0.25rem 0 0.5rem;
}

.community-highlight {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
}

.community-highlight__icon {
    align-items: center;
    background: color-mix(in srgb, var(--tone, #1f66b4) 12%, #fff);
    border-radius: 12px;
    color: var(--tone, #1f66b4);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.community-highlight h3 {
    color: #0f2f55;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.15rem;
}

.community-highlight p {
    color: #6c849c;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

@media (min-width: 992px) {
    .community-hub-sections--compact {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .community-hub-sidebar {
        position: sticky;
        top: 1rem;
    }
}

@media (min-width: 768px) {
    .community-hub-sections {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .community-highlights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .community-hub-sections {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .community-hub-sections,
    .community-topic-cloud {
        grid-template-columns: 1fr;
    }

    .community-hub-sections--compact {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x mandatory;
    }

    .community-hub-section-card--compact {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .community-hub-panel__view-all {
        margin-left: 0;
    }
}
