.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.post-grid .post-item a {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-grid .post-item a:hover {
    transform: translateY(-5px);
}

.post-grid .post-item .post-thumbnail img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.post-grid .post-item .post-title {
    font-size: 18px;
    line-height: 1.5;
    color: #181918;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-grid .post-item .post-date {
    color: #999999;
    line-height: 1.5;
}

/* Post Grid Pagination Styling */
.post-grid-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 16px;
}

.post-grid-pagination a.page-number {
    font-weight: 400;
    color: #181918;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.post-grid-pagination a.page-number.active,
.post-grid-pagination a.page-number:hover {
    text-decoration: underline;
    font-weight: 600;
}

.post-grid-pagination .pagination-ellipsis {
    font-weight: 400;
    color: #181918;
}

.post-grid-pagination .page-nav {
    font-weight: 400;
    color: #181918;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.post-grid-pagination .page-nav:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.post-grid-pagination .pagination-info {
    color: #666;
    font-style: italic;
}

/* RESPONSIVE STYLES */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .post-grid .post-item a {
        gap: 16px;
    }
    
    .post-grid .post-item .post-thumbnail img {
        height: 160px;
    }
    
    .post-grid-pagination {
        margin-top: 50px;
        gap: 14px;
    }
    
    .post-grid-pagination .page-nav {
        padding: 6px 10px;
    }
}

/* Mobile Tablet - 768px */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .post-grid .post-item a {
        gap: 14px;
    }
    
    .post-grid .post-item .post-thumbnail img {
        height: 140px;
    }
    
    .post-grid-pagination {
        margin-top: 40px;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .post-grid-pagination .page-nav {
        padding: 6px 8px;
    }
    
    .post-grid-pagination .pagination-info {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-grid .post-item a {
        gap: 16px;
    }
    
    .post-grid .post-item .post-thumbnail img {
        height: 200px;
    }
    
    .post-grid-pagination {
        gap: 8px;
    }
    
    .post-grid-pagination .page-nav {
        padding: 8px 12px;
    }
}