.post-section {
    padding: 36px 0;
    background-color: var(--light-gray);
}
.post-section-main {
}
.post-section-main-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}
.post-section-main-title a {
    font-size: 16px;
    font-weight: 700;
    color: #4b5563;
}
.post-section-main-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
}
.post-section-main-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-section-main-item-info {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: var(--white-color);
    padding: 16px;
    transition: background .5s ease, top .5s ease;
}
.post-section-main-item-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 20%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.4) 45%,
        rgba(0, 0, 0, 0.5) 55%,
        rgba(0, 0, 0, 0.6) 75%,
        rgba(0, 0, 0, 0.7) 85%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: opacity 0.5s ease; 
    z-index: 0;
}

.post-section-main-item-info h6 {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
}
.post-section-main-item-info p {
    margin: 0;
    max-height: 0;
    font-size: 14px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    transition: max-height 0.5s ease, margin-top .5s ease;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}
.post-section-main-item:hover .post-section-main-item-info {
    background: rgb(9, 6, 6, 0.75);
    top: 0;
}
.post-section-main-item:hover .post-section-main-item-info::before {
    opacity: 0;
}
.post-section-main-item:hover .post-section-main-item-info p {
    max-height: 66px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .post-section {
        padding-bottom: 16px;
    }
}