.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.post {
    background-color: white;
    border: 2px solid var(--text-color);
    overflow: hidden;
    transition: ease-in;
    height: 100%;
}

.post:hover {
    box-shadow: 0 0 0 5px var(--accent-color);
}

.post:hover img {
    transform: scale(1.01);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 20px;
    padding-top: 8px;
    background-color: white;
    position: relative;
    z-index: 5;
}

.post-content h2 {
    margin: 0;
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-category {
    background-color: var(--accent-color);
    padding: 2px 5px;
    display: inline-block;
    max-width: min-content;
}

.post-description {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.post-description p {
    margin: 0;
    flex: 1;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-filters label {
    cursor: pointer;
}

.category-filters input[type="radio"] {
    display: none;
}

.category-filters input[type="radio"]:checked+label {
    filter: brightness(0.8);
}

@media (max-width: 1200px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts {
        grid-template-columns: repeat(1, 1fr);
    }
}