.forum-page {
    background: #f5f7fa;
    padding: 2rem 0;
}

.forum-page__container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

#bbpress-forums.tornaustasi-forum-wrapper,
.tornaustasi-forum-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.forum-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.forum-breadcrumb {
    padding: 1.25rem 1.75rem 0 1.75rem;
}

.forum-breadcrumb__nav {
    font-size: 0.85rem;
}

.forum-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #64748b;
    list-style: none;
    padding: 0;
    margin: 0;
}

.forum-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.forum-breadcrumb__item:not(:first-child)::before {
    content: "›";
    color: #cbd5f5;
    font-size: 0.9rem;
}

.forum-breadcrumb__item--current {
    color: #94a3b8;
    font-weight: 500;
}

.forum-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-breadcrumb__link:hover {
    color: #7bb639;
}

.forum-breadcrumb__icon {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.forum-breadcrumb__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.forum-card__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(123, 182, 57, 0.08) 0%, rgba(6, 107, 125, 0.08) 100%);
    border-top: 1px solid #ecf1f6;
}

.forum-card__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: #e6f8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7bb639;
    box-shadow: inset 0 0 0 6px rgba(123, 182, 57, 0.08);
}

.forum-card__icon svg {
    width: 2.1rem;
    height: 2.1rem;
}

.forum-card__title {
    margin: 0 0 0.75rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.forum-card__description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.forum-action {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(123, 182, 57, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
    border-top: 1px solid #e4f1e8;
}

.forum-action__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.forum-action__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.forum-action__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    border-radius: 0.9rem;
    background: #7bb639;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(123, 182, 57, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-action__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(123, 182, 57, 0.32);
}

.forum-action__button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.forum-new-topic {
    display: none;
    padding: 1.75rem;
    border-top: 1px solid #edf2f7;
    gap: 1.5rem;
}

.forum-new-topic--visible {
    display: block;
    background: #f8fafc;
}

.forum-new-topic__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.forum-new-topic__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.forum-new-topic__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.forum-new-topic__close:hover {
    color: #1f2937;
}

.forum-new-topic__close svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: currentColor;
}

.forum-new-topic__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forum-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.forum-form__input,
.forum-form__textarea {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid #d1d9e6;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-form__textarea {
    min-height: 180px;
    resize: vertical;
}

.forum-form__input:focus,
.forum-form__textarea:focus {
    outline: none;
    border-color: #7bb639;
    box-shadow: 0 0 0 3px rgba(123, 182, 57, 0.2);
}

.forum-form__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.forum-form__status {
    font-size: 0.85rem;
    color: #6b7280;
}

.forum-form__status--error {
    color: #dc2626;
}

.forum-form__status--loading {
    color: #2563eb;
}

.forum-form__actions {
    display: flex;
    gap: 0.75rem;
}

.forum-form__submit {
    background: #7bb639;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.85rem;
    padding: 0.6rem 1.5rem;
    border: none;
    cursor: pointer;
}

.forum-form__submit:hover {
    background: #639425;
}

.forum-form__cancel {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

.forum-notice {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid #bae6fd;
    background: #e0f2fe;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.forum-notice__icon {
    font-size: 1.4rem;
    color: #0369a1;
}

.forum-notice__title {
    margin: 0;
    font-weight: 600;
    color: #0369a1;
}

.forum-notice__text {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #0c4a6e;
}

.forum-topics {
    padding: 1.75rem;
    border-top: 1px solid #e2e8f0;
}

.forum-topics__header {
    margin-bottom: 1.5rem;
}

.forum-topics__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.forum-topics__subtitle {
    margin: 0.4rem 0 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

.forum-topics__list {
    display: flex;
    flex-direction: column;
}

.forum-topic {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.forum-topic + .forum-topic {
    margin-top: 1rem;
}

.forum-topic:hover {
    background: #ffffff;
    border-color: #d8e3f0;
}

.forum-topic__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(123, 182, 57, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7bb639;
    font-weight: 600;
    font-size: 0.95rem;
}

.forum-topic__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.forum-topic__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.forum-topic__title a {
    color: inherit;
    text-decoration: none;
}

.forum-topic__title a:hover {
    color: #7bb639;
}

.forum-topic__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
}

.forum-topic__stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.forum-topic__stat {
    text-align: center;
}

.forum-topic__stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.forum-topic__stat-value--accent {
    color: #7bb639;
}

.forum-topic__stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.forum-topics__empty {
    padding: 2.5rem;
    text-align: center;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px dashed #cbd5f5;
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

.forum-topics__empty-icon {
    font-size: 2rem;
}

.forum-topics__empty-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.forum-topics__empty-text {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.forum-topics__empty-button {
    margin-top: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 0.85rem;
    background: #7bb639;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}
/**
 * bbPress Forum Styling for Torna Ustası Theme
 * Custom styles to integrate bbPress with the theme design
 */

/* Forum Container Styling */
.bbp-forum-index,
.bbp-topic-index,
.bbp-single-forum,
.bbp-single-topic {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Forum Header */
.bbp-forum-index .bbp-header,
.bbp-topic-index .bbp-header,
.bbp-single-forum .bbp-header,
.bbp-single-topic .bbp-header {
    background: linear-gradient(135deg, #7bb639 0%, #5a9c2a 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
}

.bbp-forum-index .bbp-header h1,
.bbp-topic-index .bbp-header h1,
.bbp-single-forum .bbp-header h1,
.bbp-single-topic .bbp-header h1 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Forum List Styling */
.bbp-forum-list,
.bbp-topic-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Forum Grid Cards */
.forums-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .forums-grid,
    .home #homepage-forums {
        grid-template-columns: 1fr !important;
    }
}

.home .forums-grid,
.home #homepage-forums {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.home #homepage-forums {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .home #homepage-forums {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1280px) {
    .home #homepage-forums {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.forum-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(123, 182, 57, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.forum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(123, 182, 57, 0.15);
}

.forum-card__icon {
    padding: 1.5rem;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    justify-content: center;
}

.forum-card__icon-inner {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: rgba(123, 182, 57, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7bb639;
}

.forum-card__icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.forum-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.forum-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forum-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.forum-card__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-card__link:hover {
    color: #5a9c2a;
}

.forum-card__description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.forum-card__stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.forum-card__stat {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    min-width: 120px;
}

.forum-card__stat-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.forum-card__stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #7bb639;
}

.forum-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
    flex-wrap: wrap;
}

.forum-card__meta-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #475569;
}

.forum-card__meta-icon {
    width: 1rem;
    height: 1rem;
}

.forum-card__meta-value a,
.forum-card__meta-value {
    color: #7bb639;
    font-weight: 600;
    text-decoration: none;
}

.forum-card__meta-value a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .forum-card__body {
        padding: 1.25rem;
        gap: 1rem;
    }

    .forum-card__title {
        font-size: 1.05rem;
    }

    .forum-card__description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .forum-card__stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .forum-card__stat {
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 0.85rem;
    }

    .forum-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .forum-card__button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.topic-page {
    background: #f5f7fa;
    padding: 2rem 0;
}

.topic-page__container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.topic-card {
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.topic-breadcrumb {
    padding: 1.25rem 1.75rem 0 1.75rem;
}

.topic-breadcrumb__nav {
    font-size: 0.85rem;
}

.topic-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: #64748b;
    padding: 0;
    margin: 0;
    list-style: none;
}

.topic-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-breadcrumb__item:not(:first-child)::before {
    content: "›";
    color: #cbd5f5;
    font-size: 0.9rem;
}

.topic-breadcrumb__item--current {
    color: #94a3b8;
    font-weight: 500;
}

.topic-breadcrumb__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topic-breadcrumb__link:hover {
    color: #066b7d;
}

.topic-breadcrumb__icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    justify-content: center;
    align-items: center;
}

.topic-breadcrumb__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.topic-card__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 107, 125, 0.08) 100%);
    padding: 1.75rem;
    border-top: 1px solid #ecf1f6;
}

.topic-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.1rem;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.topic-card__icon svg {
    width: 2rem;
    height: 2rem;
}

.topic-card__title {
    margin: 0 0 0.75rem 0;
    font-size: 2rem;
    color: #0f172a;
    font-weight: 700;
}

.topic-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: #475569;
    font-size: 0.95rem;
}

.topic-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-card__meta-item svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.topic-card__meta-item a {
    color: #2563eb;
    text-decoration: none;
}

.topic-card__meta-item a:hover {
    text-decoration: underline;
}

.topic-card__author {
    font-weight: 600;
    color: #066b7d;
}

.topic-card__badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.topic-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.topic-status svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.topic-status--sticky {
    background: rgba(250, 204, 21, 0.16);
    color: #b45309;
}

.topic-status--locked {
    background: rgba(248, 113, 113, 0.16);
    color: #b91c1c;
}

.topic-card__content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.topic-card__body {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.topic-card__body p {
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.topic-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.topic-card__stats-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.topic-stat {
    min-width: 120px;
    background: #f8fafc;
    border-radius: 0.9rem;
    padding: 0.9rem 1.1rem;
    text-align: left;
}

.topic-stat__label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.topic-stat__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #066b7d;
}

.topic-card__freshness {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
}

.topic-card__freshness-value a {
    color: #2563eb;
    text-decoration: none;
}

.topic-card__freshness-value a:hover {
    text-decoration: underline;
}

.topic-advert {
    margin: 0 0 1.75rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(123, 182, 57, 0.06) 0%, rgba(6, 107, 125, 0.06) 100%);
    padding: 1.5rem;
    position: relative;
}

.topic-advert--empty {
    background: #f8fafc;
}

.topic-advert--empty .topic-advert__content {
    padding: 1.2rem 1.4rem;
    border-radius: 0.85rem;
}

.topic-advert__content {
    display: grid;
    gap: 0.45rem;
    color: #1f2937;
}

.topic-advert__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #475569;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.topic-advert__icon {
    font-size: 1.8rem;
}

.topic-advert__headline {
    font-weight: 700;
    font-size: 1rem;
}

.topic-advert__line {
    font-size: 0.85rem;
    color: #475569;
}

.topic-advert__line a {
    color: #2563eb;
    text-decoration: none;
}

.topic-advert__line a:hover {
    text-decoration: underline;
}

.topic-advert__button {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.topic-advert__button:hover {
    background: #1d4ed8;
}

.topic-replies {
    margin-top: 2.5rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    width: 100%;
}

.topic-replies__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(123, 182, 57, 0.08) 0%, rgba(6, 107, 125, 0.08) 100%);
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #e5eaf0;
}

.topic-replies__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: #7bb639;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.topic-replies__icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.topic-replies__title {
    margin: 0;
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 700;
}

.topic-replies__count {
    margin: 0.15rem 0 0 0;
    color: #475569;
    font-size: 0.85rem;
}

.topic-replies__list {
    display: flex;
    flex-direction: column;
}

.topic-reply {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.topic-reply:last-child {
    border-bottom: none;
}

.topic-reply__avatar {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #475569;
}

.topic-reply__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.topic-reply__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.topic-reply__author-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.topic-reply__author {
    font-weight: 600;
    color: #0f172a;
}

.topic-reply__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eff1f5;
    color: #475569;
}

.topic-reply__badge--master {
    background: rgba(250, 204, 21, 0.18);
    color: #b45309;
}

.topic-reply__badge--apprentice {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.topic-reply__badge--junior {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.topic-reply__badge-icon {
    font-size: 0.85rem;
}

.topic-reply__time {
    font-size: 0.8rem;
    color: #94a3b8;
}

.topic-reply__content {
    color: #334155;
    line-height: 1.65;
}

.topic-replies__empty {
    padding: 2.5rem;
    text-align: center;
    color: #64748b;
}

.topic-notice {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    align-items: flex-start;
}

.topic-notice--info {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.topic-notice--error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.topic-notice--warning {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.topic-notice--center {
    justify-content: center;
    text-align: center;
}

.topic-notice__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    background: rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-notice__icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

.topic-notice__title {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
}

.topic-notice__text {
    margin: 0;
    font-size: 0.9rem;
    color: inherit;
}

.topic-notice__button {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 0.85rem;
    background: #f59e0b;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.topic-notice__button:hover {
    background: #d97706;
}

.topic-form {
    margin-top: 2.5rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    width: 100%;
}

.topic-form__header {
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 107, 125, 0.08) 100%);
    border-bottom: 1px solid #e5eaf0;
}

.topic-form__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.topic-form__body {
    padding: 1.75rem;
}

.topic-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.topic-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.topic-form__textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border-radius: 0.85rem;
    border: 1px solid #d1d9e6;
    font-size: 0.95rem;
    color: #1f2937;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-form__textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.topic-form__submit {
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
    border-radius: 0.85rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.topic-form__submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.forum-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: auto;
}

.forum-card__footer .forum-card__meta-label {
    font-weight: 600;
}

.forum-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.35rem;
    border-radius: 0.75rem;
    background: #7bb639;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 12px 26px rgba(123, 182, 57, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    justify-content: center;
}

.forum-card__button:hover {
    background: #5a9c2a;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(123, 182, 57, 0.24);
}

.forum-card__button--secondary {
    justify-content: center;
    background: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
    width: 100%;
}

.forum-card__button--secondary:hover {
    background: #1d4ed8;
}

.forum-card__button-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.forum-card--archive {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid #e5eaf0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.forum-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1.75rem 0 1.75rem;
}

.forum-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.15rem;
    background: rgba(123, 182, 57, 0.16);
    color: #7bb639;
}

.forum-card__icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.forum-card--archive .forum-card__body {
    padding: 1.75rem;
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.forum-card--archive .forum-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.forum-card--archive .forum-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

/* Topics Modern Cards */
.topics-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.topic-item {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.topic-item__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    flex-wrap: wrap;
}

.topic-item__main {
    flex: 1;
    min-width: 220px;
}

.topic-item__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.topic-item__link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topic-item__link:hover {
    color: #066b7d;
}

.topic-item__badges {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.topic-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.topic-badge--sticky {
    background: rgba(250, 204, 21, 0.16);
    color: #b45309;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.topic-badge--closed {
    background: rgba(248, 113, 113, 0.16);
    color: #b91c1c;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.topic-badge__icon {
    width: 0.85rem;
    height: 0.85rem;
}

.topic-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    color: #64748b;
}

.topic-item__author {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #0f172a;
}

.topic-item__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topic-item__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.topic-item__date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
}

.topic-item__date-icon {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.topic-item__stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.topic-item__stat {
    text-align: center;
    min-width: 90px;
}

.topic-item__stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563eb;
}

.topic-item__stat-value--accent {
    color: #7bb639;
}

.topic-item__stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-top: 0.2rem;
}

.topic-item__action {
    display: flex;
    align-items: center;
}

.topic-item__button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.85rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.topic-item__button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.topic-item__button-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.forum-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.forum-empty-state__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.forum-empty-state__icon svg {
    width: 2rem;
    height: 2rem;
}

.forum-empty-state__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.forum-empty-state__text {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.forum-empty-state__debug {
    background: rgba(250, 204, 21, 0.18);
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
}

.bbp-forum-list li,
.bbp-topic-list li {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.bbp-forum-list li:hover,
.bbp-topic-list li:hover {
    background-color: #f9fafb;
}

.bbp-forum-list li:last-child,
.bbp-topic-list li:last-child {
    border-bottom: none;
}

/* Forum Item */
.bbp-forum-item,
.bbp-topic-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Forum Icon */
.bbp-forum-item .bbp-forum-icon,
.bbp-topic-item .bbp-topic-icon {
    width: 3rem;
    height: 3rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bbp-forum-item .bbp-forum-icon svg,
.bbp-topic-item .bbp-topic-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #7bb639;
}

/* Forum Content */
.bbp-forum-content,
.bbp-topic-content {
    flex: 1;
    min-width: 0;
}

.bbp-forum-title,
.bbp-topic-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.bbp-forum-title a,
.bbp-topic-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bbp-forum-title a:hover,
.bbp-topic-title a:hover {
    color: #7bb639;
}

.bbp-forum-description,
.bbp-topic-excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Forum Meta */
.bbp-forum-meta,
.bbp-topic-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.bbp-forum-meta span,
.bbp-topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bbp-forum-meta svg,
.bbp-topic-meta svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Forum Stats */
.bbp-forum-stats,
.bbp-topic-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 4rem;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

.bbp-forum-stats .bbp-forum-topic-count,
.bbp-topic-stats .bbp-topic-reply-count {
    font-weight: 600;
    color: #7bb639;
    font-size: 1rem;
}

/* Forum Actions */
.bbp-forum-actions,
.bbp-topic-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bbp-forum-actions a,
.bbp-topic-actions a {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bbp-forum-actions a:hover,
.bbp-topic-actions a:hover {
    background: #7bb639;
    color: white;
    transform: translateY(-1px);
}

/* New Topic Button */
.bbp-new-topic-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #7bb639;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.bbp-new-topic-button:hover {
    background: #5a9c2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 182, 57, 0.3);
}

.bbp-new-topic-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Forum Navigation */
.bbp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.bbp-pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bbp-pagination .page-numbers:hover,
.bbp-pagination .page-numbers.current {
    background: #7bb639;
    color: white;
}

/* Forum Breadcrumb */
.bbp-breadcrumb {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.bbp-breadcrumb a {
    color: #7bb639;
    text-decoration: none;
}

.bbp-breadcrumb a:hover {
    text-decoration: underline;
}

/* Forum Search */
.bbp-search-form {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.bbp-search-form input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.bbp-search-form input[type="text"]:focus {
    outline: none;
    border-color: #7bb639;
    box-shadow: 0 0 0 3px rgba(123, 182, 57, 0.1);
}

.bbp-search-form input[type="submit"] {
    background: #7bb639;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.75rem;
}

.bbp-search-form input[type="submit"]:hover {
    background: #5a9c2a;
}

/* Forum Reply Form */
.bbp-reply-form {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.bbp-reply-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.bbp-reply-form textarea:focus {
    outline: none;
    border-color: #7bb639;
    box-shadow: 0 0 0 3px rgba(123, 182, 57, 0.1);
}

.bbp-reply-form input[type="submit"] {
    background: #7bb639;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.bbp-reply-form input[type="submit"]:hover {
    background: #5a9c2a;
    transform: translateY(-1px);
}

/* Forum Alerts */
.bbp-template-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.bbp-template-notice.info {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.bbp-template-notice.success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.bbp-template-notice.error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Forum User Profiles */
.bbp-user-profile {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.bbp-user-profile .bbp-user-avatar {
    float: left;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.bbp-user-profile .bbp-user-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.bbp-user-profile .bbp-user-description {
    overflow: hidden;
}

.bbp-user-profile h2 {
    color: #111827;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.bbp-user-profile .bbp-user-nicename {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bbp-forum-item,
    .bbp-topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .bbp-forum-stats,
    .bbp-topic-stats {
        align-self: flex-end;
        flex-direction: row;
        gap: 1rem;
    }
    
    .bbp-forum-meta,
    .bbp-topic-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .bbp-forum-actions,
    .bbp-topic-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .forum-card__body {
        padding: 1.5rem;
    }

    .forum-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .forum-card--archive {
        padding: 0.25rem;
    }

    .forum-card__stats {
        gap: 0.8rem;
    }

    .forum-card__stat {
        flex: 1 1 calc(50% - 0.8rem);
        min-width: unset;
    }

    .forum-card__footer {
        gap: 0.6rem;
    }

    .forum-card__button {
        width: 100%;
    }

    #bbpress-forums.tornaustasi-forum-wrapper,
    .tornaustasi-forum-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .topic-item__inner {
        flex-direction: column;
        gap: 1.25rem;
    }

    .topic-item__stats {
        width: 100%;
        justify-content: space-between;
        gap: 0.9rem;
    }

    .topic-item__stat {
        flex: 1;
    }

    .topic-item__action {
        width: 100%;
    }

    .topic-item__button {
        width: 100%;
        justify-content: center;
    }

    .topic-page__container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .topic-card__header {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .topic-card__badges {
        align-items: flex-start;
    }

    .topic-card__title {
        font-size: 1.6rem;
    }

    .topic-stat {
        min-width: 48%;
    }

    .topic-card__stats {
        gap: 1rem;
    }

    .topic-reply {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-reply__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
}

@media (max-width: 640px) {
    #bbpress-forums,
    .tornaustasi-forum-wrapper {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    #bbpress-forums.tornaustasi-forum-wrapper,
    .home #homepage-forums {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .forums-grid,
    .home #homepage-forums {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
        margin-left: 0;
        margin-right: 0;
    }

    .home #homepage-forums > * {
        width: 100%;
    }

    @media (max-width: 1200px) {
        .home #homepage-forums {
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        }
    }

    @media (max-width: 992px) {
        .home #homepage-forums {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }
    }

    .forum-card--archive {
        margin: 0;
    }

    .forum-card--archive .forum-card__body {
        padding: 1.35rem;
        gap: 1.2rem;
    }

    .forum-card--archive .forum-card__icon-wrap {
        padding: 1rem 0.75rem 0 0.75rem;
    }

    .forum-card--archive .forum-card__icon {
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 0.95rem;
    }

    .forum-card--archive .forum-card__stats {
        gap: 0.7rem;
    }

    .forum-card--archive .forum-card__footer {
        gap: 0.55rem;
    }

    .forum-card__button {
        width: 100%;
    }

    .forum-advertisements,
    .forum-advertisements .ad-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.05rem;
        padding-right: 0.05rem;
    }

    .topic-page__container {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .topic-advert {
        margin: 0 0.6rem 1.1rem 0.6rem;
    }

    .topic-replies__header,
    .topic-reply,
    .topic-form__header,
    .topic-form__body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .topic-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .topic-notice--center {
        align-items: center;
        text-align: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .bbp-forum-index,
    .bbp-topic-index,
    .bbp-single-forum,
    .bbp-single-topic {
        background: #1f2937;
        border-color: #374151;
    }
    
    .bbp-forum-title,
    .bbp-topic-title {
        color: #f9fafb;
    }
    
    .bbp-forum-description,
    .bbp-topic-excerpt {
        color: #d1d5db;
    }
    
    .bbp-forum-item:hover,
    .bbp-topic-item:hover {
        background-color: #374151;
    }
    
    .bbp-search-form,
    .bbp-reply-form {
        background: #374151;
    }
    
    .bbp-search-form input[type="text"],
    .bbp-reply-form textarea {
        background: #1f2937;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* Topics Loading Indicator */
.topics-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    gap: 1rem;
    width: 100%;
    text-align: center;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(123, 182, 57, 0.03) 0%, rgba(6, 107, 125, 0.03) 100%);
    border-radius: 1rem;
    border: 1px dashed rgba(123, 182, 57, 0.2);
}

.topics-loading__spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #e5e7eb;
    border-top-color: #7bb639;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.topics-loading__text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Topics Pagination */
.topics-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem;
    margin-top: 1.5rem;
}

.topics-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topics-pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #7bb639;
    color: #7bb639;
    transform: translateY(-2px);
}

.topics-pagination .page-numbers.current {
    background: linear-gradient(135deg, #7bb639 0%, #5a9c2a 100%);
    border-color: #7bb639;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(123, 182, 57, 0.3);
}

.topics-pagination .page-numbers.prev,
.topics-pagination .page-numbers.next {
    padding: 0.5rem;
}

.topics-pagination .page-numbers svg {
    width: 1.25rem;
    height: 1.25rem;
}

.topics-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.topics-pagination .page-numbers.dots:hover {
    background: transparent;
    border: none;
    transform: none;
}

@media (max-width: 640px) {
    .topics-pagination {
        padding: 2rem 0.5rem;
    }
    
    .topics-pagination .page-numbers {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
        margin: 0 0.15rem;
    }
    
    .topics-loading {
        padding: 2rem 1rem;
    }
    
    .topics-loading__spinner {
        width: 2.5rem;
        height: 2.5rem;
    }
}
