/* Базовый контейнер для сетки статей */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem 1.25rem;
    margin: 2rem 0;
}

/* Одна карточка статьи */
.post-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.28s ease;
    text-decoration: none;
    color: #f8f9fa;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: #64b8fb;
    text-decoration: none !important;
}

/* Изображение-превью */
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid #333;
    transition: transform 0.4s ease;
}

.post-card:hover img {
    transform: scale(1.06);
}

/* Контент карточки */
.post-card .post-content {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card time {
    font-size: 0.875rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
    display: block;
}

.post-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    color: #64b8fb;
    font-weight: 600;
}

.post-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #ced4da;
    margin: 0;
    flex-grow: 1;
}


.post-card .tags {
    margin-top: 1rem;
    font-size: 0.8rem;
}

.post-card .tag {
    background-color: #212529;
    color: #64b8fb;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
    border: 1px solid #333;
}

/* Для главной */
@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .post-card img {
        height: 180px;
    }

    .post-card h3 {
        font-size: 1.15rem;
    }
}