@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --community-bg: #f7f4f0;
    --community-ink: #1f2333;
    --community-muted: #5b6472;
    --community-card: #ffffff;
    --community-border: #e3e0da;
    --community-accent: #71b2e2;
    --community-accent-strong: #2f67a8;
    --community-soft: #e9f3ff;
    --community-shadow: 0 20px 35px rgba(22, 32, 49, 0.12);
}

.community-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 18px 60px;
    color: var(--community-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    position: relative;
}

.community-shell::before {
    content: "";
    position: absolute;
    top: 40px;
    right: 6%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(113, 178, 226, 0.2), rgba(113, 178, 226, 0));
    pointer-events: none;
}

.community-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f2fbff 100%);
    border: 1px solid #edf1f6;
    border-radius: 28px;
    padding: 28px 32px;
    box-shadow: var(--community-shadow);
    position: relative;
    overflow: hidden;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--community-accent-strong);
    font-weight: 700;
    margin: 0;
}

.hero-title {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 34px;
    margin: 0;
    color: var(--community-ink);
}

.hero-subtitle {
    font-size: 15px;
    margin: 0;
    color: var(--community-muted);
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hero-stats div {
    background: #fffdf9;
    border: 1px solid #f1ece6;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--community-accent-strong);
}

.stat-label {
    font-size: 12px;
    color: var(--community-muted);
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: #ffffff;
    border: 1px solid #eef1f5;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-shadow: 0 12px 20px rgba(31, 75, 115, 0.1);
}

.hero-card-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--community-ink);
}

.hero-card p {
    margin: 0;
    font-size: 14px;
    color: var(--community-muted);
}

.hero-primary {
    background: linear-gradient(135deg, var(--community-accent) 0%, #a3d1f0 100%);
    color: #14335b;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.hero-secondary {
    background: #ffffff;
    color: #1f4b73;
    border: 1px solid #d7e3ee;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.community-toolbar {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    font-size: 13px;
    font-weight: 600;
    color: #3a4050;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-pill.is-active {
    background: var(--community-accent);
    color: #103059;
    border-color: var(--community-accent);
    box-shadow: 0 12px 18px rgba(113, 178, 226, 0.2);
}

.toolbar-right {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.community-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e0e6ee;
    padding: 6px 14px;
    border-radius: 16px;
    min-width: 280px;
    height: 48px;
    box-shadow: 0 10px 20px rgba(22, 32, 49, 0.08);
}

.community-search input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    height: 100%;
}

.community-search button {
    border: none;
    background: var(--community-accent);
    color: #14335b;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    height: 32px;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-sort-form {
    display: flex;
    align-items: center;
}

.community-sort {
    border-radius: 16px;
    border: 1px solid #dbe1ea;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--community-muted);
    background: #ffffff;
    height: 48px;
    min-width: 160px;
    box-shadow: 0 10px 20px rgba(22, 32, 49, 0.08);
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 26px;
}

.community-layout > main {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.feed-card {
    background: var(--community-card);
    border-radius: 20px;
    padding: 18px 20px 16px;
    border: 1px solid var(--community-border);
    box-shadow: 0 16px 28px rgba(22, 32, 49, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.feed-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.feed-author img {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    margin: 0;
}

.author-meta {
    font-size: 12px;
    color: var(--community-muted);
}

.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.feed-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--community-soft);
    color: var(--community-accent-strong);
    font-size: 11px;
    font-weight: 600;
}

.feed-tag.soft {
    background: #f4f1eb;
    color: #8c6d3b;
}

.feed-title {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 20px;
}

.feed-title a {
    color: var(--community-ink);
    text-decoration: none;
}

.feed-media {
    border-radius: 16px;
    overflow: hidden;
    background: #f0f4f9;
    max-height: 320px;
}

.feed-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feed-excerpt {
    margin: 0;
    color: var(--community-muted);
    font-size: 14px;
    line-height: 1.7;
}

.feed-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.feed-more-actions {
    margin-left: auto;
}

.btn.ghost {
    border-radius: 999px;
    border: 1px solid #e4e9f0;
    background: #ffffff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #3b4354;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    border: 1px solid #e5e9f0;
    box-shadow: 0 12px 22px rgba(22, 32, 49, 0.08);
}

.sidebar-card h4 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 16px;
    margin-bottom: 12px;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tags span {
    background: #f7f2ec;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #5d4f3a;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed #e6ebf1;
}

.event-item:first-of-type {
    border-top: none;
}

.event-title {
    font-weight: 700;
    margin: 0 0 4px 0;
}

.sidebar-card ul {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 8px;
    color: var(--community-muted);
    font-size: 13px;
}

.empty-state {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    border: 1px dashed #d9e1ec;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.community-pagination .page-link {
    border-radius: 10px;
    border: none;
    color: #3b4354;
}

.community-pagination .page-item.active .page-link {
    background: var(--community-accent);
    color: #0f2f57;
}

@media (max-width: 992px) {
    .community-hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .community-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .community-shell {
        padding: 20px 14px 48px;
    }

    .community-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .community-search {
        width: 100%;
    }

    .community-sort {
        width: 100%;
    }
}
