.community-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
   ========================================================= */

.community-header {
    min-height: 90px;

    padding:
        20px
        clamp(22px, 5vw, 80px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

    background:
        rgba(7, 7, 9, 0.92);
}


.community-brand {
    display: flex;
    align-items: end;
    gap: 3px;
}


.community-brand-main {
    color: #f2f2f3;

    font-size: 29px;
    font-weight: 950;

    letter-spacing: -0.055em;
}


.community-brand-dot {
    color: var(--red-bright);

    font-size: 20px;
    font-weight: 950;
}


.community-back {
    min-height: 38px;

    padding:
        0
        14px;

    display: flex;
    align-items: center;
    gap: 9px;

    border:
        1px solid var(--border);

    border-radius: 4px;

    color: #9999a1;

    font-size: 8px;
    font-weight: 900;
}


.community-back span {
    color: var(--red-bright);
}


/* =========================================================
   MAIN
   ========================================================= */

.community-main {
    width: 100%;
    max-width: 1450px;

    margin: 0 auto;

    padding:
        36px
        clamp(22px, 5vw, 80px)
        75px;

    flex: 1;
}


.breadcrumb {
    margin-bottom: 30px;

    display: flex;
    gap: 9px;

    color: #66666e;

    font-size: 8px;
    font-weight: 800;
}


.breadcrumb span:last-child {
    color: #9999a0;
}


.community-kicker,
.community-card-kicker {
    color: var(--red-bright);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.2em;
}


/* =========================================================
   HERO
   ========================================================= */

.community-hero {
    position: relative;

    min-height: 330px;

    margin-bottom: 22px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background:
        linear-gradient(
            120deg,
            #111115,
            #09090b
        );
}


.community-hero::after {
    content: "COMMUNITY";

    position: absolute;

    right: -20px;
    bottom: -35px;

    color:
        rgba(255, 255, 255, 0.018);

    font-size:
        clamp(65px, 10vw, 150px);

    font-weight: 950;

    letter-spacing: -0.06em;

    pointer-events: none;
}


.community-hero-glow {
    position: absolute;

    left: 15%;
    bottom: -170px;

    width: 500px;
    height: 300px;

    border-radius: 50%;

    background:
        rgba(227, 38, 46, 0.13);

    filter:
        blur(100px);
}


.community-hero-content {
    position: relative;

    z-index: 2;

    min-height: 330px;

    max-width: 760px;

    padding:
        clamp(30px, 5vw, 60px);

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.community-hero h1 {
    margin:
        5px
        0
        12px;

    color: #f2f2f4;

    font-size:
        clamp(45px, 7vw, 80px);

    font-weight: 950;

    line-height: 0.95;

    letter-spacing: -0.055em;
}


.community-hero p {
    max-width: 650px;

    margin: 0;

    color: #82828a;

    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   GRID
   ========================================================= */

.community-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.community-card {
    position: relative;

    min-height: 260px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 20, 24, 0.9),
            rgba(9, 9, 12, 0.94)
        );

    transition:
        transform 180ms ease,
        border-color 180ms ease;
}


.community-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(227, 38, 46, 0.35);
}


.featured-community {
    grid-column:
        1 / -1;

    min-height: 310px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(227, 38, 46, 0.1),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            rgba(25, 18, 21, 0.95),
            rgba(9, 9, 12, 0.95)
        );
}


.community-card-number {
    position: absolute;

    right: 20px;
    top: 9px;

    color:
        rgba(255, 255, 255, 0.035);

    font-size: 64px;
    font-weight: 950;
}


.community-card-content {
    position: relative;

    z-index: 2;

    min-height: inherit;

    padding:
        28px
        26px;

    display: flex;
    flex-direction: column;
}


.community-card h2 {
    margin:
        auto
        0
        9px;

    color: #eaeaec;

    font-size:
        clamp(22px, 2.5vw, 32px);

    font-weight: 950;

    letter-spacing: -0.035em;
}


.community-card p {
    max-width: 640px;

    margin:
        0
        0
        20px;

    color: #777780;

    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   IRC DETAILS
   ========================================================= */

.community-details {
    margin-top: 5px;

    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


.community-details div {
    min-width: 130px;

    padding:
        9px
        11px;

    display: flex;
    flex-direction: column;

    border-left:
        2px solid rgba(227, 38, 46, 0.55);

    background:
        rgba(0, 0, 0, 0.25);
}


.community-details span {
    color: #64646c;

    font-size: 7px;
    font-weight: 900;
}


.community-details strong {
    margin-top: 3px;

    color: #d6d6da;

    font-size: 10px;
}


.community-channels {
    margin-top: 17px;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}


.community-channels span {
    padding:
        6px
        9px;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 4px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #92929a;

    font-size: 8px;
    font-weight: 850;
}


/* =========================================================
   LINKS
   ========================================================= */

.community-link {
    width: max-content;

    display: inline-flex;
    align-items: center;
    gap: 14px;

    color: #97979f;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.07em;

    transition:
        color 180ms ease,
        gap 180ms ease;
}


.community-link span {
    color: var(--red-bright);
}


.community-link:hover {
    color: #fff;
    gap: 19px;
}


/* =========================================================
   FUTURE
   ========================================================= */

.community-future {
    margin-top: 18px;

    padding:
        28px
        30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border:
        1px dashed rgba(255, 255, 255, 0.09);

    border-radius: 7px;

    background:
        rgba(11, 11, 14, 0.7);
}


.community-future h2 {
    margin:
        4px
        0
        6px;

    color: #dcdce0;

    font-size: 22px;
    font-weight: 950;
}


.community-future p {
    max-width: 700px;

    margin: 0;

    color: #6f6f77;

    font-size: 10px;
}


.community-future-mark {
    flex-shrink: 0;

    color:
        rgba(227, 38, 46, 0.4);

    font-size: 70px;
    font-weight: 300;
}


/* =========================================================
   CONTACT CTA
   ========================================================= */

.community-contact {
    margin-top: 18px;

    padding:
        27px
        30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border:
        1px solid rgba(227, 38, 46, 0.16);

    border-radius: 7px;

    background:
        linear-gradient(
            110deg,
            rgba(55, 10, 14, 0.38),
            rgba(13, 13, 16, 0.9)
        );
}


.community-contact h2 {
    margin:
        3px
        0
        5px;

    color: #ededf0;

    font-size: 22px;
    font-weight: 950;
}


.community-contact p {
    margin: 0;

    color: #777780;

    font-size: 10px;
}


.community-contact-button {
    min-width: 135px;
    min-height: 42px;

    padding:
        0
        15px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border:
        1px solid rgba(227, 38, 46, 0.58);

    border-radius: 4px;

    background:
        rgba(227, 38, 46, 0.13);

    color: #fff;

    font-size: 8px;
    font-weight: 900;
}


.community-contact-button span {
    color: var(--red-bright);
}


/* =========================================================
   FOOTER
   ========================================================= */

.community-footer {
    min-height: 80px;

    padding:
        20px
        clamp(22px, 5vw, 80px);

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    border-top:
        1px solid var(--border);

    color: #6e6e76;

    font-size: 9px;
}


.community-footer strong {
    color: #a0a0a7;
}


.community-footer a {
    justify-self: end;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

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


    .featured-community {
        grid-column: auto;
    }

}


@media (max-width: 650px) {

    .community-header {
        padding:
            15px
            16px;
    }


    .community-brand-main {
        font-size: 23px;
    }


    .community-brand-dot {
        font-size: 16px;
    }


    .community-main {
        padding:
            25px
            13px
            45px;
    }


    .community-hero {
        min-height: 400px;
    }


    .community-hero-content {
        min-height: 400px;

        padding:
            27px
            20px;
    }


    .community-hero h1 {
        font-size: 47px;
    }


    .community-card {
        min-height: 230px;
    }


    .community-card-content {
        padding:
            22px
            20px;
    }


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


    .community-details div {
        width: 100%;
    }


    .community-future,
    .community-contact {
        padding:
            23px
            20px;

        flex-direction: column;
        align-items: stretch;
    }


    .community-future-mark {
        display: none;
    }


    .community-contact-button {
        width: 100%;
    }


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

        gap: 9px;

        text-align: center;
    }


    .community-footer a {
        justify-self: center;
    }

}
