.community-blog-page {
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.community-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.community-blog-title {
    margin: 0;
    color: #1f2937;
    font-family: Inter, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.community-blog-search {
    width: 300px;
    min-height: 0;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    box-sizing: border-box;
}

.community-blog-search__icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #9ca3af;
}

.community-blog-search__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2937;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px !important;
    font-weight: 400;
    line-height: normal;
    outline: 0;
    appearance: none;
}

.community-blog-search__input:focus {
    border: 0;
    box-shadow: none;
    outline: 0;
}

.community-blog-search__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.community-blog-tabs {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
}

.community-blog-tabs::-webkit-scrollbar {
    display: none;
}

.community-blog-tab {
    min-height: 26px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #737887;
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.community-blog-tab:hover {
    background: #eef2ff;
    color: #155dfc;
}

.community-blog-tab.is-active {
    background: #155dfc;
    color: #ffffff;
}

.community-blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.community-blog-card {
    width: 100%;
    min-height: 128px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .02);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.community-blog-card:hover {
    border-color: #d8dee8;
    box-shadow: 0 12px 28px rgba(31, 41, 55, .08);
    transform: translateY(-1px);
}

.community-blog-card__visual {
    position: relative;
    width: 240px;
    flex: 0 0 240px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: #635bff;
    overflow: hidden;
}

.community-blog-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #ffffff;
    object-fit: contain;
    object-position: center;
}

.community-blog-card__visual--purple {
    background: #7c3aed;
    color: #ffffff;
}

.community-blog-card__visual--indigo {
    background: #e0e7ff;
    color: #635bff;
}

.community-blog-card__visual--green {
    background: #d1fae5;
    color: #10b981;
}

.community-blog-card__visual--yellow {
    background: #fef3c7;
    color: #f59e0b;
}

.community-blog-card__visual--red {
    background: #fee2e2;
    color: #ef4444;
}

.community-blog-card__icon {
    width: 80px;
    height: 80px;
}

.community-blog-card__icon--large {
    width: 80px;
    height: 80px;
}

.community-blog-card__body {
    min-width: 0;
    flex: 1 1 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.community-blog-tag {
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--tag-bg-color, #f5f3ff);
    color: var(--tag-text-color, #7c3aed);
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.community-blog-card__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.community-blog-card__title {
    margin: 0;
    color: #1f2937;
    font-family: Inter, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.community-blog-card__excerpt {
    margin: 0;
    color: #6b7280;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.community-blog-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.community-blog-card__meta,
.community-blog-card__author,
.community-blog-card__date,
.community-blog-card__actions,
.community-blog-card__action {
    display: flex;
    align-items: center;
}

.community-blog-card__meta {
    min-width: 0;
    gap: 16px;
    color: #9ca3af;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
}

.community-blog-card__date {
    gap: 6px;
    white-space: nowrap;
}

.community-blog-card__separator {
    color: #9ca3af;
}

.community-blog-card__author {
    min-width: 0;
    gap: 8px;
    color: #6b7280;
}

.community-blog-card__avatar {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 700;
}

.community-blog-card__author-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-blog-card__actions {
    flex: 0 0 auto;
    gap: 12px;
    color: #9ca3af;
}

.community-blog-card__action {
    min-width: 28px;
    min-height: 28px;
    padding: 6px;
    border-radius: 6px;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}

.community-blog-card__action:hover,
.community-blog-card__action:focus-visible {
    background: #f5f6fa;
    color: #4a5565;
}

.community-blog-public-related-list .community-blog-card__action:hover,
.community-blog-public-related-list .community-blog-card__action:focus-visible {
    background: #ebeef5;
}

.community-blog-card__action--share {
    position: relative;
    cursor: pointer;
}

.community-blog-card__tooltip {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: calc(100% + 8px);
    padding: 7px 10px;
    border-radius: 8px;
    background: #3e3e3e;
    box-shadow: 0 6px 16px rgba(37, 36, 59, .16);
    color: #fff;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.community-blog-card__tooltip::after {
    position: absolute;
    right: 9px;
    top: 100%;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #3e3e3e;
    content: '';
}

.community-blog-card__action svg,
.community-blog-card__date svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.community-blog-card__date svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.community-blog-empty,
.community-blog-loading {
    padding: 28px;
    border: 1px dashed #d9dee8;
    border-radius: 16px;
    background: #ffffff;
    color: #64748b;
    font-size: 14px;
}

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

@media (max-width: 991px) {
    .community-blog-page {
        padding: 24px 16px 32px;
    }

    .community-blog-header {
        align-items: stretch;
        flex-direction: column;
    }

    .community-blog-search {
        width: 100%;
    }

    .community-blog-card {
        flex-direction: column;
    }

    .community-blog-card__visual {
        width: 100%;
        min-height: 160px;
        flex-basis: auto;
    }

    .community-blog-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .community-blog-card__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .community-blog-card__separator {
        display: none;
    }
}
