/* post-list.css */

/* Stili per la griglia dei post */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.post-item {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    flex: 0 0 150px;
    height: 150px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.post-category .post-tag {
    background: #3EC55F;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 3px;
    margin-right: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
}

.post-heading a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.1;
}

.post-heading a:hover {
    text-decoration: underline;
}

.post-date {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    align-items: center;
}

.post-date-icon {
    margin-right: 5px;
}

/* Stili per il campo di filtraggio del titolo */
.title-filter-form {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.title-filter-form input[type="text"] {
    padding: 8px;
    width: 70%;
    max-width: 300px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.title-filter-form button {
    padding: 8px 16px;
    background-color: #3EC55F;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.title-filter-form button:hover {
    background-color: #34ae52;
}

/* Stile per evidenziare il testo cercato */
.highlight {
    background-color: yellow;
}
