.community-hero {
    position: relative;
    padding: 115px 0 95px;
    background:
        linear-gradient(135deg, rgba(7, 74, 97, 0.94), rgba(9, 90, 75, 0.92)),
        url("../img/community-banner.jpg") no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.community-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.13), transparent 34%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 28%);
    pointer-events: none;
}

.community-hero .container {
    position: relative;
    z-index: 2;
}

.community-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.community-hero__content h1 {
    color: #fff;
    font-size: 3.25rem;
    line-height: 1.1;
    margin-bottom: 18px;
}

.community-hero__content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.04rem;
    max-width: 680px;
    margin-bottom: 30px;
}

.community-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.community-hero__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.community-stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 24px 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    text-align: left;
}

.community-stat-card i {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
    display: inline-block;
}

.community-stat-card h3 {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
    font-family: "Exo", sans-serif;
    font-weight: 700;
}

.community-stat-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.community-strip {
    background: #fff;
    padding-top: 55px;
    padding-bottom: 55px;
}

.community-proof {
    background: #fff;
    border: 1px solid rgba(9, 90, 75, 0.08);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 10px 24px rgba(20, 44, 88, 0.06);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.community-proof:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(20, 44, 88, 0.12);
}

.community-proof i {
    display: inline-block;
    font-size: 2rem;
    color: #095a4b;
    margin-bottom: 12px;
}

.community-proof h4 {
    color: #095a4b;
    margin-bottom: 10px;
}

.community-proof p {
    margin-bottom: 0;
}

.community-section-text {
    max-width: 760px;
    margin: 0 auto;
}

.community-platform {
    background: #fff;
    border-radius: 26px;
    padding: 34px;
    box-shadow: 0 14px 36px rgba(20, 44, 88, 0.08);
    border: 1px solid rgba(9, 90, 75, 0.06);
    margin-bottom: 30px;
    overflow: hidden;
}

.community-platform:last-child {
    margin-bottom: 0;
}

.community-platform__image {
    position: relative;
    min-height: 330px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.community-platform__image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12), transparent 32%);
}

.community-platform__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%),
        linear-gradient(315deg, rgba(0,0,0,0.08), transparent 35%);
}

.community-platform__image--instagram {
    background:
        linear-gradient(135deg, #833ab4 0%, #c13584 35%, #e1306c 60%, #fd1d1d 80%, #fcb045 100%);
}

.community-platform__image--facebook {
    background:
        linear-gradient(135deg, #1877f2 0%, #0f5fd1 48%, #0a4597 100%);
}

.community-platform__image--tiktok {
    background:
        linear-gradient(135deg, #0f0f10 0%, #141414 45%, #1f1f20 100%);
}

.community-platform__image--reddit {
    background:
        linear-gradient(135deg, #ff4500 0%, #ff5b1f 45%, #cc3700 100%);
}

.community-platform__image--discord {
    background:
        linear-gradient(135deg, #5865f2 0%, #4752c4 55%, #313a8f 100%);
}

.community-platform__badge {
    position: absolute;
    left: 28px;
    bottom: 28px;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.community-platform__badge i {
    color: #fff;
    font-size: 2.7rem;
    line-height: 1;
}

.community-platform__content {
    padding: 8px 4px 8px 14px;
}

.community-platform__tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(9, 90, 75, 0.1);
    color: #095a4b;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.community-platform__content h3 {
    color: #095a4b;
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 16px;
}

.community-platform__content p {
    margin-bottom: 22px;
    font-size: 1rem;
}

.community-tiles {
    background: #fff;
}

.community-tile {
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(20, 44, 88, 0.07);
    border: 1px solid rgba(9, 90, 75, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.community-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(20, 44, 88, 0.12);
    border-color: rgba(9, 90, 75, 0.16);
}

.community-tile i {
    font-size: 2rem;
    color: #095a4b;
    line-height: 1;
}

.community-tile span {
    color: #25435c;
    font-weight: 600;
    line-height: 1.4;
}

.community-cta {
    background: #fff;
}

.community-cta__box {
    background: linear-gradient(135deg, #095a4b, #001961);
    border-radius: 28px;
    padding: 64px 28px;
    color: #fff;
    box-shadow: 0 24px 48px rgba(0, 25, 97, 0.18);
}

.community-cta__box .community-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.community-cta__box h2 {
    color: #fff;
    margin-bottom: 16px;
}

.community-cta__box p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.88);
}

.community-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.community-cta__box .btn-solid-border {
    border-color: #fff;
    color: #fff;
}

.community-cta__box .btn-solid-border:hover {
    background: #fff;
    color: #001961;
    border-color: #fff;
}

/* subtle alternation for reversed rows */
.community-platform--reverse .community-platform__content {
    padding-left: 0;
    padding-right: 14px;
}

/* hover polish */
.community-platform {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.community-platform:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(20, 44, 88, 0.12);
}

/* dark mode */
body.theme-dark .community-strip,
body.theme-dark .community-tiles,
body.theme-dark .community-cta {
    background: #121212;
}

body.theme-dark .community-proof,
body.theme-dark .community-platform,
body.theme-dark .community-tile {
    background: #171717 !important;
    color: #d6deea !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 5px #55555559;
}

body.theme-dark .community-proof h4,
body.theme-dark .community-platform__content h3 {
    color: #ededf3 !important;
}

body.theme-dark .community-platform__tag {
    background: rgba(255, 255, 255, 0.08);
    color: #f0f3f8;
}

body.theme-dark .community-tile span {
    color: #d6deea;
}

/* responsive */
@media (max-width: 1199.98px) {
    .community-hero__content h1 {
        font-size: 2.9rem;
    }

    .community-platform__content h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 991.98px) {
    .community-hero {
        padding: 95px 0 75px;
    }

    .community-hero__content h1 {
        font-size: 2.5rem;
    }

    .community-hero__panel {
        margin-top: 30px;
    }

    .community-platform,
    .community-platform--reverse {
        padding: 26px;
    }

    .community-platform__content,
    .community-platform--reverse .community-platform__content {
        padding: 0;
    }

    .community-platform__image {
        min-height: 280px;
    }
}

@media (max-width: 767.98px) {
    .community-hero {
        padding: 80px 0 60px;
    }

    .community-hero__content h1 {
        font-size: 2.1rem;
    }

    .community-hero__panel {
        grid-template-columns: 1fr;
    }

    .community-platform {
        padding: 20px;
        border-radius: 20px;
    }

    .community-platform__image {
        min-height: 230px;
        border-radius: 18px;
    }

    .community-platform__badge {
        width: 74px;
        height: 74px;
        border-radius: 20px;
        left: 20px;
        bottom: 20px;
    }

    .community-platform__badge i {
        font-size: 2.25rem;
    }

    .community-platform__content h3 {
        font-size: 1.5rem;
    }

    .community-cta__box {
        padding: 46px 18px;
    }
}

@media (max-width: 575.98px) {
    .community-hero__actions,
    .community-cta__actions {
        flex-direction: column;
    }

    .community-hero__actions .btn,
    .community-cta__actions .btn {
        width: 100%;
    }

    .community-hero__content h1 {
        font-size: 1.85rem;
    }

    .community-proof,
    .community-tile {
        padding: 22px 18px;
    }

    .community-platform__content h3 {
        font-size: 1.35rem;
    }
}

.community-tiles-row {
    display: flex;
    justify-content: space-between; /* spreads evenly */
    flex-wrap: wrap;
    gap: 12px;
}

.community-tile-col {
    flex: 1 1 180px; /* equal width with min size */
    max-width: 220px;
}