/* ==========================================================================
   BLOG ZONE - FULL DESIGN MATCH (FINAL HEIGHT FIX)
   ========================================================================== */

/* Reset dla strony głównej */
.page_home { background: transparent !important; padding: 0 !important; box-shadow: none !important; }

/* --- GŁÓWNY KONTENER --- */
.bb-blog-section-container {
    padding: 60px 0;
    background: #ffffff; /* Czysta biel */
    margin-bottom: 60px;
    font-family: inherit; /* Dziedziczenie czcionki sklepu */
}

.bb-blog-section-container * { box-sizing: border-box; }

/* --- 1. NAGŁÓWEK (WYŚRODKOWANY) --- */
.bb-blog-header-section {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bb-header-accent {
    color: #d90244;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-family: inherit;
}

.bb-header-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-top: 0;
    font-family: inherit;
}

.bb-header-line {
    width: 60px;
    height: 4px;
    background: #d90244;
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.bb-header-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    font-family: inherit;
}

/* --- UKŁAD KOLUMN --- */
.bb-blog-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- 2. LEWA STRONA (WPISY) --- */
.bb-blog-main-column {
    flex: 1;
    min-width: 0;
}

/* Pasek narzędzi */
.bb-toolbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

/* Link tekstowy */
.bb-text-link {
    display: inline-flex;
    align-items: center;
    color: #d90244;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.bb-text-link i { margin-left: 8px; transition: transform 0.3s; }
.bb-text-link:hover { color: #b00237; }
.bb-text-link:hover i { transform: translateX(5px); }

/* --- STRZAŁKI NAWIGACYJNE (MAŁE, KWADRATOWE) --- */
.bb-scroll-controls { 
    display: flex; 
    gap: 10px; 
}

.bb-nav-btn {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #333333;
    border: none;
    border-radius: 0;    /* Kwadrat */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
}

.bb-nav-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #000;
}

/* Scroller */
.bb-scroll-wrapper { width: 100%; overflow: hidden; }
.bb-scroll-content {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bb-scroll-content::-webkit-scrollbar { display: none; }

/* Karta Wpisu */
.bb-blog-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
}

.bb-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: #d90244;
}

/* ZMIANA: WYŻSZE ZDJĘCIE DLA WYRÓWNANIA WYSOKOŚCI */
.bb-card-image-wrapper { 
    height: 280px; /* Zwiększono z 190px */
    overflow: hidden; 
    position: relative; 
}
.bb-blog-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bb-blog-card:hover .bb-blog-img-link img { transform: scale(1.05); }

/* Placeholder */
.bb-no-img {
    width: 100%; height: 100%; background: #f9f9f9; display: flex; 
    align-items: center; justify-content: center; color: #ddd; font-size: 30px;
}

.bb-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }

.bb-card-title { margin: 0 0 12px 0; line-height: 1.4; }
.bb-card-title a {
    font-size: 17px; font-weight: 700; color: #222; text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
}
.bb-card-title a:hover { color: #d90244; }

.bb-card-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 20px; font-family: inherit; }

.bb-card-footer { margin-top: auto; }
.bb-read-more {
    font-size: 11px; font-weight: 800; color: #333; text-transform: uppercase; 
    text-decoration: none; border-bottom: 2px solid #eee; padding-bottom: 3px; transition: all 0.3s;
}
.bb-read-more:hover { border-bottom-color: #d90244; color: #d90244; }


/* --- 3. PRAWA STRONA (SIDEBAR) --- */
.bb-blog-sidebar-column {
    flex: 0 0 320px;
    width: 320px;
    display: flex; flex-direction: column; gap: 25px;
}

/* Kafelki Sidebar */
.bb-sidebar-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.bb-sidebar-header {
    font-size: 14px; font-weight: 800; text-transform: uppercase; 
    color: #222; margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
    letter-spacing: 1px;
}
.bb-sidebar-header i { color: #d90244; }

/* Lista Kategorii */
.scroll-cats { 
    max-height: 400px; overflow-y: auto; padding-right: 5px;
    scrollbar-width: thin; scrollbar-color: #eee #fff;
}
.bb-cat-list { list-style: none; padding: 0; margin: 0; }
.bb-cat-list li a {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 13px; color: #555; font-weight: 500; text-decoration: none; transition: 0.2s;
}
.bb-cat-list li:last-child a { border-bottom: none; }
.bb-cat-list li a:hover { color: #d90244; padding-left: 5px; }
.cat-count { background: #f5f5f5; font-size: 10px; padding: 2px 8px; border-radius: 4px; color: #999; font-weight: 700; }

/* Wyszukiwarka */
.bb-search-form { position: relative; display: flex; width: 100%; }
.bb-search-form input {
    width: 100%; height: 45px; background: #f9f9f9; border: 1px solid #eee;
    border-radius: 50px; padding: 0 50px 0 20px; font-size: 13px; outline: none; transition: all 0.3s;
}
.bb-search-form input:focus { border-color: #d90244; background: #fff; }
.bb-search-btn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 35px; height: 35px; background: #d90244; color: #fff;
    border: none; border-radius: 50%; cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.bb-search-btn:hover { background: #b00237; }


/* --- RWD (MOBILE) --- */
@media (max-width: 1199px) {
    .bb-blog-card { flex: 0 0 280px; }
    .bb-blog-sidebar-column { flex: 0 0 280px; width: 280px; }
}

@media (max-width: 991px) {
    .bb-blog-section-container { padding: 40px 0; }
    .bb-blog-wrapper { flex-direction: column; gap: 40px; }
    .bb-blog-main-column, .bb-blog-sidebar-column { width: 100%; flex: auto; }
    .bb-blog-card { flex: 0 0 280px; } 
    .bb-toolbar-row { padding: 0; }
    .bb-nav-btn { display: none; } 
}