.community-hero {
    background:
        radial-gradient(circle at top right, rgba(214,168,79,.26), transparent 30%),
        linear-gradient(135deg, #0b1120, #1f2937);
    color: white;
}

.community-hero h1 {
    max-width: 860px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    margin: 14px 0;
}

.community-hero p {
    max-width: 760px;
    color: #d1d5db;
    line-height: 1.75;
    font-size: 18px;
}

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

.light-outline {
    border-color: rgba(255,255,255,.4);
    color: white;
}

.community-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.community-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 22px;
    position: sticky;
    top: 120px;
}

.community-sidebar h3 {
    margin-top: 0;
}

.community-sidebar a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #374151;
}

.community-sidebar a:hover,
.community-sidebar a.active {
    background: #111827;
    color: white;
}

.community-sidebar small {
    color: #9ca3af;
}

.access-box {
    margin-top: 18px;
    background: #fef3c7;
    color: #92400e;
    padding: 14px;
    border-radius: 18px;
    display: grid;
    gap: 5px;
}

.community-search {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.community-search input {
    flex: 1;
}

.post-card,
.post-detail,
.comments-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
    margin-bottom: 18px;
}

.post-card h2 {
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.2;
}

.post-card p,
.post-author,
.post-footer,
.comment-item small {
    color: #6b7280;
}

.post-card p,
.post-content,
.comment-item p {
    line-height: 1.8;
}

.post-meta,
.post-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta span {
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
}

.post-meta .pinned {
    background: #fef3c7;
    color: #92400e;
}

.post-detail h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    margin: 16px 0;
}

.post-content {
    color: #374151;
    font-size: 17px;
    margin: 28px 0;
}

.comment-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.comment-item:last-child {
    border-bottom: 0;
}

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

    .community-sidebar {
        position: static;
    }

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