.latest-blog-posts {
    width: 100%;
}

.latest-blog-posts h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.latest-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки */
    gap: 20px;
}


.card-post {
    position: relative;
    background: #181818;
    border-bottom: 4px solid #222222;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.card-post::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background-color: var(--glow-color);
    transition: width 0.4s ease-in-out;
	    z-index: 2;
}

.card-post:hover::after {
    width: 100%;
}

.lt-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
	padding: 0 10px 10px 0;
}

.lt-body .parallelepiped {
    margin-bottom: 20px;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.blog-card-title,
.blog-card-excerpt {
    color: #fff;
}

.card-post img {
/*     position: absolute;
    top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
/*     opacity: 0.6; */
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .latest-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .card-post:first-child {
        grid-row: auto;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }

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