#blog-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#blog-content {
    width: 100%;
    max-width: 900px;
}

#search-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

#search-container input {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    border-radius: 9px 0 0 9px;
    border: none;
    background-color: #161616;
    color: #999999;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border: 1px solid #222222;
}

#search-container button {
    margin-left: -1.5rem;
    padding: 1rem 2rem;
    border-radius: 9px;
    border: none;
    background-color: white;
    color: black;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

#blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

#blog-filters button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9px;
    background-color: #161616;
    border: none;
    color: #d1d5db;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border-radius: 9px;
    border: 1px solid #222222;
}

#blog-filters img {
    width: 1rem;
    height: 1rem;
    filter: invert(0.5);
}

#filter {
    position: relative;
    z-index: 10;
}

#filter>button {
    cursor: pointer;
}

.visible {
    visibility: visible !important;
    opacity: 1 !important;
}

#filter-options {
    background-color: #161616;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.01s ease-in-out, visibility 0.01s ease-in-out;
    position: absolute;
    padding: 2rem;
    flex-direction: column;
    gap: 2rem;
    border-radius: 9px;
    margin-top: 1rem;
    border-radius: 9px;
    border: 1px solid #222222;
}

#filter-options input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #999999;
    border-radius: 50%;
    background-color: #161616;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    margin-right: 0.5rem;
    /* Add space between marker and text */
}

#category-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#category-checkboxes label {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

#filter-options input[type="radio"]:checked {
    background-color: white;
    border-color: white;
}

#sort {
    position: relative;
    z-index: 10;
}

#sort>button {
    cursor: pointer;
}

#sort-options {
    background-color: #161616;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    display: flex;
    ;
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    border-radius: 9px;
    margin-top: 1rem;
    width: max-content;
    right: 0;
    border-radius: 9px;
    border: 1px solid #222222;
    transition: opacity 0.01s ease-in-out, visibility 0.01s ease-in-out;
}

#sort-options div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#sort-options input[type="radio"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #999999;
    border-radius: 50%;
    background-color: #161616;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

#sort-options input[type="radio"]:checked {
    background-color: white;
    border-color: white;
}

#sort-options label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

#search-results {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin-top: 2rem;
    overflow-x: auto;
    /* <-- poziomy scroll */
    overflow-y: hidden;
    /* <-- wyłącz pionowy scroll */
    max-height: 500px;
    padding-bottom: 1rem;
    /* opcjonalnie, dla lepszego UX */
    scrollbar-width: thin;
    /* Firefox */
}

#search-results mark {
    background-color: #00ff95;
    color: black;
    margin: 0 0.5rem;
    padding: 0 0.5rem;
}

.search-result-item {
    flex: 0 0 auto;
    /* <-- nie rozciągaj, nie zawijaj */
    width: 300px;
    /* stała szerokość */
    max-width: 90vw;
    /* responsywność na małych ekranach */
    background: #161616;
    border-radius: 9px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#search-results::-webkit-scrollbar {
    height: 8px;
}

#search-results::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.search-result-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.search-result-item a {
    color: #00bfff;
    text-decoration: none;
    font-weight: 500;
}

.search-result-item a:hover {
    text-decoration: underline;
    color: white;
}

.search-result-item h3 {
    margin: 0 0 0.75rem 0;
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.search-result-item p {
    color: #999999;
    margin: 0;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

#blog-posts {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#blog-posts>p {
    text-align: center;
}


.slider-item {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slider-item:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slider-item>a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.slider-item>a:hover,
.slider-item>a:focus,
.slider-item>a:active,
.slider-item>a:visited {
    text-decoration: none;
    /* żadnych podkreśleń */
    color: inherit;
    /* brak zmiany koloru */
    outline: none;
    /* opcjonalnie, jeśli nie chcesz obramowania focus */
}

.slider-item img {
    width: 7rem;
    aspect-ratio: 1/1;
    border-radius: 9px;
}

.slider-item div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.slider-item h4:nth-child(2) {
    color: #BABABA;
    font-size: 0.9rem;
}

.slider-item span {
    display: flex;
    justify-content: space-between;
    width: 100%;

}

.slider-item span>p {
    color: #999999;
    font-size: 0.9rem;
}

#blog-pagination {
    display: flex;
    justify-content: center;
}

#blog-pagination button {
    padding: 1rem 2rem;
    border-radius: 9px;
    margin-top: 4rem;
    border: none;
    background-color: white;
    color: black;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

@media screen and (min-width: 600px) {
    #blog-posts {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .slider-item>a {
        flex-direction: column;
    }

    .slider-item div {
        align-items: flex-start;
        max-width: 224px;
    }

    .slider-item img {
        width: 224px;
    }

}

@media screen and (min-width: 735px) {
    .slider-item div {
        max-width: 278px;
    }

    .slider-item img {
        width: 278px;
    }

}

@media screen and (min-width: 900px) {
    .slider-item {
        opacity: 0.9;
    }
}