/* Środowisko pojedynczego posta CMU */

.cmu-single-wrapper {
    max-width: 1200px;
    margin: 140px auto 60px;
    padding: 0 20px;
}

/* --- NAGŁÓWEK --- */
.cmu-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.cmu-single-title {
    font-size: 34px;
    font-weight: 600;
    color: var(--cmu-text-dark, #111);
    margin: 0;
    max-width: 70%;
}

.cmu-single-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--cmu-text-light, #666);
}

.cmu-single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cmu-single-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.cmu-single-meta-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* --- ZDJĘCIE GŁÓWNE --- */
.cmu-single-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 50px;
}

/* --- GŁÓWNY UKŁAD (KOLUMNY) --- */
.cmu-single-content-grid {
    display: grid;
    grid-template-columns: 3fr 9fr;
    gap: 40px;
    align-items: start;
}

/* --- SPIS TREŚCI (LEWA KOLUMNA) --- */
.cmu-toc-sidebar {
    background-color: #f0f2f5;
    padding: 25px;
    border-radius: 10px;
    position: sticky;
    top: 40px;
}

.cmu-toc-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #111;
}

.cmu-toc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmu-toc-sidebar li {
    margin-bottom: 12px;
    font-size: 14px;
}

.cmu-toc-sidebar li.nested {
    padding-left: 15px;
}

.cmu-toc-sidebar a {
    color: var(--cmu-text-light, #555);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.4;
}

.cmu-toc-sidebar a:hover,
.cmu-toc-sidebar a.active {
    color: var(--cmu-primary-green, #77e73e);
}

/* --- TREŚĆ ARTYKUŁU (PRAWA KOLUMNA) --- */
.cmu-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.cmu-article-content h2,
.cmu-article-content h3 {
    color: #111;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.cmu-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- KARUZELA POWIĄZANE (SWIPER) --- */
.cmu-related-articles-section {
    background-color: #f4f6f9;
    padding: 60px 0;
    margin-top: 60px;
}

.cmu-related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cmu-related-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #111;
}

/* Swiper overrides */
.cmu-related-swiper {
    position: relative;
    padding-bottom: 40px; /* Space for pagination if needed */
}

.swiper-slide {
    height: auto; /* Zapewnia równe wysokości kart */
}

.cmu-related-swiper .cmu-blog-card {
    height: 100%; /* Cmu-blog-card z blog.css musi rozciągnąć się na wysokość slajdu */
}

/* Custom Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    background-color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

/* --- RWD --- */
@media (max-width: 992px) {
    .cmu-single-content-grid {
        grid-template-columns: 1fr;
    }
    .cmu-toc-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    .cmu-single-title {
        max-width: 100%;
    }
    .cmu-single-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
