.forum-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 24px;
    border-bottom: 1px solid #dedede;
}

.forum-hero h1 {
    margin: 0;
    color: #242424;
    font-size: 2rem;
    line-height: 1.18;
}

.forum-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: #5d6470;
}

.forum-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 260px;
}

.forum-kicker {
    margin: 0 0 4px;
    color: #8b641f;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.forum-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.forum-stat {
    min-height: 84px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-stat span {
    display: block;
    color: #5d6470;
    font-size: .82rem;
}

.forum-stat strong {
    display: block;
    margin-top: 6px;
    color: #242424;
    font-size: 1.45rem;
    line-height: 1.2;
}

.forum-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.forum-section-heading h2 {
    margin: 0;
    color: #242424;
    font-size: 1.2rem;
    line-height: 1.25;
}

.forum-section-link {
    flex: 0 0 auto;
    color: #5a4116;
    font-size: .86rem;
    font-weight: 700;
}

.forum-topic-list {
    display: grid;
    gap: 8px;
}

.forum-topic-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 14px;
    min-height: 104px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #747b86;
    font-size: .78rem;
}

.forum-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    color: #385042;
    background: #e9f2ec;
    border: 1px solid #d3e4d8;
    border-radius: 6px;
    font-weight: 700;
}

.forum-topic-title {
    display: block;
    color: #242424;
    font-weight: 700;
    line-height: 1.3;
}

.forum-topic-title:hover {
    color: #8b641f;
}

.forum-topic-main p {
    margin: 6px 0 0;
    color: #5d6470;
    font-size: .9rem;
    line-height: 1.45;
}

.forum-topic-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    color: #68717c;
    text-align: right;
    font-size: .78rem;
}

.forum-topic-stats strong {
    color: #242424;
    font-size: 1.35rem;
    line-height: 1;
}

.forum-topic-stats small {
    margin-top: 8px;
    color: #8a8f97;
}

.forum-empty {
    padding: 16px;
    color: #68717c;
    background: #ffffff;
    border: 1px dashed #cfcfcf;
    border-radius: 6px;
}

.forum-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.forum-category-card {
    display: grid;
    gap: 6px;
    min-height: 136px;
    padding: 14px;
    color: #242424;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-category-card:hover {
    color: #242424;
    border-color: #caa15c;
    text-decoration: none;
}

.forum-category-title {
    font-weight: 700;
}

.forum-category-desc {
    color: #626974;
    font-size: .9rem;
    line-height: 1.45;
}

.forum-category-last {
    align-self: end;
    color: #444b54;
    font-size: .85rem;
}

.forum-category-last small {
    display: block;
    color: #8a8f97;
}

.forum-form-panel {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-form-panel label {
    color: #242424;
    font-weight: 700;
}

.forum-form-panel .form-control {
    border-color: #cfd4da;
}

.forum-tags-input {
    display: block;
}

.forum-submit-panel {
    padding: 12px;
    background: #f5f6f7;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-category-hero,
.forum-ask-hero,
.forum-thread-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-category-hero h1,
.forum-ask-hero h1,
.forum-thread-hero h1 {
    margin: 0;
    color: #242424;
    font-size: 1.8rem;
    line-height: 1.2;
}

.forum-category-hero p,
.forum-ask-hero p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #5d6470;
}

.forum-thread-hero {
    display: block;
    padding: 16px 18px;
}

.forum-thread-hero h1 {
    max-width: 900px;
    margin: 10px 0 12px;
    font-size: 1.65rem;
}

.forum-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.forum-tags a,
.forum-tag-suggestions span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    color: #385042;
    background: #e9f2ec;
    border: 1px solid #d3e4d8;
    border-radius: 6px;
    font-size: .84rem;
    font-weight: 700;
}

.forum-tags a:hover {
    color: #24392d;
    text-decoration: none;
    border-color: #b9d2c0;
}

.forum-tags span {
    margin-right: 2px;
    color: #789184;
}

.forum-question-card,
.forum-answer-card,
.forum-reply-panel,
.forum-help-panel,
.forum-side-section {
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 6px;
}

.forum-question-card,
.forum-answer-card,
.forum-reply-panel,
.forum-help-panel {
    padding: 18px;
}

.forum-card-label {
    margin-bottom: 10px;
    color: #8b641f;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.forum-question-content,
.forum-answer-content {
    color: #2f3338;
    line-height: 1.62;
}

.forum-thread-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 12px;
    color: #68717c;
    border-top: 1px solid #ececec;
    font-size: .88rem;
}

.forum-thread-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.forum-thread-footer small {
    margin-left: 0;
    color: #8a8f97;
}

.forum-thread-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.forum-thread-actions a,
.forum-thread-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    padding: 0;
    color: #5a4116;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
}

.forum-thread-actions a:hover,
.forum-thread-actions button:hover {
    text-decoration: underline;
}

.forum-thread-meta .tbrate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}

.forum-answers-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #68717c;
    font-size: .9rem;
}

.forum-answers-summary i {
    color: #8b641f;
}

.forum-answers-summary strong {
    color: #242424;
    font-size: .95rem;
}

.forum-answer-card {
    margin-bottom: 12px;
}

.forum-answer-card-featured {
    border-color: #caa15c;
    box-shadow: inset 4px 0 0 #f2b95e;
}

.forum-answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.forum-answer-header small {
    flex: 0 0 auto;
    color: #8a8f97;
}

.forum-badge-muted {
    color: #606875;
    background: #f0f2f4;
    border-color: #dfe3e8;
}

.forum-side-section {
    padding: 14px;
}

.forum-side-section .forum-topic-card {
    grid-template-columns: 1fr;
    min-height: 0;
}

.forum-side-section .forum-topic-stats {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
}

.forum-side-section .forum-topic-stats small {
    margin: 0 0 0 auto;
}

.forum-help-panel h2 {
    margin: 0 0 8px;
    color: #242424;
    font-size: 1.1rem;
}

.forum-help-panel p {
    color: #5d6470;
    line-height: 1.5;
}

.forum-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #4d555f;
    list-style: none;
}

.forum-checklist i {
    margin-right: 7px;
    color: #3d7a4f;
}

.forum-tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.forum-reply-panel textarea {
    min-height: 84px;
}

@media (max-width: 991.98px) {
    .forum-hero,
    .forum-category-hero,
    .forum-ask-hero {
        display: block;
    }

    .forum-hero-actions {
        justify-content: flex-start;
        min-width: 0;
        margin-top: 16px;
    }

    .forum-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forum-category-hero .btn {
        margin-top: 14px;
    }
}

@media (max-width: 575.98px) {
    .forum-hero h1,
    .forum-category-hero h1,
    .forum-ask-hero h1,
    .forum-thread-hero h1 {
        font-size: 1.55rem;
    }

    .forum-hero-actions .btn,
    .forum-category-hero .btn,
    .forum-thread-hero .btn,
    .forum-submit-panel .btn {
        width: 100%;
    }

    .forum-nav .btn {
        flex: 1 1 calc(50% - 8px);
        white-space: normal;
    }

    .forum-stats-grid,
    .forum-category-grid {
        grid-template-columns: 1fr;
    }

    .forum-topic-card {
        grid-template-columns: 1fr;
    }

    .forum-topic-stats {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        text-align: left;
    }

    .forum-topic-stats small {
        margin: 0 0 0 auto;
    }

    .forum-answer-header {
        display: block;
    }

    .forum-thread-footer {
        align-items: flex-start;
    }

    .forum-thread-actions {
        flex: 0 0 auto;
    }

    .forum-answer-header small {
        display: block;
        margin-top: 6px;
    }
}
