.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.post-img-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.post-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.post-content {
    padding: 25px;
    background: var(--white);
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    color: var(--primary-blue);
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-snippet {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.post-card:hover .post-snippet {
    max-height: 150px; 
    opacity: 1;
    margin-top: 10px;
}

.read-more-btn {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.post-card:hover .read-more-btn {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 1.05rem;
    }

    .post-snippet {
        max-height: none;
        opacity: 1;
        margin-top: 10px;
    }

    .read-more-btn {
        opacity: 1;
        transform: none;
        margin-top: auto;
    }

    .post-card:hover .post-img-box img {
        transform: none;
    }
}