#cbs-slider {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.cbs-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 10px;
}

#cbs-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cbs-category-btn {
    padding: 8px 50px;
    background: linear-gradient(90deg, #0097b2 50%, #4cb5c9 100%);
    background-size: 200%;
    background-position: left;
    border: none;
    border-radius: 50px;
    font-family: "Amiri", serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 25px;
    cursor: pointer;
    color: white;
    border: 2px solid transparent;
    transition:
        background-position 0.3s ease-in-out,
        border 0.3s ease-in-out;
}

.cbs-category-btn:hover {
    background-position: right;
}

.cbs-category-btn.active {
    background-position: right;
    border: 2px solid white;
}

#cbs-search-input {
    border: 3px solid #0097b2;
    border-radius: 100px;
    height: 55px;
    width: 300px;
    color: black;
    padding: 8px 12px;
    flex-grow: 1;
    min-width: 200px;
    max-width: 300px;
}

#cbs-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cbs-post-slide {
    background: #0097b2;
    border: 2px solid #0097b2;
    border-radius: 30px;
    width: 30%;
    min-width: 280px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;

    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cbs-post-slide:hover {
    transform: translateY(-5px);
}

.cbs-post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: "Monstserrat", Sans-serif;
    padding: 10px;
    color: white;
}

.cbs-post-excerpt {
    width: 100%;
    padding: 15px 15px 30px 15px;
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    background-color: white;
    text-align: justify;
    border-radius: 30px;
    margin-bottom: 0px;

    margin-top: auto;
    position: relative; /* potrzebne dla referencji absolutnego potomka */
    padding-top: 20px; /* opcjonalnie, żeby było trochę przestrzeni na najeżdżający link */


}

.cbs-post-thumbnail
{
    height: 250px !important;
    background-size: cover;
    background-repeat: no-repeat;
    border: 10px solid white !important;
    border-radius: 30px !important;
}

.cbs-read-more {
    font-weight: 600;
    color: #166569;
    text-decoration: none !important;
    font-size: 17px;
    font-family: "Amiri";
    border: 2px solid #0097b2;
    border-radius: 50px;
    background-color: white;
    padding: 10px;

    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10; /* nad excerpt */
}

.cbs-read-more:hover {
    /* text-decoration: underline; */
    color: white;
    background-color: #0097b2;
    border-color: white;
}

.cbs-no-posts {
    text-align: center;
    color: #166569;
    font-size: 30px;
    width: 100%;
    margin-top: 30px;
    font-weight: bold;
}

#cbs-pagination {
    display: flex;
    justify-content: right;
    margin-top: 70px;
    flex-wrap: wrap;
    gap: 10px;
}

#cbs-pagination span.cbs-page {
    padding: 15px 30px;
    cursor: pointer;
    background: #191919;
    font-size: 25px;
    font-family: "Montserrat";
    font-weight: 400;
    height: 70px;
}

.cbs-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
}

.cbs-arrow-icon {
    width: 70px;
    height: 70px;
    fill: white;
    display: inline-block;
    vertical-align: middle;
}

#cbs-pagination .cbs-page.first {
    background-color: #95E0F1;
    border-color: #95E0F1;
}

#cbs-pagination .cbs-page.second {
    background-color: #6BB4C6;
    border-color: #6BB4C6;
}

#cbs-pagination .cbs-page.third {
    background-color: #4295AF;
    border-color: #4295AF;
}

#cbs-pagination .active {
    background: #333;
    border-color: #333;
}

#cbs-pagination span.cbs-page.active {
    border-bottom: 3px solid #333;
    /* color: #ffffff; */
}

.cbs-double-prev > .cbs-arrow-icon:first-child,
.cbs-double-next > .cbs-arrow-icon:first-child {
    margin-right: -40px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .cbs-post-slide {
        width: 100%;
    }

    .cbs-filter {
        flex-direction: column;
        align-items: stretch;
    }

    #cbs-search-input {
        width: 100%;
        max-width: none;
    }
}
