/* ==========================================================================
   BLOG CONTENT — wspólne style treści artykułu
   Używane w: TinyMCE, podgląd admina, strona blog-single.php
   Klasa kontenera: .blog-content
   ========================================================================== */

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark, #0f1219);
    font-family: var(--font-body, "Outfit", sans-serif);
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-content h2 {
    font-size: 1.8rem;
    font-family: var(--font-head, "Outfit", sans-serif);
    font-weight: 700;
    color: var(--color-dark, #0f1219);
    margin: 50px 0 20px;
    clear: both;
}

.blog-content h3 {
    font-size: 1.4rem;
    font-family: var(--font-head, "Outfit", sans-serif);
    font-weight: 700;
    color: var(--color-dark, #0f1219);
    margin: 40px 0 15px;
    clear: both;
}

.blog-content p {
    margin-bottom: 25px;
    overflow: visible;
    clear: none !important;
}

.blog-content [style*="text-align: center"],
.blog-content [style*="text-align:center"],
.blog-content .aligncenter {
    text-align: center;
}

.blog-content [style*="text-align: right"],
.blog-content [style*="text-align:right"],
.blog-content .alignright {
    text-align: right;
}

.blog-content [style*="text-align: justify"],
.blog-content [style*="text-align:justify"],
.blog-content .alignjustify {
    text-align: justify;
}

/* Nagłówek pojedynczego wpisu bloga */
.blog-article-header {
    text-align: center;
    margin-bottom: 32px;
}

.blog-article-header .section-title-lg,
.blog-article-header .hero-lead,
.blog-article-header .section-label {
    text-align: center;
}

.blog-article-header .section-label {
    display: block;
}

.blog-article-meta {
    font-size: 0.85rem;
    color: rgba(15, 18, 25, 0.55);
    margin-bottom: 32px;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    clear: both;
}

.blog-content table td,
.blog-content table th {
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    text-align: left;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-content blockquote {
    border-left: 4px solid var(--color-accent-2, #6a0dad);
    padding-left: 25px;
    margin: 40px 0;
    font-style: italic;
    color: var(--color-accent-1, #6a0dad);
    font-size: 1.2rem;
    clear: both;
}

.blog-content a {
    color: var(--color-accent-2, #6a0dad);
    text-decoration: underline;
}

.blog-content figure {
    margin: 0;
}

.blog-content figcaption {
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    clear: both;
}

/* Nadpisanie globalnego img { display:block; max-width:100% } ze style.css */
.single-post-container .blog-content img.img-wrap-left,
.single-post-container .blog-content img.img-wrap-right {
    max-width: 45%;
    height: auto;
}

.blog-content img.img-wrap-left,
.blog-content img.img-wrap-right {
    max-width: 45%;
}

/* --- Legacy wrapper (stare wpisy) — clearfix, bez siatki --- */
.blog-float-wrap {
    width: 100%;
    margin-bottom: 25px;
    overflow: hidden;
}

.blog-float-wrap::after {
    content: '';
    display: table;
    clear: both;
}

.blog-float-clear {
    clear: both;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.blog-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 25px;
    align-items: start;
    clear: both;
}

.blog-cols-2 .blog-col {
    min-width: 0;
}

.blog-cols-2 .blog-col p:last-child {
    margin-bottom: 0;
}

.blog-cols-2 .blog-col-media img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-cols-image-right {
    grid-template-columns: 1.1fr 0.9fr;
}

.blog-cols-image-left {
    grid-template-columns: 0.9fr 1.1fr;
}

.blog-float-wrap p {
    margin-bottom: 15px;
}

/* --- Opływanie tekstu — klasyczny float --- */
.blog-content img.img-wrap-left,
.blog-content figure.img-wrap-left,
.blog-content .img-layout-left {
    float: left;
    display: block;
    margin: 4px 25px 15px 0;
    max-width: 45%;
    height: auto;
    clear: none;
}

.blog-content img.img-wrap-right,
.blog-content figure.img-wrap-right,
.blog-content .img-layout-right {
    float: right;
    display: block;
    margin: 4px 0 15px 25px;
    max-width: 45%;
    height: auto;
    clear: none;
}

.blog-content figure.img-wrap-left img,
.blog-content figure.img-wrap-right img {
    width: 100%;
    height: auto;
    display: block;
    float: none;
    margin: 0;
    max-width: 100%;
}

.blog-content img.img-wrap-center,
.blog-content figure.img-wrap-center,
.blog-content .img-layout-center {
    display: block;
    float: none;
    max-width: 80%;
    margin: 30px auto;
    clear: both;
    height: auto;
}

.blog-content img.img-wrap-block,
.blog-content .img-layout-full {
    display: block;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    clear: both;
    height: auto;
}

.blog-content .img-layout-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
    clear: both;
}

.blog-content .img-layout-duo img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    float: none;
    margin: 0;
    max-width: 100%;
}

.blog-content .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    clear: both;
}

.blog-content .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Clearfix na końcu treści */
.blog-content::after {
    content: '';
    display: table;
    clear: both;
}

/* TinyMCE — body edytora */
body.mce-content-body.blog-content,
.mce-content-body.blog-content {
    padding: 16px;
    font-size: 16px;
    line-height: 1.7;
}

.mce-content-body.blog-content img[data-mce-selected] {
    outline: 3px solid #6a0dad;
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .blog-content img.img-wrap-left,
    .blog-content img.img-wrap-right,
    .blog-content figure.img-wrap-left,
    .blog-content figure.img-wrap-right,
    .blog-content .img-layout-left,
    .blog-content .img-layout-right,
    .blog-float-wrap > img {
        float: none !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 15px 0 !important;
    }

    .blog-float-wrap {
        overflow: visible;
    }

    .blog-content .img-layout-duo {
        grid-template-columns: 1fr;
    }

    .blog-cols-2 {
        grid-template-columns: 1fr !important;
    }
}
