.posts {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.post {
    background: #181818;
    border-bottom: 3px solid #222222;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    display: flex;
}

.post:hover {
    transform: translateY(-3px);
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
}

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

.post-title {
    font-size: 18px;
    margin: 10px 0;
    color: #ffffff;
}

.post-excerpt {
    font-size: 14px;
    color: #bbbbbb;
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .post-title {
        font-size: 16px;
    }

    .post-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .post-thumbnail {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-thumbnail {
        height: 140px;
    }

    .post-title {
        font-size: 14px;
    }

    .post-excerpt {
        font-size: 12px;
    }
}
