.section-community-feed {
    padding-top: 1.5rem;
    padding-bottom: 2.25rem;
}

.community-page-head {
    margin-bottom: 1.2rem;
}

.community-page-head h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
}

.community-page-head p {
    margin-top: .4rem;
    color: #5f6772;
}

.community-feed-filter-form {
    margin-top: .65rem;
}

.community-feed-filter-option {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .6rem;
    border: 1px solid #dfe5ee;
    background: #f7f9fc;
    color: #1f2937;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 600;
}

.community-feed-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--vr-theme-color);
}

.community-layout-row {
    align-items: flex-start;
}

.community-main-col {
    min-width: 0;
}

.community-side-col,
.community-skyscraper-col {
    width: 100%;
    max-width: 100%;
}

.community-side-rail,
.community-skyscraper-rail {
    top: 105px;
}

.community-side-rail.sticky-lg-top,
.community-skyscraper-rail.sticky-lg-top {
    z-index: 100 !important;
}

.community-rail-ads {
    margin-bottom: 16px;
}

.community-rail-ads .sidebar-widget.ads-container {
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.community-rail-ads .ads-ticker ul li {
    width: 100%;
}

.community-rail-ads .ads-ticker,
.community-rail-ads .ads-ticker ul,
.community-rail-ads #sidebar-ads-rotator .sidebar-ad-item {
    height: auto;
    min-height: 0;
    line-height: 0;
}

.community-rail-ads #sidebar-ads-rotator .sidebar-ad-item {
    width: 100%;
    white-space: normal;
    overflow: visible !important;
}

.community-skyscraper-slot,
.community-skyscraper-slot .container-bn,
.community-skyscraper-slot .bn-content,
.community-skyscraper-slot .bn-inner {
    width: 100%;
}

.community-skyscraper-slot .container-bn {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.community-skyscraper-slot .container-bn .row {
    margin: 0 !important;
}

.community-skyscraper-slot .bn-content {
    justify-content: flex-start !important;
    padding: 0 !important;
}

.community-skyscraper-slot img {
    display: block;
    width: 100%;
    height: auto;
}

.community-composer-card,
.community-sidebar-card,
.community-post-card,
.community-feed-empty {
    background: #fff;
    border: 1px solid #e8ebee;
    border-radius: 0;
    box-shadow: 0 10px 28px -22px rgba(26, 42, 70, .35);
}

.community-composer-card {
    padding: 1rem;
    margin-bottom: 1rem;
}

.community-composer-card .form-control,
.community-composer-card .btn,
.community-post-card .btn {
    border-radius: 0;
}

.community-composer-toolbar {
    margin-top: .45rem;
    padding: .55rem .65rem;
    border: 1px solid #dfe5ee;
    background: #f7f9fc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.community-media-trigger {
    border: 1px solid #d5deea;
    background: #fff;
    color: #1f2937;
    padding: .45rem .65rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.community-media-trigger:hover {
    background: #f0f4f9;
    border-color: #c8d3e1;
}

.community-media-trigger-icon {
    color: #1f7a36;
}

.community-selected-file {
    min-width: 0;
    max-width: 100%;
    border: 1px solid #d5deea;
    background: #fff;
    padding: .4rem .55rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.community-selected-file .js-community-file-name {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-selected-file-clear {
    border: 0;
    background: transparent;
    color: #0f6db5;
    padding: 0;
    font-size: .82rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.community-link-inline-hint {
    margin-top: .5rem;
    padding: .4rem .6rem;
    border: 1px dashed #d9e1eb;
    background: #f9fbff;
    color: #5c6675;
    font-size: .82rem;
}

.community-link-inline-hint i {
    color: #0f6db5;
    margin-right: .2rem;
}

.community-link-inline-hint code {
    color: #0f6db5;
    padding: 0;
    background: transparent;
}

.community-sidebar-card {
    padding: 1rem 1.1rem;
}

.community-sidebar-card h2 {
    margin-top: 0;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.community-sidebar-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.community-feed-list {
    display: grid;
    gap: 1rem;
}

.community-feed-empty {
    padding: 1.25rem;
    color: #5f6772;
}

.community-post-card {
    padding: .95rem 1rem;
}

.community-post-header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.community-post-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 0;
    object-fit: cover;
}

.community-post-author-wrap {
    flex: 1;
}

.community-post-author {
    font-weight: 700;
    color: #161b22;
}

.community-post-time-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: #6e7781;
}

.community-post-permalink {
    color: #0f6db5;
}

.community-post-reshared-label {
    margin-top: .1rem;
    font-size: .78rem;
    color: #6e7781;
}

.community-post-header-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.community-post-body {
    margin-top: .8rem;
    line-height: 1.55;
    color: #2c323a;
    word-break: break-word;
}

.community-post-image-wrap {
    margin-top: .75rem;
}

.community-post-image,
.community-reshare-original-image,
.community-link-card-image img {
    width: 100%;
    max-height: 470px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid #eceff3;
}

.community-link-youtube {
    margin-top: .75rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0;
}

.community-link-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.community-link-card {
    margin-top: .75rem;
    border: 1px solid #e6eaf0;
    border-radius: 0;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fcfdff;
}

.community-link-card-body {
    padding: .7rem .8rem;
}

.community-link-card-body strong {
    display: block;
    color: #1b1f27;
}

.community-link-card-body p {
    margin: .25rem 0;
    color: #4d5561;
}

.community-link-card-body small {
    color: #6e7781;
    text-transform: lowercase;
}

.community-reshare-original {
    margin-top: .85rem;
    border: 1px solid #e7ebf2;
    background: #f8fafc;
    border-radius: 0;
    padding: .7rem;
}

.community-reshare-original-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .86rem;
}

.community-reshare-original-head img {
    border-radius: 0;
}

.community-reshare-original-body {
    margin: .55rem 0;
}

.community-reshare-unavailable {
    color: #6e7781;
    font-size: .9rem;
}

.community-post-stats {
    margin-top: .8rem;
    padding-top: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    font-size: .84rem;
    color: #59606b;
    border-top: 1px solid #eceff3;
}

.community-post-actions {
    margin-top: .6rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.community-post-actions .btn.active {
    border-color: var(--vr-theme-color);
    color: var(--vr-theme-color);
    background: rgba(15, 109, 181, .08);
}

.community-comments-panel {
    margin-top: .9rem;
    padding-top: .7rem;
    border-top: 1px solid #eceff3;
}

.community-comments-list {
    display: grid;
    gap: .8rem;
}

.community-comment-item {
    display: flex;
    gap: .55rem;
}

.community-comment-avatar img {
    border-radius: 0;
    object-fit: cover;
}

.community-comment-content {
    flex: 1;
}

.community-comment-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.community-comment-name {
    font-weight: 600;
    color: #161b22;
}

.community-comment-time {
    color: #6e7781;
    font-size: .78rem;
}

.community-comment-body {
    margin: .2rem 0;
    color: #2d333b;
    line-height: 1.45;
    word-break: break-word;
}

.community-comment-actions {
    display: flex;
    gap: .7rem;
    font-size: .8rem;
}

.community-comment-form {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}

.community-comment-form .form-control {
    flex: 1;
}

.community-comment-login-note {
    margin-top: .65rem;
    color: #6e7781;
    font-size: .9rem;
}

.community-feed-load-more-wrap {
    margin-top: 1rem;
    text-align: center;
}

body.dark .community-composer-card,
body.dark .community-sidebar-card,
body.dark .community-post-card,
body.dark .community-feed-empty,
body.dark .community-reshare-original,
body.dark .community-link-card {
    background: #181a1f;
    border-color: #2b2f37;
}

body.dark .community-composer-toolbar {
    background: #1b2028;
    border-color: #2f3744;
}

body.dark .community-media-trigger,
body.dark .community-selected-file {
    background: #232935;
    border-color: #374255;
    color: #dde3ef;
}

body.dark .community-media-trigger:hover {
    background: #2a3140;
}

body.dark .community-link-inline-hint {
    background: #1b2028;
    border-color: #364052;
    color: #bbc5d3;
}

body.dark .community-link-inline-hint code,
body.dark .community-selected-file-clear {
    color: #7ab8ff;
}

body.dark .community-feed-filter-option {
    background: #1b2028;
    border-color: #2f3744;
    color: #dde3ef;
}

body.dark .community-rail-ads .sidebar-widget.ads-container {
    background-color: #111827;
    border-color: #2b3443;
    box-shadow: none;
}

body.dark .community-page-head p,
body.dark .community-post-time,
body.dark .community-comment-time,
body.dark .community-comment-login-note,
body.dark .community-feed-empty {
    color: #acb3be;
}

body.dark .community-post-author,
body.dark .community-comment-name,
body.dark .community-link-card-body strong,
body.dark .community-post-body,
body.dark .community-comment-body,
body.dark .community-reshare-original-body,
body.dark .community-sidebar-card h2 {
    color: #e3e7ef;
}

@media (max-width: 767.98px) {
    .community-feed-filter-form {
        display: block;
    }

    .community-feed-filter-option {
        width: 100%;
        justify-content: flex-start;
    }

    .community-post-card {
        padding: .8rem;
    }

    .community-post-actions .btn {
        flex: 1;
    }

    .community-comment-form {
        flex-direction: column;
    }

    .community-media-trigger {
        width: 100%;
        justify-content: center;
    }

    .community-selected-file {
        width: 100%;
        justify-content: space-between;
    }

    .community-selected-file .js-community-file-name {
        max-width: calc(100% - 80px);
    }
}

@media (min-width: 992px) {
    .community-side-col {
        flex: 0 0 300px;
        max-width: 300px;
    }

    .community-skyscraper-col {
        flex: 0 0 160px;
        max-width: 160px;
    }
}

@media (max-width: 991.98px) {
    .community-side-rail,
    .community-skyscraper-rail {
        position: relative !important;
        top: 0;
    }
}
