.community-post-card {
    --type-color: #dce6f3;
    background: #fff;
    border: 1px solid #e2ebf4;
    border-top: 3px solid var(--type-color);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(18, 57, 95, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.community-post-card:hover {
    border-color: color-mix(in srgb, var(--type-color) 45%, #e2ebf4);
    box-shadow: 0 14px 30px rgba(18, 57, 95, 0.1);
    transform: translateY(-2px);
}

.community-post-card--spotlight {
    border-top-width: 4px;
    box-shadow: 0 12px 28px rgba(18, 57, 95, 0.08);
}

.community-post-card--featured {
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35), 0 12px 28px rgba(18, 57, 95, 0.08);
}

.community-post-card__media-link {
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.community-post-card__image,
.community-post-card__placeholder {
    aspect-ratio: 16 / 10;
    display: block;
    width: 100%;
}

.community-post-card__image {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.community-post-card:hover .community-post-card__image {
    transform: scale(1.03);
}

.community-post-card__placeholder {
    align-items: center;
    background: linear-gradient(135deg, #e8f0f8, #d8e8f4);
    color: #5f7f9d;
    display: flex;
    font-size: 2rem;
    justify-content: center;
}

.community-post-card__media-overlay {
    background: linear-gradient(180deg, transparent 50%, rgba(15, 47, 85, 0.35) 100%);
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.community-post-card__spotlight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    left: 0.75rem;
    position: absolute;
    top: 0.75rem;
    z-index: 1;
}

.community-post-card__spotlight-badge {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 47, 85, 0.12);
    color: #12395f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.28rem 0.62rem;
    text-transform: uppercase;
}

.community-post-card__video-badge {
    align-items: center;
    background: rgba(15, 47, 85, 0.82);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.85rem;
    height: 2rem;
    justify-content: center;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 2rem;
    z-index: 1;
}

.community-post-card__audio-badge {
    bottom: 0.75rem;
    top: auto;
}

.community-post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 1rem 1rem;
}

.community-post-card__meta-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.community-post-card__type,
.community-post-card__category,
.community-post-card__meta-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.22rem 0.58rem;
    white-space: nowrap;
}

.community-post-card__type {
    background: color-mix(in srgb, var(--type-color) 88%, #000000);
    color: #fff;
}

.community-post-card__category {
    background: color-mix(in srgb, var(--type-color) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--type-color) 35%, #dce6f3);
    color: color-mix(in srgb, var(--type-color) 65%, #12395f);
}

.community-post-card__meta-chip {
    background: #f4f7fb;
    border: 1px solid #dbe6f2;
    color: #5f738a;
}

.community-post-card__meta-chip--promotion {
    background: #fff8e7;
    border-color: #f3d9a4;
    color: #92400e;
}

.community-post-card__tag {
    align-items: center;
    background: color-mix(in srgb, var(--type-color) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--type-color) 35%, #dce6f3);
    border-radius: 999px;
    color: color-mix(in srgb, var(--type-color) 65%, #12395f);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
}

.community-post-card__tag--solid {
    background: color-mix(in srgb, var(--type-color) 88%, #000000);
    border-color: transparent;
    color: #fff;
}

.community-post-card__tag--emphasis {
    font-weight: 700;
}

.community-post-card__tag--rating {
    background: #fff8e7;
    border-color: #f3d9a4;
    color: #92400e;
}

.community-post-card__title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.community-post-card__title a {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #12395f;
    display: -webkit-box;
    overflow: hidden;
    text-decoration: none;
}

.community-post-card__title a:hover {
    color: color-mix(in srgb, var(--type-color) 55%, #12395f);
}

.community-post-card__excerpt {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #5f738a;
    display: -webkit-box;
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
}

.community-post-card__location {
    align-items: flex-start;
    color: #6c849c;
    display: flex;
    font-size: 0.78rem;
    gap: 0.35rem;
    line-height: 1.45;
    margin: 0;
}

.community-post-card__location i {
    margin-top: 0.12rem;
}

.community-post-card__footer {
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.community-post-card__byline {
    align-items: center;
    color: #6c849c;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 0.35rem 0.45rem;
    line-height: 1.35;
    margin: 0;
}

.community-post-card__byline .community-post-card__author-name {
    color: #24527a;
    font-weight: 700;
    text-decoration: none;
}

.community-post-card__byline-sep {
    color: #b8c7d8;
}

.community-post-card__stats {
    align-items: center;
    color: #6c849c;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.76rem;
    gap: 0.55rem 0.75rem;
}

.community-post-card__stats > span {
    align-items: center;
    display: inline-flex;
    gap: 0.3rem;
    white-space: nowrap;
}

.community-post-card__save,
.community-post-card__share-btn {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #dbe6f2;
    border-radius: 999px;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.76rem;
    height: 1.85rem;
    justify-content: center;
    min-width: 1.85rem;
    padding: 0 0.45rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.community-post-card__save:hover,
.community-post-card__share-btn:hover {
    background: #eef5ff;
    border-color: #cfe0f5;
    color: #1f4f7a;
}

.community-post-card__save.is-saved {
    background: #ecfdf3;
    border-color: #a7f3d0;
    color: #047857;
}

.community-post-card__share-btn span {
    display: none;
}

.community-score-badge--most-read.community-post-card__spotlight-badge {
    background: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}

.community-score-badge--most-liked.community-post-card__spotlight-badge {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.community-score-badge--most-subscribed.community-post-card__spotlight-badge {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.community-empty-state {
    align-items: center;
    background: #fff;
    border: 1px dashed #c9d9ea;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    padding: 2rem 1.25rem;
    text-align: left;
}

.community-empty-state__icon {
    align-items: center;
    background: #eef6ff;
    border-radius: 14px;
    color: #1f66b4;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    height: 3.25rem;
    justify-content: center;
    width: 3.25rem;
}

.community-empty-state__title {
    color: #12395f;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.community-empty-state__text {
    color: #6c849c;
    font-size: 0.92rem;
    line-height: 1.6;
}

.community-pagination-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.community-pagination-summary {
    color: #6c849c;
    font-size: 0.88rem;
    margin: 0;
}

.community-pagination-loading {
    color: #2e7d32;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0.35rem 0 0;
}

.community-scroll-sentinel {
    height: 1px;
    width: 100%;
}

.community-grid-load-more {
    border-radius: 12px;
    font-weight: 700;
    margin-top: 1rem;
    width: 100%;
}

@media (max-width: 767.98px) {
    .community-empty-state {
        flex-direction: column;
        text-align: center;
    }
}
