/* css/forum.css */

.forum-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: #343a40;
}

.forum-wrapper a {
    color: #0e1b77;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.forum-wrapper a:hover {
    color: #2938a0;
}

.forum-section {
    margin-bottom: 2rem;
}

.forum-section__header {
    background: #0e1b77;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.forum-section__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.forum-section__content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 4px rgba(14, 27, 119, 0.1);
}

.forum-categories__list {
    display: grid;
    gap: 1rem;
}



.forum-category {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
}

.forum-category:hover {
    box-shadow: 0 2px 4px rgba(14, 27, 119, 0.1);
}

.forum-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.forum-category__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0e1b77;
}

.forum-category__stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.forum-topics__list {
    border-radius: 6px;
    overflow: hidden;
}

.forum-topic {
    display: grid;

    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

@media (min-width: 768px) {

}

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

.forum-topic--sticky {
    background: #f8f9fa;
    border-left: 4px solid #0e1b77;
}

.forum-topic--locked {
    opacity: 0.8;
}

.forum-topic__title {
    font-weight: 500;
}

.forum-topic__title a:hover {
    color: #2938a0;
}

.forum-topic__meta {
    font-size: 0.875rem;
    color: #6c757d;
}

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

.forum-post {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.forum-post__header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-post__content {
    padding: 1rem;
}

.forum-post__footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: #6c757d;
}

.forum-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease-in-out;
}

.forum-btn--primary {
    background: #0e1b77;
    color: #ffffff;
}

.forum-btn--primary:hover {
    background: #2938a0;
}

.forum-btn--outline {
    background: transparent;
    border: 1px solid #0e1b77;
    color: #0e1b77;
}

.forum-btn--outline:hover {
    background: #0e1b77;
    color: #ffffff;
}

/* Dodatkowe style użytkowe */
.forum-actions {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.forum-pagination {
    display: flex;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

.forum-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: #e9ecef;
}

.forum-badge--primary {
    background: #0e1b77;
    color: #ffffff;
}

.forum-badge--success {
    background: #28a745;
    color: #ffffff;
}

.forum-badge--warning {
    background: #ffc107;
    color: #212529;
}

/* Responsywne dostosowania */
@media (max-width: 576px) {
    .forum-section__header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .forum-category__header {
        flex-direction: column;
        text-align: center;
    }

    .forum-topic {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* Form specific styles */
.forum-category-form,
.forum-topic-form,
.forum-post-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.forum-guidelines {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.forum-guidelines h3 {
    color: #0e1b77;
    margin-bottom: 1rem;
}

.forum-guidelines ul {
    list-style-type: none;
    padding-left: 0;
}

.forum-guidelines li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.forum-guidelines li:before {
    content: "•";
    color: #0e1b77;
    position: absolute;
    left: 0;
}

.forum-quoted-post {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #0e1b77;
    border-radius: 0 6px 6px 0;
}

.quoted-content {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.quoted-author {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Form element styles */
.form-item {
    margin-bottom: 1.5rem;
}

.form-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #343a40;
}

.form-text,
.form-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out;
}

.form-text:focus,
.form-textarea:focus {
    border-color: #0e1b77;
    outline: none;
}

.form-submit {
    background: #0e1b77;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.form-submit:hover {
    background: #2938a0;
}

/* Error styles */
.form-item--error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-item--error input,
.form-item--error textarea {
    border-color: #dc3545;
}

/* Description text */
.description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.forum-category {
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
}

.forum-category--depth-0 {
    margin-left: 0;
}

.forum-category--depth-1 {
    margin-left: 2rem;
}

.forum-category--depth-2 {
    margin-left: 4rem;
}

.forum-category--depth-3 {
    margin-left: 6rem;
}

/* Wizualne rozróżnienie poziomów */
.forum-category--depth-0 {
    background: #ffffff;
    border: 1px solid #dee2e6;
}

.forum-category--depth-1 {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.forum-category--depth-2 {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
}

.forum-category--depth-3 {
    background: #e9ecef;
    border: 1px solid #dee2e6;
}

/* Responsywność */
@media (max-width: 768px) {
    .forum-category--depth-1 {
        margin-left: 1rem;
    }

    .forum-category--depth-2 {
        margin-left: 2rem;
    }

    .forum-category--depth-3 {
        margin-left: 3rem;
    }
}

.forum-category-operations {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.forum-category-operations .button--action {
    margin-right: 1rem;
}

/* Style dla postów w strukturze drzewiastej */

/* Bazowy styl posta */
.forum-post {
    position: relative;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
}

/* Stopniowanie indentacji dla różnych poziomów zagłębienia */
.post-depth-0 {
    margin-left: 0;
    width: 100%;
}

.post-depth-1 {
    margin-left: 2rem;
    width: calc(100% - 2rem);
    border-left: 3px solid #0e1b77;
}

.post-depth-2 {
    margin-left: 4rem;
    width: calc(100% - 4rem);
    border-left: 3px solid #2938a0;
}

.post-depth-3 {
    margin-left: 6rem;
    width: calc(100% - 6rem);
    border-left: 3px solid #3f51b5;
}

.post-depth-4 {
    margin-left: 8rem;
    width: calc(100% - 8rem);
    border-left: 3px solid #5c6bc0;
}

.post-depth-5,
.post-depth-6,
.post-depth-7,
.post-depth-8,
.post-depth-9,
.post-depth-10 {
    margin-left: 10rem;
    width: calc(100% - 10rem);
    border-left: 3px solid #7986cb;
}

/* Zawartość posta */
.post-content {
    padding: 1rem;
}

/* Stopka posta z autorem i akcjami */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 6px 6px;
}

.post-author {
    font-weight: 500;
    color: #343a40;
}

/* Akcje dla postów (odpowiedź, cytowanie) */
.post-actions {
    display: flex;
    gap: 1rem;
}

.post-actions a {
    color: #0e1b77;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease-in-out;
}

.post-actions a:hover {
    color: #2938a0;
    text-decoration: underline;
}

/* Kontrolki sortowania */
.topic-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-weight: 500;
    color: #495057;
}

.sort-link {
    color: #0e1b77;
    text-decoration: none;
}

.sort-link.active {
    font-weight: 600;
    text-decoration: underline;
}

.sort-separator {
    color: #ced4da;
}

/* Formularz odpowiedzi */
.reply-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #e9ecef;
    border-left: 3px solid #0e1b77;
    border-radius: 0 4px 4px 0;
}

.cancel-reply {
    margin-bottom: 1rem;
}

.cancel-reply-link {
    color: #6c757d;
    font-size: 0.875rem;
    text-decoration: underline;
}

/* BBCode cytaty */
blockquote,
[quote] {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #0e1b77;
    color: #495057;
    font-style: italic;
}

.bbcode-quote {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #0e1b77;
    color: #495057;
}

.bbcode-quote-author {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #343a40;
    font-style: normal;
}

/* Responsywna adaptacja dla urządzeń mobilnych */
@media (max-width: 768px) {
    .post-depth-1 {
        margin-left: 1rem;
        width: calc(100% - 1rem);
    }

    .post-depth-2 {
        margin-left: 2rem;
        width: calc(100% - 2rem);
    }

    .post-depth-3,
    .post-depth-4,
    .post-depth-5,
    .post-depth-6,
    .post-depth-7,
    .post-depth-8,
    .post-depth-9,
    .post-depth-10 {
        margin-left: 3rem;
        width: calc(100% - 3rem);
    }
}


.forum-topics-list {
    margin: 2rem 0;

    .forum-topic {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        margin-bottom: 1.5rem;
        padding: 1.25rem;
        position: relative;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border-left: 5px solid #0e1b77;

        &:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        }

        &.sticky {
            background-color: rgba(14, 27, 119, 0.04);

            &::after {
                content: "📌";
                position: absolute;
                top: 10px;
                right: 10px;
                font-size: 1.2rem;
                opacity: 0.7;
            }
        }

        &.locked {
            &::before {
                content: "🔒";
                position: absolute;
                top: 10px;
                right: 40px;
                font-size: 1.2rem;
                opacity: 0.7;
            }
        }

        .topic-title {
            margin-bottom: 0.75rem;

            a {
                color: #0e1b77;
                font-size: 1.4rem;
                font-weight: 600;
                text-decoration: none;
                transition: color 0.2s;

                &:hover {
                    color: #2635a9;
                    text-decoration: underline;
                }
            }
        }

        .topic-meta {
            margin-bottom: 1rem;
            color: #555;
            font-size: 0.95rem;
            line-height: 1.5;

            p {
                margin: 0;
            }
        }

        .topic-stats {
            color: #666;
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 1rem;
            padding-left: 0.25rem;
            border-left: 3px solid rgba(14, 27, 119, 0.3);
        }

        .forum-actions {
            display: flex;
            justify-content: flex-start;
            margin-top: 1rem;

            .forum-btn {
                display: inline-block;
                padding: 0.5rem 1rem;
                border-radius: 4px;
                text-decoration: none;
                font-size: 0.9rem;
                font-weight: 500;
                transition: all 0.2s ease;

                &--primary {
                    background-color: #0e1b77;
                    color: white;
                    border: 2px solid #0e1b77;

                    &:hover {
                        background-color: #0a1455;
                        border-color: #0a1455;
                    }
                }

                &--secondary {
                    background-color: transparent;
                    color: #0e1b77;
                    border: 2px solid #0e1b77;
                    margin-left: 0.75rem;

                    &:hover {
                        background-color: rgba(14, 27, 119, 0.08);
                    }
                }
            }
        }

        .topic-last-post {
            margin-top: 1rem;
            font-size: 0.85rem;
            color: #777;
            padding-top: 0.75rem;
            border-top: 1px dashed #ddd;
        }
    }
}

/* Responsywność */
@media (max-width: 768px) {
    .forum-topics-list {
        .forum-topic {
            padding: 1rem;

            .topic-title a {
                font-size: 1.2rem;
            }

            &.sticky::after,
            &.locked::before {
                font-size: 1rem;
            }

            .forum-actions {
                flex-direction: column;

                .forum-btn {
                    width: 100%;
                    margin-bottom: 0.5rem;
                    text-align: center;

                    &--secondary {
                        margin-left: 0;
                    }
                }
            }
        }
    }
}

/* Poprawki dla nagłówka kategorii forum */

/* Usprawnienie układu nagłówka kategorii */
.forum-category__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

/* Lewa kolumna z informacjami */
.forum-category__info {
    flex: 1 1 60%;
    min-width: 300px;
}

/* Prawa kolumna ze statystykami i przyciskiem */
.forum-category__stats {
    flex: 1 1 15%;
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

/* Style dla elementów statystyk */
.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stats-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.stats-value {
    font-weight: 600;
    color: #0e1b77;
    font-size: 1.1rem;
}

/* Kontener akcji (dla przycisku) */
.forum-category__actions {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Poprawiony styl przycisku "Dodaj temat" */
.btn-add-topic {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #0e1b77;
    color: white;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(14, 27, 119, 0.2);
    border: none;
    text-align: center;
    min-width: 120px;
}

.btn-add-topic:hover {
    background-color: #2938a0;
    color: white;
    box-shadow: 0 4px 8px rgba(14, 27, 119, 0.3);
    transform: translateY(-2px);
}

.btn-add-topic:active {
    transform: translateY(0);
}

/* Poprawa dla nagłówka kategorii */
.forum-category__title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.forum-category__title a {
    color: #0e1b77;
    text-decoration: none;
    transition: color 0.2s;
}

.forum-category__title a:hover {
    color: #2938a0;
    text-decoration: underline;
}

/* Poprawa dla opisu kategorii */
.forum-category__description {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
}

.forum-category__description p {
    margin: 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .forum-category__header {
        flex-direction: column;
    }

    .forum-category__info {
        min-width: 100%;
    }

    .forum-category__stats {
        width: 100%;
        justify-content: space-between;
    }

    .forum-category__actions {
        justify-content: center;
        margin-top: 1rem;
    }

    .btn-add-topic {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}


/* Styles dla "topic-last-post" */
.topic-last-post {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e5e5;
  font-size: 0.9rem;
  color: #666;
}

.last-post-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.last-post-by {
  flex: 1;
}

.last-post-by strong {
  color: #0e1b77;
}

.last-post-date {
  color: #777;
}

.last-post-link {
  background: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-block;
  font-size: 0.8rem;
  color: #0e1b77;
  text-decoration: none;
}

.last-post-link:hover {
  background: #e5e5e5;
  color: #2938a0;
}

.no-replies {
  font-style: italic;
  color: #888;
}

/* Dla układu mobilnego */
@media (max-width: 768px) {
  .last-post-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}


/* Bardziej zwięzły wygląd dla listy tematów */
.forum-topics-list {
  margin: 1.5rem 0;
}

.forum-topics-list .forum-topic {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  position: relative;
  transition: all 0.2s ease;
  border-left: 3px solid #0e1b77;
}

.forum-topics-list .forum-topic:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Ikony dla sticky i locked */
.forum-topics-list .forum-topic.sticky::after {
  content: "📌";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1rem;
  opacity: 0.7;
}

.forum-topics-list .forum-topic.locked::before {
  content: "🔒";
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 1rem;
  opacity: 0.7;
}

/* Tytuł tematu */
.forum-topics-list .forum-topic .topic-title {
  margin-bottom: 0.5rem;
  padding-right: 3rem; /* Miejsce na ikony */
}

.forum-topics-list .forum-topic .topic-title a {
  color: #0e1b77;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.forum-topics-list .forum-topic .topic-title a:hover {
  color: #2635a9;
  text-decoration: underline;
}

/* Opis tematu */
.forum-topics-list .forum-topic .topic-meta {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.85rem;
  line-height: 1.4;
}

.forum-topics-list .forum-topic .topic-meta p {
  margin: 0;
}

/* Statystyki */
.forum-topics-list .forum-topic .topic-stats {
  display: flex;
  gap: 1rem;
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Przyciski akcji */
.forum-topics-list .forum-topic .forum-actions {
  display: flex;
  margin: 0.5rem 0;
}

.forum-topics-list .forum-topic .forum-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Ostatni post */
.forum-topics-list .forum-topic .topic-last-post {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #666;
}

.forum-topics-list .forum-topic .last-post-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.forum-topics-list .forum-topic .last-post-by {
  margin-right: auto;
}

.forum-topics-list .forum-topic .last-post-link {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* Treść ostatniego posta */
.forum-topics-list .forum-topic .last-post-excerpt {
  margin-top: 0.35rem;
  padding: 0.5rem;
  background-color: #f9f9f9;
  border-left: 2px solid #ddd;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.3;
  border-radius: 0 3px 3px 0;
  font-style: italic;
  max-height: 2.6rem; /* 2 linie tekstu */
  overflow: hidden;
  position: relative;
}

.forum-topics-list .forum-topic .last-post-excerpt::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  height: 1.3rem;
  background: linear-gradient(to right, rgba(249, 249, 249, 0), rgba(249, 249, 249, 1));
}

/* Responsywność */
@media (max-width: 768px) {
  .forum-topics-list .forum-topic {
    padding: 0.75rem;
  }

  .forum-topics-list .forum-topic .topic-title a {
    font-size: 1rem;
  }

  .forum-topics-list .forum-topic .last-post-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .forum-topics-list .forum-topic .last-post-by,
  .forum-topics-list .forum-topic .last-post-date {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}


/* css/forum-post-cards.css */
.forum-posts-recent {
  .forum-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .forum-post-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e5e5;
  }

  .forum-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .forum-post-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    background-color: #f9f9f9;
  }

  .forum-post-topic {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0e1b77;
    line-height: 1.3;
  }

  .forum-post-topic a {
    color: #0e1b77;
    text-decoration: none;
    transition: color 0.2s;
  }

  .forum-post-topic a:hover {
    color: #2938a0;
    text-decoration: underline;
  }

  .forum-post-content {
    margin: 1rem 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }

  .forum-post-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f5f5f5;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .forum-post-meta {
    font-size: 0.85rem;
    color: #666;
  }

  .forum-post-author {
    font-weight: 600;
    margin-right: 0.5rem;
  }

  .forum-post-date {
    color: #777;
  }

  .forum-post-read-more {
    display: inline-block;
    color: #0e1b77;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
  }

  .forum-post-read-more:hover {
    color: #2938a0;
    text-decoration: underline;
  }

  /* Responsywność */
  @media (max-width: 768px) {
    .forum-posts-grid {
      grid-template-columns: 1fr;
    }
  }

}
