/* ============================================
   LATEST POSTS GRID - DYNAMIC POSTS
   ============================================ */

.latest-posts-grid-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #F5F5F5;
    padding: 40px 20px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    padding: 25px;
    border-radius: 12px;
    color: #FFFFFF;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.post-card h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Lexend Deca', sans-serif;
    margin: 0;
    color: #FFFFFF;
}

/* Color Classes */
.post-card-blue {
    background-color: #2196F3;
}

.post-card-purple {
    background-color: #9C27B0;
}

.post-card-orange {
    background-color: #FF5722;
}

.post-card-pink {
    background-color: #E91E63;
}

.post-card-green {
    background-color: #2CB641;
}

.post-card-orange-alt {
    background-color: #FF9800;
}

.post-card-cyan {
    background-color: #00BCD4;
}

.post-card-purple-alt {
    background-color: #9C27B0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .latest-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .post-card h3 {
        font-size: 13px;
    }

    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}
