/* --- Stylizacja formularza filtrów (NOWY UKŁAD POZIOMY) --- */
.project-filters-form {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px; /* Odstęp od wyników */

    /* Tworzymy siatkę dla filtrów */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Automatyczne dopasowanie kolumn */
    gap: 20px 30px; /* Odstępy pionowe i poziome */
    align-items: end; /* Wyrównanie elementów do dołu */
}

.project-filters-form h4,
.project-filters-form h5 {
    display: none; /* Ukrywamy nagłówki w układzie poziomym */
}

.project-filters-form .filter-group {
    margin-bottom: 0; /* Resetujemy margines, bo mamy teraz "gap" */
}

.project-filters-form .filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.project-filters-form .range-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-filters-form .range-inputs input {
    width: 45%;
    padding: 8px;
}

#filter_project_name {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Grupowanie checkboxów w układzie poziomym */
.filter-group.checkbox-group label {
    display: block;
    font-weight: normal;
    margin-bottom: 5px;
}
.filter-group.checkbox-group label input {
    margin-right: 5px;
}


/* --- Stylizacja suwaków noUiSlider --- */
.range-slider .noUi-target {
    height: 6px;
    border: 1px solid #BDBDBD;
    box-shadow: none;
}
.range-slider .noUi-connect {
    background: #1b9c85; /* ZMIANA KOLORU */
}
.range-slider .noUi-handle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1b9c85; /* ZMIANA KOLORU */
    right: -10px;
    top: -7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
}
.range-slider .noUi-handle:focus { outline: none; }
.range-slider .noUi-handle::before,
.range-slider .noUi-handle::after { display: none; }


/* --- Stylizacja siatki wyników (Zwiększona specyficzność) --- */
.entry-content .project-results-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Stylizacja pojedynczej karty projektu (bez zmian) --- */
a.project-item-link { display: flex; }
.project-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.project-item .project-thumbnail img { width: 100%; height: auto; display: block; }
.project-item h3 { font-size: 1.2em; font-weight: 600; padding: 15px 15px 5px 15px; margin: 0; }
.project-item p { font-size: 0.9em; padding: 0 15px 15px 15px; margin: 0; color: #555; }
.project-item .project-excerpt { font-size: 0.85em; color: #666; padding: 10px 15px 15px 15px; margin-top: 10px; border-top: 1px solid #f0f0f0; line-height: 1.4; margin-top: auto; }

/* --- Responsywność siatki wyników (Zwiększona specyficzność) --- */
@media (max-width: 1024px) {
    .entry-content .project-results-container {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
}

@media (max-width: 767px) {
    .entry-content .project-results-container {
        grid-template-columns: 1fr; /* 1 kolumna na urządzeniach mobilnych */
    }
}

/* --- Poprawki dla linków i inne (bez zmian) --- */
a.project-item-link, a.project-item-link:hover { color: inherit !important; text-decoration: none !important; }
a.project-item-link h3, a.project-item-link p { text-decoration: none !important; }
a.project-item-link:hover h3 { text-decoration: underline !important; }
/* --- Stylizacja paginacji --- */
.project-pagination {
    margin-top: 40px;
    text-align: center;
}
.project-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}
.project-pagination .page-numbers:hover {
    background-color: #f5f5f5;
    color: #0275d8;
}
.project-pagination .page-numbers.current {
    background-color: #0275d8;
    border-color: #0275d8;
    color: #fff;
    cursor: default;
}
.project-pagination .page-numbers.dots {
    border: none;
    background: none;
}