.community-board-section {
    background: #e8f6fc;
}

.community-board-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #d4eaf5;
    overflow: hidden;
}

.community-board-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #d4eaf5;
}

.community-board-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #004a99;
}

.community-filters {
    display: flex;
    gap: 0.5rem;
}

.community-filter-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.community-filter-btn:hover {
    border-color: #00aeef;
    color: #004a99;
    background: #f0f9fc;
}

.community-filter-btn.is-active {
    background: linear-gradient(135deg, #004a99, #0077cc);
    border-color: #0077cc;
    color: #fff;
}

.community-table-wrap {
    overflow-x: auto;
}

.community-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.community-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    background: #f0f9fc;
    border-bottom: 1px solid #d4eaf5;
    white-space: nowrap;
}

.community-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e8f4fa;
    color: #334155;
    vertical-align: middle;
}

.community-table tbody tr:hover {
    background: #f0f9fc;
}

.community-row--child td {
    background: #f5fbfe;
}

.community-row--child .col-title {
    padding-left: 2rem;
}

.community-col-title,
.col-title {
    min-width: 200px;
}

.col-author {
    white-space: nowrap;
}

.col-answers,
.col-status,
.col-views {
    text-align: center;
    white-space: nowrap;
}

.col-date {
    white-space: nowrap;
    color: #64748b;
}

.community-title-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.community-title-link:hover .community-title-text {
    color: #0077cc;
}

.community-thread-icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}

.community-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.community-badge--free {
    background: #e8f6fc;
    color: #0077cc;
}

.community-badge--question {
    background: #e2e8f0;
    color: #475569;
}

.community-badge--answer {
    background: #e2e8f0;
    color: #64748b;
}

.community-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.community-status--resolved {
    background: #d1fae5;
    color: #047857;
}

.community-status--open {
    background: #e8f6fc;
    color: #0077cc;
}

.community-dash {
    color: #cbd5e1;
}

.community-empty {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #94a3b8;
}

.community-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.community-back-link:hover {
    color: #0077cc;
}

.community-post-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.community-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #004a99;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.community-post-meta {
    font-size: 0.875rem;
    color: #64748b;
}

.community-meta-sep {
    margin: 0 0.35rem;
}

.community-post-content,
.community-answer-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

.community-post-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.community-delete-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: background 0.15s ease;
}

.community-delete-btn:hover {
    background: #fee2e2;
}

.community-answers-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 1rem;
}

.community-answers-count {
    color: #00aeef;
}

.community-no-answers {
    color: #94a3b8;
    font-size: 0.9375rem;
}

.community-answer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.community-answer-item {
    background: #f0f9fc;
    border: 1px solid #d4eaf5;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.community-answer-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
}

.community-answer-author {
    font-weight: 600;
    color: #334155;
}

.community-answer-date {
    color: #94a3b8;
    margin-left: auto;
}

.community-answer-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 1rem;
}

.community-login-hint {
    text-align: center;
    color: #64748b;
    font-size: 0.9375rem;
}

.community-login-link {
    color: #0077cc;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.community-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.community-modal[hidden] {
    display: none;
}

.community-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 80, 0.45);
}

.community-modal-panel {
    position: relative;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.community-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.community-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004a99;
    margin-bottom: 1.25rem;
}

.community-form-type {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.community-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.15s ease;
}

.community-type-option:has(input:checked) {
    border-color: #00aeef;
    background: #e8f6fc;
    color: #004a99;
}

.community-type-option input {
    display: none;
}

.community-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #004a99;
    margin-bottom: 0.5rem;
}

.community-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9375rem;
    color: #334155;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.community-input:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.community-textarea {
    resize: vertical;
    min-height: 8rem;
}

.community-form > div + div {
    margin-top: 1rem;
}

.community-submit-btn {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #004a99, #0077cc, #00aeef);
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.community-submit-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.3);
}

.community-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.community-form-status {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    text-align: center;
}

.community-form-status.is-error {
    color: #dc2626;
}

.community-form-status.is-success {
    color: #047857;
}

@media (max-width: 768px) {
    .community-table .col-date,
    .community-table .col-views {
        display: none;
    }

    .community-table th.col-date,
    .community-table th.col-views {
        display: none;
    }
}
