/* WIDOK POSTA */

.single-post {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    min-width: 0; /* KLUCZOWE: Zapobiega rozpychaniu układu Grid przez szerokie tabele */
}

.post-title {
    margin-bottom: 20px;
}

/* Breadcrumbs (Ścieżka powrotu) */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 20px 0;
}

.post-meta {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--primary-color);
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* --- ZDJĘCIE GŁÓWNE --- */
.post-featured-image {
    width: calc(100% + 80px); /* Rozciągnięcie na całą szerokość karty (negacja paddingu 40px) */
    margin: -40px -40px 30px -40px;
    border-radius: 12px 12px 80px 0; /* Dopasowanie do zaokrąglenia karty */
    overflow: hidden;
    height: auto;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- TYPOGRAFIA TREŚCI --- */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    overflow-wrap: break-word; /* Łamanie długich słów/linków */
    word-wrap: break-word;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.post-content blockquote {
    border-left: 5px solid var(--primary-color);
    background-color: #f8f9fa;
    margin: 30px 0;
    padding: 20px 25px;
    font-style: italic;
    color: #444;
    border-radius: 0 8px 8px 0;
}

/* =========================================
   --- NOWA GALERIA (2x2 Prostokąty + Mobile) ---
   ========================================= */

.post-gallery {
    margin-top: 50px;
}

.post-gallery h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

/* Siatka galerii */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Dwie równe kolumny */
    gap: 15px;
}

/* Pojedynczy kafelek */
.gallery-item {
    position: relative;
    display: block;
    /* ZMIANA: Zamiast 1/1 jest 16/9 (prostokąt panoramiczny) */
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

/* Zdjęcie w kafelku */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Wypełnia prostokąt, przycina nadmiar */
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* --- OVERLAY (+X zdjęć) --- */

.gallery-item.more-photos .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.gallery-item.more-photos .overlay span {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.gallery-item.more-photos:hover .overlay {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Blokada efektu zoom na zdjęciu pod overlayem */
.gallery-item.more-photos:hover img {
    transform: none;
    filter: none;
}

/* --- RESPONSYWNOŚĆ GALERII (Smartfony) --- */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* Jedna kolumna (jedno pod drugim) */
    }
}

/* ========================================= */


/* --- ZAŁĄCZNIKI --- */
.post-attachments {
    margin-top: 40px;
    background-color: #fafafa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.post-attachments h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-attachments ul {
    list-style: none;
}

.post-attachments li {
    margin-bottom: 10px;
}

.attachment-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s;
    width: fit-content;
}

.attachment-link:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

/* --- ELEMENTY PONIŻEJ TREŚCI --- */
.post-header-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-header-bottom h1 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.post-meta .date {
    font-size: 18px;
}

.post-footer {
    margin-top: 30px;
    padding-top: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-back:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: white;
}

/* --- OGÓLNA RESPONSYWNOŚĆ ARTYKUŁU --- */
@media (max-width: 850px) {
    .single-post {
        padding: 25px;
    }

    .post-header-bottom h1 {
        font-size: 1.6rem;
    }

    .post-featured-image {
        height: auto;
        /* Dopasowanie do mniejszego paddingu (25px) na tablecie */
        width: calc(100% + 50px);
        margin: -25px -25px 30px -25px;
    }

    .attachment-download-text {
        display: none;
    }
}

/* WIDOK MOBILNY: Usunięcie efektu karty (rozciągnięcie treści) */
@media (max-width: 768px) {
    .single-post {
        padding: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }

    /* Reset zdjęcia na mobile (brak karty) */
    .post-featured-image {
        width: 100%;
        margin: 0 0 20px 0;
        border-radius: 12px;
    }
}

/* --- STYLE FORMATOWANIA TREŚCI HTML --- */

/* Responsywne Obrazki w treści */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 5px 0;
}

/* Responsywne Wideo */
.post-content iframe,
.post-content video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

@supports not (aspect-ratio: 16 / 9) {
    .post-content iframe {
        height: 400px;
    }
}

/* Listy w treści */
.post-content ul,
.post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

/* Nagłówki w treści */
.post-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 700;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Zabezpieczenie dla bloków kodu/pre */
.post-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
}

/* Linki w treści */
.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.post-content a:hover {
    text-decoration: none;
    background-color: #f0f7ff;
}

/* --- RESPONSYWNE TABELE (Zgodne z edytorem) --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 400px; /* Wymusza przewijanie na małych ekranach */
    background: #fff;
}

.content-table th,
.content-table td {
    padding: 12px 15px;
    border: 1px solid #edf2f7;
}

.content-table thead tr {
    background-color: var(--primary-color);
    color: #fff;
    text-align: left;
}

.content-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

/* PRZYCISK EDYCJI FIXED */
.floating-edit-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: 1px solid var(--primary-color);
    background-color: #fff;
}

.floating-edit-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* PRZYCISK POWROTU (MOBILE) */
.floating-back-btn {
    display: none; /* Domyślnie ukryty na desktopie */
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 2004; /* Zwiększono, aby mieć pewność, że przycisk jest nad wszystkim innym */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-back-btn:hover {
    background-color: #004494;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 850px) {
    .floating-back-btn {
        display: flex;
    }
}

/* WIDOK PWA (Aplikacja) - Przeniesienie przycisku powrotu nad dolne menu po lewej stronie */
@media (display-mode: standalone) and (max-width: 1250px) {
    .floating-back-btn {
        display: flex !important;
        bottom: 100px !important; /* Odstęp uwzględniający dolny pasek nawigacyjny PWA (który ma 80px) */
        right: auto !important;
        left: 20px !important;
    }
}




/* --- LIGHTBOX (Pełny ekran) --- */

.lightbox {
    position: fixed;
    z-index: 9999;
    /* Zawsze na wierzchu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Ciemne tło */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
    /* Rozmycie tła pod spodem (efekt szkła) */
    touch-action: pan-y;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Kontener na obrazek */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    user-select: none;
}

/* Licznik zdjęć (1/10) */
.lightbox-caption {
    color: #ccc;
    margin-top: 15px;
    font-size: 1rem;
    font-family: sans-serif;
    letter-spacing: 1px;
}

/* Przycisk Zamknij (X) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Strzałki nawigacji */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsywność Lightboxa */
@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 5px;
        background: transparent;
        /* Na telefonach brak tła przycisków */
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}



/* =========================================
   STYLE KATEGORII W ARTYKULE
   ========================================= */

.article-categories {
    margin-bottom: 15px;
    /* Odstęp od daty/meta */
    margin-top: 5px;
    /* Lekki odstęp od tytułu */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-badge {
    background-color: #eff6ff;
    color: var(--primary-color);
    border: 1px solid #dbeafe;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    /* Nieco większe niż na liście */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.category-badge:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
}



.attachment-link {
    transition: color 0.2s ease;
}



.attachment-link:hover .file-label {
    color: #0056b3;
    text-decoration: underline;
}

.attachment-link i {
    transition: transform 0.2s ease;
}





.share-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.share-section h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.share-btn.fb {
    background: #1877F2;
    color: white;
}

.share-btn.copy {
    background: #e2e8f0;
    color: #475569;
}

.share-btn.mobile {
    background: #0056b3;
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Ukrywamy przycisk systemowy na desktopie, jeśli nie jest obsługiwany */
#mobileShareBtn {
    display: none;
}

@media (max-width: 768px) {
    #mobileShareBtn {
        display: inline-flex;
    }
}


/* Poprawiony kontener meta - układ poziomy */
.post-meta {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    /* Pozwala zawijać na telefonach */
    align-items: flex-start;
    gap: 15px;
    /* Odstęp między datą a statystykami */
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Grupa statystyk (widoki + share) */
.stats-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background-color: #f8fafc;
    /* Delikatne tło dla odróżnienia statystyk */
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
    flex-wrap: wrap; /* KLUCZOWE: Pozwala elementom spaść niżej, jeśli się nie mieszczą */
}

/* Styl dla poszczególnych ikon i tekstu */
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.meta-item.date {
    font-size: 0.95rem;
    /* Wyrównanie wielkości do reszty */
    font-weight: 500;
}

.meta-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    /* Spójny kolor ikon z motywem strony */
}

/* Kropka separatora */
.separator-dot {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

/* Responsywność - na bardzo małych ekranach */
@media (max-width: 600px) {
    .post-meta {
        gap: 10px;
    }

    .stats-details {
        width: fit-content;
        /* Statystyki pod datą na pełną szerokość */
        justify-content: flex-start;
    }
}


/* Styl dla animujących się liczb */
.counter {
    font-variant-numeric: tabular-nums;
    /* Zapobiega "skakaniu" szerokości tekstu przy zmianie cyfr */
    font-weight: 400;
    color: var(--text-dark);
}

/* Pulsowanie ikony udostępniania, gdy pojawiają się nowe dane */
.meta-item i {
    transition: transform 0.3s ease;
}

.stats-details:hover i {
    transform: scale(1.2);
}



/* Kontener główny sekcji udostępniania */
.share-box {
    margin: 40px 0;
    padding: 25px;
    background: #f8fafc;
    /* Bardzo jasny błękit/szary */
    border-radius: 12px;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Tekst "Udostępnij artykuł" */
.share-box>span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Układ przycisków */
.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Wspólny styl przycisków */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Facebook - elegancki błękit */
.share-btn.fb {
    background-color: #1877F2;
    color: #ffffff;
}

.share-btn.fb:hover {
    background-color: #145dbf;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Kopiowanie linku - neutralny styl */
.share-btn.copy {
    background-color: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.share-btn.copy:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

/* Więcej / Mobile - głęboki kolor Twojej szkoły */
.share-btn.mobile {
    background-color: var(--primary-color, #0056b3);
    color: #ffffff;
}

.share-btn.mobile:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

/* Ikony w przyciskach */
.share-btn i {
    font-size: 1.25rem;
}

/* Responsywność */
@media (max-width: 600px) {
    .share-box {
        padding: 20px;
        align-items: center;
    }

    .share-buttons {
        justify-content: center;
        width: 100%;
    }

    .share-btn {
        flex: 1;
        /* Przyciski rozciągają się na mobile */
        justify-content: center;
        min-width: 140px;
    }
}




/* STYLIZACJA TABEL */
.table-container {
    width: 100%;
    overflow-x: auto;
    /* Przewijanie na telefonach */
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    min-width: 400px;
    /* Zapobiega zbytniemu ściskaniu */
    background: #fff;
}

.content-table thead tr {
    background-color: var(--primary-color, #0056b3);
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.content-table th,
.content-table td {
    padding: 12px 15px;
    border: 1px solid #edf2f7;
}

.content-table tbody tr {
    border-bottom: 1px solid #edf2f7;
}

.content-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.content-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--primary-color, #0056b3);
}

.content-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Dodatkowe dla edytora - umożliwia edycję komórek */
#visual-editor td,
#visual-editor th {
    min-width: 50px;
    outline: none;
}

/* Styl dla kolumny Lp. */
.content-table .col-lp {
    width: 50px;
    text-align: center;
    font-weight: 600;
    background-color: #f1f5f9; /* Delikatnie inny odcień dla Lp. */
    color: #475569;
}

/* Jeśli tabela ma nagłówek, upewnij się, że Lp w nagłówku ma kolor biały jak reszta */
.content-table thead th.col-lp {
    background-color: var(--primary-color);
    color: #ffffff;
    width: 50px;
}

/* Automatyczne wyśrodkowanie tekstu w kolumnie Lp */
.content-table td.col-lp {
    text-align: center;
}

/* 1. Resetujemy licznik dla każdej nowej tabeli */
.content-table.with-lp {
    counter-reset: rowNumber;
}

/* 2. Zwiększamy licznik dla każdego wiersza wewnątrz tbody */
.content-table.with-lp tbody tr {
    counter-increment: rowNumber;
}

/* 3. Wyświetlamy numer w komórce o klasie col-lp */
.content-table.with-lp tbody td.col-lp::before {
    content: counter(rowNumber) "."; /* Dodaje numer z kropką */
    display: block;
    text-align: center;
    font-weight: 600;
    color: #475569;
}

/* Stylizacja samej kolumny Lp. */
.content-table .col-lp {
    width: 40px;
    min-width: 40px;
    background-color: #f8fafc;
    text-align: center;
    user-select: none; /* Zapobiega przypadkowemu zaznaczeniu numerów przy kopiowaniu treści */
}

/* Blokada edycji dla kolumny Lp w edytorze admina */
#visual-editor .content-table.with-lp td.col-lp {
    pointer-events: none; /* Admin nie może tam kliknąć i wpisać tekstu */
    background-color: #f1f5f9;
}

/* =========================================
   POPRAWKA RESPONSYWNOŚCI TABEL (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Zmniejszenie czcionki i odstępów w tabeli, aby więcej się mieściło */
    .content-table {
        font-size: 0.8rem; 
    }

    .content-table th,
    .content-table td {
        padding: 6px 8px; /* Mniejsze odstępy */
    }

    /* 2. Wymuszenie przewijania poziomego dla kontenera */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 3. Wymuszenie scrollowania dla WSZYSTKICH tabel na mobile (nawet tych wklejonych z Worda) */
    .post-content table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        max-width: 100% !important;
    }
}