
/* Kafelki kategorii */
.bb-o-pilatesie-categories__grid {
    padding-bottom: 40px;
}

.bb-o-pilatesie-categories__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
}

.bb-o-pilatesie-section-heading,
.bb-o-pilatesie-categories__heading {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 600;
    color: #505050;
    letter-spacing: -0.5px;
    text-align: left;
}

.bb-o-pilatesie-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
	margin-top: 35px;
}

.bb-o-pilatesie-category-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    margin: 0;
    padding: 14px;
    border: 2px solid #b3b3b3;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.bb-o-pilatesie-categories__grid .button-all
{
    align-self: flex-end;
}
.bb-o-pilatesie-category-tile__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.3px;
    /* Wyrównanie początku .category-text w rzędzie (nawet gdy tytuł 1–2 linie). */
    min-height: calc(1.3em * 2);
}

h2.faq-main-header
{
    padding: 20px 0 20px 0;
}

.page-template-page-two-columns-php h2.bb-o-pilatesie-category-tile__title

{
        margin: 0 0 12px;
        min-height: calc(1.3em * 2);
}

.bb-o-pilatesie-category-tile .category-text {
    margin: 0 0 14px;
    flex: 1 1 auto;
}

.bb-o-pilatesie-category-tile__title a {
    color: #505050;
    text-decoration: none;
text-decoration: underline;
text-decoration-color: #c4cd26;
    font-size: 18px;
}

.bb-o-pilatesie-category-tile__title a:hover {
    color: #505050;
    text-decoration:none;
}

.bb-o-pilatesie-category-tile .button-green-arrow .arrow-right
{
    height: 10px;
    width: 10px;
    font-size: 14px;
}

.bb-o-pilatesie-category-tile .button-green,
.bb-o-pilatesie-category-tile .button-green-arrow

{
    height: 30px;
    font-size: 14px;
}
.bb-o-pilatesie-category-tile__btn {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
    background: #c4cd26;
    color: #505050;
    font-size: 14px!important;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
}

.bb-o-pilatesie-category-tile__btn:hover {
    background: #505050;
    color: #fff;
}

.bb-o-pilatesie-posts {
    padding: 0 0 48px;
}

.bb-o-pilatesie-page .homepage-newsletter {
    margin-top: 8px;
}

.bb-o-pilatesie-posts__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.bb-o-pilatesie-posts__empty {
    margin: 0;
    text-align: center;
    color: #505050;

}

.bb-o-pilatesie-pagination {
    margin-top: 36px;
    text-align: center;
}

.bb-o-pilatesie-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.bb-o-pilatesie-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.bb-o-pilatesie-pagination a.page-numbers,
.bb-o-pilatesie-pagination span.page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    border: 2px solid #b3b3b3;
    border-radius: 6px;
    color: #505050;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.bb-o-pilatesie-pagination a.page-numbers:hover {
    border-color: #c4cd26;
}

.bb-o-pilatesie-pagination span.page-numbers.current {
    border-color: #c4cd26;
    background: #c4cd26;
    color: #505050;
}

@media (max-width: 980px) {
    .bb-o-pilatesie-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .bb-o-pilatesie-header__title.entry-title {
        font-size: 32px;
        padding: 20px 0 10px;
    }

    .bb-o-pilatesie-categories__grid {
        grid-template-columns: 1fr;
    }

    .bb-o-pilatesie-category-tile {
        min-height: 120px;
    }

    .bb-o-pilatesie-category-tile__title,
    .page-template-page-two-columns-php h2.bb-o-pilatesie-category-tile__title {
        min-height: 0;
    }

    .bb-o-pilatesie-posts {
        padding-bottom: 36px;
    }
}
