/* Сетка постов */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Карточка поста */
.post-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Изображение */
.post-thumbnail {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

/* Контент */
.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.3;
}

.post-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0073e5;
}

.post-excerpt {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Кнопка */
.read-more-btn {
    display: inline-block;
    background-color: #0073e5;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
}

.read-more-btn:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

/* Адаптивность - мобильные */
@media (max-width: 767px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-thumbnail {
        height: 200px;
    }

    .post-content {
        padding: 20px;
    }

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

/* Планшеты - 2 колонки */
@media (min-width: 768px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Пустое состояние */
.posts-grid > p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}