.community-page {
    min-height: 100vh;
}

.community-hero,
.community-shell,
.community-cta {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.community-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 28px;
    align-items: end;
    min-height: 72vh;
    padding: 120px 0 58px;
}

.community-hero-copy > span,
.community-section-heading > span,
.community-cta span,
.community-live-card span,
.community-card-link span {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.community-hero h1 {
    max-width: 840px;
    margin: 16px 0 20px;
    font-family: "Syne", sans-serif;
    font-size: clamp(3rem, 9vw, 6.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.community-hero p,
.community-section-heading p,
.community-cta p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.community-live-card,
.community-cta {
    border: 1px solid var(--line-bright);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 24, 33, 0.92), rgba(8, 11, 16, 0.82));
    box-shadow: 0 30px 90px var(--shadow);
    backdrop-filter: blur(18px);
}

.community-live-card {
    padding: 28px;
}

.community-live-card strong {
    display: block;
    margin: 12px 0 6px;
    font-family: "Syne", sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1;
}

.community-live-card small {
    color: var(--muted);
}

.community-shell {
    padding: 56px 0;
}

.community-section-heading {
    margin-bottom: 22px;
}

.community-section-heading h2,
.community-cta h2 {
    margin: 12px 0;
    font-family: "Syne", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    letter-spacing: 0;
}

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

.community-card-link,
.community-placeholder {
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(16, 24, 33, 0.72);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.community-card-link:hover {
    transform: translateY(-4px);
    border-color: var(--line-bright);
    background: rgba(18, 35, 42, 0.88);
}

.community-card-link strong {
    display: block;
    margin: 16px 0 10px;
    font-family: "Syne", sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
}

.community-card-link p,
.community-card-link small,
.community-placeholder {
    color: var(--muted);
    line-height: 1.55;
}

.community-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.community-meta b {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--green);
    font-size: 0.78rem;
}

.community-placeholder {
    display: grid;
    place-items: center;
    grid-column: 1 / -1;
    min-height: 150px;
    text-align: center;
}

.community-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 24px;
    margin-bottom: 54px;
    padding: clamp(24px, 5vw, 40px);
}

@media (max-width: 940px) {
    .community-hero,
    .community-cta {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .community-cta {
        flex-direction: column;
    }

    .community-cta .btn-primary {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .community-hero,
    .community-shell,
    .community-cta {
        width: min(100% - 24px, 1180px);
    }

    .community-hero {
        min-height: auto;
        padding-top: 104px;
    }

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

    .community-actions,
    .community-actions .btn-primary,
    .community-actions .btn-secondary {
        width: 100%;
    }
}
