/* Poprawki układu strony bloga */

/* Główny kontener bloga */
.blog-container {
    margin: 3rem auto 4rem;
    max-width: 1200px;
}

/* Nagłówki sekcji */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Karty wpisów */
.blog-post-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--light-bg-1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.blog-post-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-title a {
    color: var(--title-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-title a:hover {
    color: var(--primary-color);
}

.blog-post-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-post-meta .post-date,
.blog-post-meta .post-author {
    display: flex;
    align-items: center;
}

.blog-post-meta .post-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.blog-post-meta .post-author::before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.blog-post-categories {
    margin: 0.75rem 0 1rem;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.category-badge:hover {
    background-color: rgba(var(--primary-rgb), 0.2);
}

.blog-post-preview {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 0.35rem 0;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Thumbnail */
.thumbnail-link {
    display: block;
    overflow: hidden;
    /* Pull thumbnail to card edges (negate .blog-post-card padding) */
    margin: -1.5rem -1.5rem 0;
    transition: opacity 0.3s ease;
}

.thumbnail-link:hover {
    opacity: 0.92;
}

/* Blog post body — content below the thumbnail */
.blog-post-body {
    padding: 1.25rem 0 0;
}

.blog-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.5s ease;
}

.default-blog-thumbnail {
    transition: transform 0.5s ease;
}

/* ==================== SIDEBAR — Bento/Glass Design ==================== */

/* Sidebar container — sticky, viewport-bounded */
.blog-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
    padding-right: 4px;
}
.blog-sidebar::-webkit-scrollbar { width: 4px; }
.blog-sidebar::-webkit-scrollbar-track { background: transparent; }
.blog-sidebar::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 4px; }
.blog-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

/* Glass card base */
.sidebar-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sidebar-section:hover {
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.06);
}

/* Section header with title + badge */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}
.sidebar-title::after { display: none; }
.sidebar-title svg { color: #3b82f6; flex-shrink: 0; }
.sidebar-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
}

/* ---- Categories — pill/tag grid ---- */
.sidebar-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sidebar-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sidebar-cat-pill:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    text-decoration: none;
    transform: translateY(-1px);
}
.sidebar-cat-pill.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.sidebar-cat-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.pill-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 6px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    min-width: 20px;
    text-align: center;
}

/* Toggle button */
.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.sidebar-toggle-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.03);
}
.sidebar-toggle-btn .toggle-chevron {
    transition: transform 0.3s ease;
}
.sidebar-toggle-btn.expanded .toggle-chevron {
    transform: rotate(180deg);
}

/* ---- Popular posts — compact cards ---- */
.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-post-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.sidebar-post-card:hover {
    background: rgba(59, 130, 246, 0.05);
    text-decoration: none;
}
.sidebar-post-card:hover .post-rank {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}
.sidebar-post-card:hover .sidebar-post-title {
    color: #3b82f6;
}
.post-rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}
.post-info {
    flex: 1;
    min-width: 0;
}
.sidebar-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}
.sidebar-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #94a3b8;
}
.sidebar-post-meta .post-date::before { display: none; }
.post-cat-tag {
    font-size: 0.65rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    padding: 1px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ---- Stats micro-card ---- */
.sidebar-stats-section {
    padding: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
}
.sidebar-stats-section:hover {
    border-color: transparent;
    box-shadow: none;
}
.sidebar-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.stat-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}
.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* ---- Promo CTA — glass + glow ---- */
.sidebar-promo-section {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(59, 130, 246, 0.15);
}
.sidebar-promo {
    position: relative;
    padding: 24px 20px;
    overflow: hidden;
}
.promo-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.promo-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.promo-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
    line-height: 1.3;
}
.promo-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}
.promo-price-tag {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.promo-price-tag strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #3b82f6;
}
.promo-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.promo-cta-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: #fff;
}
.promo-cta-btn svg {
    transition: transform 0.2s ease;
}
.promo-cta-btn:hover svg {
    transform: translateX(3px);
}

/* Newsletter Section (legacy — kept for compatibility) */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 86, 179, 0.25);
    border: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 6px;
    background-color: var(--light-bg-2);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.page-link:hover {
    background-color: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-color);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.page-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

/* Responsywność */
@media (max-width: 1199px) {
    .blog-container {
        max-width: 960px;
    }
}

@media (max-width: 991px) {
    .blog-container {
        max-width: 720px;
    }
    
    .blog-sidebar {
        margin-top: 2rem;
        position: static;
        max-height: none;
        overflow: visible;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .blog-container {
        max-width: 540px;
        margin: 2rem auto 3rem;
    }
    
    .blog-post-card {
        padding: 1.25rem;
    }
    
    .blog-post-title {
        font-size: 1.25rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .thumbnail-link {
        margin: -1.25rem -1.25rem 0;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .blog-container {
        max-width: 100%;
        padding: 0 1rem;
        margin: 1.5rem auto 2.5rem;
    }
    
    .blog-post-card {
        padding: 1rem;
    }
    
    .thumbnail-link {
        margin: -1rem -1rem 0;
    }
    
    .blog-post-title {
        font-size: 1.15rem;
    }
}

/* Poprawki dla ciemnego motywu */
body.dark-mode .blog-post-card {
    background-color: var(--dark-card, #2d2d2d);
    border-color: var(--dark-border, #3d3d3d);
}

/* ==================== DARK MODE — Sidebar ==================== */
body.dark-mode .sidebar-section {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .sidebar-section:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}
body.dark-mode .sidebar-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .sidebar-title {
    color: #f1f5f9;
}
body.dark-mode .sidebar-badge {
    background: rgba(59, 130, 246, 0.15);
}
body.dark-mode .sidebar-cat-pill {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .sidebar-cat-pill:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}
body.dark-mode .sidebar-cat-pill.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
body.dark-mode .pill-count {
    color: #64748b;
    background: rgba(255, 255, 255, 0.06);
}
body.dark-mode .sidebar-toggle-btn {
    border-color: rgba(255, 255, 255, 0.08);
    color: #64748b;
}
body.dark-mode .sidebar-toggle-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.05);
}
body.dark-mode .sidebar-post-card:hover {
    background: rgba(59, 130, 246, 0.08);
}
body.dark-mode .post-rank {
    color: #475569;
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .sidebar-post-card:hover .post-rank {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
body.dark-mode .sidebar-post-title {
    color: #e2e8f0;
}
body.dark-mode .sidebar-post-card:hover .sidebar-post-title {
    color: #60a5fa;
}
body.dark-mode .sidebar-post-meta {
    color: #64748b;
}
body.dark-mode .post-cat-tag {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
}
body.dark-mode .sidebar-stats-section {
    background: transparent;
    border-color: transparent;
}
body.dark-mode .stat-item {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .stat-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
}
body.dark-mode .stat-value {
    color: #f1f5f9;
}
body.dark-mode .stat-label {
    color: #64748b;
}
body.dark-mode .sidebar-promo-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(59, 130, 246, 0.15);
}
body.dark-mode .blog-sidebar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.25);
}

body.dark-mode .sidebar-post-item {
    border-color: var(--dark-border, #3d3d3d);
}

body.dark-mode .page-link {
    background-color: var(--dark-card, #2d2d2d);
    border-color: var(--dark-border, #3d3d3d);
    color: var(--dark-text, #e0e0e0);
}

body.dark-mode .page-link:hover {
    background-color: rgba(var(--primary-rgb), 0.25);
    color: var(--primary-light, #1a8cff);
}

body.dark-mode .page-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Legacy sidebar-category-item overrides removed — replaced by pill layout */
/* Style dla domyślnych miniatur wpisów */

.default-blog-thumbnail {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    padding: 1.5rem;
    color: white;
    text-align: center;
    box-sizing: border-box;
}

/* Klasy tematyczne dla kategorii */
.hosting-theme {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

.domains-theme {
    background: linear-gradient(135deg, #ff8800, #ff9e1f);
}

.tips-theme {
    background: linear-gradient(135deg, #28a745, #5cb85c);
}

.wordpress-theme {
    background: linear-gradient(135deg, #21759b, #0099CC);
}

.security-theme {
    background: linear-gradient(135deg, #dc3545, #f56565);
}

.tech-theme {
    background: linear-gradient(135deg, #6f42c1, #9275d1);
}

.blog-theme {
    background: linear-gradient(135deg, #5a6268, #868e96);
}

/* Elementy miniaturki */
.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.thumbnail-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
}

.thumbnail-title {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.default-blog-thumbnail .category-icon,
.default-blog-thumbnail .thumbnail-category,
.default-blog-thumbnail .thumbnail-title {
    position: relative;
    z-index: 2;
}

/* Efekt dekoracyjny */
.default-blog-thumbnail::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 1;
    opacity: 0.5;
}

/* Hover efekt */
a:hover .default-blog-thumbnail {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsywność — kafle mają zawsze ten sam rozmiar */
@media (max-width: 768px) {
    .blog-thumbnail,
    .default-blog-thumbnail {
        height: 220px;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .thumbnail-category {
        font-size: 0.8rem;
    }
    
    .thumbnail-title {
        font-size: 1rem;
    }
}

/* Dostosowania dla ciemnego motywu */
body.dark-mode .default-blog-thumbnail {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode a:hover .default-blog-thumbnail {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
/* Poprawki układu kolumn dla bloga - wersja 2 */

/* Układ głównego kontenera */
.blog-container .row {
    display: flex;
    flex-wrap: wrap;
}

/* Naprawienie kolumn na większych ekranach */
@media (min-width: 992px) {
    .content-column {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
        float: left;
    }
    
    .sidebar-column {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        float: right;
    }
    
    /* Clearfix po rzędzie */
    .blog-container .row:after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Wymuszenie prawidłowego layoutu */
    .blog-container .row {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
}

/* Poprawki dla bootstrap */
.col-lg-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-lg-8 {
        -ms-flex: 0 0 66.666667%;
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-lg-4 {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Sidebar positioning — handled in main .blog-sidebar rule above */
